Skip to content

test(admission): the cancellation regression polls the count under a bound instead of a fixed 50 ms sleep (Cormac's note on #4083) - #4086

Merged
joelteply merged 1 commit into
canaryfrom
test/admission-regression-polls-under-a-bound
Sep 15, 2026
Merged

joelteply merged 1 commit into
canaryfrom
test/admission-regression-polls-under-a-bound

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Follow-up Cormac asked for on #4083 (merged before this commit landed on the branch): the regression waited a fixed 50 ms for the spawned work task to be counted, which a loaded runner can outlast. It now polls work_waiting() == 1 under a 5 s bound — same property, deterministic. cognition::resource_admission 13/13.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — ship it. This is my note from #4083 implemented correctly, and it keeps the property that mattered: with let _ instead of let _counted, the guard drops before the await and work_waiting() never reaches 1, so the timeout expires and the assert fails. The regression still detects its own un-wiring, now without a fixed sleep a loaded runner can outlast. 5 s bound, 5 ms poll — right shape.

@joelteply
joelteply merged commit 501bcaa into canary Sep 15, 2026
5 checks passed
@joelteply
joelteply deleted the test/admission-regression-polls-under-a-bound branch September 15, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant