-
Notifications
You must be signed in to change notification settings - Fork 872
Update .NET SDK to 10.0.101 and use MTP #6393
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
base: main
Are you sure you want to change the base?
Conversation
f558c0a to
130fb65
Compare
| run: | | ||
| dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.Tests --logger "GitHubActions;report-warnings=false" --blame-hang-timeout 30s | ||
| dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} test/Npgsql.DependencyInjection.Tests --logger "GitHubActions;report-warnings=false" | ||
| dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} --no-build --no-progress --project test/Npgsql.Tests --hangdump --hangdump-timeout 30s |
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.
Note 1: GitHubActions logger of VSTest doesn't yet support MTP. Not sure if you consider the lack of it as a blocker. Alternatively, you can report TRX files and use https://github.com/marketplace/actions/publish-test-results instead.
| dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} --no-build --no-progress --project test/Npgsql.Tests --hangdump --hangdump-timeout 30s | ||
| dotnet test -c ${{ matrix.config }} -f ${{ matrix.test_tfm }} --no-build --no-progress --project test/Npgsql.DependencyInjection.Tests |
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.
Note 2: This is unrelated of my changes. But I'm not sure if this step will fail when the first command fails, or if it will only consider the last exit code.
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 .NET SDK from version 10.0.100 to 10.0.101 and migrates the test infrastructure from traditional test runners to the Microsoft Testing Platform (MTP).
Key Changes:
- Updated .NET SDK version to 10.0.101 in global.json and added MTP runner configuration
- Removed
Microsoft.NET.Test.Sdk,GitHubActionsTestLogger, andxunit.runner.visualstudiopackages - Added MTP-specific packages:
Microsoft.Testing.Extensions.HangDumpfor NUnit projects andYTest.MTP.XUnit2for xUnit projects - Configured test projects with
OutputType=Exeand enabled MTP properties in Directory.Build.props
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| global.json | Updated SDK version to 10.0.101 and configured Microsoft Testing Platform as the test runner |
| Directory.Packages.props | Removed traditional test packages (Microsoft.NET.Test.Sdk, xunit.runner.visualstudio, GitHubActionsTestLogger) and added MTP packages (Microsoft.Testing.Extensions.HangDump, YTest.MTP.XUnit2) |
| test/Directory.Build.props | Removed GitHubActionsTestLogger reference and added MTP-specific MSBuild properties (EnableNUnitRunner, UseMicrosoftTestingPlatformRunner) |
| test/Npgsql.Tests/Npgsql.Tests.csproj | Added OutputType=Exe property and Microsoft.Testing.Extensions.HangDump package for MTP support |
| test/Npgsql.Specification.Tests/Npgsql.Specification.Tests.csproj | Added OutputType=Exe property and replaced xunit.runner.visualstudio with YTest.MTP.XUnit2 adapter |
| test/Npgsql.PluginTests/Npgsql.PluginTests.csproj | Added OutputType=Exe property and removed Microsoft.NET.Test.Sdk package |
| test/Npgsql.DependencyInjection.Tests/Npgsql.DependencyInjection.Tests.csproj | Added OutputType=Exe property and removed Microsoft.NET.Test.Sdk package |
| test/Npgsql.NativeAotTests/Npgsql.NativeAotTests.csproj | Removed GitHubActionsTestLogger package reference exclusion |
| .github/workflows/build.yml | Updated test commands to use new MTP-specific flags (--hangdump, --hangdump-timeout) and added --no-build, --no-progress options |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.