Skip to content

fix(test): let Python worker outlive fbuild QEMU smoke deadline #3913

Closed

Description

@zackees

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_esp32dev enabled in the default Python suite.
  • GREEN: focused regression and Python test suite complete without the parent worker masking the child result.

Decisions

Related

Activity

  1. zackees commented on Aug 20, 2026

    @zackees
    MemberAuthor

    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 in RunningProcessGroup._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.

  2. moved this from Triage to Done in FastLED Trackeron Aug 20, 2026
  3. added a commit that references this issue on Aug 20, 2026
    5910be3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions