Skip to content

test(reminders): re-enable multi-grain join test - #10666

Merged
ReubenBond merged 3 commits into
dotnet:mainfrom
ReubenBond:rb-fix-reminder-tag-mismatch-flake
Aug 19, 2026
Merged

ReubenBond merged 3 commits into
dotnet:mainfrom
ReubenBond:rb-fix-reminder-tag-mismatch-flake

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Problem

Rem_Grain_1J_MultiGrainMultiReminders has 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 finally block 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

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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 finally block, followed by a liveness stabilization wait.
  • Re-enabled Rem_Grain_1J_MultiGrainMultiReminders by switching from SkippableFact (skipped) to Fact.
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

Copilot AI review requested due to automatic review settings August 19, 2026 09:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: true is currently a no-op here: StartAdditionalSilosAsync ignores that parameter and InProcessTestCluster.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

Copilot AI review requested due to automatic review settings August 19, 2026 09:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@ReubenBond
ReubenBond merged commit bf068e3 into dotnet:main Aug 19, 2026
135 of 137 checks passed
@ReubenBond
ReubenBond deleted the rb-fix-reminder-tag-mismatch-flake branch August 19, 2026 17:54
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 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.

Intermittent failures of Rem_Grain_1J_MultiGrainMultiReminders test

2 participants