Repository navigation
test(reminders): restore joined silos - #10709
Merged
ReubenBond merged 2 commits intoAug 20, 2026
Merged
Conversation
Track the shared fixture baseline and stop every silo added by the two-join reminder scenario, including partial startup paths. Reuse the cleanup-aware helper across Azure Table and Cosmos reminder suites. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses flaky/timeouting Azure reminder restart tests by ensuring that topology-mutating reminder tests (specifically the “two-join” scenario) restore the shared test cluster fixture to its original silo topology after execution.
Changes:
- Introduces a shared
Test_Reminders_2J_MultiGrainMultiRemindershelper inReminderTestsBasewhich records baseline silos and stops any added silos infinally. - Refactors “start extra silos + wait for reminder services” logic into a dedicated helper method for reuse.
- Updates Azure Table and Cosmos reminder suites to call the shared helper instead of duplicating the two-join logic.
Show a summary per file
| File | Description |
|---|---|
| test/Orleans.Reminders.Tests/TimerTests/ReminderTestsBase.cs | Adds cleanup-aware 2-join helper and refactors silo start/wait logic to support reliable teardown. |
| test/Extensions/Orleans.Cosmos.Tests/ReminderTests_Cosmos.cs | Switches 2-join test to call the new base helper (reduces duplication, ensures cleanup). |
| test/Extensions/Orleans.Azure.Tests/Reminder/ReminderTests_AzureTable.cs | Switches 2-join test to call the new base helper (reduces duplication, ensures cleanup). |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Lite
Give additional-silo cleanup its own cancellation deadline so a timed-out startup observation cannot cancel topology restoration. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 25ebbd0c-44ca-4efe-8acd-203d619cf6c4
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.
Problem
The Azure two-join reminder test left both joined silos active in its shared class fixture. Later restart tests therefore began with four silos, expanded to six, and could time out while refreshing every active reminder service.
Solution
Move the two-join scenario into a shared cleanup-aware helper. It records the baseline topology, waits for any partial startup to settle, and stops every added silo in
finally. Azure Table and Cosmos reminder suites now use the same helper.Rationale
Topology-mutating reminder tests now return the shared fixture to its baseline without relaxing reminder ownership, refresh, or restart assertions.
Fixes #10706
Microsoft Reviewers: Open in CodeFlow