Repository navigation
fix(tests): keep the runner host's CHECK_HOST_* limits out of the check CLI fixture - #1884
Conversation
…ck CLI fixture "check CLI teardown" tests timed out in Fast checks on the self-hosted runners under load (#1871 at 150 s, #1848 at 90 s: the nested check exited 1 after waiting out the fixture's CHECK_WAIT_SECONDS=90 for a slot). Since #1839, check.ts main() applies a runner host's CHECK_HOST_MAX_RUNS over CHECK_MAX_RUNS. The fixture builds the nested checks' environment from process.env and asks for CHECK_MAX_RUNS=8 so its throwaway runs get a slot beside the PC's real runs (#1225); on a runner container the inherited CHECK_HOST_MAX_RUNS=5 took that back, so they queued behind the host's real CI runs for its 5 slots. The fixture now drops every CHECK_HOST_* name (HOST_LIMITS). Reproduced on a private CHECK_LOCK_PORT with slot 1 held by a stand-in run and CHECK_HOST_MAX_RUNS=1: main fails after 90.5 s with "Expected: 0, Received: 1", as in #1848; this passes in 0.9 s. Fixes #1875
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
CodeRabbit's review was rate-limited ("Review limit reached"), so no CodeRabbit review ran on this PR. The review below stands in for it. omo-native-code-reviewer: APPROVE, no blockers. It confirmed the cause ( |
|
Merge pass review-work report. Overall: PASSED. This PR changes a test only. Under the maintainer's token rule, it merges on the code review, the merge pass's own check and CI, without the gate reviewer.
Reproduced locally: one slot held on a private
What was checked
Follow-up (LOW): nested runs still inherit the outer run's shard and worker counts, which is harmless here. All required checks are green, and no review thread is open. CodeRabbit did not review this PR (rate-limited or skipped). The reviews above stand in for it. |
Fixes #1875.
What failed
scripts/check.test.ts› "check CLI teardown" tests timed out in Fast checks on the self-hosted runners under load: #1871 at 150 s ("bounds interrupted draining…"), #1848 at 90 s ("removes implicit state…": the nested check exited 1 after waiting out the fixture'sCHECK_WAIT_SECONDS=90for a slot).Root cause
Since #1839,
check.tsmain()runsapplyHostLimits(process.env): a runner host'sCHECK_HOST_MAX_RUNS(5 on the P620) overridesCHECK_MAX_RUNS. The fixture builds its nested checks' environment from...process.envand setsCHECK_MAX_RUNS: "8"so its throwaway runs get a slot beside the PC's real runs (#1225). In a runner container the inheritedCHECK_HOST_MAX_RUNS=5silently took that back, so they queued for the host's 5 slots behind its real CI runs.Fix (test only)
The fixture drops every
CHECK_HOST_*name (HOST_LIMITS) from the nested environment, as it already dropsCHECK_DIRand the GitHub event variables.Proof
CHECK_LOCK_PORTwith slot 1 held by a stand-in run andCHECK_HOST_MAX_RUNS=1: main fails after 90.5 s withExpected: 0, Received: 1, as in feat(alerts): share one pane mute across alert channels #1848; this passes in 0.9 s.bun run check fast: passed (6393 pass, 0 fail).check.tsmain()with a herdr slot and inherits the host limits). Test-only: no Codex review, per the lane's policy.Part of the flaky-tests lane.