Skip to content

Disable GC/API/Refresh test when using segments GC flavor - #131967

Merged
janvorli merged 2 commits into
dotnet:mainfrom
janvorli:disable-gc-refresh-test-with-segments
Aug 7, 2026
Merged

Disable GC/API/Refresh test when using segments GC flavor#131967
janvorli merged 2 commits into
dotnet:mainfrom
janvorli:disable-gc-refresh-test-with-segments

Conversation

@janvorli

@janvorli janvorli commented Aug 6, 2026

Copy link
Copy Markdown
Member

The test was disabled on architecture basis before for targets that don't support regions GC, but that doesn't work when testing with the clrgc.dll that is build with segments GC flavor on 64 bit architectures.

Close #130828

The test was disabled on architecture basis before for targets that
don't support regions GC, but that doesn't work when testing with the
clrgc.dll that is build with segments GC flavor on 64 bit architectures.

Close dotnet#130828
@janvorli janvorli added this to the 11.0.0 milestone Aug 6, 2026
@janvorli
janvorli requested a review from kkokosa August 6, 2026 20:59
@janvorli janvorli self-assigned this Aug 6, 2026
Copilot AI review requested due to automatic review settings August 6, 2026 20:59
@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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Note

This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.

@jkoritzinsky jkoritzinsky left a comment

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.

Use ConditionalFact instead of auto-passing so it's correctly marked as "skipped"?

Copilot AI review requested due to automatic review settings August 6, 2026 23:38
@janvorli

janvorli commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

@jkoritzinsky thank you, I've moved to that way and also fixed the check that was actually incorrect.

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.

Suppressed comments (2)

src/tests/GC/API/Refresh/Refresh.cs:28

  • If you rename the condition to UsesGCWithRegions (to keep the GC initialism capitalized), update the [ConditionalFact] to reference the new member name as well.
        [ConditionalFact(typeof(Program), nameof(UsesGcWithRegions))]

src/tests/GC/API/Refresh/Refresh.cs:11

  • Identifier uses mixed-case initialism (UsesGcWithRegions). In this repo, initialisms like GC are consistently all-caps (e.g., IsGCStress), so this should be UsesGCWithRegions for consistency and readability.

This issue also appears on line 28 of the same file.

        public static bool UsesGcWithRegions 

@janvorli
janvorli merged commit cb1b022 into dotnet:main Aug 7, 2026
81 of 84 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot modified the milestones: 11.0.0, 11.0-rc1 Aug 7, 2026
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/Refresh/Refresh/Refresh.cmd assertion Expected 100 Actual 101

4 participants