Repository navigation
test(scheduler): fix provisional admission deadline flake - #2594
Merged
Merged
Conversation
Wait for the actual admission context deadline rather than using the independent watchdog diagnostic as a cancellation barrier. Always release fixture gates and close resources during cleanup. Co-authored-by: Mecatl <[email protected]>
This was referenced Oct 28, 2026
Merged
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the timing-dependent failure in
TestFireProvisionalAdmissionDeadlineKeepsPendingUntilRecoverywithout changing production scheduler behavior.Relates to #2327, item 7. This PR addresses only that entry, not the other flakes in the tracker.
The fire's deadline context and watchdog use independent timer callbacks. Receiving the watchdog's "termination unconfirmed" diagnostic does not establish that deadline cancellation has propagated to lease acquisition. The test could release its admission gate too early, start its deliberately uncooperative provider, and hang during recovery and cleanup.
DeadlineExceededbefore releasing admission.Existing pending-state, overlap, no-fabricated-start, zero-provider-call, terminal-error, and resource-release assertions remain intact. No sleeps, timeout increases, or production changes.
The original failure reproduced in two of three runs on a pristine archive of the base commit. Source history places the faulty test synchronization in #2277; this is not an execution-bisect claim.
Verification
-race -count=5passed.task testpassed.task test:racepassed.task lintpassed.API compatibility
Test-only change. No production behavior, wire contract, exported Go API, feature identifier, or stored-data changes; no upgrade coordination required.