Closed Bug 1507835 Opened 7 years ago Closed 7 years ago

Intermittent ..\python\mach\mach\test\test_telemetry.py::test_simple TEST-UNEXPECTED-FAIL

Categories

(Firefox Build System :: Mach Core, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

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

References

Details

(Keywords: in-triage, intermittent-failure)

Filed by: rgurzau [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=212227366&repo=autoland https://queue.taskcluster.net/v1/task/GKAbhW9PScqM09K4R5QIsA/runs/0/artifacts/public/logs/live_backing.log 15:23:45 INFO - ========================== 12 passed in 0.05 seconds ========================== 15:23:47 INFO - z:\build\build\src\python\mach\mach\test\test_telemetry.py 15:23:47 INFO - ============================= test session starts ============================= 15:23:47 INFO - platform win32 -- Python 2.7.15, pytest-3.6.2, py-1.5.4, pluggy-0.6.0 -- z:\build\build\src\obj-firefox\_virtualenvs\obj-firefox-sNC2NmI7-2.7\Scripts\python.exe 15:23:47 INFO - rootdir: z:\build\build\src, inifile: z:\build\build\src\config\mozunit\mozunit\pytest.ini 15:23:47 INFO - collecting ... collected 6 items 15:23:47 WARNING - ..\python\mach\mach\test\test_telemetry.py::test_simple TEST-UNEXPECTED-FAIL 15:23:47 INFO - ..\python\mach\mach\test\test_telemetry.py::test_path_filtering PASSED 15:23:47 INFO - ..\python\mach\mach\test\test_telemetry.py::test_path_filtering_in_objdir PASSED 15:23:47 INFO - ..\python\mach\mach\test\test_telemetry.py::test_path_filtering_other_cwd PASSED 15:23:47 INFO - ..\python\mach\mach\test\test_telemetry.py::test_mach_invoke_recursive PASSED 15:23:47 INFO - ..\python\mach\mach\test\test_telemetry.py::test_registrar_dispatch PASSED 15:23:47 INFO - ================================== FAILURES =================================== 15:23:47 INFO - _________________________________ test_simple _________________________________ 15:23:47 INFO - run_mach = <function run at 0x00000000048C56D8> 15:23:47 INFO - tmpdir = local('c:\\users\\task_1542376328\\appdata\\local\\temp\\pytest-of-task_1542376328\\pytest-1\\test_simple0') 15:23:47 INFO - def test_simple(run_mach, tmpdir): 15:23:47 INFO - > data = run_mach('python', '-c', 'pass') 15:23:47 INFO - ..\python\mach\mach\test\test_telemetry.py:46: 15:23:47 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:23:47 INFO - args = ('python', '-c', 'pass'), kwargs = {} 15:23:47 INFO - path = 'c:\users\task_1542376328\appdata\local\temp\pytest-of-task_1542376328\pytest-1\test_simple0\telemetry\outgoing' 15:23:47 INFO - def run(*args, **kwargs): 15:23:47 INFO - # Run mach with the provided arguments 15:23:47 INFO - subprocess.check_output([sys.executable, mach] + list(args), 15:23:47 INFO - stderr=subprocess.STDOUT, 15:23:47 INFO - env=env, 15:23:47 INFO - **kwargs) 15:23:47 INFO - # Load any telemetry data that was written 15:23:47 INFO - path = unicode(tmpdir.join('telemetry', 'outgoing')) 15:23:47 INFO - > return [json.load(open(os.path.join(path, f), 'rb')) for f in os.listdir(path)] 15:23:47 INFO - E WindowsError: [Error 3] The system cannot find the path specified: u'c:\\users\\task_1542376328\\appdata\\local\\temp\\pytest-of-task_1542376328\\pytest-1\\test_simple0\\telemetry\\outgoing\\*.*' 15:23:47 INFO - ..\python\mach\mach\test\test_telemetry.py:41: WindowsError
OK this is what bug 1506759 looks like after the patch there. Seems like the `os.listdir` call is failing.
I think maybe we should re-add the try/except, but put some additional logging in the except--we could check every directory upwards to see what exists. My guess is that either something is failing to create the outgoing directory or that something in the test harness is removing the temp directory before we're done with it.
Keywords: in-triage

Looking at the logs shows that the underlying cause was bug 1517909.

Assignee: nobody → ted
Status: NEW → RESOLVED
Closed: 7 years ago
Depends on: 1517909
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.