Closed Bug 2050917 Opened 12 days ago Closed 11 days ago

DependenciesPlugin formats build-metric durations with the default locale

Categories

(Firefox for Android :: Tooling, task)

All
Android
task

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: RyanVM, Assigned: RyanVM)

References

Details

Attachments

(1 file)

The build-metrics BuildService in DependenciesPlugin.kt formats task and phase durations with String.format("%.3f", ...) and no explicit Locale, so the decimal separator follows the build machine's default locale (e.g. 1,234 vs 1.234) and the emitted build-metrics JSON is non-deterministic. AGP 9's lint flags this as a DefaultLocale warning. Fix by passing Locale.ROOT.

String.format without an explicit Locale uses the default locale's decimal separator, which makes
the build-metrics output non-deterministic. Pass Locale.ROOT so durations always use a '.' separator.

Pushed by rvandermeulen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b871b5bf4b2b https://hg.mozilla.org/integration/autoland/rev/1ebcd11abddb Format build-metric durations with Locale.ROOT in DependenciesPlugin. r=android-reviewers,adhingra
Status: NEW → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: