Skip to content

Commit c2c2abf

Browse files
authored
Fix flaky test (race condition) (#2368)
Zephyr doesn't cancel tasks after a failure, meaning we can still write to the output directory. We're pausing on fix as we roll out Iris. More context about the root cause in #2344
1 parent d30b4c3 commit c2c2abf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/levanter/tests/test_new_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class ThrowingProcessor(SimpleProcessor):
229229
def __call__(self, batch: Sequence[Sequence[int]]):
230230
raise RuntimeError("exc")
231231

232-
with tempfile.TemporaryDirectory() as tmpdir:
232+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
233233
with pytest.raises(RuntimeError):
234234
build_or_load_cache(tmpdir, SimpleShardSource(), ThrowingProcessor())
235235

0 commit comments

Comments
 (0)