Closed Bug 2092963 Opened 5 days ago Closed 4 days ago

Intermittent python/mozlint/test/test_types.py::test_line_type_directory_extensions TEST-UNEXPECTED-FAIL

Categories

(Testing :: Python Test, defect, P5)

defect

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: RyanVM)

Details

(Keywords: intermittent-failure)

Attachments

(1 external file)

Filed by: asilaghi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=607379473&repo=autoland&task=BpoIbaorQwmrLycbNtTapQ.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BpoIbaorQwmrLycbNtTapQ/runs/0/artifacts/public/logs/live_backing.log


[task 2026-11-14T21:32:29.188+00:00] python/mozlint/test/test_types.py::test_global_directory_without_extensions PASSED
[task 2026-11-14T21:32:29.188+00:00] python/mozlint/test/test_types.py::test_line_type_directory_extensions TEST-UNEXPECTED-FAIL
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00] ================================== FAILURES ===================================
[task 2026-11-14T21:32:29.188+00:00] _____________________ test_line_type_directory_extensions _____________________
[task 2026-11-14T21:32:29.188+00:00] python\mozlint\test\test_types.py:109: in test_line_type_directory_extensions
[task 2026-11-14T21:32:29.188+00:00]     assert path("foobar.js") in result.issues
[task 2026-11-14T21:32:29.188+00:00] E   AssertionError: assert 'C:/Users/task_179469169024443/build/src/python/mozlint/test/files/foobar.js' in defaultdict(<class 'list'>, {'C:/Users/task_179469169024443/AppData/Local/Temp/pytest-of-task_179469169024443/pytest-13/test_line_type_directory_exten0/foobar.d.ts': [Issue(linter='StringLinter', path='C:/Users/task_179469169024443/AppData/Local/Temp/pytest-of-task_179469169024443/pytest-13/test_line_type_directory_exten0/foobar.d.ts', lineno=1, column=None, message='Make sure the string foobar never appears in browser js files because it is bad', hint=None, source=None, level='error', rule='no-foobar', lineoffset=None, diff=None, relpath='../../../../../AppData/Local/Temp/pytest-of-task_179469169024443/pytest-13/test_line_type_directory_exten0/foobar.d.ts')]})
[task 2026-11-14T21:32:29.188+00:00] E    +  where 'C:/Users/task_179469169024443/build/src/python/mozlint/test/files/foobar.js' = <function path.<locals>._path at 0x000001D4E6B3F9A0>('foobar.js')
[task 2026-11-14T21:32:29.188+00:00] E    +  and   defaultdict(<class 'list'>, {'C:/Users/task_179469169024443/AppData/Local/Temp/pytest-of-task_179469169024443/pytest-13/test_line_type_directory_exten0/foobar.d.ts': [Issue(linter='StringLinter', path='C:/Users/task_179469169024443/AppData/Local/Temp/pytest-of-task_179469169024443/pytest-13/test_line_type_directory_exten0/foobar.d.ts', lineno=1, column=None, message='Make sure the string foobar never appears in browser js files because it is bad', hint=None, source=None, level='error', rule='no-foobar', lineoffset=None, diff=None, relpath='../../../../../AppData/Local/Temp/pytest-of-task_179469169024443/pytest-13/test_line_type_directory_exten0/foobar.d.ts')]}) = <mozlint.result.ResultSummary object at 0x000001D4E6B91960>.issues
[task 2026-11-14T21:32:29.188+00:00] ---------------------------- Captured stderr call -----------------------------
[task 2026-11-14T21:32:29.188+00:00] ERROR: StringLinter failed
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00] Traceback (most recent call last):
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]   File "C:\Users\task_179469169024443\build\src\python\mozlint\mozlint\roller.py", line 84, in _run_worker
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]     res = func(paths, config, **lintargs)
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]   File "C:\Users\task_179469169024443\build\src\python\mozlint\mozlint\types.py", line 79, in __call__
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]     result = self._lint(p, config, **lintargs)
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]   File "C:\Users\task_179469169024443\build\src\python\mozlint\mozlint\types.py", line 119, in _lint
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]     return self._lint_dir(path, config, **lintargs)
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]   File "C:\Users\task_179469169024443\build\src\python\mozlint\mozlint\types.py", line 96, in _lint_dir
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]     errors.extend(self._lint(os.path.join(path, p), config, **lintargs))
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]   File "C:\Users\task_179469169024443\build\src\python\mozlint\mozlint\types.py", line 123, in _lint
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00]     with open(path, errors="replace") as fh:
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.188+00:00] FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\task_179469169024443\\build\\src\\python\\mozlint\\test\\files\\tmpdap4zkvi.py'
[task 2026-11-14T21:32:29.188+00:00] 
[task 2026-11-14T21:32:29.189+00:00] ======================== 1 failed, 14 passed in 12.70s ========================
[task 2026-11-14T21:32:29.189+00:00] 
[task 2026-11-14T21:32:29.189+00:00] 
[task 2026-11-14T21:32:29.189+00:00] Tests Completed: 100%|██████████| 49/49 [00:46<00:00,  1.05Test/s]
[task 2026-11-14T21:32:29.189+00:00] Return code from mach python-test: 1
[taskcluster 2026-11-14T21:32:29.467Z]                        Exit Code: 1
[taskcluster 2026-11-14T21:32:29.467Z]                        User Time: 15.625ms
[taskcluster 2026-11-14T21:32:29.467Z]                      Kernel Time: 0s
[taskcluster 2026-11-14T21:32:29.467Z]                        Wall Time: 3m41.7700311s
[taskcluster 2026-11-14T21:32:29.467Z]  Average Available System Memory: 11.04 GiB
[taskcluster 2026-11-14T21:32:29.467Z]       Average System Memory Used: 4.96 GiB
[taskcluster 2026-11-14T21:32:29.467Z]          Peak System Memory Used: 9.64 GiB
[taskcluster 2026-11-14T21:32:29.467Z]              Total System Memory: 15.99 GiB
[taskcluster 2026-11-14T21:32:29.467Z]                           Result: FAILED
[taskcluster 2026-11-14T21:32:29.467Z] === Task Finished ===
[taskcluster 2026-11-14T21:32:29.467Z] Task Duration: 3m41.7710598s
[taskcluster 2026-11-14T21:32:30.060Z] [mounts] Preserving cache: Moving "C:\\Users\\task_179469169024443\\build" to "C:\\caches\\LPOU6X4ES3q3-DbESGGjCA"
[taskcluster 2026-11-14T21:32:30.809Z] [mounts] Preserving cache: Moving "C:\\Users\\task_179469169024443\\.task-cache\\pip" to "C:\\caches\\OGTicqtlTyOomRP1r4q5rQ"
[taskcluster 2026-11-14T21:32:30.810Z] [mounts] Preserving cache: Moving "C:\\Users\\task_179469169024443\\.task-cache\\uv" to "C:\\caches\\KUuvTHyBR8eS9rgtV-Uthg"
[taskcluster:error] exit status 1

The CLI creates the stdin temp file next to --stdin-filename, so the test briefly put a tmp*.py file in
python/mozlint/test/files, which other test modules running in parallel walk.

Assignee: nobody → ryanvm
Status: NEW → ASSIGNED
Pushed by rvandermeulen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f898416c5609 https://hg.mozilla.org/integration/autoland/rev/21cb931e75f9 Use tmp_path for the stdin filename in mozlint's CLI test. r=linter-reviewers,ahochheiden
Status: ASSIGNED → RESOLVED
Closed: 4 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: