Skip to content

Delete flaky GcRestrictedCalloutReversePInvoke test - #132958

Merged
MichalStrehovsky merged 4 commits into
mainfrom
copilot/make-gc-restricted-callout-reliable
Aug 31, 2026
Merged

MichalStrehovsky merged 4 commits into
mainfrom
copilot/make-gc-restricted-callout-reliable

Conversation

Copilot AI commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #132939.

I wasn't sure if we want the test in the first place (#130459 (comment)) and now that it's known to be flaky, the decision is obvious.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
16 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

…Invoke test

Co-authored-by: MichalStrehovsky <13110571+MichalStrehovsky@users.noreply.github.com>
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Co-authored-by: MichalStrehovsky <13110571+MichalStrehovsky@users.noreply.github.com>
Copilot AI changed the title [WIP] Make GcRestrictedCalloutReversePInvoke reliable on Linux ARM32 Fix flaky background Gen2 GC detection in GcRestrictedCalloutReversePInvoke test Aug 31, 2026
Copilot AI requested a review from MichalStrehovsky August 31, 2026 05:07
@MichalStrehovsky

Copy link
Copy Markdown
Member

@copilot let's just delete the test instead.

Co-authored-by: MichalStrehovsky <13110571+MichalStrehovsky@users.noreply.github.com>

Copilot AI commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

@copilot let's just delete the test instead.

Done in 6d5801e... wait, in the latest commit — removed the test entirely (src/tests/Interop/COM/ComWrappers/GcRestrictedCalloutReversePInvoke/). Confirmed nothing else references it; MockReferenceTrackerRuntime is still needed by other tests so it stays.

@MichalStrehovsky MichalStrehovsky changed the title Fix flaky background Gen2 GC detection in GcRestrictedCalloutReversePInvoke test Delete flaky GcRestrictedCalloutReversePInvoke test Aug 31, 2026
@MichalStrehovsky
MichalStrehovsky marked this pull request as ready for review August 31, 2026 22:15
Copilot AI lite review requested due to automatic review settings August 31, 2026 22:15
@MichalStrehovsky
MichalStrehovsky merged commit 115cbec into main Aug 31, 2026
86 of 88 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the copilot/make-gc-restricted-callout-reliable branch August 31, 2026 22:16
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

🟢 Approval recommended

Pull request overview

This PR removes the GcRestrictedCalloutReversePInvoke COM/ComWrappers test project from src/tests, eliminating a known flaky/time-sensitive test that can fail by timing out while waiting for a concurrent Gen2 GC.

Changes:

  • Delete the GcRestrictedCalloutReversePInvoke test implementation (Program.cs).
  • Remove the corresponding test project file (GcRestrictedCalloutReversePInvoke.csproj).
  • Verified there are no remaining references to GcRestrictedCalloutReversePInvoke in the repo after the deletion (no build-time dangling references found via search).
File summaries
File Description
src/tests/Interop/COM/ComWrappers/GcRestrictedCalloutReversePInvoke/Program.cs Removes the entire test logic that attempted to force/observe concurrent Gen2 GC under tracker callbacks.
src/tests/Interop/COM/ComWrappers/GcRestrictedCalloutReversePInvoke/GcRestrictedCalloutReversePInvoke.csproj Removes the test project definition so the test is no longer built/executed.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 1, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

4 participants