Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not run crossgen2 under GC stress in tests #56949

Merged

Conversation

AntonLapounov
Copy link
Member

Unset COMPlus_GCName, COMPlus_GCStress, COMPlus_HeapVerify, and COMPlus_ReadyToRun environment variables before running crossgen2 for mainv1, mainv2, and BasicTestWithMcj tests as we already do for other tests. Use setlocal / endlocal and export -n / export commands to simplify saving and restoring original variable values.

Fixes #54203. @dotnet/crossgen-contrib

@@ -4,8 +4,6 @@
<CLRTestKind>BuildAndRun</CLRTestKind>
<CLRTestPriority>0</CLRTestPriority>
<CLRTestTargetUnsupported Condition="'$(RuntimeFlavor)' != 'coreclr'">true</CLRTestTargetUnsupported>
<!-- See https://github.com/dotnet/runtime/issues/50704 -->
<GCStressIncompatible>true</GCStressIncompatible>
Copy link
Member Author

Choose a reason for hiding this comment

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

This test should pass after #56770 disabled propagating COMPlus_GCStress environment variable to crossgen2.

Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing!

@AntonLapounov AntonLapounov merged commit fec5f22 into dotnet:main Aug 9, 2021
@AntonLapounov AntonLapounov deleted the DoNotRunCrossgen2UnderGCStress branch August 9, 2021 17:50
@ghost ghost locked as resolved and limited conversation to collaborators Sep 8, 2021
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.

Test failure readytorun/tests/mainv1/mainv1, mainv2, BasicTestWithMcj.sh
2 participants