Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/instructions/testing.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ applyTo: "**/tests/**,**/*Test*.cs"
```
src/Microsoft.Data.SqlClient/tests/
├── FunctionalTests/ # Tests without SQL Server dependency
├── AuthenticationTests/ # Fresh-process configuration/runtime and trim/AOT fixtures
├── ManualTests/ # Integration tests requiring SQL Server
├── PerformanceTests/ # Benchmark-style perf validation
├── StressTests/ # Long-running stress coverage
Expand All @@ -20,6 +21,18 @@ src/Microsoft.Data.SqlClient/tests/

## Test Categories

### Authentication executable scenarios

Keep non-xUnit authentication configuration, DLL-replacement and publish consumers in
`src/Microsoft.Data.SqlClient/tests/AuthenticationTests/`, not inside Abstractions unit tests.
Use `build.proj -t:TestAuthentication` with explicit `ReferenceType=Project` or `Package`;
Package mode prepares real local sibling packages. Use an isolated `NUGET_PACKAGES` and
unique `PackageVersionSqlClient` to avoid stale family images. The focused configuration
and runtime-version targets remain available. `AuthenticationPublish=true` adds Linux
net10.0 linux-x64 trimmed/NativeAOT publishes and executions with warnings as errors.
Windows executes net462 scenarios; Linux cross-builds are not Windows runtime validation.
`BuildAuthenticationTests` is part of `BuildTests`; ordinary unit tests stay separate.

### Unit Tests (`UnitTests/`)
- Test individual components in isolation
- No external dependencies (database, network)
Expand Down
31 changes: 31 additions & 0 deletions BUILDGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,34 @@ dotnet build build.proj -t:TestAuthenticationRuntimeVersions -p:Configuration=Re
The same target accepts `ReferenceType=Package` and the package-preparation options above.
The runner restores the original DLL even if a scenario fails.

`TestAuthentication` runs the complete configuration/discovery/precedence matrix,
invalid provider/initializer/unsupported-provider and cached-failure tracing checks,
disabled switches, and both runtime mismatch scenarios. Add `AuthenticationPublish=true`
on Linux to publish **and execute** linux-x64 trimmed and NativeAOT consumers with
compiler/linker warnings as errors. GCC and the NativeAOT prerequisites are required.

```bash
dotnet build build.proj -t:TestAuthentication -p:Configuration=Release -p:TestFramework=net10.0 -p:ReferenceType=Project -p:AuthenticationPublish=true -p:PackageVersionSqlClient=8.0.0-stack.6
dotnet build build.proj -t:TestAuthentication -p:Configuration=Release -p:TestFramework=net10.0 -p:ReferenceType=Package -p:AuthenticationPublish=true -p:PackageVersionSqlClient=8.0.0-stack.6
```

The Package target prepares Logging, Abstractions, SqlServer, SqlClient and Azure
through the normal pack targets. The fixtures use conditional package references,
verify local family packages exist and inspect restored assets; Package mode never
falls back to project references. Use a unique family version and isolated
`NUGET_PACKAGES` for each changed package image. Build number, suffix, file/package
versions, configuration and reference mode flow to all fixtures; the runner freezes
the computed family version before building, so JIT runtime version validation agrees
with the package graph.

`BuildAuthenticationTests` builds scenario fixtures without executing them and is
included in `BuildTests`. All three fixtures are in the solution. The focused targets
remain available; ordinary xUnit tests are unchanged. See the
[authentication harness README](src/Microsoft.Data.SqlClient/tests/AuthenticationTests/README.md).
The authentication CI stage independently builds and runs Project **and** Package jobs
on Linux (net10.0, trim/AOT) and Windows (net462), with isolated caches and no assumed
artifact downloads.

### Building Projects

From the root of your repository, run `dotnet build` against `build.proj` with a build target, following this pattern:
Expand Down Expand Up @@ -214,6 +242,9 @@ dotnet build -t:<test_target> [optional_parameters]
| `Test` | Runs the driver and extension test targets. Without `TestFramework`, all declared frameworks are attempted, including .NET Framework. _This takes considerable time and requires configured servers_. |
| `TestAbstractions` | Runs all tests for Microsoft.Data.SqlClient.Extensions.Abstractions |
| `TestAuthenticationConfiguration` | Runs the dedicated current/legacy app.config compatibility scenarios without SQL Server. |
| `TestAuthenticationRuntimeVersions` | Adds runtime DLL replacement checks with switches enabled and disabled. |
| `TestAuthentication` | Runs all authentication executable scenarios; optionally publishes and executes trimmed/NativeAOT consumers with `AuthenticationPublish=true`. |
| `BuildAuthenticationTests` | Builds the scenario fixtures without executing them; included in `BuildTests`. |
| `TestAkvProvider` | Runs the unit test project for Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider. |
| `TestAzure` | Runs all tests for Microsoft.Data.SqlClient.Extensions.Azure |
| `TestSqlClient` | Runs the unit, functional, and manual test projects for Microsoft.Data.SqlClient. |
Expand Down
22 changes: 18 additions & 4 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -616,14 +616,28 @@
<AuthenticationTestFramework Condition="'$(TestFramework)' != ''">$(TestFramework)</AuthenticationTestFramework>
<AuthenticationTestFramework Condition="'$(AuthenticationTestFramework)' == ''">net10.0</AuthenticationTestFramework>
<AuthenticationPackageVersionArgument Condition="'$(PackageVersionSqlClient)' != ''">-PackageVersionSqlClient "$(PackageVersionSqlClient)"</AuthenticationPackageVersionArgument>
<TestAuthenticationConfigurationDependsOn Condition="'$(ReferenceType)' == 'Package' AND '$(SkipDependencyPack)' != 'true'">PackSqlClient</TestAuthenticationConfigurationDependsOn>
<AuthenticationFileVersionArgument Condition="'$(FileVersionSqlClient)' != ''">-FileVersionSqlClient "$(FileVersionSqlClient)"</AuthenticationFileVersionArgument>
<AuthenticationSqlServerVersionArgument Condition="'$(PackageVersionSqlServer)' != ''">-PackageVersionSqlServer "$(PackageVersionSqlServer)"</AuthenticationSqlServerVersionArgument>
<AuthenticationBuildNumberArgument Condition="'$(BuildNumber)' != ''">-BuildNumber "$(BuildNumber)"</AuthenticationBuildNumberArgument>
<AuthenticationBuildSuffixArgument Condition="'$(BuildSuffix)' != ''">-BuildSuffix "$(BuildSuffix)"</AuthenticationBuildSuffixArgument>
<AuthenticationPublishArgument Condition="'$(AuthenticationPublish)' == 'true'">-Publish</AuthenticationPublishArgument>
<AuthenticationCommand>&quot;$(DotnetPath)dotnet&quot; tool run pwsh -- -NonInteractive -NoProfile -File &quot;$(AuthenticationTestsScript)&quot; -Framework $(AuthenticationTestFramework) -ReferenceType $(ReferenceType) -Configuration $(Configuration) $(AuthenticationPackageVersionArgument) $(AuthenticationFileVersionArgument) $(AuthenticationSqlServerVersionArgument) $(AuthenticationBuildNumberArgument) $(AuthenticationBuildSuffixArgument)</AuthenticationCommand>
<TestAuthenticationConfigurationDependsOn Condition="'$(ReferenceType)' == 'Package' AND '$(SkipDependencyPack)' != 'true'">PackSqlClient;PackAzure</TestAuthenticationConfigurationDependsOn>
</PropertyGroup>
<Target Name="TestAuthenticationConfiguration" DependsOnTargets="$(TestAuthenticationConfigurationDependsOn)">
<Exec Command="&quot;$(DotnetPath)dotnet&quot; tool run pwsh -- -NonInteractive -NoProfile -File &quot;$(AuthenticationTestsScript)&quot; -Framework $(AuthenticationTestFramework) -ReferenceType $(ReferenceType) -Configuration $(Configuration) $(AuthenticationPackageVersionArgument)"
<Exec Command="$(AuthenticationCommand)"
WorkingDirectory="$(RepoRoot)" />
</Target>
<Target Name="TestAuthenticationRuntimeVersions" DependsOnTargets="$(TestAuthenticationConfigurationDependsOn)">
<Exec Command="&quot;$(DotnetPath)dotnet&quot; tool run pwsh -- -NonInteractive -NoProfile -File &quot;$(AuthenticationTestsScript)&quot; -Framework $(AuthenticationTestFramework) -ReferenceType $(ReferenceType) -Configuration $(Configuration) $(AuthenticationPackageVersionArgument) -RuntimeVersions"
<Exec Command="$(AuthenticationCommand) -RuntimeVersions"
WorkingDirectory="$(RepoRoot)" />
</Target>
<Target Name="TestAuthentication" DependsOnTargets="$(TestAuthenticationConfigurationDependsOn)">
<Exec Command="$(AuthenticationCommand) -AllScenarios -RuntimeVersions $(AuthenticationPublishArgument)"

Check failure on line 636 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Authentication configuration and publishing Authentication Windows Project)

build.proj#L636

build.proj(636,5): Error MSB3073: The command ""dotnet" tool run pwsh -- -NonInteractive -NoProfile -File "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/AuthenticationTests/RunAuthenticationTests.ps1" -Framework net462 -ReferenceType Project -Configuration Debug -PackageVersionSqlClient "8.0.0-auth.181815" -BuildNumber "0" -AllScenarios -RuntimeVersions " exited with code 1.

Check failure on line 636 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Authentication configuration and publishing Authentication Windows Package)

build.proj#L636

build.proj(636,5): Error MSB3073: The command ""dotnet" tool run pwsh -- -NonInteractive -NoProfile -File "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/AuthenticationTests/RunAuthenticationTests.ps1" -Framework net462 -ReferenceType Package -Configuration Debug -PackageVersionSqlClient "8.0.0-auth.181815" -BuildNumber "0" -AllScenarios -RuntimeVersions " exited with code 1.
WorkingDirectory="$(RepoRoot)" />
</Target>
<Target Name="BuildAuthenticationTests" DependsOnTargets="$(TestAuthenticationConfigurationDependsOn)">
<Exec Command="$(AuthenticationCommand) -BuildOnly"
WorkingDirectory="$(RepoRoot)" />
</Target>

Expand Down Expand Up @@ -881,7 +895,7 @@
</PropertyGroup>
<Message Importance="High" Text=">>> Running manual tests for SqlClient"/>
<Message Text=" Command: $(DotnetCommand)"/>
<Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" />

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19 net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19 net10_0_AnyCPU_ManagedSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25 net10_0_AnyCPU_ManagedSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_Named_Instance net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_x86 net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "C:\x86\dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_Named_Instance net10_0_AnyCPU_ManagedSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Azure_Sql net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_Named_Instance net462_AnyCPU_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Azure_Sql net10_0_AnyCPU_ManagedSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25 net462_AnyCPU_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25 net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19_x86 net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "C:\x86\dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_x86 net462_AnyCPU_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "C:\x86\dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19 net462_AnyCPU_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql_ARM64 net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql_ARM64 net10_0_AnyCPU_ManagedSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / sqlclient-pr (Test: windows_net10 sqlclient_manual_azure_123_windows_net10)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "((category!=failing&category!=flaky&category!=interactive)&category!=signed)&(Set=1|Set=2|Set=3)" -f net10.0 --results-directory "D:\a\_work\1\s/test_results/windows_net10_sqlclient_manual_azure_123" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-123" " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_Named_Instance net10_0_AnyCPU_ManagedSNI_2)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "((category!=failing&category!=flaky&category!=interactive)&category!=signed)&(Set=2)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-2" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql net10_0_AnyCPU_NativeSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Azure_Sql net462_AnyCPU_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "((category!=failing&category!=flaky&category!=interactive)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / sqlclient-pr (Test: windows_net462 sqlclient_manual_azure_123_windows_net462)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "((category!=failing&category!=flaky&category!=interactive)&category!=signed)&(Set=1|Set=2|Set=3)" -f net462 --results-directory "D:\a\_work\1\s/test_results/windows_net462_sqlclient_manual_azure_123" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-123" " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql net462_AnyCPU_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql_ARM64 net462_AnyCPU_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / sqlclient-pr

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "((category!=failing&category!=flaky&category!=interactive)&category!=signed)&(Set=1|Set=2|Set=3)" -f net462 --results-directory "D:\a\_work\1\s/test_results/windows_net462_sqlclient_manual_azure_123" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-123" " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql net10_0_AnyCPU_ManagedSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (MacOSLatest_Sql25 net10_0_AnyCPU_ManagedSNI_3)

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "/Users/runner/work/1/s/src/../src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "/Users/runner/work/1/s/src/../src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "((category!=failing&category!=flaky&category!=interactive)&category!=signed)&(Set=3)" -f net10.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Unix-net10.0-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.

Check failure on line 898 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project

build.proj#L898

build.proj(898,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "((category=flaky)&category!=signed)&(Set=3)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-3" -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 " exited with code 1.
</Target>

<!-- TestSqlClientUnit: Runs unit tests for SqlClient -->
Expand Down Expand Up @@ -910,7 +924,7 @@
</PropertyGroup>
<Message Importance="High" Text=">>> Running unit tests for SqlClient"/>
<Message Text=" Command: $(DotnetCommand)"/>
<Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" />

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_Named_Instance net10_0_AnyCPU_NativeSNI_1)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net10.0 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net10.0" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_Named_Instance net10_0_AnyCPU_NativeSNI_2)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "(category!=failing&category!=flaky&category!=interactive)&category!=signed" -f net10.0 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net10.0" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Azure_Sql net462_AnyCPU_1)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --collect "Code coverage" --settings "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings" --filter "(category!=failing&category!=flaky&category!=interactive)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25 net462_AnyCPU_3)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_x86 net462_AnyCPU_2)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "C:\x86\dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_x86 net462_AnyCPU_3)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "C:\x86\dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25 net10_0_AnyCPU_ManagedSNI_1)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net10.0 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net10.0" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19 net462_AnyCPU_3)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19_x86 net462_AnyCPU_3)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "C:\x86\dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win25_Sql25_Named_Instance net462_AnyCPU_2)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (MacOSLatest_Sql25 net10_0_AnyCPU_ManagedSNI_1)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "/Users/runner/work/1/s/src/../src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net10.0 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Unix-net10.0" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql_ARM64 net10_0_AnyCPU_NativeSNI_1)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net10.0 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net10.0" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql net462_AnyCPU_1)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.

Check failure on line 927 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_Azure_Sql_ARM64 net462_AnyCPU_3)

build.proj#L927

build.proj(927,5): Error MSB3073: The command " "dotnet" test "D:\a\_work\1\s\src\..\src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj" -p:Configuration=Debug --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --filter "(category=flaky)&category!=signed" -f net462 -p:SqlClientPackageVersion=8.0.0-preview1-pr.28211 -p:SqlServerPackageVersion=1.1.0-preview1-pr.28211 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" " exited with code 1.
</Target>

<!-- ================================================================= -->
Expand Down Expand Up @@ -1396,7 +1410,7 @@
</PropertyGroup>

<!-- BuildTests: Builds the driver test projects for their declared target frameworks. -->
<Target Name="BuildTests" DependsOnTargets="BuildAbstractionsTests;BuildAkvProviderTests;BuildSqlClientTestsUnit;BuildSqlClientTestsFunctional;BuildSqlClientTestsManual;BuildSqlClientTestsPerformance;BuildSqlClientTestsStress;BuildAzureTests" />
<Target Name="BuildTests" DependsOnTargets="BuildAbstractionsTests;BuildAkvProviderTests;BuildSqlClientTestsUnit;BuildSqlClientTestsFunctional;BuildSqlClientTestsManual;BuildSqlClientTestsPerformance;BuildSqlClientTestsStress;BuildAzureTests;BuildAuthenticationTests" />

<!-- BuildAkvProviderTests: Builds the AKV Provider test project (OS-agnostic). -->
<Target Name="BuildAkvProviderTests">
Expand Down
7 changes: 7 additions & 0 deletions eng/pipelines/dotnet-sqlclient-ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ variables:
value: SqlServer.Artifacts

stages:
- template: /eng/pipelines/pr/stages/authentication-validation-stage.yml@self
parameters:
poolName: ${{ parameters.defaultPoolName }}
linuxPoolImage: ADO-UB24
windowsPoolImage: ADO-Win25
buildConfiguration: ${{ parameters.buildConfiguration }}

# Compute all package versions up front. Build and test stages consume the
# compute_versions_ci outputs directly, so no version parameters are passed here.
- template: /eng/pipelines/stages/compute-versions-ci-stage.yml@self
Expand Down
81 changes: 81 additions & 0 deletions eng/pipelines/pr/stages/authentication-validation-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#################################################################################
# Licensed to the .NET Foundation under one or more agreements. #
# The .NET Foundation licenses this file to you under the MIT license. #
# See the LICENSE file in the project root for more information. #
#################################################################################

parameters:
- name: poolName
type: string
- name: linuxPoolImage
type: string
- name: windowsPoolImage
type: string
- name: referenceTypes
type: object
default: [Project, Package]
- name: buildConfiguration
type: string
values: [Debug, Release]

stages:
- stage: test_authentication
displayName: Authentication configuration and publishing
# Each job builds its own inputs through standard targets; no artifact download is assumed.
dependsOn: []
jobs:
- ${{ each referenceType in parameters.referenceTypes }}:
- job: authentication_linux_${{ referenceType }}
displayName: Authentication Linux ${{ referenceType }}
timeoutInMinutes: 90
pool:
name: ${{ parameters.poolName }}
demands:
- imageOverride -equals ${{ parameters.linuxPoolImage }}
variables:
NUGET_PACKAGES: $(Pipeline.Workspace)/authentication-linux-${{ referenceType }}/nuget
steps:
- template: /eng/pipelines/common/steps/install-dotnet.yml@self
parameters:
runtimes: [10.x]
- template: /eng/pipelines/common/steps/restore-dotnet-tools.yml@self
- task: DotNetCoreCLI@2
displayName: Scenarios, runtime mismatch, trimmed and NativeAOT execution
inputs:
command: custom
custom: build
workingDirectory: $(Build.SourcesDirectory)
arguments: >-
build.proj -t:TestAuthentication
-p:ReferenceType=${{ referenceType }}
-p:Configuration=${{ parameters.buildConfiguration }}
-p:TestFramework=net10.0
-p:PackageVersionSqlClient=8.0.0-auth.$(Build.BuildId)
-p:AuthenticationPublish=true

- job: authentication_windows_${{ referenceType }}
displayName: Authentication Windows ${{ referenceType }}
timeoutInMinutes: 90
pool:
name: ${{ parameters.poolName }}
demands:
- imageOverride -equals ${{ parameters.windowsPoolImage }}
variables:
NUGET_PACKAGES: $(Pipeline.Workspace)/authentication-windows-${{ referenceType }}/nuget
steps:
- template: /eng/pipelines/common/steps/install-dotnet.yml@self
parameters:
runtimes: [10.x]
- template: /eng/pipelines/common/steps/restore-dotnet-tools.yml@self
- task: DotNetCoreCLI@2
displayName: .NET Framework scenarios and runtime mismatch execution
inputs:
command: custom
custom: build
workingDirectory: $(Build.SourcesDirectory)
arguments: >-
build.proj -t:TestAuthentication
-p:ReferenceType=${{ referenceType }}
-p:Configuration=${{ parameters.buildConfiguration }}
-p:TestFramework=net462
-p:PackageVersionSqlClient=8.0.0-auth.$(Build.BuildId)
Loading
Loading