Private
Public Access
0
0
Files
manual_slop/scripts
ed 955b61df78 fix(tests): revert watchdog to os._exit(0); runner uses subprocess timeout
The os._exit(2) change in 719c5e27 introduced a regression: the watchdog's daemon thread continues running through pytest's interpreter shutdown. On EVERY batch (even ones that complete successfully in 17s), the watchdog's time.sleep(30.0) elapses during finalization and the thread calls os._exit(2) just as pytest is wrapping up. Result: every batch was reported as 'Batch N failed' by run_tests_batched.py, even ones with '126 passed in 17.14s'.

Revert watchdog to os._exit(0) — its original purpose (force-exit any stuck pytest at 30s) doesn't need a non-zero code; it's a sledgehammer, not a signal. The runner does its own failure detection.

Update scripts/run_tests_batched.py to:
  - Use subprocess.run(timeout=180) per batch
  - Catch TimeoutExpired as a batch failure (with elapsed time + reason printed)
  - Catch CalledProcessError as a batch failure (preserved from before)
  - Print elapsed time for every batch (pass or fail) so hang behavior is visible
  - Print a final summary that lists all FAILED FILES (not batches) for easy re-running
  - Add --batch-size and --timeout CLI flags
  - Add 1-space indentation + type hints per project style

Verified: ast.parse OK; --help works; test_conftest_watchdog 3/3 pass.
2026-06-07 12:59:27 -04:00
..
2026-06-07 11:51:36 -04:00
2026-06-06 12:47:41 -04:00
2026-06-07 11:51:36 -04:00
2026-06-07 11:51:36 -04:00
2026-02-27 22:10:46 -05:00
2026-02-27 22:10:46 -05:00
2026-02-27 22:10:46 -05:00