Closed
Bug 1713683
Opened 3 years ago
Closed 3 years ago
Perma [tier2] tools/lint/test/test_black.py::test_lint_fix[black] ERROR | E KeyError: 'log'
Categories
(Developer Infrastructure :: Lint and Formatting, defect)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox-esr78 unaffected, firefox88 unaffected, firefox89 unaffected, firefox90 unaffected, firefox91 fixed)
RESOLVED
FIXED
91 Branch
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox88 | --- | unaffected |
firefox89 | --- | unaffected |
firefox90 | --- | unaffected |
firefox91 | --- | fixed |
People
(Reporter: smolnar, Assigned: nalexander)
References
(Regression)
Details
(Keywords: intermittent-failure, regression)
Attachments
(1 file, 1 obsolete file)
Bug 1713683 - Run `setup` function with `lintargs` including log and virtual env binary path. r?ahal
48 bytes,
text/x-phabricator-request
|
Details | Review |
Z:\task_1622497735\build\src\tools\lint\test\test_black.py
[task 2021-05-31T22:00:53.607Z] 0:23.76 ============================= test session starts =============================
[task 2021-05-31T22:00:53.607Z] 0:23.76 platform win32 -- Python 3.6.5, pytest-3.6.2, py-1.10.0, pluggy-0.6.0 -- Z:\task_1622497735\build\src\obj-x86_64-pc-mingw32\_virtualenvs\python-test\Scripts\python.exe
[task 2021-05-31T22:00:53.607Z] 0:23.76 rootdir: Z:\task_1622497735\build\src, inifile: Z:\task_1622497735\build\src\config\mozunit\mozunit\pytest.ini
[task 2021-05-31T22:00:53.607Z] 0:23.76 collecting ... collected 2 items
[task 2021-05-31T22:00:53.607Z] 0:23.76
[task 2021-05-31T22:00:53.607Z] 0:23.76 tools/lint/test/test_black.py::test_lint_fix[black] ERROR
[task 2021-05-31T22:00:53.607Z] 0:23.76 tools/lint/test/test_black.py::test_lint_black[black] ERROR
[task 2021-05-31T22:00:53.607Z] 0:23.76
[task 2021-05-31T22:00:53.607Z] 0:23.76 =================================== ERRORS ====================================
[task 2021-05-31T22:00:53.607Z] 0:23.76 ___________________ ERROR at setup of test_lint_fix[black] ____________________
[task 2021-05-31T22:00:53.607Z] 0:23.76
[task 2021-05-31T22:00:53.607Z] 0:23.76 config = {'description': 'Reformat python', 'exclude': ['gfx/harfbuzz/src/meson.build', 'layout/style/ServoCSSPropList.mako.py'...eb-platform/mozilla/tests/tools/wptserve_py2', ...], 'extensions': ['build', 'configure', 'py'], 'include': ['.'], ...}
[task 2021-05-31T22:00:53.607Z] 0:23.76
[task 2021-05-31T22:00:53.607Z] 0:23.76 @pytest.fixture(autouse=True)
[task 2021-05-31T22:00:53.607Z] 0:23.76 def run_setup(config):
[task 2021-05-31T22:00:53.607Z] 0:23.76 """Make sure that if the linter named in the LINTER global variable has a
[task 2021-05-31T22:00:53.607Z] 0:23.76 setup function, it gets called before running the tests.
[task 2021-05-31T22:00:53.607Z] 0:23.76 """
[task 2021-05-31T22:00:53.607Z] 0:23.76 if "setup" not in config:
[task 2021-05-31T22:00:53.607Z] 0:23.76 return
[task 2021-05-31T22:00:53.607Z] 0:23.76
[task 2021-05-31T22:00:53.607Z] 0:23.76 func = findobject(config["setup"])
[task 2021-05-31T22:00:53.607Z] 0:23.76 > func(build.topsrcdir, virtualenv_manager=build.virtualenv_manager)
[task 2021-05-31T22:00:53.607Z] 0:23.76
[task 2021-05-31T22:00:53.607Z] 0:23.76 tools\lint\test\conftest.py:97:
[task 2021-05-31T22:00:53.608Z] 0:23.76 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-05-31T22:00:53.608Z] 0:23.76
[task 2021-05-31T22:00:53.608Z] 0:23.76 root = 'Z:/task_1622497735/build/src'
[task 2021-05-31T22:00:53.608Z] 0:23.76 lintargs = {'virtualenv_manager': <mozbuild.virtualenv.VirtualenvManager object at 0x00000129A0441DD8>}
[task 2021-05-31T22:00:53.608Z] 0:23.76
[task 2021-05-31T22:00:53.608Z] 0:23.76 def setup(root, **lintargs):
[task 2021-05-31T22:00:53.608Z] 0:23.76 > log = lintargs["log"]
[task 2021-05-31T22:00:53.608Z] 0:23.76 E KeyError: 'log'
0:23.76
[task 2021-05-31T22:00:53.609Z] 0:23.76 tools\lint\python\black.py:114: KeyError
[task 2021-05-31T22:00:53.609Z] 0:23.76 __________________ ERROR at setup of test_lint_black[black] ___________________
[task 2021-05-31T22:00:53.609Z] 0:23.76
[task 2021-05-31T22:00:53.609Z] 0:23.76 config = {'description': 'Reformat python', 'exclude': ['gfx/harfbuzz/src/meson.build', 'layout/style/ServoCSSPropList.mako.py'...eb-platform/mozilla/tests/tools/wptserve_py2', ...], 'extensions': ['build', 'configure', 'py'], 'include': ['.'], ...}
[task 2021-05-31T22:00:53.609Z] 0:23.76
[task 2021-05-31T22:00:53.609Z] 0:23.76 @pytest.fixture(autouse=True)
[task 2021-05-31T22:00:53.609Z] 0:23.76 def run_setup(config):
[task 2021-05-31T22:00:53.610Z] 0:23.76 """Make sure that if the linter named in the LINTER global variable has a
[task 2021-05-31T22:00:53.610Z] 0:23.76 setup function, it gets called before running the tests.
[task 2021-05-31T22:00:53.610Z] 0:23.76 """
[task 2021-05-31T22:00:53.610Z] 0:23.76 if "setup" not in config:
[task 2021-05-31T22:00:53.610Z] 0:23.76 return
[task 2021-05-31T22:00:53.610Z] 0:23.76
[task 2021-05-31T22:00:53.610Z] 0:23.76 func = findobject(config["setup"])
[task 2021-05-31T22:00:53.611Z] 0:23.76 > func(build.topsrcdir, virtualenv_manager=build.virtualenv_manager)
[task 2021-05-31T22:00:53.611Z] 0:23.76
[task 2021-05-31T22:00:53.611Z] 0:23.76 tools\lint\test\conftest.py:97:
[task 2021-05-31T22:00:53.611Z] 0:23.76 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2021-05-31T22:00:53.611Z] 0:23.76
[task 2021-05-31T22:00:53.611Z] 0:23.76 root = 'Z:/task_1622497735/build/src'
[task 2021-05-31T22:00:53.611Z] 0:23.76 lintargs = {'virtualenv_manager': <mozbuild.virtualenv.VirtualenvManager object at 0x00000129A0441DD8>}
[task 2021-05-31T22:00:53.611Z] 0:23.76
[task 2021-05-31T22:00:53.611Z] 0:23.76 def setup(root, **lintargs):
[task 2021-05-31T22:00:53.611Z] 0:23.76 > log = lintargs["log"]
[task 2021-05-31T22:00:53.611Z] 0:23.76 E KeyError: 'log'
[task 2021-05-31T22:00:53.611Z] 0:23.76
[task 2021-05-31T22:00:53.612Z] 0:23.76 tools\lint\python\black.py:114: KeyError
[task 2021-05-31T22:00:53.612Z] 0:23.76 =========================== 2 error in 0.24 seconds ===========================
[task 2021-05-31T22:00:53.612Z] 0:23.76 Setting retcode to 1 from Z:\task_1622497735\build\src\tools\lint\test\test_black.py
[task 2021-05-31T22:00:55.792Z] 0:25.94 Z:\task_1622497735\build\src\tools\lint\test\test_clang_format.py
[task 2021-05-31T22:00:55.793Z] 0:25.94 ============================= test session starts =============================
[task 2021-05-31T22:00:55.793Z] 0:25.94 platform win32 -- Python 3.6.5, pytest-3.6.2, py-1.10.0, pluggy-0.6.0 -- Z:\task_1622497735\build\src\obj-x86_64-pc-mingw32\_virtualenvs\python-test\Scripts\python.exe
[task 2021-05-31T22:00:55.793Z] 0:25.94 rootdir: Z:\task_1622497735\build\src, inifile: Z:\task_1622497735\build\src\config\mozunit\mozunit\pytest.ini
[task 2021-05-31T22:00:55.793Z] 0:25.94 collecting ... collected 4 items
[task 2021-05-31T22:00:55.793Z] 0:25.94
[task 2021-05-31T22:00:55.793Z] 0:25.94 tools/lint/test/test_clang_format.py::test_good[clang-format] PASSED
Updated•3 years ago
|
status-firefox88:
--- → unaffected
status-firefox89:
--- → unaffected
status-firefox90:
--- → unaffected
status-firefox91:
--- → affected
Flags: needinfo?(nalexander)
Assignee | ||
Comment 1•3 years ago
|
||
This was oversight from Bug 1713178, which made black's setup
function require them but didn't bump the test.
Updated•3 years ago
|
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D116493
Assignee | ||
Comment 3•3 years ago
|
||
Try build is percolating at https://treeherder.mozilla.org/#/jobs?repo=try&revimsion=8e61d550f3d0b20532fefe8da1bc8ced123955bf. Enabling test_black
on macOS is speculative; if it still fails on macOS I'll abandon the commit.
Flags: needinfo?(nalexander)
Updated•3 years ago
|
Summary: Perma [tier2] tools/lint/test/test_black.py::test_lint_fix[black] ERROR → Perma [tier2] tools/lint/test/test_black.py::test_lint_fix[black] ERROR | E KeyError: 'log'
Updated•3 years ago
|
Attachment #9224479 -
Attachment is obsolete: true
Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3b8e222daf8d Run `setup` function with `lintargs` including log and virtual env binary path. r=ahal
Comment hidden (Intermittent Failures Robot) |
Reporter | ||
Comment 6•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Updated•3 years ago
|
Keywords: regression
Updated•3 years ago
|
status-firefox-esr78:
--- → unaffected
Comment hidden (Intermittent Failures Robot) |
Updated•3 years ago
|
Has Regression Range: --- → yes
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•