Repository navigation
test(reminders): serialize fixture refreshes - #10665
Merged
ReubenBond merged 1 commit intoAug 19, 2026
Merged
Conversation
Run deterministic reminder-service refresh barriers one silo at a time so constrained storage emulators avoid an artificial burst of concurrent range scans. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reduces intermittent timeouts in Cosmos reminder tests by preventing reminder-service refresh operations from running concurrently across multiple silos. It keeps the existing “all active reminder services have refreshed before assertions” invariant, but avoids an emulator-hostile burst of cross-partition range-scan queries during fixture synchronization.
Changes:
- Serializes
LocalReminderService.TestOnlyRefresh()calls across active silos instead of running them concurrently viaTask.WhenAll. - Preserves cancellation behavior by applying
WaitAsync(cancellationToken)to each refresh step in the barrier.
Show a summary per file
| File | Description |
|---|---|
| test/Orleans.Reminders.Tests/TimerTests/ReminderTestsBase.cs | Changes the fixture refresh barrier to refresh reminder services sequentially per active silo to reduce emulator query bursts/timeouts. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
This was referenced Aug 20, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The deterministic reminder schedule barrier refreshed every active silo concurrently. Cosmos reminder refreshes perform range scans, so multi-silo fixtures generated an artificial cross-partition query burst against the single-process emulator; failure diagnostics showed 100% CPU before HTTP 408.
Serialize these test-only refreshes across silos. The barrier continues to guarantee that every active reminder service completes a refresh before schedule assertions, while provider emulators process one range-scan set at a time.
Fixes #10649
Microsoft Reviewers: Open in CodeFlow