From 3f09d28c4d83660f200bcc389ab6c4fec26a4729 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Apr 2023 12:22:38 -0700 Subject: [PATCH 1/3] Bump codecov/codecov-action from 3.1.1 to 3.1.2 (#4379) --- .github/workflows/code-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index ae5f5b289ad..fbf3e857ebf 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -51,7 +51,7 @@ jobs: - name: Merging test results run: reportgenerator -reports:TestResults/**/*.xml -targetdir:TestResults -reporttypes:Cobertura -assemblyFilters:"-microsoft.data.sqlclient*;-grpc.core*;-opentracing*" - - uses: codecov/codecov-action@v3.1.1 + - uses: codecov/codecov-action@3.1.2 with: file: TestResults/Cobertura.xml env_vars: OS From 3d0cf75442e35a07cda406def90710969d319c4f Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Tue, 11 Apr 2023 15:45:35 -0700 Subject: [PATCH 2/3] Try to unblock codecov CI failure (#4380) --- .github/workflows/code-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index fbf3e857ebf..64df4c876d3 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -51,7 +51,7 @@ jobs: - name: Merging test results run: reportgenerator -reports:TestResults/**/*.xml -targetdir:TestResults -reporttypes:Cobertura -assemblyFilters:"-microsoft.data.sqlclient*;-grpc.core*;-opentracing*" - - uses: codecov/codecov-action@3.1.2 + - uses: codecov/codecov-action@v3.1.2 with: file: TestResults/Cobertura.xml env_vars: OS From 7db694157fdafd8b7f1028d90b0daf97dafa76fd Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai Date: Wed, 12 Apr 2023 14:42:15 -0700 Subject: [PATCH 3/3] Fix ApiCompat (#4385) --- build/Common.prod.props | 12 +++++++++--- build/PreBuild.ps1 | 23 +++++++++++++++++++---- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/build/Common.prod.props b/build/Common.prod.props index 872830ccbd3..18f280ebdbe 100644 --- a/build/Common.prod.props +++ b/build/Common.prod.props @@ -12,22 +12,28 @@ - + + true + + + - + + - + + <_ReferencePathDirectories Include="@(ReferencePath -> '%(RootDir)%(Directory)')" /> diff --git a/build/PreBuild.ps1 b/build/PreBuild.ps1 index 64d51872e34..988e5b9bbc6 100644 --- a/build/PreBuild.ps1 +++ b/build/PreBuild.ps1 @@ -12,20 +12,35 @@ if (-Not (Test-Path $workDir)) if (Test-Path -Path "$workDir\$package.$version.zip") { - Write-Debug "Previous package $package@$version already downloaded for compatibility check" + Write-Host "Previous package $package@$version already downloaded for compatibility check" } else { Write-Host "Retrieving package $package@$version for compatibility check" - Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/$package/$version -Outfile "$workDir\$package.$version.zip" + try + { + $Response = Invoke-WebRequest -Uri https://www.nuget.org/api/v2/package/$package/$version -Outfile "$workDir\$package.$version.zip" + } + catch + { + $StatusCode = $_.Exception.Response.StatusCode.value__ + throw "Error downloading the package $package@$version. Status code of the received response: $StatusCode" + } } if (Test-Path -Path "$workDir\$package\$version\lib") { - Write-Debug "Previous package $package@$version already extracted to '$workDir\$package\$version\lib'" + Write-Host "Previous package $package@$version already extracted to '$workDir\$package\$version\lib'" } else { Write-Host "Extracting package $package@$version from '$workDir\$package.$version.zip' to '$workDir\$package\$version' for compatibility check" - Expand-Archive -LiteralPath "$workDir\$package.$version.zip" -DestinationPath "$workDir\$package\$version" -Force + try + { + Expand-Archive -LiteralPath "$workDir\$package.$version.zip" -DestinationPath "$workDir\$package\$version" -Force + } + catch + { + throw "Error extracting $package@$version.zip" + } }