Skip to content

test(reminders): serialize fixture refreshes - #10665

Merged
ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:rb-fix-cosmos-reminder-timeouts
Aug 19, 2026
Merged

ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:rb-fix-cosmos-reminder-timeouts

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

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

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]>
Copilot AI lite review requested due to automatic review settings August 19, 2026 08:11

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 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 via Task.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

@ReubenBond
ReubenBond merged commit 52860ab into dotnet:main Aug 19, 2026
73 checks passed
@ReubenBond
ReubenBond deleted the rb-fix-cosmos-reminder-timeouts branch August 19, 2026 17:55
@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.

Cosmos emulator intermittently returns HTTP 408 during reminder fixture

2 participants