mach bootstrap should check the mismatch between the default mozconfig file and the selected build target
Categories
(Firefox Build System :: Bootstrap Configuration, task)
Tracking
(firefox103 fixed)
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
(Regressed 1 open bug)
Details
Attachments
(4 files)
Bug 1632874 introduced the feature to automatically generate the default mozconfig file for the selected build target,
but that causes confusion in the following scenario:
- run bootstrap.py
- select "Firefox for Desktop Artifact Mode"
- run
./mach build
and get artifact build - run
./mach bootstrap
- select "Firefox for Desktop"
- run
./mach build
, but still get artifact build
the issue is that, the mozconfig file for browser_artifact_mode
is automatically generated at step 2,
but the config is not updated at step 5,
and also no message is shown because the expected mozconfig is empty
Assignee | ||
Comment 1•2 years ago
|
||
Possible options are:
- automatically rewrite the default
mozconfig
for basic case (browser vs browser_artifact_mode) - warn about the mismatch
- add yet another mozconfig file path (e.g.
mozconfig.bootstrap-generated
) that's managed by bootstrap, and use it only when no other mozconfig is found, and always rewrite the file for the selected target
Assignee | ||
Comment 2•2 years ago
|
||
Also, if the config is automatically rewritten, it's better using different MOZ_OBJDIR
between artifact mode and non-artifact mode
Assignee | ||
Comment 3•2 years ago
|
||
When ./mach bootstrap
is called with the default mozconfig file,
verify the content matches the selected build target, and if not,
show a warning and ask whether to overwrite or not.
Assignee | ||
Comment 4•2 years ago
|
||
I'll take basically 2, with proposing the overwrite (y/n question), not automatically.
Assignee | ||
Comment 5•2 years ago
|
||
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D147011
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
Depends on D147011
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/5f8e0141a0ed Part 1: Move artifact build option to build/moz.configure/init.configure. r=glandium https://hg.mozilla.org/integration/autoland/rev/9099ba749b1f Part 2: Rename mozconfig_and_target to base_mozconfig_info and return dictionary. r=glandium https://hg.mozilla.org/integration/autoland/rev/6de9495c467d Part 3: Return project and artifact-builds options from MozbuildObject.get_base_mozconfig_info. r=glandium https://hg.mozilla.org/integration/autoland/rev/813147df341c Part 4: Detect mismatch between the default mozconfig and the selected build target. r=firefox-build-system-reviewers,glandium
Comment 9•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5f8e0141a0ed
https://hg.mozilla.org/mozilla-central/rev/9099ba749b1f
https://hg.mozilla.org/mozilla-central/rev/6de9495c467d
https://hg.mozilla.org/mozilla-central/rev/813147df341c
Comment 10•2 years ago
•
|
||
Backed out 4 changesets (Bug 1769405) for causing regression in Bug 1774100.
Backout link
Comment 11•2 years ago
|
||
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/24720e4b2531 Part 1: Move artifact build option to build/moz.configure/init.configure. r=glandium https://hg.mozilla.org/integration/autoland/rev/014b13c05e48 Part 2: Rename mozconfig_and_target to base_mozconfig_info and return dictionary. r=glandium https://hg.mozilla.org/integration/autoland/rev/b998b1a573f8 Part 3: Return project and artifact-builds options from MozbuildObject.get_base_mozconfig_info. r=glandium https://hg.mozilla.org/integration/autoland/rev/16420ba4d291 Part 4: Detect mismatch between the default mozconfig and the selected build target. r=firefox-build-system-reviewers,glandium
Comment 12•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/24720e4b2531
https://hg.mozilla.org/mozilla-central/rev/014b13c05e48
https://hg.mozilla.org/mozilla-central/rev/b998b1a573f8
https://hg.mozilla.org/mozilla-central/rev/16420ba4d291
Assignee | ||
Updated•2 years ago
|
Description
•