Closed
Bug 1413041
Opened 7 years ago
Closed 7 years ago
Android builds are going to permafail when Gecko 58 merges to Beta on 2017-11-02
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Tracking
(firefox-esr52 unaffected, firefox56 unaffected, firefox57 unaffected, firefox58blocking verified)
VERIFIED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox56 | --- | unaffected |
firefox57 | --- | unaffected |
firefox58 | blocking | verified |
People
(Reporter: RyanVM, Assigned: m_kato)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
[Tracking Requested - why for this release]: Android bustage on the next merge day.
This blocks all Android build & test coverage and the first merge of 58 to Beta is happening on Thursday. Please take a look ASAP.
https://treeherder.mozilla.org/logviewer.html#?job_id=140880565&repo=try
checking whether the target C compiler can be used... yes
Traceback (most recent call last):
File "/builds/worker/workspace/build/src/configure.py", line 127, in <module>
sys.exit(main(sys.argv))
File "/builds/worker/workspace/build/src/configure.py", line 29, in main
sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 408, in run
self._value_for(option)
File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 476, in _value_for
return self._value_for_option(obj)
File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/util.py", line 944, in method_call
cache[args] = self.func(instance, *args)
File "/builds/worker/workspace/build/src/python/mozbuild/mozbuild/configure/__init__.py", line 541, in _value_for_option
% option_string.split('=', 1)[0])
mozbuild.configure.options.InvalidOptionError: LLVM_CONFIG is not available in this configuration
Flags: needinfo?(nfroyd)
Comment 1•7 years ago
|
||
This sounds more like Stylo for Android being enabled than flipping the default compiler to clang. Kato-san, would you please take a look?
Assignee | ||
Comment 2•7 years ago
|
||
Yes, this seems to be my change.
Assignee: nobody → m_kato
Flags: needinfo?(m_kato)
Assignee | ||
Comment 3•7 years ago
|
||
I set LLVM_CONFIG by mobile/android/config/mozconfigs/common via $topsrcdir/build/mozconfig.stylo. But when disabling stylo, this LLVM_CONFIG causes invalid option error.
Ryan, do you know better value to detect beta or release on mozconfigs? NIGHTLY_CHANNEL doesn't always set to beta and release even if milestone.txt has no "a1" string.
Flags: needinfo?(ryanvm)
Reporter | ||
Comment 4•7 years ago
|
||
We have other logic specific to update channels in our in-tree configs. Try borrowing from those?
https://dxr.mozilla.org/mozilla-central/source/mobile/android/config/mozconfigs/common#71
Flags: needinfo?(ryanvm)
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(m_kato)
Comment 5•7 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #4)
> We have other logic specific to update channels in our in-tree configs. Try
> borrowing from those?
> https://dxr.mozilla.org/mozilla-central/source/mobile/android/config/
> mozconfigs/common#71
This is the best I know of at this time :( (This whole area is a disaster right now.) Please prefer IS_NIGHTLY to MOZ_UPDATE_CHANNEL = nightly -- see https://reviewboard.mozilla.org/r/194678/diff/1#index_header for rationale.
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #5)
> (In reply to Ryan VanderMeulen [:RyanVM] from comment #4)
> > We have other logic specific to update channels in our in-tree configs. Try
> > borrowing from those?
> > https://dxr.mozilla.org/mozilla-central/source/mobile/android/config/
> > mozconfigs/common#71
>
> This is the best I know of at this time :( (This whole area is a disaster
> right now.) Please prefer IS_NIGHTLY to MOZ_UPDATE_CHANNEL = nightly -- see
> https://reviewboard.mozilla.org/r/194678/diff/1#index_header for rationale.
Cannot. IS_NIGHTLY is just set only nightly build per half day. MOZ_UPDATE_CHANNEL often isn't set autoland/m-i/m-c and other branch uses that MOZ_UPDATE_CHANNEL is nightly-<branch name>. So Although I try it such as "$MOZ_UPDATE_CHANNEL != beta" and "$MOZ_UPDATE_CHANNEL != release", it doesn't detect well.
I think that we should remove when=building_stylo_bindge for LLVM_CONFIG check.
Flags: needinfo?(m_kato)
Comment 7•7 years ago
|
||
The simple solution is not to include mozconfig.stylo from mobile/android/config/mozconfigs/common, but from the nightly mozconfigs.
Comment hidden (mozreview-request) |
Reporter | ||
Comment 9•7 years ago
|
||
Comment on attachment 8924109 [details]
Bug 1413041 - Don't set LLVM_CONFIG on beta and release.
Works on Try
Attachment #8924109 -
Flags: feedback+
Updated•7 years ago
|
Attachment #8924109 -
Flags: review?(nalexander)
Attachment #8924109 -
Flags: review?(mh+mozilla)
Attachment #8924109 -
Flags: review?(gps)
Comment 10•7 years ago
|
||
Sorry, I need to defer to the most experienced peers for this. I've filed meta Bug 1413580 to have a broader discussion of this situation, which is the bite that keeps on biting.
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8924109 [details]
Bug 1413041 - Don't set LLVM_CONFIG on beta and release.
https://reviewboard.mozilla.org/r/195310/#review200564
I'm not a huge fan of reading milestone.txt from a mozconfig. For desktop, we would enable stylo in the appropriate per-channel mozconfigs only. However, Fennec doesn't seem to have per-channel mozconfigs. The closest we have are some tests against MOZ_UPDATE_CHANNEL. But MOZ_UPDATE_CHANNEL semantically refers to the official Mozilla distribution channels which is different from "pre-release build."
Since I can't think of something better to key off of from the mozconfig level without significantly scope bloating, I'm fine with this implementation.
Attachment #8924109 -
Flags: review?(gps) → review+
Comment 12•7 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d42cde31f72f
Don't set LLVM_CONFIG on beta and release. r=gps
Comment 13•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Reporter | ||
Updated•7 years ago
|
Status: RESOLVED → VERIFIED
Updated•7 years ago
|
Attachment #8924109 -
Flags: review?(mh+mozilla)
Updated•7 years ago
|
Updated•5 years ago
|
Product: Firefox for Android → Firefox Build System
Target Milestone: Firefox 58 → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•