Repository navigation
test(reminders): re-enable multi-grain join test - #10666
Merged
ReubenBond merged 3 commits intoAug 19, 2026
Merged
Conversation
Restore the fixture topology after the join scenario so the historical regression can run without contaminating later tests. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Re-enables a historically skipped Orleans reminders regression test which exercises a multi-grain, multi-reminder scenario during a single silo join, validating the reminder ownership invariant restored in #10612. It also adds explicit cleanup to return the shared test cluster to a stable one-silo topology after the join test completes.
Changes:
- Reworked the join scenario in the shared reminder test base to track the newly started silo and stop it in a
finallyblock, followed by a liveness stabilization wait. - Re-enabled
Rem_Grain_1J_MultiGrainMultiRemindersby switching fromSkippableFact(skipped) toFact.
Show a summary per file
| File | Description |
|---|---|
| test/Orleans.Reminders.Tests/TimerTests/ReminderTestsBase.cs | Tracks the extra silo started during the join test and cleans it up in finally, then waits for membership to stabilize. |
| test/Orleans.Reminders.Tests/TimerTests/ReminderTests_TableGrain.cs | Re-enables the historical multi-grain/multi-reminder join regression test by removing the skip. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
test/Orleans.Reminders.Tests/TimerTests/ReminderTestsBase.cs:181
startAdditionalSiloOnNewPort: trueis currently a no-op here:StartAdditionalSilosAsyncignores that parameter andInProcessTestCluster.StartSilosAsync(int, bool)is obsolete and forwards to the overload without it. Keeping this named argument is misleading (it suggests port isolation which does not actually occur).
additionalSilo = Assert.Single(await this.StartAdditionalSilosAndWaitForReminderServicesAsync(
1,
cancellationToken,
startAdditionalSiloOnNewPort: true));
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
Co-authored-by: Copilot App <[email protected]>
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.
Problem
Rem_Grain_1J_MultiGrainMultiRemindershas remained skipped since 2018 because reminder ownership could overlap during a silo join, producing tag mismatches and duplicate ticks. The same signature recurred in the SQL provider tests before #10612.PR #10612 restored the ownership invariant: a registration received by a stale owner is persisted without creating a local schedule, and the current owner reconciles it before fake time advances.
Solution
Re-enable the historical grain-based regression test. Stop the silo added by the join scenario in a
finallyblock and wait for membership to stabilize, preserving the shared fixture's one-silo topology for subsequent tests.Rationale
This exercises the original multi-grain, multi-reminder join scenario against the current reminder implementation without retries or relaxed assertions. The exact test passed 50 consecutive runs across net8.0 and net10.0, and the complete shared fixture passed 20 consecutive runs across both frameworks.
Fixes #4318
Microsoft Reviewers: Open in CodeFlow