Repository navigation
Description
Context
ci/tests/test_fbuild_qemu.py::test_fbuild_test_emu_esp32dev wraps fbuild test-emu with RunningProcess.run(..., timeout=600). That outer 10-minute deadline is shorter than fbuild 2.5.17's documented cold-build budget (REAL_BUILD_TIMEOUT = 900s) and its daemon long-operation cap (DAEMON_LONG_OP_TIMEOUT = 1800s).
On Windows with an empty tests/fbuild_qemu_smoke/.fbuild build tree, the focused pytest was terminated at the outer boundary after about 599 seconds while the fbuild daemon log still showed successful ESP32 compiler jobs and active build progress. Letting the same build continue outside the pytest wrapper completed successfully after another 190.4 seconds. The subsequently warm focused pytest passed in 41.05 seconds.
This makes a healthy cold build look like a broken fbuild/QEMU integration and prevents fbuild from returning its own structured timeout or build result.
Proposal
Give the outer Python process a named timeout that exceeds fbuild's 30-minute long-operation cap by a small diagnostic grace period. Keep the 10-second --timeout argument unchanged; it governs emulator runtime after compilation, not the build.
Refresh the nearby fbuild dependency comment while touching this integration: FastLED is already pinned and locked to 2.5.17, but the lead comment still says 2.5.14.
Acceptance criteria
- Preserve RED evidence: a cold focused run is shown failing at FastLED's current 600-second outer timeout while fbuild is still making successful compiler progress.
- Replace the magic 600-second wrapper deadline with a named value long enough for fbuild's 1800-second operation contract to complete or report its own failure.
- Keep the emulator's
--timeout 10behavior unchanged. - Add a fast regression test or equivalent assertion that prevents the outer deadline from falling below fbuild's supported cold/long-operation budget.
- Refresh the stale
pyproject.tomlfbuild lead comment to accurately describe the existing 2.5.17 pin; do not change the already-current lock resolution. - GREEN evidence: the focused QEMU pytest passes with fbuild 2.5.17, and the relevant Python lint/tests pass.
Decisions
- Severity is P2 because the failure is deterministic on sufficiently cold Windows build state but does not affect production firmware.
- The fix belongs in FastLED, not fbuild: fbuild 2.5.17 remained healthy, continued compiling, and completed successfully; FastLED imposed the shorter deadline.
- The outer deadline should remain bounded and slightly exceed 1800 seconds so a wedged CLI is still contained while fbuild gets first chance to report a structured result.
- The existing native-QEMU smoke test remains enabled by default; marking it slow or skipping it would reduce integration coverage rather than fix the false timeout.
Related issues
- CI: migrate all QEMU emulation tests to fbuild for faster native-tooling builds #2287 established the move to native fbuild QEMU builds.
- PR feat(ci): fbuild native-QEMU smoke test #2346 introduced this smoke test and its original 600-second outer timeout.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(test): allow cold fbuild QEMU builds (#3912)