Repository navigation
Disable r2r test on Release - #130769
Disable r2r test on Release#130769
Conversation
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.
|
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. |
There was a problem hiding this comment.
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.IsNotReleasehelpers based onR2RTest.Configuration. - Changed
ArmThumbBitHotColdRuntimeFunctionsto run only whenTestPaths.IsNotReleaseis 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. |
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
|
@jtschuster Thanks for the update. Unfortunately now this PR needs another approver :( |
|
Agh, sorry, I hoped that would make this easier to get in, not harder. cc @dotnet/crossgen-contrib could anyone give a quick review? |
Disables recently added ILCompiler.ReadyToRun.Tests.TestCases.R2RTestSuites.ArmThumbBitHotColdRuntimeFunctions on Release, where it fails. This test passes
JitStressProcedureSplitting=1to the JIT, option which is only valid on Debug/Checked builds.