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

Fix regression in CoreClrConfigurationDetection #8222

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

akoeplinger
Copy link
Member

In 16988fc the refactoring added IsGCStress and used it in the IsStressTest property.
However the GetEnvironmentVariableValue("GCStress") != string.Empty is always true since GetEnvironmentVariableValue will return the string "0" if the env variable isn't set.

This in turn caused StressModeApplies to return false for RuntimeTestModes.RegularRun which made the SkipOnCoreClr attribute a no-op in regular runs. Discovered while looking at failures in dotnet/runtime#61668.

/cc @jkoritzinsky

In 16988fc the refactoring added `IsGCStress` and used it in the `IsStressTest` property.
However the `GetEnvironmentVariableValue("GCStress") != string.Empty` is always true since `GetEnvironmentVariableValue` will return the string "0" if the env variable isn't set.

This in turn caused `StressModeApplies` to return false for `RuntimeTestModes.RegularRun` which made the `SkipOnCoreClr` attribute a no-op in regular runs.
@premun premun merged commit 427c059 into dotnet:main Nov 26, 2021
@akoeplinger akoeplinger deleted the fix-coreclr branch November 26, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants