Closed
Bug 1154002
Opened 9 years ago
Closed 9 years ago
[mozbuild] assert current_type is not None hit in read_mozconfig() on a recent b2g build
Categories
(Firefox OS Graveyard :: GonkIntegration, defect)
Firefox OS Graveyard
GonkIntegration
Tracking
(b2g-v2.2 fixed, b2g-master fixed)
RESOLVED
FIXED
2.2 S10 (17apr)
People
(Reporter: ahal, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
49 bytes,
text/x-github-pull-request
|
mwu
:
review+
kkuo
:
approval-mozilla-b2g37+
|
Details | Review |
STR: cd $B2G_HOME ./repo sync ./mach help Result: This assertion is hit: https://dxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/mozconfig.py#363 This was regressed in the last couple of days, as I had been testing mochitest mach commands with emulator builds on Thursday. This means that all b2g mach commands are currently broken. Gps, any idea if this is a bad assumption in read_mozconfig() or a bad mozconfig checked into B2G?
Reporter | ||
Updated•9 years ago
|
Flags: needinfo?(gps)
Comment 1•9 years ago
|
||
bug 1151787 seems to be related?
Comment 2•9 years ago
|
||
mach xpcshell-test works fine with this patch, mach help still fails yet.
Reporter | ||
Updated•9 years ago
|
Attachment #8592067 -
Attachment is patch: true
Attachment #8592067 -
Attachment mime type: text/x-patch → text/plain
Reporter | ||
Comment 3•9 years ago
|
||
This is definitely regressed by bug 1151787. Still not sure if the bug lies with that patch, or with mozbuild. A workaround is to revert that patch: $ cd gonk-misc $ git revert 09cc97f87175c3b89b0c347855b84a8cd2b767bb
Reporter | ||
Comment 4•9 years ago
|
||
Your patch seems to fix it for me, even for |mach help|. What error are you seeing with help? If you get it working would you mind pushing this as a pull request to gonk-misc and flag :mwu for review?
Flags: needinfo?(hiikezoe)
Comment 5•9 years ago
|
||
Attachment #8592067 -
Attachment is obsolete: true
Flags: needinfo?(hiikezoe)
Attachment #8592513 -
Flags: review?(mwu)
Updated•9 years ago
|
Component: Build Config → GonkIntegration
Product: Core → Firefox OS
Comment 6•9 years ago
|
||
(In reply to Andrew Halberstadt [:ahal] from comment #4) > Your patch seems to fix it for me, even for |mach help|. What error are you > seeing with help? The error is: TypeError: populate_context() takes exactly 1 argument (2 given) File "/home/ikezoe/B2G/gecko/python/mach/mach/main.py", line 344, in run return self._run(argv) File "/home/ikezoe/B2G/gecko/python/mach/mach/main.py", line 390, in _run args = parser.parse_args(argv) File "/usr/lib/python2.7/argparse.py", line 1690, in parse_args args, argv = self.parse_known_args(args, namespace) File "/usr/lib/python2.7/argparse.py", line 1722, in parse_known_args namespace, args = self._parse_known_args(args, namespace) File "/usr/lib/python2.7/argparse.py", line 1931, in _parse_known_args stop_index = consume_positionals(start_index) File "/usr/lib/python2.7/argparse.py", line 1887, in consume_positionals take_action(action, args) File "/usr/lib/python2.7/argparse.py", line 1796, in take_action action(self, namespace, argument_values, option_string) File "/home/ikezoe/B2G/gecko/python/mach/mach/dispatcher.py", line 101, in __call__ self._handle_main_help(parser, namespace.verbose) File "/home/ikezoe/B2G/gecko/python/mach/mach/dispatcher.py", line 253, in _handle_main_help instance = handler.cls(self._context) File "/home/ikezoe/B2G/gecko/testing/mochitest/mach_commands.py", line 833, in __init__ setattr(self, attr, getattr(context, attr, None)) File "/home/ikezoe/B2G/gecko/python/mach/mach/main.py", line 160, in __getattribute__ ret = object.__getattribute__(self, '_handler')(self, key) There might be another issue on my environment.
Comment 7•9 years ago
|
||
Comment on attachment 8592513 [details] [review] Fix mach command breakage Thanks!
Attachment #8592513 -
Flags: review?(mwu) → review+
Updated•9 years ago
|
Keywords: checkin-needed
Comment 8•9 years ago
|
||
https://github.com/mozilla-b2g/gonk-misc/commit/f2f2f0cbee2f2517070dd194051d509c07cdacff
Status: NEW → RESOLVED
Closed: 9 years ago
status-b2g-v2.2:
--- → affected
status-b2g-master:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Comment 9•9 years ago
|
||
Comment on attachment 8592513 [details] [review] Fix mach command breakage NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 1151787 User impact if declined: b2g mach commands are currently broken on v2.2 Testing completed: verify on master Risk to taking this patch (and alternatives if risky): low, just set a default value to variable String or UUID changes made by this patch:none
Attachment #8592513 -
Flags: approval-mozilla-b2g37?
Updated•9 years ago
|
Attachment #8592513 -
Flags: approval-mozilla-b2g37? → approval-mozilla-b2g37+
Comment 10•9 years ago
|
||
v2.2: https://github.com/mozilla-b2g/gonk-misc/commit/122a178914f0b34f1c55fb1040f7fa5bcd11abc2
You need to log in
before you can comment on or make changes to this bug.
Description
•