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 .NET Framework test helix submission #44481

Merged
merged 8 commits into from
Oct 29, 2024

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Oct 28, 2024

According to AzDO and a binlog from the NETFULLFRAMEWORK leg, .NET Framework tests don't run.

The _AGENTOSNAME property / env var doesn't exist anymore. This regressed between 9.0 P4 and P5: https://github.com/dotnet/sdk/blame/eaecfdeddb3e4c87f34a075e7b6892d0eab2a343/eng/build.yml#L47-L48

Changes

  1. Replace the _AGENTOSNAME property with the TestFullMSBuild property.
  2. Add seven missing test projects that target .NET Framework to the hardcoded list of projects to submit to helix for .NET Framework testing.
  3. Don't run .NETCoreApp tests in the NETFULLFRAMEWORK leg. I realized that they intentionally run as they are exercised with desktop msbuild which provides some usefulness.
  4. Restructure code to make things more explicit and easier to add.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Oct 28, 2024
@ViktorHofer
Copy link
Member Author

/azp run

1 similar comment
@ViktorHofer
Copy link
Member Author

/azp run

test/UnitTests.proj Outdated Show resolved Hide resolved
Comment on lines 31 to 43
<SDKCustomXUnitProject Include="
core-sdk-tasks.Tests\core-sdk-tasks.Tests.csproj;
Microsoft.DotNet.ApiCompat.IntegrationTests\Microsoft.DotNet.ApiCompat.IntegrationTests.csproj
Microsoft.DotNet.ApiCompat.Tests\Microsoft.DotNet.ApiCompat.Tests.csproj;
Microsoft.DotNet.ApiCompatibility.Tests\Microsoft.DotNet.ApiCompatibility.Tests.csproj;
Microsoft.DotNet.ApiSymbolExtensions.Tests\Microsoft.DotNet.ApiSymbolExtensions.Tests.csproj;
Microsoft.DotNet.MSBuildSdkResolver.Tests\Microsoft.DotNet.MSBuildSdkResolver.Tests.csproj;
Microsoft.DotNet.PackageValidation.Tests\Microsoft.DotNet.PackageValidation.Tests.csproj;
Microsoft.DotNet.TemplateLocator.Tests\Microsoft.DotNet.TemplateLocator.Tests.csproj;
Microsoft.NET.Build.Containers.IntegrationTests\Microsoft.NET.Build.Containers.IntegrationTests.csproj;
Microsoft.NET.Sdk.Publish.Tasks.Tests\Microsoft.NET.Sdk.Publish.Tasks.Tests.csproj;
Microsoft.NET.Sdk.WorkloadManifestReader.Tests\Microsoft.NET.Sdk.WorkloadManifestReader.Tests.csproj;
Microsoft.Win32.Msi.Tests\Microsoft.Win32.Msi.Tests.csproj"
Copy link
Member

Choose a reason for hiding this comment

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

Is this the only way to know which unit test projects apply to net472? A hardcoded list? Hmm. Just wish there was something a little cleaner and less brittle.

Copy link
Member Author

Choose a reason for hiding this comment

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

Definitely not the only way. We don't have a hardcoded list in other repos but other repos don't really use the XUnitProject Arcade Helix SDK integration. This is already the status quo in main so I'm not going to change that in this PR. Filed #44490.

@ViktorHofer
Copy link
Member Author

/azp run dotnet-sdk-public-ci,sdk-source-build,sdk-unified-build

1 similar comment
@ViktorHofer
Copy link
Member Author

/azp run dotnet-sdk-public-ci,sdk-source-build,sdk-unified-build

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@ViktorHofer ViktorHofer requested a review from a team as a code owner October 29, 2024 08:30
@ViktorHofer ViktorHofer enabled auto-merge (squash) October 29, 2024 10:48
@ViktorHofer ViktorHofer merged commit 3b653cc into main Oct 29, 2024
37 checks passed
@ViktorHofer ViktorHofer deleted the NETFULLFRAMEWORK-HelixSubmissionFix branch October 29, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants