Skip to content

Disable r2r test on Release - #130769

Merged
jtschuster merged 2 commits into
dotnet:mainfrom
BrzVlad:fix-r2r-tests-release
Jul 16, 2026
Merged

jtschuster merged 2 commits into
dotnet:mainfrom
BrzVlad:fix-r2r-tests-release

Conversation

@BrzVlad

@BrzVlad BrzVlad commented Jul 15, 2026

Copy link
Copy Markdown
Member

Disables recently added ILCompiler.ReadyToRun.Tests.TestCases.R2RTestSuites.ArmThumbBitHotColdRuntimeFunctions on Release, where it fails. This test passes JitStressProcedureSplitting=1 to the JIT, option which is only valid on Debug/Checked builds.

Disables recently added ILCompiler.ReadyToRun.Tests.TestCases.R2RTestSuites.ArmThumbBitHotColdRuntimeFunctions on Release. This test passes `JitStressProcedureSplitting=1` to the JIT, option which is only valid on Debug/Checked builds.
Copilot AI review requested due to automatic review settings July 15, 2026 10:44
@BrzVlad
BrzVlad requested a review from jtschuster July 15, 2026 10:44
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 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.

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

This PR updates the ILCompiler ReadyToRun (R2R) test suite to skip a hot/cold splitting test when running the test project in Release configuration, by adding a configuration-based condition helper and switching the test from [Fact] to [ConditionalFact].

Changes:

  • Added TestPaths.IsRelease / TestPaths.IsNotRelease helpers based on R2RTest.Configuration.
  • Changed ArmThumbBitHotColdRuntimeFunctions to run only when TestPaths.IsNotRelease is true.

Reviewed changes

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

File Description
src/coreclr/tools/aot/ILCompiler.ReadyToRun.Tests/TestCasesRunner/TestPaths.cs Adds static helpers to detect Release vs non-Release configuration via R2RTest.Configuration.
src/coreclr/tools/aot/ILCompiler.ReadyToRun.Tests/TestCases/R2RTestSuites.cs Uses ConditionalFact to skip ArmThumbBitHotColdRuntimeFunctions in Release configuration.

@jtschuster

Copy link
Copy Markdown
Member

JitStressProcedureSplitting=1 is only valid on Debug/Checked builds.

I assume this refers to JIT/Runtime builds? I think the Configuration property is the test assembly configuration. We can replace Configuration with CoreCLRConfiguration instead, I don't see Configuration used anywhere else.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2bd3c1bf-410e-46fc-b52c-eb7a48425c62
Copilot AI review requested due to automatic review settings July 16, 2026 02:45

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 3 out of 3 changed files in this pull request and generated no new comments.

@BrzVlad

BrzVlad commented Jul 16, 2026

Copy link
Copy Markdown
Member Author

@jtschuster Thanks for the update. Unfortunately now this PR needs another approver :(

@jtschuster

Copy link
Copy Markdown
Member

Agh, sorry, I hoped that would make this easier to get in, not harder. cc @dotnet/crossgen-contrib could anyone give a quick review?

@jtschuster
jtschuster requested a review from sbomer July 16, 2026 19:59
@jtschuster
jtschuster merged commit 2f7ae92 into dotnet:main Jul 16, 2026
110 of 112 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 17, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 17, 2026
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.

4 participants