Skip to content

fix(testing): enforce strict wait deadlines - #10373

Merged
ReubenBond merged 9 commits into
dotnet:mainfrom
ReubenBond:reubenbond-upstream-strict-wait-deadlines
Aug 9, 2026
Merged

ReubenBond merged 9 commits into
dotnet:mainfrom
ReubenBond:reubenbond-upstream-strict-wait-deadlines

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 8, 2026 •

Copy link
Copy Markdown
Member

Testing waits could complete after their deadline or continue mutating state after timeout, making failures nondeterministic and difficult to diagnose.

This change adds monotonic, cancellation-aware wait helpers and routes the legacy wait API through them without invoking predicates after the deadline. Active callers use a cancellation-aware lastTry overload: the linked deadline token reaches test grain calls directly, while a bounded final attempt runs before the deadline so existing expected/actual assertions still provide rich failure diagnostics. WaitAsync remains only around production management-grain APIs which do not expose cancellation parameters. Upgrade tests use TestingHost’s event-driven liveness and cluster-manifest convergence waits rather than timing-based stabilization. The API surface and focused cross-target tests are updated accordingly.

ReubenBond and others added 9 commits August 8, 2026 14:22
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 8a4f4525-064e-4e39-b676-dac0c09de3e1
@ReubenBond
ReubenBond merged commit a31e386 into dotnet:main Aug 9, 2026
67 checks passed
@ReubenBond
ReubenBond deleted the reubenbond-upstream-strict-wait-deadlines branch August 9, 2026 22:09
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant