Closed Bug 1951143 Opened 10 days ago Closed 6 days ago

Move configuration variables from confvars.sh to moz.configure

Categories

(Thunderbird :: Build Config, defect)

Thunderbird 137
defect

Tracking

(Not tracked)

RESOLVED FIXED
138 Branch

People

(Reporter: corey, Assigned: sergesanspaille)

References

Details

Attachments

(2 files)

We need to move configuration variables that are not flagged as confvar from confvars.sh to moz.configure. This matches the recent configuration changes in mozilla-central.

sergesanspaille submitted the following patch:
https://phabricator.services.mozilla.com/D239871

but it resulted in build bustage so was not checked in:
https://bugzilla.mozilla.org/show_bug.cgi?id=1950637#c19

That patch was submitted for the following bug but a new bug was needed to track the comm-central changes:
https://bugzilla.mozilla.org/show_bug.cgi?id=1950637

See Also: → 1950637
Version: unspecified → Thunderbird 137

https://treeherder.mozilla.org/logviewer?job_id=496986566&repo=try-comm-central&lineNumber=958

[task 2025-02-28T09:24:00.450Z] 09:24:00    ERROR -  Traceback (most recent call last):
[task 2025-02-28T09:24:00.451Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 345, in <module>
[task 2025-02-28T09:24:00.451Z] 09:24:00     INFO -      sys.exit(main(sys.argv))
[task 2025-02-28T09:24:00.451Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 140, in main
[task 2025-02-28T09:24:00.451Z] 09:24:00     INFO -      sandbox.run()
[task 2025-02-28T09:24:00.451Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/configure/__init__.py", line 525, in run
[task 2025-02-28T09:24:00.451Z] 09:24:00     INFO -      self._value_for(option)
[task 2025-02-28T09:24:00.451Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/configure/__init__.py", line 630, in _value_for
[task 2025-02-28T09:24:00.452Z] 09:24:00     INFO -      return self._value_for_option(obj)
[task 2025-02-28T09:24:00.452Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/util.py", line 917, in method_call
[task 2025-02-28T09:24:00.452Z] 09:24:00     INFO -      cache[args] = self.func(instance, *args)
[task 2025-02-28T09:24:00.452Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/configure/__init__.py", line 665, in _value_for_option
[task 2025-02-28T09:24:00.452Z] 09:24:00     INFO -      value, option_string = self._helper.handle(option)
[task 2025-02-28T09:24:00.452Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/configure/options.py", line 616, in handle
[task 2025-02-28T09:24:00.452Z] 09:24:00     INFO -      extra_ret = option.get_value(extra_arg, extra_origin)
[task 2025-02-28T09:24:00.453Z] 09:24:00     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/configure/options.py", line 443, in get_value
[task 2025-02-28T09:24:00.453Z] 09:24:00     INFO -      raise InvalidOptionError(
[task 2025-02-28T09:24:00.453Z] 09:24:00     INFO -  mozbuild.configure.options.InvalidOptionError: MOZ_APP_PROFILE=thunderbird can not be set by implied. Values are accepted from: confvars
Assignee: nobody → sguelton
Status: NEW → ASSIGNED

This matches the recent configuration changes in mozilla-central: only
variable flagged as confvar should be set in confvars.sh

Pushed by sguelton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e38633053359 Turn MOZ_APP_PROFILE into a project_flag r=coreycb
Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

Reopened for the unpublished changeset.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/b435ffb3aec9
Move configuration variables from confvars.sh to moz.configure r=coreycb

Status: REOPENED → RESOLVED
Closed: 6 days ago6 days ago
Resolution: --- → FIXED

Comment on attachment 9469418 [details]
Bug 1951143 - Turn MOZ_APP_PROFILE into a project_flag r=corey

Beta/Release Uplift Approval Request

Attachment #9469418 - Flags: approval-mozilla-beta?
Attachment #9469418 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9469420 [details]
Bug 1951143 - Move configuration variables from confvars.sh to moz.configure r=corey

[User impact if declined]
Thunderbird needs the mozilla-beta and comm-beta patches for successful builds.

[Is this code covered by automated tests?]
No

[Has the fix been verified in Daily? (or Beta for an ESR uplift?)]
Yes

[Needs manual test from QA?]
No

[List of other uplifts needed]
The mozilla-beta uplift from this bug is also needed.

[Risk to taking this patch]
Low. With both patches from this bug, comm-central builds successfully:
https://treeherder.mozilla.org/jobs?repo=comm-central&revision=b435ffb3aec9f5135f91dee274bb11a8f1fb5f9c

[Why is the change risky/not risky? (and alternatives if risky)]
Fixes are working on comm-central

[String changes made/needed]
None

Attachment #9469420 - Flags: approval-comm-beta?

Comment on attachment 9469420 [details]
Bug 1951143 - Move configuration variables from confvars.sh to moz.configure r=corey

[Triage Comment]
Approved for beta

Attachment #9469420 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: