Skip to content

fix(ci): de-flake startup_budget stalled-probe test (CHE-9154) [squash] - #332

Draft
congvc-bot-x99[bot] wants to merge 1 commit into
mainfrom
agent/x99-claude-sonnet-200k/che-9154-5075dbcd639e
Draft

congvc-bot-x99[bot] wants to merge 1 commit into
mainfrom
agent/x99-claude-sonnet-200k/che-9154-5075dbcd639e

Conversation

@congvc-bot-x99

Copy link
Copy Markdown

Fixes CHE-9154.

Cause

test_a_stalled_probe_fails_within_the_probe_limit_and_leaves_no_child used a 0.5 s PROBE_TIMEOUT. On a loaded runner the child interpreter can take longer than that to start, so it is killed before it writes probe.pid; the test then fails with FileNotFoundError: .../probe.pid (CI run 44231444603, one-off, main green since).

Fix (test only, no product code)

  • PROBE_TIMEOUT 0.5 s -> 5.0 s, so start-up has headroom.
  • Child sleeps 60 s (was 5 s), far past the timeout, so only the kill can end it. The test still asserts TimeoutExpired and that the child pid is gone.

Tests

uv run --frozen pytest tests/unit/test_startup_budget.py::test_a_stalled_probe_fails_within_the_probe_limit_and_leaves_no_child -q
1 passed in 5.27s

Repeat: 50 runs (5 batches x 10 parallel) with 56 busy-loop processes on a 56-core host: 0 failures of 50.

Cost: the test now takes ~5 s instead of ~0.5 s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants