Repository navigation
test(runtime-core): give the command-lease wait-out tests poll slack (HACK-2741) - #1286
Conversation
…(HACK-2741) The authored exec requester test (HACK-2739) and its compose sibling in command_lease_tests held the lease for 600 ms against a 700 ms bound. The retry loop sleeps up to 50 ms and checks the deadline before each attempt, so on a hosted macOS runner the caller could give up just as the lock was freed (provider_busy after about 0.75 s on next). As in #1280, the hold stays and the positive case gets 500 ms of slack, ten capped poll intervals; the expiry case asserts its exact refusal only after its deadline has passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Resolved to the tree tested in batch run m3:z495 (lead train sync). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of HACK-2741. Same fix as #1280, for the tests #1278 added (and one #1276 test in the same file). #1280's
dependency_refresh::owner_lease_teststest is not touched.Problem
nextis red: hostedCandidate core (macos-latest)(nextest) failsprovider::engine::command_lease_tests::the_authored_exec_request_waits_out_a_project_stop_and_releases_the_leasewithprovider_busyafter about 0.75 s, at cd2e21f.Root cause
The test holds the lease for 600 ms against a 700 ms bound, so it has about 100 ms of slack. The shared retry loop (
state::wait_quietly) sleeps up to 50 ms between attempts, and it checks the deadline before each attempt. On a loaded hosted runner the holder thread's unlock, plus the last sleep, can land past the deadline, and the waiter gives up just as the lock is freed. The bound was scaled from the 35 s wait; the 50 ms backoff cap was not.a_requested_command_waits_out_a_project_stop_that_the_owner_bound_refuses(#1276), in the same file, has the same 600 ms against 700 ms shape.Change
started + hold + 500 ms: ten capped poll intervals for the holder to run, unlock, and be seen.the_authored_exec_request_refuses_a_stop_past_its_bound_naming_itasserts that the deadline has passed before it checks the exact refusal.Evidence
On the M5 (macOS arm64), under the native-bench lock, with
--features native-config-plan, filtered tocommand_lease:cargo nextest run(0.9.151), 20 runs: 0 failures (14 tests each run).cargo test, 20 runs: 0 failures.cargo +1.97.1 fmt --check, and clippy--all-targets -D warningswith default features and with--all-features.privacy:checkafter staging, and gitleaks.Labelled
ci:macso hosted macOS Candidate core runs on this PR.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.