Skip to content

Fix .NET Framework test helix submission#44481

Merged
ViktorHofer merged 8 commits into
mainfrom
NETFULLFRAMEWORK-HelixSubmissionFix
Oct 29, 2024
Merged

Fix .NET Framework test helix submission#44481
ViktorHofer merged 8 commits into
mainfrom
NETFULLFRAMEWORK-HelixSubmissionFix

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Oct 28, 2024

Copy link
Copy Markdown
Member

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.

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Oct 28, 2024
@ViktorHofer

Copy link
Copy Markdown
Member Author

/azp run

1 similar comment
@ViktorHofer

Copy link
Copy Markdown
Member Author

/azp run

Comment thread test/UnitTests.proj Outdated
Comment thread test/UnitTests.proj
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

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

1 similar comment
@ViktorHofer

Copy link
Copy Markdown
Member Author

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

@azure-pipelines

Copy link
Copy Markdown
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
@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