-
Couldn't load subscription status.
- Fork 5.2k
Set DOTNET_CI environment variable for xharness command #120695
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
Set DOTNET_CI environment variable for xharness command #120695
Conversation
There was a problem hiding this comment.
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 XHarness command configuration to use the DOTNET_CI environment variable instead of HELIX_WORKITEM_ROOT for detecting CI environments. This change aligns with the SkipOnCI attribute's preferred method for CI detection and ensures better reliability since HELIX_WORKITEM_ROOT is only valid on the host machine.
Key Changes
- Replaces HELIX_WORKITEM_ROOT environment variable with DOTNET_CI=true in the XHarness command
- Simplifies CI detection by using the more appropriate DOTNET_CI variable
|
/azp run runtime-ioslike |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
Description
This PR updates the XHarness command to use the DOTNET_CI environment variable for the SkipOnCI attribute instead of HELIX_WORKITEM_ROOT. The HELIX_WORKITEM_ROOT path is only valid on the host machine. The attribute currently checks both variables to detect if the test is running in CI, but we consider DOTNET_CI to be the more appropriate and reliable.