Skip to content

Ensure we create new RemoteInvokeOptions for every call - #107820

Merged
ericstj merged 1 commit into
dotnet:mainfrom
ericstj:fixWindowsServiceTestConcurrencyIssues
Sep 16, 2024
Merged

ericstj merged 1 commit into
dotnet:mainfrom
ericstj:fixWindowsServiceTestConcurrencyIssues

Conversation

@ericstj

@ericstj ericstj commented Sep 14, 2024

Copy link
Copy Markdown
Member

Fixes #107671, #107240

The RemoteInvokeOptions instance is mutated by RemoveExecutor.Invoke and cannot be shared.

The RemoteInvokeOptions instance is mutated by RemoveExecutor.Invoke and cannot be shared.
@ericstj

ericstj commented Sep 16, 2024

Copy link
Copy Markdown
Member Author

/backport to release/9.0

@github-actions

Copy link
Copy Markdown
Contributor

@kunalspathak

Copy link
Copy Markdown
Contributor

@ericstj - wondering what changed that these tests started to fail recently?

@ericstj

ericstj commented Sep 17, 2024

Copy link
Copy Markdown
Member Author

I don't have any hard data that shows a recent uptick in occurrences. All the recent traffic was due to manual analysis on JITStress and PGO legs. I agree that's increased - but that just could be coincident with the push to try and get these green by release.

We never saw this failing in the actual monitored build legs. Either they don't run with elevated permissions to install services - or they run on machines with fewer cores and don't actually run these tests concurrently.

jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
The RemoteInvokeOptions instance is mutated by RemoveExecutor.Invoke and cannot be shared.
sirntar pushed a commit to sirntar/runtime that referenced this pull request Sep 30, 2024
The RemoteInvokeOptions instance is mutated by RemoveExecutor.Invoke and cannot be shared.
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failure: Microsoft.Extensions.Hosting.WindowsServiceLifetimeTests.ExceptionOnStartIsPropagated

4 participants