Repository navigation
fix(ci): watch the pulse daemon group past readiness, not once at it (#2996) - #2998
Conversation
|
Handed off to the coordinator. State: Local evidence, quoted in the body: RED |
zackees
left a comment
There was a problem hiding this comment.
Coordinator review: LGTM. RED (12 tests, 1 failure, new case hitting the 10 s wrong path) → GREEN (3 clean runs); the 1 s settle window is pinned by the contract test so it cannot shrink to zero, and it only adds 1 s on the success path. The edit is the Python harness under test/cmocka/, not a C test, so the no-edit rule is untouched. No ledger line needed. Queue on green.
Format 🔍 / checksreds on a master push when the pulse harness samples the daemon group a fraction too early. Fixes #2996.Cause
wait_for_serversamples liveness twice — once per poll, once right afterpactl infoanswers — and neither sample waits. TheDAEMON_DIEstub exits at once, and a process's exit is only visible toPopen.poll()once it has been reaped, so the post-readiness sample sees it alive about half the time. The harness then runs the test binary, which waits its full 10 s deadline for awireplumber.jsonthat never appears and exits 9 (daemon did not start: wireplumber) instead of the harness's own1(wireplumber exited on its own:).Same class as #2972: one observation at readiness is not enough to decide the graph is up, as this run's own stub const doubles as a daemon that exits just after
pactlanswers.RED —
652897f48test_a_daemon_that_dies_just_after_the_server_answers_is_caughtusesDAEMON_BOOT_DELAY="wireplumber=0.2"so the daemon is up at readiness and gone 0.2 s later, which is what a flaky runner produces on its own. Against the unchanged harness the whole module fails exactly once:and that case alone takes 11.1 s — the stub test binary's 10 s deadline, i.e. the wrong failure path.
GREEN —
9c8170173_dead_after_settling()watches the group forSETTLE_ATTEMPTS * SETTLE_SLEEP= 1 s after the server first answers, returningFalsefromwait_for_serverthe moment a daemon is gone. The instant-DAEMON_DIEcase (the flake seen on master atda9535c0) is caught by the same window.test_the_module_exposes_the_shells_contractpins the two constants, so the window cannot silently shrink to zero.Notes
docs/features.mdline.test_check_changes.py::test_outputs_are_written_to_the_step_fileerrors in this checkout withgit: command not found(the test's stub PATH has no git here); it is untouched by this PR and is the only other failure inuv run ci/local_gate.py --lane lint.Claiming: investigation//readycomments on bug: ci Format lane flakes on test_pulse_monitor_device — the pulse harness samples daemon liveness once at readiness #2996 when this was pushed (its scheduled run is ~3-hourly); the issue is self-filed and small, so the PR carries the evidence.