Skip to content

test(reminders): restore joined silos - #10709

Merged
ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:rb-fix-azure-reminder-restart-timeouts
Aug 20, 2026
Merged

ReubenBond merged 2 commits into
dotnet:mainfrom
ReubenBond:rb-fix-azure-reminder-restart-timeouts

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

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

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]>
Copilot AI lite review requested due to automatic review settings August 20, 2026 10:01

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

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_MultiGrainMultiReminders helper in ReminderTestsBase which records baseline silos and stops any added silos in finally.
  • 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
Copilot AI review requested due to automatic review settings August 20, 2026 10:57

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: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@ReubenBond
ReubenBond merged commit 3619e62 into dotnet:main Aug 20, 2026
133 of 137 checks passed
@ReubenBond
ReubenBond deleted the rb-fix-azure-reminder-restart-timeouts branch August 20, 2026 21:33
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 20, 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.

Azure reminder restart tests time out refreshing reminder services

2 participants