Skip to content

Fix SuppressGCTransitionNegativeTest: restore GCStressIncompatible, document CLRTestExitCode requirement - #131670

Merged
jkoritzinsky merged 2 commits into
mainfrom
copilot/fix-suppress-gc-transition-test
Jul 31, 2026
Merged

Fix SuppressGCTransitionNegativeTest: restore GCStressIncompatible, document CLRTestExitCode requirement#131670
jkoritzinsky merged 2 commits into
mainfrom
copilot/fix-suppress-gc-transition-test

Conversation

Copilot AI commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

SuppressGCTransitionNegativeTest was failing under GC stress with Expected: -2146233082 / Actual: 100. PR #126108 replaced <GCStressIncompatible>true</GCStressIncompatible> with [SkipOnCoreClr(..., RuntimeTestModes.AnyGCStress)], but this test has a non-default CLRTestExitCode (crash exit code). An XUnit-level skip returns 100, which conflicts with the expected crash exit code the harness checks.

  • SuppressGCTransitionNegativeTest.csproj: Restore <GCStressIncompatible>true</GCStressIncompatible> so GC stress skipping happens at the wrapper-script level, not inside XUnit.
  • SuppressGCTransitionNegativeTest.cs: Remove the [SkipOnCoreClr] attribute that caused the XUnit-level skip.
  • requiresprocessisolation.md: Add Rule 30 — tests with a non-default CLRTestExitCode must use process-level skip mechanisms (e.g., GCStressIncompatible) rather than XUnit-level attributes; also add CLRTestExitCode to the summary table.

Note

This description was generated with AI assistance.

Copilot AI review requested due to automatic review settings July 31, 2026 19:28

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.

Copilot was unable to review this pull request because there is no eligible user to bill. To allow Copilot reviews on bot-authored pull requests, enable direct organization billing in your organization's Copilot settings.

@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.

…d of SkipOnCoreClr

The test sets CLRTestExitCode to a crash exit code, so an XUnit-level skip
(which returns 100) conflicts with the expected exit code. Use the process-level
GCStressIncompatible mechanism instead.

Also document this requirement in requiresprocessisolation.md.

Fixes #131667

Co-authored-by: jkoritzinsky <1571408+jkoritzinsky@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 31, 2026 19:35

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.

Copilot was unable to review this pull request because there is no eligible user to bill. To allow Copilot reviews on bot-authored pull requests, enable direct organization billing in your organization's Copilot settings.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @anicka-net, @dotnet/gc
See info in area-owners.md if you want to be subscribed.

Copilot AI changed the title [WIP] Fix failed test for SuppressGCTransitionNegativeTest Fix SuppressGCTransitionNegativeTest: restore GCStressIncompatible, document CLRTestExitCode requirement Jul 31, 2026
Copilot AI requested a review from jkoritzinsky July 31, 2026 19:40
@jkoritzinsky
jkoritzinsky marked this pull request as ready for review July 31, 2026 20:04
@azure-pipelines

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

@jkoritzinsky
jkoritzinsky enabled auto-merge (squash) July 31, 2026 21:35
@jkoritzinsky
jkoritzinsky merged commit 2de3951 into main Jul 31, 2026
84 checks passed
@jkoritzinsky
jkoritzinsky deleted the copilot/fix-suppress-gc-transition-test branch July 31, 2026 22:22
@github-project-automation github-project-automation Bot moved this to Done in AppModel Jul 31, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Aug 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Failed test: Interop/SuppressGCTransition/SuppressGCTransitionNegativeTest/SuppressGCTransitionNegativeTest

4 participants