Repository navigation
Description
Context
PR #3912 raised ci/tests/test_fbuild_qemu.py::test_fbuild_test_emu_esp32dev to a 1,860-second process timeout so a cold fbuild 2.5.17 build can reach the daemon's 30-minute long-operation result. The parent Python worker still uses _TIMEOUT = 240 in ci/util/test_runner.py, and RunningProcessGroup derives a 300-second global ceiling from that worker. In the normal mixed bash test run, the parallel WASM worker raises the group ceiling only to 360 seconds.
This makes the new inner deadline unreachable. Reproduction on Windows:
bash test: all 279 C++ unit tests and 84 examples passed, then the Python worker was killed by the 360-second group timeout.bash test --py: the Python worker was killed by the 300-second group timeout.- No pytest assertion or traceback was emitted; the active command was
uv run pytest --tb=short ci/tests --durations=0.
Proposal
Raise the Python worker timeout so it exceeds the fbuild smoke test's 1,860-second bounded deadline. Keep the existing default QEMU integration coverage established by #3910 rather than marking the test slow or skipping it. Let RunningProcessGroup continue deriving its global ceiling as the longest worker timeout plus diagnostic grace.
Acceptance criteria
- Preserve RED evidence that the Python worker currently has a shorter timeout than
FBUILD_TEST_EMU_PROCESS_TIMEOUT_SECONDS. - Give the Python worker a named timeout greater than 1,860 seconds.
- Add a fast regression test tying the parent worker deadline to the fbuild QEMU child deadline.
- Keep
test_fbuild_test_emu_esp32devenabled in the default Python suite. - GREEN: focused regression and Python test suite complete without the parent worker masking the child result.
Decisions
- This is a follow-up to fix(test): let cold fbuild QEMU builds reach fbuild deadline #3910/fix(test): allow cold fbuild QEMU builds #3912, not a rollback: the child timeout is correct, but every parent deadline must also honor it.
- Severity is P2 because cold/default validation is deterministically reported as failed while the underlying build remains healthy.
- The deadline remains bounded; this does not disable timeout protection.
Related
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Aug 20, 2026
Additional RED evidence from the unfiltered suite: after the Python worker/group/stuck thresholds were repaired,
test.py's independent 600-second watchdog still fired during the quiet fbuild QEMU test and its deadman terminated the process around 740 seconds. The traceback showed the main thread healthy inRunningProcessGroup._run_parallel()and pytest had already passed the new timeout contract tests before entering fbuild.The fix for this issue now covers the full parent chain: a 2,100-second Python worker, a derived/stuck group budget that honors it, and a 2,220-second top-level watchdog so the group can return first. All deadlines remain bounded.
fix(test): harden long-running Python supervision (FastLED#3917)