-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support Helix testing on CentOS Stream 9 #49194
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
Conversation
@marcpopMSFT @MiYanni To fix the NativeAOT test failures on CentOS Stream 9, I added an
The dependency installation has also been ported to dotnet/dotnet-buildtools-prereqs-docker#1440. |
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
Adds support for running Helix tests on CentOS Stream 9 by updating OS detection logic, framework support checks, and the test pipeline configuration.
- Extend
IsRunningInContainer
to detect CentOS alongside Debian/Ubuntu. - Update
SupportsTargetFramework
to include CentOS minimum framework version. - Enable container-based tests for CentOS Stream 9 in the SDK job matrix.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
test/dotnet.Tests/CommandTests/Workload/Restore/GivenDotnetWorkloadRestore.cs | Expanded IsRunningInContainer to include CentOS detection |
test/Microsoft.NET.TestFramework/EnvironmentInfo.cs | Added a CentOS case for minimum target framework support |
eng/pipelines/templates/jobs/sdk-job-matrix.yml | Set runTests: true for CentOS Stream 9 and removed skip flags |
Comments suppressed due to low confidence (3)
test/dotnet.Tests/CommandTests/Workload/Restore/GivenDotnetWorkloadRestore.cs:63
- No tests cover the new CentOS branch in
IsRunningInContainer
. Add unit tests that simulate a CentOS environment to verify this code path.
if (!File.Exists("/.dockerenv"))
test/Microsoft.NET.TestFramework/EnvironmentInfo.cs:104
- The new CentOS branch in
SupportsTargetFramework
isn’t covered by existing tests. Add a test case to verify that CentOS enforces the minimum framework version correctly.
else if (osId.Equals("centos", StringComparison.OrdinalIgnoreCase))
eng/pipelines/templates/jobs/sdk-job-matrix.yml:47
- Remove the commented-out
runTests: false
lines now that CentOS tests are enabled, to keep the pipeline template clean and up to date.
# runTests: false
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.
LGTM after team triage discussion
No description provided.