Skip to content

fix(streaming): unblock macOS 3.14 DataLoader restore CI hangs#855

Merged
tchaton merged 2 commits into
mainfrom
fix/macos-314-dataloader-hang
Jul 25, 2026
Merged

fix(streaming): unblock macOS 3.14 DataLoader restore CI hangs#855
tchaton merged 2 commits into
mainfrom
fix/macos-314-dataloader-hang

Conversation

@tchaton

@tchaton tchaton commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Skip the two non-persistent multi-epoch restore tests on darwin + Python 3.14 where CI hangs in the DataLoader worker queue / worker shutdown (covered elsewhere by test_dataloader_states_with_persistent_workers and other platforms).
  • Fail fast in _wait_until_chunk_ready for local uncompressed caches (no prefetch thread) instead of polling for _MAX_WAIT_TIME (often equal to the pytest timeout).
  • Daemonize and cancel asyncio default-executor threads on prepare-thread teardown so orphans cannot contaminate later xdist workers.

Follow-up to #852 after macOS-14 / 3.14 CI failures in test_dataloader_with_loading_states and test_resume_dataloader_with_new_dataset.

Test plan

  • Local: dataloader restore + cache eviction tests
  • CI: pytester (macos-14, 3.14) green

Made with Cursor

Skip the two non-persistent multi-epoch restore tests on darwin+3.14 where
CI hangs in the worker queue, fail fast when local chunks are missing, and
daemonize/cancel asyncio executor threads on prepare-thread teardown.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tchaton
tchaton requested a review from justusschock as a code owner July 25, 2026 00:22
Use getattr for prefetch/force-download handles so ParquetLoader and bare
test loaders do not AttributeError, and always invoke force_download after
the grace period so local fail-fast does not skip that path.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov-commenter

codecov-commenter commented Jul 25, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 81%. Comparing base (22f383b) to head (e064b37).
⚠️ Report is 1 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #855   +/-   ##
===================================
  Coverage    81%    81%           
===================================
  Files        56     56           
  Lines      8389   8397    +8     
===================================
+ Hits       6794   6801    +7     
- Misses     1595   1596    +1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tchaton
tchaton merged commit aaefea6 into main Jul 25, 2026
34 checks passed
@tchaton
tchaton deleted the fix/macos-314-dataloader-hang branch July 25, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants