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
131 changes: 112 additions & 19 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@
<!--
SigningKeyPath
Applies to: Build*, Pack*
Description: Path to the key to use to strong name sign binaries. If omitted, binaries
will not be strong name signed.
Description: Path to the key to use to sign driver assemblies. If omitted, driver
assemblies will not be signed.
For Pack* targets, this only applies to a build - ie, if PackBuild is set to
false, SigningKeyPath will have no effect.
Default value: [blank]
Expand Down Expand Up @@ -318,7 +318,7 @@
<TestFilters Condition="'$(TestFilters.ToLower())' == 'none'" />
<!--
Exclude tests in the "signed" category when building unsigned assemblies. We have some tests
that require signed assemblies, and they would fail with strong name validation exceptions on
that require signed assemblies, and they would fail with assembly validation exceptions on
.NET Framework.
-->
<TestFilters Condition="'$(TestFilters)' != '' AND '$(SigningKeyPath)' == ''">$(TestFilters)&amp;category!=signed</TestFilters>
Expand Down Expand Up @@ -394,7 +394,7 @@
environments. Please consider running project specific test targets or specific test sets
within the project.
-->
<Target Name="Test" DependsOnTargets="TestAbstractions;TestAzure;TestSqlClient" />
<Target Name="Test" DependsOnTargets="TestLogging;TestAbstractions;TestAzure;TestSqlClient" />

<!-- ================================================================= -->
<!-- Microsoft.Data.SqlClient Targets -->
Expand Down Expand Up @@ -452,6 +452,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build "$(SqlClientNotSupportedProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
-p:GenApiPath="@(GenApiArtifactPath->'%(FullPath)')"
$(SigningKeyPathArgument)
Expand Down Expand Up @@ -483,6 +485,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build $(SqlClientRefProjectPath)

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

Expand All @@ -491,7 +495,7 @@
$(BuildSuffixArgument)
$(PackageVersionSqlClientArgument)

<!-- Reference type arguments -->
<!-- Reference Type Arguments -->
$(ReferenceTypeArgument)
$(PackageVersionAbstractionsArgument)
$(PackageVersionSqlServerArgument)
Expand All @@ -512,6 +516,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build $(SqlClientProjectPath)

<!-- Build arguments -->
-p:Configuration=$(Configuration)
-p:TargetOs=Unix
$(SigningKeyPathArgument)
Expand Down Expand Up @@ -543,11 +549,13 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build $(SqlClientProjectPath)

<!-- Build arguments -->
-p:Configuration=$(Configuration)
-p:TargetOs=Windows_NT
$(SigningKeyPathArgument)

<!-- Versioning Arguments -->
<!-- Versioning arguments -->
$(BuildNumberArgument)
$(BuildSuffixArgument)
$(PackageVersionSqlClientArgument)
Expand Down Expand Up @@ -586,6 +594,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" pack "$(SqlClientProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(PackBuildArgument)
$(SigningKeyPathArgument)
Expand All @@ -601,7 +611,7 @@
$(PackageVersionLoggingArgument)
$(PackageVersionSqlServerArgument)

<!-- Pack settings are defined in Microsoft.Data.SqlClient.csproj -->
<!-- Pack arguments -->
-p:PackageOutputPath="$(SqlClientPackageArtifactRoot)"
</DotnetCommand>
<!-- Convert more than one whitespace character into one space -->
Expand Down Expand Up @@ -635,7 +645,12 @@

<DotnetCommand>
"$(DotnetPath)dotnet" test "$(SqlClientFunctionalTestProjectPath)"

<!-- Build arguments -->

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added consistent sections and ordering to these command builders.

-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

<!-- Test arguments -->
$(TestBlameArgument)
$(TestCodeCoverageArgument)
$(TestFiltersArgument)
Expand Down Expand Up @@ -680,7 +695,12 @@

<DotnetCommand>
"$(DotnetPath)dotnet" test "$(SqlClientManualTestProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

<!-- Test arguments -->
$(TestBlameArgument)
$(TestCodeCoverageArgument)
$(ManualTestFiltersArgument)
Expand All @@ -699,7 +719,7 @@
<DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand>
</PropertyGroup>
<Message Text=">>> Running manual tests for SqlClient via command: $(DotnetCommand)" />
<Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" />

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Ubuntu20_Sql22 net8_0_AnyCPU_ManagedSNI_3)

build.proj#L722

build.proj(722,5): Error MSB3073: The command " "dotnet" test "/mnt/vss/_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&(Set=3)" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Unix-net8.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Ubuntu22_Sql22 net9_0_AnyCPU_ManagedSNI_3)

build.proj#L722

build.proj(722,5): Error MSB3073: The command " "dotnet" test "/mnt/vss/_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&(Set=3)" -f net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Unix-net9.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Ubuntu22_Sql22 net8_0_AnyCPU_ManagedSNI_3)

build.proj#L722

build.proj(722,5): Error MSB3073: The command " "dotnet" test "/mnt/vss/_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&(Set=3)" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Unix-net8.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Ubuntu20_Sql22 net9_0_AnyCPU_ManagedSNI_3)

build.proj#L722

build.proj(722,5): Error MSB3073: The command " "dotnet" test "/mnt/vss/_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&(Set=3)" -f net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Unix-net9.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Ubuntu22_Azure_Sql net9_0_AnyCPU_ManagedSNI_3)

build.proj#L722

build.proj(722,5): Error MSB3073: The command " "dotnet" test "/mnt/vss/_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 "/mnt/vss/_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 net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Unix-net9.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

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

build.proj#L722

build.proj(722,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 net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net8.0-2" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

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

build.proj#L722

build.proj(722,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&(Set=3)" -f net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net9.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

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

build.proj#L722

build.proj(722,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 --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)" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net462-1" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_ARM64_Azure_Sql net8_0_AnyCPU_ManagedSNI_3)

build.proj#L722

build.proj(722,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&(Set=3)" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net8.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql22 net9_0_AnyCPU_ManagedSNI_2)

build.proj#L722

build.proj(722,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 net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net9.0-2" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql22 net9_0_AnyCPU_ManagedSNI_2)

build.proj#L722

build.proj(722,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 net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net9.0-2" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (MacOSLatest_Sql22 net9_0_AnyCPU_ManagedSNI_3)

build.proj#L722

build.proj(722,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 net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Unix-net9.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 722 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project

build.proj#L722

build.proj(722,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&(Set=3)" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientManual-Windows_NT-net8.0-3" -p:AbstractionsPackageVersion=1.1.0-preview1ci17008 -p:LoggingPackageVersion=1.1.0-preview1ci17008 -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.
</Target>

<!-- TestSqlClientUnit: Runs unit tests for SqlClient -->
Expand All @@ -710,24 +730,31 @@

<DotnetCommand>
"$(DotnetPath)dotnet" test "$(SqlClientUnitTestProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)
$(TestSigningKeyPathArgument)

<!-- Test arguments -->
$(TestBlameArgument)
$(TestCodeCoverageArgument)
$(TestFiltersArgument)
$(TestFrameworkArgument)
--results-directory "$(TestResultsFolderPath)"
--logger:"trx;LogFilePrefix=$(LogFilePrefix)"

<!-- Reference Type Arguments -->
$(ReferenceTypeArgument)
$(TestSigningKeyPathArgument)
$(PackageVersionSqlClientArgument)
$(PackageVersionSqlServerArgument)
--results-directory "$(TestResultsFolderPath)"
--logger:"trx;LogFilePrefix=$(LogFilePrefix)"
</DotnetCommand>

<!-- Convert more than one whitespace character into one space -->
<DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand>
</PropertyGroup>
<Message Text=">>> Running unit tests for SqlClient via command: $(DotnetCommand)" />
<Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" />

Check failure on line 757 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Ubuntu20_Sql22 net8_0_AnyCPU_ManagedSNI_2)

build.proj#L757

build.proj(757,5): Error MSB3073: The command " "dotnet" test "/mnt/vss/_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" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Unix-net8.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net9.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net8.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_ARM64_Azure_Sql net9_0_AnyCPU_ManagedSNI_1)

build.proj#L757

build.proj(757,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" -f net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net9.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_ARM64_Azure_Sql net8_0_AnyCPU_ManagedSNI_1)

build.proj#L757

build.proj(757,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" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net8.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net9.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net8.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net8.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win11_ARM64_Azure_Sql net9_0_AnyCPU_ManagedSNI_3)

build.proj#L757

build.proj(757,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" -f net9.0 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net9.0" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.

Check failure on line 757 in build.proj

View check run for this annotation

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

build.proj#L757

build.proj(757,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" -f net462 --results-directory "TestResults" --logger:"trx;LogFilePrefix=SqlClientUnit-Windows_NT-net462" -p:SqlClientPackageVersion=7.1.0-preview1ci17008 -p:SqlServerPackageVersion=1.1.0-preview1ci17008 " exited with code 1.
</Target>

<!-- ================================================================= -->
Expand All @@ -746,15 +773,17 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build "$(AkvProviderProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

<!--Versioning arguments -->
<!-- Versioning arguments -->
$(BuildNumberArgument)
$(BuildSuffixArgument)
$(PackageVersionAkvProviderArgument)

<!-- Reference type arguments -->
<!-- Reference Type Arguments -->
$(ReferenceTypeArgument)
$(PackageVersionAbstractionsArgument)
$(PackageVersionLoggingArgument)
Expand All @@ -774,6 +803,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" pack "$(AkvProviderProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(PackBuildArgument)
$(SigningKeyPathArgument)
Expand Down Expand Up @@ -827,6 +858,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build "$(AbstractionsProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

Expand All @@ -852,6 +885,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" pack "$(AbstractionsProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(PackBuildArgument)
$(SigningKeyPathArgument)
Expand Down Expand Up @@ -887,22 +922,28 @@
<!-- TestAbstractions: Runs Microsoft.Data.SqlClient.Extensions.Abstractions.Tests -->
<Target Name="TestAbstractions">
<PropertyGroup>
<!--
Note: This test exclusively uses project references, so neither ReferenceType nor any
package version arguments are specified in this command.
-->
<LogFilePrefix>AbstractionsTests-$(OS)</LogFilePrefix>
<LogFilePrefix Condition="'$(TestFramework)' != ''">$(LogFilePrefix)-$(TestFramework)</LogFilePrefix>

<DotnetCommand>
"$(DotnetPath)dotnet" test "$(AbstractionsTestProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)
$(TestSigningKeyPathArgument)

<!-- Test arguments -->
$(TestBlameArgument)
$(TestCodeCoverageArgument)
$(TestFiltersArgument)
$(TestFrameworkArgument)
--results-directory "$(TestResultsFolderPath)"
--logger:"trx;LogFilePrefix=$(LogFilePrefix)"

<!-- Reference Type Arguments -->
$(ReferenceTypeArgument)
$(PackageVersionLoggingArgument)
</DotnetCommand>
<!-- Convert more than one whitespace character into one space -->
<DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand>
Expand All @@ -929,6 +970,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build "$(AzureProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

Expand All @@ -937,7 +980,7 @@
$(BuildSuffixArgument)
$(PackageVersionAzureArgument)

<!-- Reference type arguments -->
<!-- Reference Type Arguments -->
$(ReferenceTypeArgument)
$(PackageVersionLoggingArgument)
</DotnetCommand>
Expand All @@ -954,6 +997,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" pack "$(AzureProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(PackBuildArgument)
$(SigningKeyPathArgument)
Expand Down Expand Up @@ -994,15 +1039,21 @@

<DotnetCommand>
"$(DotnetPath)dotnet" test "$(AzureTestProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)
$(TestSigningKeyPathArgument)

<!-- Test arguments -->
$(TestBlameArgument)
$(TestCodeCoverageArgument)
$(TestFiltersArgument)
$(TestFrameworkArgument)
--results-directory "$(TestResultsFolderPath)"
--logger:"trx;LogFilePrefix=$(LogFilePrefix)"

<!-- Reference type arguments -->
<!-- Reference Type Arguments -->
$(ReferenceTypeArgument)
$(PackageVersionAbstractionsArgument)
$(PackageVersionLoggingArgument)
Expand All @@ -1022,6 +1073,7 @@
<PropertyGroup>
<LoggingSrcRoot>$(RepoRoot)src/Microsoft.Data.SqlClient.Internal/Logging/src/</LoggingSrcRoot>
<LoggingProjectPath>$(LoggingSrcRoot)Logging.csproj</LoggingProjectPath>
<LoggingTestProjectPath>$(RepoRoot)src/Microsoft.Data.SqlClient.Internal/Logging/test/Logging.Test.csproj</LoggingTestProjectPath>
<LoggingArtifactRoot>$(RepoRoot)artifacts/Microsoft.Data.SqlClient.Internal.Logging/$(Configuration)/</LoggingArtifactRoot>
</PropertyGroup>

Expand All @@ -1030,6 +1082,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build $(LoggingProjectPath)

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

Expand All @@ -1051,6 +1105,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" pack $(LoggingProjectPath)

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(PackBuildArgument)
$(SigningKeyPathArgument)
Expand Down Expand Up @@ -1079,6 +1135,39 @@
SkipUnchangedFiles="true" />
</Target>

<!-- TestLogging: Runs Microsoft.Data.SqlClient.Internal.Logging.Tests -->
<Target Name="TestLogging">
<PropertyGroup>
<LogFilePrefix>LoggingTests-$(OS)</LogFilePrefix>
<LogFilePrefix Condition="'$(TestFramework)' != ''">$(LogFilePrefix)-$(TestFramework)</LogFilePrefix>

<DotnetCommand>
"$(DotnetPath)dotnet" test "$(LoggingTestProjectPath)"

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)
$(TestSigningKeyPathArgument)

<!-- Test arguments -->
$(TestBlameArgument)
$(TestCodeCoverageArgument)
$(TestFiltersArgument)
$(TestFrameworkArgument)
--results-directory "$(TestResultsFolderPath)"
--logger:"trx;LogFilePrefix=$(LogFilePrefix)"

<!-- Reference Type Arguments -->
$(ReferenceTypeArgument)
</DotnetCommand>
<!-- Convert more than one whitespace character into one space -->
<DotnetCommand>$([System.Text.RegularExpressions.Regex]::Replace($(DotnetCommand), "\s+", " "))</DotnetCommand>
</PropertyGroup>

<Message Text=">>> Running tests for Logging via command: $(DotnetCommand)" />
<Exec ConsoleToMsBuild="true" Command="$(DotnetCommand)" />
</Target>

<!-- ================================================================= -->
<!-- Microsoft.SqlServer.Server Targets -->
<PropertyGroup>
Expand All @@ -1092,10 +1181,12 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" build $(SqlServerProjectPath)

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(SigningKeyPathArgument)

<!--Versioning arguments -->
<!-- Versioning arguments -->
$(BuildNumberArgument)
$(BuildSuffixArgument)
$(PackageVersionSqlServerArgument)
Expand All @@ -1113,6 +1204,8 @@
<PropertyGroup>
<DotnetCommand>
"$(DotnetPath)dotnet" pack $(SqlServerProjectPath)

<!-- Build arguments -->
-p:Configuration=$(Configuration)
$(PackBuildArgument)
$(SigningKeyPathArgument)
Expand Down
Loading
Loading