Skip to content

Attempt to fix flaky test, StatelessWorkerActivationsPerSiloDoNotExceedMaxLocalWorkersCount#9759

Merged
ReubenBond merged 2 commits intodotnet:mainfrom
ReubenBond:fix/StatelessWorkerActivationsPerSiloDoNotExceedMaxLocalWorkersCount_
Nov 10, 2025
Merged

Attempt to fix flaky test, StatelessWorkerActivationsPerSiloDoNotExceedMaxLocalWorkersCount#9759
ReubenBond merged 2 commits intodotnet:mainfrom
ReubenBond:fix/StatelessWorkerActivationsPerSiloDoNotExceedMaxLocalWorkersCount_

Conversation

@ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Nov 9, 2025

This looks like a test issue at first glance, caused by Orleans cleaning up idle workers every 500ms (the test includes a 2s pause)

Microsoft Reviewers: Open in CodeFlow

Copilot AI review requested due to automatic review settings November 9, 2025 22:23
Copy link
Contributor

Copilot AI left a comment

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 modifies the StatelessWorkerGrain test grain to use the removeIdleWorkers parameter in the StatelessWorker attribute, setting it to false.

Key Changes

  • The StatelessWorkerGrain attribute now includes removeIdleWorkers: false, which changes the grain's idle worker cleanup behavior from proactive deactivation to collection age-based deactivation.

@ReubenBond ReubenBond enabled auto-merge November 10, 2025 21:19
@ReubenBond ReubenBond added this pull request to the merge queue Nov 10, 2025
Merged via the queue into dotnet:main with commit ce68494 Nov 10, 2025
28 of 29 checks passed
@ReubenBond ReubenBond deleted the fix/StatelessWorkerActivationsPerSiloDoNotExceedMaxLocalWorkersCount_ branch November 10, 2025 22:12
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
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.

1 participant