Private
Public Access
0
0
Files
manual_slop/tests
ed 91b19c905b fix(tests): shorter smart watchdog timeouts + 90s unconditional sledgehammer
The smart watchdog's 120s pytest-hung + 30s grace = 150s total wait was too long. The user's run hung past that point in interpreter shutdown (ThreadPoolExecutor.__del__ or live_gui teardown). Two changes:

1. SHORTENED the smart watchdog:
   - pytest-hung: 120s -> 60s
   - shutdown-grace: 30s -> 15s
   - Total: 75s (was 150s)

2. ADDED an unconditional 90s sledgehammer watchdog. This one does
   NOT wait for pytest_unconfigure. It just sleeps 90s from conftest
   load and fires os._exit(2). This handles the case where pytest is
   hung BEFORE pytest_unconfigure is reached (e.g., conftest's own
   wait_for_warmup hangs, or pytest never reaches its unconfigure).

So the new contract is:
  - Normal batch: pytest_unconfigure sets event at ~32s, smart
    watchdog's first wait returns immediately, 15s grace elapses,
    watchdog exits with 0 (normal exit). Unconditional never fires
    (90s would only fire if smart failed).
  - Hung batch: pytest_unconfigure never fires, unconditional
    watchdog fires at 90s with os._exit(2). Runner catches via
    CalledProcessError, reports failure.
  - Hung shutdown: pytest_unconfigure fires at ~32s, 15s grace
    elapses, smart watchdog fires at 60s with os._exit(2).

The 90s unconditional + 60s smart + 15s grace = the smart watchdog
fires first (at 60s) if pytest is done; the unconditional fires
later (at 90s) if pytest is hung earlier. Net max hang: 90s.

Added test_conftest_smart_watchdog.py test for the new thread.
2026-06-07 13:23:58 -04:00
..
2026-03-05 17:13:59 -05:00
2026-05-10 15:14:54 -04:00
2026-05-20 07:51:58 -04:00
2026-03-05 16:37:30 -05:00
2026-03-05 17:13:59 -05:00
2026-03-05 16:37:30 -05:00
2026-03-07 20:32:59 -05:00
2026-03-06 22:03:59 -05:00
2026-03-05 17:13:59 -05:00
2026-03-12 19:08:51 -04:00
2026-03-05 15:10:53 -05:00
2026-03-12 19:08:51 -04:00
2026-03-12 19:08:51 -04:00
2026-05-20 07:51:58 -04:00
2026-05-20 07:51:58 -04:00
ok
2026-03-07 21:40:40 -05:00