Skip to content

Fix GetGeneration GC API test failure under interpreter - #131918

Open
BrzVlad with Copilot wants to merge 3 commits into
mainfrom
copilot/ci-scan-fix-getgeneration-test-failure
Open

Fix GetGeneration GC API test failure under interpreter#131918
BrzVlad with Copilot wants to merge 3 commits into
mainfrom
copilot/ci-scan-fix-getgeneration-test-failure

Conversation

Copilot AI commented Aug 6, 2026

Copy link
Copy Markdown
Contributor
  • Diagnose why InterpreterIncompatible did not disable GC/API/GC/GetGeneration under the interpreter
  • Add RequiresProcessIsolation to src/tests/GC/API/GC/GetGeneration.csproj
  • Build clr+libs and src/tests/build.sh Release -tree:GC/API/GC
  • Verify GetGeneration.sh is generated with the interpreter guard and the OutOfProcessTest marker is emitted
  • Verify DOTNET_InterpMode=1 bash GetGeneration.sh skips (exit 0) and a normal run against Core_Root still passes

Copilot AI review requested due to automatic review settings August 6, 2026 05:42

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 wasn't able to review any files in this pull request.

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

…mpatible takes effect

Co-authored-by: BrzVlad <4720621+BrzVlad@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 6, 2026 05:48

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@BrzVlad

BrzVlad commented Aug 6, 2026

Copy link
Copy Markdown
Member

/azp run runtime-interpreter

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @BrzVlad, @janvorli
See info in area-owners.md if you want to be subscribed.

Copilot stopped work on behalf of BrzVlad due to an error August 6, 2026 06:42
Copilot AI requested a review from BrzVlad August 6, 2026 06:42
@BrzVlad

BrzVlad commented Aug 6, 2026

Copy link
Copy Markdown
Member

interpreter tests ran successfully this time

@BrzVlad
BrzVlad marked this pull request as ready for review August 6, 2026 09:30
@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.

@BrzVlad BrzVlad changed the title [WIP] Fix GetGeneration GC API test failure under interpreter Fix GetGeneration GC API test failure under interpreter Aug 6, 2026
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DebugType>PdbOnly</DebugType>
<!-- Needed for InterpreterIncompatible, which is only honored by the generated run script -->

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where possible, it is better to skip tests for specific configurations using runtime checks or ConditionalFact attributes.

RequiresProcessIsolation makes the test execution less efficient everywhere.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, you can delete SkipOnPlatform(TestPlatforms.Browser, "GC generational behavior differs on browser-wasm")] on the test since it is likely talking about the same issue.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Address this review. Use a conditional fact guarded by Utilities.IsCoreClrInterpreter instead.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot actually, conditional facts might not support negations. Consider SkipOnCoreClr with RuntimeTestModes.InterpreterActive

@BrzVlad BrzVlad Aug 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkotas copilot got stock I think. Pushed the change manually. Left the wasm untouched since my new change doesn't skip on mono-wasm

Copilot AI requested a review from BrzVlad August 6, 2026 16:49
Copilot AI review requested due to automatic review settings August 6, 2026 17:03
@BrzVlad
BrzVlad force-pushed the copilot/ci-scan-fix-getgeneration-test-failure branch from c636f8f to 838937d Compare August 6, 2026 17:06
@BrzVlad

BrzVlad commented Aug 6, 2026

Copy link
Copy Markdown
Member

/azp run runtime-interpreter

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ci-scan] Test failure: GC/API/GC/GetGeneration/GetGeneration.dll fails under interpreter (post-fix recurrence)

4 participants