Skip to content
Open
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
2 changes: 1 addition & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
<TestCommand>$(TestCommand.Replace($([System.Environment]::NewLine), " "))</TestCommand>
</PropertyGroup>
<Message Text=">>> Running Manual test for Windows via command: $(TestCommand)" />
<Exec ConsoleToMsBuild="true" Command="$(TestCommand)" />

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient (Win22_Azure_ARM64_Sql net9_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Project -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient (Win22_Azure_Sql net8_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Project -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient (win11_Azure_Sql net9_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Project -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient-Package (Win22_Azure_ARM64_Sql net9_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient-Package (Win22_Azure_ARM64_Sql net8_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient-Package (Win22_Azure_Sql net9_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient-Package (win11_Azure_Sql net8_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient-Package (win11_Azure_Sql net9_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient-Package (Win22_Azure_Sql net8_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Project -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package (Win22_Azure_Sql net8_0_AnyCPU_NativeSNI_2)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=2 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-2" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package (Win22_Azure_ARM64_Sql net8_0_AnyCPU_NativeSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package (win11_Azure_Sql net9_0_AnyCPU_NativeSNI_2)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Package -p:TestSet=2 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-2" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package (Win22_Azure_Sql net8_0_AnyCPU_ManagedSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package (win11_Azure_Sql net8_0_AnyCPU_NativeSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package (win11_Azure_Sql net9_0_AnyCPU_NativeSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package (win11_Azure_Sql net9_0_AnyCPU_NativeSNI_3)

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net9.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / CI-SqlClient-Package

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Release -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=3 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-3" " exited with code 1.

Check failure on line 486 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Package

build.proj#L486

build.proj(486,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" --no-build -v n -p:Configuration=Debug -p:TargetnetcoreVersion=net8.0 -p:ReferenceType=Package -p:TestSet=2 -p:TestTargetOS=Windowsnetcoreapp --collect "Code coverage" --results-directory TestResults --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests" --logger:"trx;LogFilePrefix=Manual-Windowsnetcoreapp-2" " exited with code 1.
</Target>

<!-- Run all Manual tests applicable to Unix. -->
Expand Down Expand Up @@ -515,7 +515,7 @@
<RemoveDir Directories='$([System.IO.Directory]::GetDirectories(".", "bin", SearchOption.AllDirectories))' />
<RemoveDir Directories='$([System.IO.Directory]::GetDirectories(".", ".nuget", SearchOption.AllDirectories))' />
<RemoveDir Directories='$([System.IO.Directory]::GetDirectories(".", "obj", SearchOption.AllDirectories))' />
</Target>
</Target>

<!-- AKV Targets ========================================================= -->
<Target Name="BuildAkv">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
# These variables are sourced from common-variables.yml.
abstractionsAssemblyFileVersion: $(abstractionsAssemblyFileVersion)
abstractionsPackageVersion: $(abstractionsPackageVersion)
configuration: $(Configuration)
buildConfiguration: $(Configuration)
mdsAssemblyFileVersion: $(mdsAssemblyFileVersion)
mdsPackageVersion: $(mdsPackageVersion)
referenceType: Package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
# Reason for not using UseDotNet task:
# [BUG]: UseDotNet task installs x86 build on Windows arm64
# https://github.com/microsoft/azure-pipelines-tasks/issues/20300
#
# A possible workaround is discussed here:
#
# https://github.com/microsoft/azure-pipelines-tasks/issues/16501
#
# TODO: See if we can eliminate this template and just use the above workaround
# for the Windows x86 builds.

parameters:
- # Directory where dotnet binaries should be installed. If not specified, defaults to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ steps:
inputs:
command: custom
${{ if parameters.generateSymbolsPackage }}:
arguments: 'pack -Symbols -SymbolPackageFormat snupkg ${{parameters.nuspecPath}} -Version ${{parameters.NugetPackageVersion}} -OutputDirectory ${{parameters.OutputDirectory}} -properties "COMMITID=$(CommitHead);Configuration=${{parameters.buildConfiguration}};ReferenceType=${{parameters.referenceType}};${{parameters.properties}}"'
arguments: 'pack -Symbols -SymbolPackageFormat snupkg ${{parameters.nuspecPath}} -Version ${{parameters.packageVersion}} -OutputDirectory ${{parameters.outputDirectory}} -properties "COMMITID=$(CommitHead);Configuration=${{parameters.buildConfiguration}};ReferenceType=${{parameters.referenceType}};${{parameters.properties}}"'
${{else }}:
arguments: 'pack ${{parameters.nuspecPath}} -Version ${{parameters.NugetPackageVersion}} -OutputDirectory ${{parameters.OutputDirectory}} -properties "COMMITID=$(CommitHead);Configuration=${{parameters.buildConfiguration}};ReferenceType=${{parameters.referenceType}};${{parameters.properties}}"'
arguments: 'pack ${{parameters.nuspecPath}} -Version ${{parameters.packageVersion}} -OutputDirectory ${{parameters.outputDirectory}} -properties "COMMITID=$(CommitHead);Configuration=${{parameters.buildConfiguration}};ReferenceType=${{parameters.referenceType}};${{parameters.properties}}"'
Comment on lines +64 to +66
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

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

The parameter references have inconsistent casing: ${{parameters.packageVersion}} and ${{parameters.outputDirectory}} use camelCase, but the original code used PascalCase (NugetPackageVersion, OutputDirectory). This change should be verified to ensure the parameters are defined with matching casing in the parameters section of this template file.

Copilot uses AI. Check for mistakes.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ parameters:
type: boolean
default: true

- name: WorkloadIdentityFederationServiceConnectionId
type: string
default: ''

steps:
# All properties should be added here, and this template should be used for any manipulation of the config.json file.
- pwsh: |
Expand Down Expand Up @@ -180,6 +184,7 @@ steps:
$p.IsDNSCachingSupportedCR=[System.Convert]::ToBoolean("${{parameters.IsDNSCachingSupportedCR }}")
$p.TracingEnabled=[System.Convert]::ToBoolean("${{parameters.TracingEnabled }}")
$p.EnclaveEnabled=[System.Convert]::ToBoolean("${{parameters.EnclaveEnabled }}")
$p.WorkloadIdentityFederationServiceConnectionId="${{parameters.WorkloadIdentityFederationServiceConnectionId }}"
}
$jdata | ConvertTo-Json | Set-Content "config.json"
workingDirectory: src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities
Expand All @@ -196,4 +201,4 @@ steps:
}
}
workingDirectory: src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities
displayName: 'Read config.json [debug]'
displayName: '[Debug] Read config.json'
38 changes: 25 additions & 13 deletions eng/pipelines/dotnet-sqlclient-ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ parameters:
type: boolean
default: true

- name: dotnetVerbosity
displayName: dotnet CLI Verbosity
type: string
default: normal
values:
- quiet
- minimal
- normal
- detailed
- diagnostic

variables:
- template: libraries/ci-build-variables.yml@self

Expand All @@ -114,11 +125,11 @@ stages:
# under the given artifact name.
- template: stages/build-abstractions-package-ci-stage.yml@self
parameters:
buildConfiguration: ${{ parameters.buildConfiguration }}
abstractionsArtifactName: $(abstractionsArtifactName)
abstractionsPackageVersion: $(abstractionsPackageVersion)
artifactName: $(abstractionsArtifactName)
${{if eq(parameters.debug, 'true')}}:
verbosity: diagnostic
buildConfiguration: ${{ parameters.buildConfiguration }}
debug: ${{ parameters.debug }}
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}

# Build MDS and its NuGet packages.
- stage: build_mds_akv_packages_stage
Expand Down Expand Up @@ -157,25 +168,29 @@ stages:
azureArtifactName: $(azureArtifactName)
azurePackageVersion: $(azurePackageVersion)
buildConfiguration: ${{ parameters.buildConfiguration }}
debug: ${{ parameters.debug }}
mdsArtifactName: $(mdsArtifactName)
mdsPackageVersion: $(mdsPackageVersion)
# When building via package references, we must depend on the Abstractions
# package.
# and MDS packages
${{ if eq(parameters.referenceType, 'Package') }}:
dependsOn:
- build_abstractions_package_stage
- build_mds_akv_packages_stage
referenceType: ${{ parameters.referenceType }}
${{if eq(parameters.debug, 'true')}}:
verbosity: diagnostic
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}

# Run the stress tests, if desired.
- ${{ if eq(parameters.enableStressTests, true) }}:
- template: stages/stress-tests-ci-stage.yml@self
parameters:
buildConfiguration: ${{ parameters.buildConfiguration }}
dependsOn: [build_mds_akv_packages_stage]
dependsOn:
- build_mds_akv_packages_stage
- build_azure_package_stage
pipelineArtifactName: $(artifactName)
mdsPackageVersion: $(mdsPackageVersion)
${{ if eq(parameters.debug, 'true') }}:
verbosity: 'detailed'
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}

# Run the MDS and AKV tests.
- template: common/templates/stages/ci-run-tests-stage.yml@self
Expand All @@ -190,9 +205,6 @@ stages:
mdsArtifactName: $(mdsArtifactName)
mdsPackageVersion: $(mdsPackageVersion)
testJobTimeout: ${{ parameters.testJobTimeout }}
${{ if eq(parameters.buildType, 'Package') }}:
dependsOn: build_nugets

# When testing MDS via packages, we must depend on the Abstractions,
# Azure, and MDS packages.
${{ if eq(parameters.referenceType, 'Package') }}:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ parameters:
type: object
default: [false, true]

# Dotnet CLI verbosity level.
- name: dotnetVerbosity
displayName: dotnet CLI Verbosity
type: string
default: normal
values:
- quiet
- minimal
- normal
- detailed
- diagnostic

extends:
template: dotnet-sqlclient-ci-core.yml@self
parameters:
Expand All @@ -157,6 +169,7 @@ extends:
referenceType: Package
codeCovTargetFrameworks: ${{ parameters.codeCovTargetFrameworks }}
debug: ${{ parameters.debug }}
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
enableStressTests: ${{ parameters.enableStressTests }}
targetFrameworks: ${{ parameters.targetFrameworks }}
targetFrameworksLinux: ${{ parameters.targetFrameworksLinux }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ parameters:
type: object
default: [false, true]

# Dotnet CLI verbosity level.
- name: dotnetVerbosity
displayName: dotnet CLI Verbosity
type: string
default: normal
values:
- quiet
- minimal
- normal
- detailed
- diagnostic

extends:
template: dotnet-sqlclient-ci-core.yml@self
parameters:
Expand All @@ -157,6 +169,7 @@ extends:
referenceType: Project
codeCovTargetFrameworks: ${{ parameters.codeCovTargetFrameworks }}
debug: ${{ parameters.debug }}
dotnetVerbosity: ${{ parameters.dotnetVerbosity }}
enableStressTests: ${{ parameters.enableStressTests }}
targetFrameworks: ${{ parameters.targetFrameworks }}
targetFrameworksLinux: ${{ parameters.targetFrameworksLinux }}
Expand Down
35 changes: 23 additions & 12 deletions eng/pipelines/jobs/pack-abstractions-package-ci-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,34 @@

parameters:

# The version to apply to the Abstractions NuGet package and its assemblies.
- name: abstractionsPackageVersion
type: string

# The name to apply to the published pipeline artifact.
- name: artifactName
- name: abstractionsArtifactName
type: string
default: Abstractions.Artifact

# The version to apply to the Abstractions NuGet package and its assemblies.
- name: abstractionsPackageVersion
type: string

# The type of build to test (Release or Debug)
- name: buildConfiguration
type: string
values:
- Release
- Debug

# True to enable extra debug steps and logging.
- name: debug
type: boolean
default: false

# The list of upstream jobs to depend on.
- name: dependsOn
type: object
default: []

# The verbosity level for the dotnet CLI commands.
- name: verbosity
- name: dotnetVerbosity
type: string
default: normal
values:
Expand Down Expand Up @@ -69,13 +74,14 @@ jobs:
# dotnet CLI arguments common to all commands.
- name: commonArguments
value: >-
--verbosity ${{ parameters.verbosity }}
--verbosity ${{ parameters.dotnetVerbosity }}

# dotnet CLI arguments for build/test/pack commands
- name: buildArguments
value: >-
$(commonArguments)
--configuration ${{ parameters.buildConfiguration }}
-p:ForceMdsAssemblyNameSuffix=true
-p:AbstractionsPackageVersion=${{ parameters.abstractionsPackageVersion }}

# Explicitly unset the $PLATFORM environment variable that is set by the
Expand All @@ -102,6 +108,11 @@ jobs:

steps:

# Emit environment variables if debug is enabled.
- ${{ if eq(parameters.debug, true) }}:
- pwsh: 'Get-ChildItem Env: | Sort-Object Name'
displayName: '[Debug] Print Environment Variables'

# Install the .NET 9.0 SDK.
- task: UseDotNet@2
displayName: Install .NET 9.0 SDK
Expand All @@ -112,18 +123,18 @@ jobs:
# We use the 'custom' command because the DotNetCoreCLI@2 task doesn't
# support all of our argument combinations for the different build steps.

# Restore the solution.
# Restore the project.
- task: DotNetCoreCLI@2
displayName: Restore Solution
displayName: Restore Project
inputs:
command: custom
custom: restore
projects: $(project)
arguments: $(commonArguments)

# Build the solution.
# Build the project.
- task: DotNetCoreCLI@2
displayName: Build Solution
displayName: Build Project
inputs:
command: custom
custom: build
Expand All @@ -144,5 +155,5 @@ jobs:
displayName: Publish Pipeline Artifact
inputs:
targetPath: $(dotnetPackagesDir)
artifactName: ${{ parameters.artifactName }}
artifactName: ${{ parameters.abstractionsArtifactName }}
publishLocation: pipeline
43 changes: 27 additions & 16 deletions eng/pipelines/jobs/pack-azure-package-ci-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,28 @@ parameters:
values:
- Release
- Debug

# True to enable extra debug steps and logging.
- name: debug
type: boolean
default: false

# The list of upstream jobs to depend on.
- name: dependsOn
type: object
default: []

# The verbosity level for the dotnet CLI commands.
- name: dotnetVerbosity
type: string
default: normal
values:
- quiet
- minimal
- normal
- detailed
- diagnostic

# The reference type to use:
#
# Project - dependent projects are referenced directly.
Expand All @@ -57,17 +73,6 @@ parameters:
- Package
- Project

# The verbosity level for the dotnet CLI commands.
- name: verbosity
type: string
default: normal
values:
- quiet
- minimal
- normal
- detailed
- diagnostic

jobs:

- job: pack_azure_package_job
Expand All @@ -93,8 +98,9 @@ jobs:
# dotnet CLI arguments common to all commands.
- name: commonArguments
value: >-
--verbosity ${{ parameters.verbosity }}
--verbosity ${{ parameters.dotnetVerbosity }}
-p:ReferenceType=${{ parameters.referenceType }}
-p:ForceMdsAssemblyNameSuffix=true
Copy link
Contributor Author

@paulmedynski paulmedynski Oct 29, 2025

Choose a reason for hiding this comment

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

This is explained in my comments on Directory.Build.props.

-p:AbstractionsPackageVersion=${{ parameters.abstractionsPackageVersion }}

# dotnet CLI arguments for build/test/pack commands
Expand Down Expand Up @@ -128,6 +134,11 @@ jobs:

steps:

# Emit environment variables if debug is enabled.
- ${{ if eq(parameters.debug, true) }}:
- pwsh: 'Get-ChildItem Env: | Sort-Object Name'
displayName: '[Debug] Print Environment Variables'

# We have a few extra steps for Package reference builds.
- ${{ if eq(parameters.referenceType, 'Package') }}:

Expand All @@ -152,18 +163,18 @@ jobs:
# We use the 'custom' command because the DotNetCoreCLI@2 task doesn't
# support all of our argument combinations for the different build steps.

# Restore the solution.
# Restore the project.
- task: DotNetCoreCLI@2
displayName: Restore Solution
displayName: Restore Project
inputs:
command: custom
custom: restore
projects: $(project)
arguments: $(commonArguments)

# Build the solution.
# Build the project.
- task: DotNetCoreCLI@2
displayName: Build Solution
displayName: Build Project
inputs:
command: custom
custom: build
Expand Down
Loading
Loading