Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ BenchmarkDotNet.Artifacts/
project.lock.json
project.fragment.lock.json
artifacts/
output/

# StyleCop
StyleCopReport.xml
Expand Down
4 changes: 3 additions & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@

<Target Name="BuildNetCoreAllOS" DependsOnTargets="RestoreNetCore;BuildSqlServer;BuildAbstractions;BuildLogging">
<MSBuild Projects="@(NetCoreDriver)" Properties="$(CI);$(ProjectProperties);Platform=AnyCPU;OSGroup=Unix;" RemoveProperties="TargetsWindows;TargetsUnix;" />
<MSBuild Projects="@(NetCoreDriver)" Properties="$(CI);$(ProjectProperties);Platform=AnyCPU;OSGroup=Windows_NT;" RemoveProperties="TargetsWindows;TargetsUnix;" Condition="'$(IsEnabledWindows)' == 'true'" />

Check failure on line 304 in build.proj

View check run for this annotation

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

build.proj#L304

build.proj(304,5): Error MSB3202: The project file "src\Microsoft.Data.SqlClient\netcore\src\Microsoft.Data.SqlClient.csproj" was not found.
<MSBuild Projects="@(NetCoreDriver)" Properties="$(CI);$(ProjectProperties);Platform=AnyCPU;OSGroup=AnyOS;" RemoveProperties="TargetsWindows;TargetsUnix;" />

Check failure on line 305 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#L305

build.proj(305,5): Error MSB3202: The project file "src\Microsoft.Data.SqlClient\netcore\src\Microsoft.Data.SqlClient.csproj" was not found.
</Target>

<Target Name="BuildNetCoreUnix" DependsOnTargets="RestoreNetCore">
Expand Down Expand Up @@ -344,7 +344,7 @@
<TestCommand>$([System.Text.RegularExpressions.Regex]::Replace($(TestCommand), "\s+", " "))</TestCommand>
</PropertyGroup>
<Message Text=">>> Running unit tests for Windows via command: $(TestCommand)"/>
<Exec ConsoleToMsBuild="true" Command="$(TestCommand)"/>

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " C:\x86\dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net9.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net8.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net8.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net9.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " C:\x86\dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " C:\x86\dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net8.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net9.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net9.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net8.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net462 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetfx-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net9.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.

Check failure on line 347 in build.proj

View check run for this annotation

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

build.proj#L347

build.proj(347,5): Error MSB3073: The command " dotnet test "src\Microsoft.Data.SqlClient\tests\UnitTests\Microsoft.Data.SqlClient.UnitTests.csproj" -f net8.0 -p:Configuration=Debug --filter "category=flaky" --blame-hang --blame-hang-dump-type full --blame-hang-timeout 10m --results-directory TestResults --logger:"trx;LogFilePrefix=Unit-Windowsnetcoreapp-1,2,3" " exited with code 1.
</Target>

<!-- Run all unit tests applicable to Unix. -->
Expand Down Expand Up @@ -484,10 +484,12 @@
<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))' />
<!-- We keep packages/ but remove all of the generated files. -->
<!-- Remove generated .nupkg and .snupkg files from packages/ and output/. -->
<ItemGroup>
<PackagesToDelete Include="$(RepoRoot)/packages/*.nupkg" />
<PackagesToDelete Include="$(RepoRoot)/packages/*.snupkg" />
Comment thread
samsharma2700 marked this conversation as resolved.
<PackagesToDelete Include="$(RepoRoot)/output/*.nupkg" />
<PackagesToDelete Include="$(RepoRoot)/output/*.snupkg" />
</ItemGroup>
<Delete Files="@(PackagesToDelete)" />
</Target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ parameters:

- name: outputDirectory
type: string
default: '$(Build.SourcesDirectory)/packages'
default: '$(Build.SourcesDirectory)/output'

# The C# build configuration (e.g. Debug or Release) to use when building the NuGet package.
- name: buildConfiguration
Expand Down
13 changes: 10 additions & 3 deletions eng/pipelines/onebranch/jobs/build-akv-official-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,22 @@ jobs:
$jsonParams | ConvertFrom-Json | Format-List
displayName: 'Output Job Parameters'

# Download SqlClient (MDS) and Logging packages from previous stages into
# packages/ so that they're available via the local NuGet feed when restoring.
# AKV Provider depends on both SqlClient and Extensions.Logging.
# Download SqlClient (MDS), Abstractions, and Logging packages from previous
# stages into packages/ so that they're available via the local NuGet feed
# when restoring. AKV Provider depends on SqlClient, which transitively
# requires Extensions.Abstractions and Extensions.Logging.
- task: DownloadPipelineArtifact@2
displayName: Download SqlClient Package
inputs:
artifactName: $(sqlClientArtifactsName)
targetPath: $(Build.SourcesDirectory)/packages

- task: DownloadPipelineArtifact@2
displayName: Download Abstractions Package
inputs:
artifactName: $(abstractionsArtifactsName)
targetPath: $(Build.SourcesDirectory)/packages

- task: DownloadPipelineArtifact@2
displayName: Download Logging Package
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:

variables:
- name: ob_outputDirectory
value: $(Build.SourcesDirectory)/packages
value: $(Build.SourcesDirectory)/output
Comment thread
samsharma2700 marked this conversation as resolved.

- name: artifactPath
value: $(Pipeline.Workspace)/${{ parameters.artifactName }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ steps:
msbuildArguments: >-
-t:${{ parameters.packTarget }}
-p:ReferenceType=Package
-p:PackagesDir=$(PACK_OUTPUT)/
${{ parameters.versionProperties }}

- script: tree /a /f $(PACK_OUTPUT)
Expand Down
7 changes: 4 additions & 3 deletions eng/pipelines/onebranch/variables/common-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ variables:
- name: BUILD_OUTPUT
value: $(REPO_ROOT)/artifacts

# THis is where our C# projects place their NuGet package outputs (see Directory.Build.props
# <PackagesDir>).
# This is where our C# projects place their NuGet package outputs. This is intentionally
# separate from packages/ (where downloaded pipeline artifacts go) so that ESRP signing and
# OneBranch artifact publishing only operate on packages built by the current job.
- name: PACK_OUTPUT
value: $(REPO_ROOT)/packages
value: $(REPO_ROOT)/output
Comment thread
samsharma2700 marked this conversation as resolved.

# C# assembly versions must be in the format: Major.Minor.Build.Revision, but
# $(Build.BuildNumber) has the format XXX.YY. Additionally, each version part
Expand Down
Loading