Skip to content

Conversation

@Youssef1313
Copy link

No description provided.

@Youssef1313 Youssef1313 force-pushed the patch-1 branch 2 times, most recently from f558c0a to 130fb65 Compare December 25, 2025 15:34
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
Copy link
Author

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.

Comment on lines +304 to +305
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
Copy link
Author

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.

@Youssef1313 Youssef1313 marked this pull request as ready for review December 25, 2025 15:39
Copilot AI review requested due to automatic review settings December 25, 2025 15:39
Copy link

Copilot AI left a 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, and xunit.runner.visualstudio packages
  • Added MTP-specific packages: Microsoft.Testing.Extensions.HangDump for NUnit projects and YTest.MTP.XUnit2 for xUnit projects
  • Configured test projects with OutputType=Exe and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant