Repository navigation
Closed
Labels
flaky testIntermittent failures on CI.
Description
This test was introduced as part of #6189 and is failing on main with
https://github.com/dask/distributed/runs/6205707003?check_suite_focus=true
and
https://github.com/dask/distributed/runs/6205707211?check_suite_focus=true
E asyncio.exceptions.TimeoutError: Test timeout after 30s.
E ========== Test stack trace starts here ==========
E Stack for <Task pending name='Task-173075' coro=<test_release_evloop_while_spilling() running at /Users/runner/work/distributed/distributed/distributed/tests/test_worker_memory.py:799>> (most recent call last):
E File "/Users/runner/work/distributed/distributed/distributed/tests/test_worker_memory.py", line 799, in test_release_evloop_while_spilling
E await asyncio.sleep(0)
distributed/utils_test.py:1056: TimeoutError
----------------------------- Captured stdout call -----------------------------
Dumped cluster state to test_cluster_dump/test_release_evloop_while_spilling.yaml
----------------------------- Captured stderr call -----------------------------
2022-04-28 06:44:51,918 - distributed.spill - ERROR - Spill to disk failed; keeping data in memory
Traceback (most recent call last):
File "/Users/runner/work/distributed/distributed/distributed/spill.py", line 115, in handle_errors
yield
File "/Users/runner/work/distributed/distributed/distributed/spill.py", line 211, in evict
_, _, weight = self.fast.evict()
File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/zict/lru.py", line 100, in evict
cb(k, v)
File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/zict/buffer.py", line 62, in fast_to_slow
self.slow[key] = value
File "/Users/runner/work/distributed/distributed/distributed/spill.py", line 312, in __setitem__
self.d[key] = pickled
File "/Users/runner/miniconda3/envs/dask-distributed/lib/python3.8/site-packages/zict/file.py", line 86, in __setitem__
with open(fn, "wb") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/runner/work/distributed/distributed/dask-worker-space/worker-01059kdd/storage/SlowSpill-60cdae9f-d152-4278-a7db-abb4e617229c'
cc @crusaderky
Metadata
Metadata
Assignees
Labels
flaky testIntermittent failures on CI.
Activity
crusaderky commentedon Apr 28, 2022
I... have no idea what to do about it? The test relies on having a functioning hard drive to spill to.
What's unique about this test is that it's hitting the hard disk with 100x open->1 write->close in a very short burst. Which is... a reasonable thing to ask for?
It looks like the OS either randomly nuked the spill directory, or is improperly raising ENOENT on an unrelated I/O error (I would not be surprised with OSX).
I initially thought of collisions between this test and a late cleanup of another test, but (1) that would be visible in other spill-related tests and (2) the
worker-01059kdddirectory is created bytempfile.mkdtemp(distributed.distutils:48) so I would assume it's reasonably robust.The only thing I can think of is make it fail faster and xfail it on MacOSX?
[-]`test_release_evloop_while_spilling` failing[/-][+]`test_release_evloop_while_spilling` failing on MacOSX[/+]fjetter commentedon Apr 29, 2022
Could the spill buffer for this test simply use an in-memory file/buffer instead of disk?
crusaderky commentedon Apr 29, 2022
This is ridiculous:
Ubuntu:
Windows:
MacOSX:
fjetter commentedon Apr 29, 2022
I would suggest to just skip it on OSX and link to this issue