Repository navigation
Description
Context
After #3913's Python-worker deadline was raised, bash test --py --verbose reached the quiet test_fbuild_test_emu_esp32dev subprocess. Pytest captures that subprocess's output until completion, so the outer pytest process legitimately emits no line for longer than 60 seconds.
RunningProcessGroup._process_active_tests() drains verbose output with proc.line_iter(timeout=60). The iterator raises a no-output TimeoutError when no line arrives. That normal polling condition is uncaught and crashes test.py itself instead of continuing to monitor the still-running process. Reproduction reached the fbuild QEMU test after 80 seconds, then crashed at 142 seconds with a traceback from line_iterator.py::__next__ through _process_active_tests.
The same quiet child also shows that the runner's 600-second stuck-output threshold must not undercut the bounded 1,860-second fbuild operation used by the default Python suite.
Proposal
Treat a line-iterator timeout as "no activity this poll," not as a test-run failure. Continue checking process completion and the explicit process/global deadlines. Align the stuck-output threshold with the longest supported quiet Python operation so it cannot kill a healthy fbuild build before the child deadline.
Acceptance criteria
- Preserve RED evidence that a verbose active process with no output for one iterator interval raises out of
_process_active_tests(). - Catch the iterator timeout and continue monitoring without marking activity or failure.
- Still propagate real process failures and explicit process/global timeouts.
- The stuck-output threshold does not undercut the 1,860-second fbuild QEMU child deadline.
- Add focused tests for quiet verbose polling and the timeout relationship.
- GREEN:
bash test --py --verbosereaches and completes the fbuild QEMU smoke test.
Decisions
- No synthetic heartbeat is added to pytest output; the process supervisor owns quiet-process polling.
- Timeout protection remains bounded by the existing process/global deadlines.
- Severity is P2 because
--verbose, the prescribed diagnostic mode for fix(test): emit actionable rerun commands for process failures #3914, deterministically crashes on a healthy quiet subprocess.
Related
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(test): harden long-running Python supervision (FastLED#3917)