-
Notifications
You must be signed in to change notification settings - Fork 330
Sign CI Package pipeline assemblies and tests; verify SqlClient in Abstractions #4382
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -452,6 +452,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" build "$(SqlClientNotSupportedProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| -p:GenApiPath="@(GenApiArtifactPath->'%(FullPath)')" | ||
| $(SigningKeyPathArgument) | ||
|
|
@@ -483,6 +485,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" build $(SqlClientRefProjectPath) | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(SigningKeyPathArgument) | ||
|
|
||
|
|
@@ -491,7 +495,7 @@ | |
| $(BuildSuffixArgument) | ||
| $(PackageVersionSqlClientArgument) | ||
|
|
||
| <!-- Reference type arguments --> | ||
| <!-- Reference Type Arguments --> | ||
| $(ReferenceTypeArgument) | ||
| $(PackageVersionAbstractionsArgument) | ||
| $(PackageVersionSqlServerArgument) | ||
|
|
@@ -512,6 +516,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" build $(SqlClientProjectPath) | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| -p:TargetOs=Unix | ||
| $(SigningKeyPathArgument) | ||
|
|
@@ -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) | ||
|
|
@@ -586,6 +594,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" pack "$(SqlClientProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(PackBuildArgument) | ||
| $(SigningKeyPathArgument) | ||
|
|
@@ -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 --> | ||
|
|
@@ -635,7 +645,12 @@ | |
|
|
||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" test "$(SqlClientFunctionalTestProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(SigningKeyPathArgument) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're adding the signing key build properties in a few new places now. |
||
|
|
||
| <!-- Test arguments --> | ||
| $(TestBlameArgument) | ||
| $(TestCodeCoverageArgument) | ||
| $(TestFiltersArgument) | ||
|
|
@@ -680,7 +695,12 @@ | |
|
|
||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" test "$(SqlClientManualTestProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(SigningKeyPathArgument) | ||
|
|
||
| <!-- Test arguments --> | ||
| $(TestBlameArgument) | ||
| $(TestCodeCoverageArgument) | ||
| $(ManualTestFiltersArgument) | ||
|
|
@@ -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
|
||
| </Target> | ||
|
|
||
| <!-- TestSqlClientUnit: Runs unit tests for SqlClient --> | ||
|
|
@@ -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
|
||
| </Target> | ||
|
|
||
| <!-- ================================================================= --> | ||
|
|
@@ -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) | ||
|
|
@@ -774,6 +803,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" pack "$(AkvProviderProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(PackBuildArgument) | ||
| $(SigningKeyPathArgument) | ||
|
|
@@ -827,6 +858,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" build "$(AbstractionsProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(SigningKeyPathArgument) | ||
|
|
||
|
|
@@ -852,6 +885,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" pack "$(AbstractionsProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(PackBuildArgument) | ||
| $(SigningKeyPathArgument) | ||
|
|
@@ -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> | ||
|
|
@@ -929,6 +970,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" build "$(AzureProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(SigningKeyPathArgument) | ||
|
|
||
|
|
@@ -937,7 +980,7 @@ | |
| $(BuildSuffixArgument) | ||
| $(PackageVersionAzureArgument) | ||
|
|
||
| <!-- Reference type arguments --> | ||
| <!-- Reference Type Arguments --> | ||
| $(ReferenceTypeArgument) | ||
| $(PackageVersionLoggingArgument) | ||
| </DotnetCommand> | ||
|
|
@@ -954,6 +997,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" pack "$(AzureProjectPath)" | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(PackBuildArgument) | ||
| $(SigningKeyPathArgument) | ||
|
|
@@ -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) | ||
|
|
@@ -1030,6 +1081,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" build $(LoggingProjectPath) | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(SigningKeyPathArgument) | ||
|
|
||
|
|
@@ -1051,6 +1104,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" pack $(LoggingProjectPath) | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(PackBuildArgument) | ||
| $(SigningKeyPathArgument) | ||
|
|
@@ -1092,10 +1147,12 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" build $(SqlServerProjectPath) | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(SigningKeyPathArgument) | ||
|
|
||
| <!--Versioning arguments --> | ||
| <!-- Versioning arguments --> | ||
| $(BuildNumberArgument) | ||
| $(BuildSuffixArgument) | ||
| $(PackageVersionSqlServerArgument) | ||
|
|
@@ -1113,6 +1170,8 @@ | |
| <PropertyGroup> | ||
| <DotnetCommand> | ||
| "$(DotnetPath)dotnet" pack $(SqlServerProjectPath) | ||
|
|
||
| <!-- Build arguments --> | ||
| -p:Configuration=$(Configuration) | ||
| $(PackBuildArgument) | ||
| $(SigningKeyPathArgument) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| ################################################################################ | ||
| # 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. | ||
| ################################################################################ | ||
|
|
||
| # Downloads a signing key from ADO secure files. | ||
| # | ||
| # When isTest is false, downloads the driver signing key and exports it as 'driverKeyFile'. When | ||
| # isTest is true, downloads the test signing key and exports it as 'testKeyFile'. | ||
| # | ||
| # Downstream steps reference the path via: | ||
| # | ||
| # $(driverKeyFile.secureFilePath) or | ||
| # $(testKeyFile.secureFilePath) | ||
|
|
||
| parameters: | ||
|
|
||
| # When false, download the driver signing key. | ||
| # When true, download the test signing key. | ||
| - name: isTest | ||
| type: boolean | ||
| default: false | ||
|
|
||
| steps: | ||
|
|
||
| - ${{ if eq(parameters.isTest, false) }}: | ||
| - task: DownloadSecureFile@1 | ||
| displayName: Download Driver Signing Key | ||
| inputs: | ||
| secureFile: netfxKeypair.snk | ||
| name: driverKeyFile | ||
|
|
||
| - ${{ if eq(parameters.isTest, true) }}: | ||
| - task: DownloadSecureFile@1 | ||
| displayName: Download Test Signing Key | ||
| inputs: | ||
| secureFile: sqlclient-test-key.snk | ||
| name: testKeyFile |
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.
Some minor unrelated cleanup for consistent sections and ordering in these repeated blocks.