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
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 buildand 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•3 years ago
|
||
Possible options are:
- automatically rewrite the default
mozconfigfor 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•3 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•3 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•3 years ago
|
||
I'll take basically 2, with proposing the overwrite (y/n question), not automatically.
| Assignee | ||
Comment 5•3 years ago
|
||
| Assignee | ||
Comment 6•3 years ago
|
||
Depends on D147011
Updated•3 years ago
|
| Assignee | ||
Comment 7•3 years ago
|
||
Depends on D147011
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 9•3 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•3 years ago
•
|
||
Backed out 4 changesets (Bug 1769405) for causing regression in Bug 1774100.
Backout link
Comment 11•3 years ago
|
||
Comment 12•3 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•3 years ago
|
Description
•