Closed
Bug 1845306
Opened 3 years ago
Closed 3 years ago
Test commands e.g. mochitest/geckoview-junit are broken with KeyError: 'test'
Categories
(Firefox Build System :: Mach Core, defect)
Firefox Build System
Mach Core
Tracking
(firefox-esr102 unaffected, firefox-esr115 unaffected, firefox115 unaffected, firefox116 unaffected, firefox117 fixed)
RESOLVED
FIXED
117 Branch
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox-esr115 | --- | unaffected |
| firefox115 | --- | unaffected |
| firefox116 | --- | unaffected |
| firefox117 | --- | fixed |
People
(Reporter: saschanaz, Assigned: ahochheiden)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Error running mach:
mach mochitest dom/push/test
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file mochitest`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
KeyError: 'test'
File "C:\Users\sasch\Documents\GitHub\gecko-dev\testing\mochitest\mach_commands.py", line 345, in run_mochitest_general
format_args = {"level": command_context._mach_context.settings["test"]["level"]}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "C:\Users\sasch\Documents\GitHub\gecko-dev\python\mach\mach\config.py", line 410, in __getitem__
return self._sections[k]
~~~~~~~~~~~~~~^^^
Clobbering doesn't solve this.
Comment 1•3 years ago
|
||
FWIW I have the same problem with the geckoview-junit command:
[...]
BUILD SUCCESSFUL in 19s
64 actionable tasks: 3 executed, 61 up-to-date
Error running mach:
mach geckoview-junit org.mozilla.geckoview.test.WebExtensionTest
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file geckoview-junit`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
KeyError: 'test'
File "/Users/william/projects/mozilla/gecko-worktrees/geckoview/testing/mochitest/mach_commands.py", line 548, in run_junit
format_args = {"level": command_context._mach_context.settings["test"]["level"]}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "/Users/william/projects/mozilla/gecko-worktrees/geckoview/python/mach/mach/config.py", line 410, in __getitem__
return self._sections[k]
~~~~~~~~~~~~~~^^^
| Reporter | ||
Updated•3 years ago
|
Summary: `./mach mochitest` is broken with KeyError: 'test' → Test commands e.g. mochitest/geckoview-junit are broken with KeyError: 'test'
| Reporter | ||
Comment 2•3 years ago
|
||
Happening with various mozconfigs with different objdirs, something is definitely broken.
| Reporter | ||
Comment 3•3 years ago
|
||
Alex landed some changes in mach in Bug 1695312, I wonder that's related.
Flags: needinfo?(ahochheiden)
| Reporter | ||
Comment 4•3 years ago
|
||
Reverting bug 1695312 indeed fixes this issue.
Keywords: regression
Regressed by: 1695312
Comment 5•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Mach Core' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: General → Mach Core
Comment 6•3 years ago
|
||
Set release status flags based on info from the regressing bug 1695312
status-firefox115:
--- → unaffected
status-firefox116:
--- → unaffected
status-firefox117:
--- → affected
status-firefox-esr102:
--- → unaffected
status-firefox-esr115:
--- → unaffected
| Assignee | ||
Comment 8•3 years ago
|
||
Updated•3 years ago
|
Assignee: nobody → ahochheiden
Status: NEW → ASSIGNED
Pushed by ahochheiden@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/057497f52bb2
Make some additional commands load all modules so that @SettingsProvider is ran when needed r=ahal
Comment 11•3 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•