From 93a8320399e2f0b22877e097dc8216d5c634b8dd Mon Sep 17 00:00:00 2001 From: Billy O'Neal Date: Wed, 15 Sep 2021 11:39:39 -0700 Subject: Back out "cascades" enforcement because it caused too many stealth merge conflicts. (#20181) Mostly reverts https://github.com/microsoft/vcpkg/pull/20140 See https://github.com/microsoft/vcpkg/discussions/20180 for further discussion. --- scripts/azure-pipelines/linux/azure-pipelines.yml | 2 +- scripts/azure-pipelines/osx/azure-pipelines.yml | 2 +- scripts/azure-pipelines/test-modified-ports.ps1 | 38 ++-------------------- .../azure-pipelines/windows/azure-pipelines.yml | 2 +- 4 files changed, 6 insertions(+), 38 deletions(-) (limited to 'scripts') diff --git a/scripts/azure-pipelines/linux/azure-pipelines.yml b/scripts/azure-pipelines/linux/azure-pipelines.yml index 530dba677..f68f971e5 100644 --- a/scripts/azure-pipelines/linux/azure-pipelines.yml +++ b/scripts/azure-pipelines/linux/azure-pipelines.yml @@ -45,7 +45,7 @@ jobs: inputs: failOnStderr: true filePath: 'scripts/azure-pipelines/test-modified-ports.ps1' - arguments: '-Triplet x64-linux -BuildReason $(Build.Reason) -BinarySourceStub "$(X_VCPKG_BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory) -EnforceCascades' + arguments: '-Triplet x64-linux -BuildReason $(Build.Reason) -BinarySourceStub "$(X_VCPKG_BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory)' pwsh: true - bash: | df -h diff --git a/scripts/azure-pipelines/osx/azure-pipelines.yml b/scripts/azure-pipelines/osx/azure-pipelines.yml index dc0ae7c46..154247da4 100644 --- a/scripts/azure-pipelines/osx/azure-pipelines.yml +++ b/scripts/azure-pipelines/osx/azure-pipelines.yml @@ -39,7 +39,7 @@ jobs: inputs: failOnStderr: true filePath: 'scripts/azure-pipelines/test-modified-ports.ps1' - arguments: '-Triplet x64-osx -BuildReason $(Build.Reason) -BinarySourceStub "$(BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory) -EnforceCascades' + arguments: '-Triplet x64-osx -BuildReason $(Build.Reason) -BinarySourceStub "$(BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory)' pwsh: true - bash: | df -h diff --git a/scripts/azure-pipelines/test-modified-ports.ps1 b/scripts/azure-pipelines/test-modified-ports.ps1 index b1b7e14da..8212509d0 100755 --- a/scripts/azure-pipelines/test-modified-ports.ps1 +++ b/scripts/azure-pipelines/test-modified-ports.ps1 @@ -30,9 +30,6 @@ not, binary caching will default to read-write mode. .PARAMETER PassingIsPassing Indicates that 'Passing, remove from fail list' results should not be emitted as failures. (For example, this is used when using vcpkg to test a prerelease MSVC++ compiler) - -.PARAMETER EnforceCascades -Enforces that the cascade count from ci.baseline.txt and "supports" is consistent with last known values. #> [CmdletBinding(DefaultParameterSetName="ArchivesRoot")] @@ -51,9 +48,7 @@ Param( $BinarySourceStub = $null, $BuildReason = $null, [switch] - $PassingIsPassing = $false, - [switch] - $EnforceCascades = $false + $PassingIsPassing = $false ) if (-Not ((Test-Path "triplets/$Triplet.cmake") -or (Test-Path "triplets/community/$Triplet.cmake"))) { @@ -131,42 +126,15 @@ $skipList = . "$PSScriptRoot/generate-skip-list.ps1" ` -BaselineFile "$PSScriptRoot/../ci.baseline.txt" ` -SkipFailures:$skipFailures -$ciArgs = $commonArgs -if ($EnforceCascades) { - if ($Triplet -eq 'x86-windows') { - $cascades = 28 - } elseif ($Triplet -eq 'x64-windows') { - $cascades = 21 - } elseif ($Triplet -eq 'x64-windows-static') { - $cascades = 59 - } elseif ($Triplet -eq 'x64-windows-static-md') { - $cascades = 53 - } elseif ($Triplet -eq 'x64-uwp') { - $cascades = 345 - } elseif ($Triplet -eq 'arm64-windows') { - $cascades = 228 - } elseif ($Triplet -eq 'arm-uwp') { - $cascades = 345 - } elseif ($Triplet -eq 'x64-osx') { - $cascades = 61 - } elseif ($Triplet -eq 'x64-linux') { - $cascades = 31 - } else { - throw "Unknown triplet ($Triplet); could not determine expected cascade count. Update test-modified-ports.ps1." - } - - $ciArgs += @("--x-skipped-cascade-count=$cascades") -} - if ($Triplet -in @('x64-windows', 'x64-osx', 'x64-linux')) { # WORKAROUND: These triplets are native-targetting which triggers an issue in how vcpkg handles the skip list. # The workaround is to pass the skip list as host-excludes as well. - & "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --host-exclude=$skipList --failure-logs=$failureLogs @ciArgs + & "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --host-exclude=$skipList --failure-logs=$failureLogs @commonArgs } else { - & "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @ciArgs + & "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @commonArgs } if ($LASTEXITCODE -ne 0) diff --git a/scripts/azure-pipelines/windows/azure-pipelines.yml b/scripts/azure-pipelines/windows/azure-pipelines.yml index 2a1402297..b88a5f120 100644 --- a/scripts/azure-pipelines/windows/azure-pipelines.yml +++ b/scripts/azure-pipelines/windows/azure-pipelines.yml @@ -39,7 +39,7 @@ jobs: inputs: failOnStderr: true filePath: 'scripts/azure-pipelines/test-modified-ports.ps1' - arguments: '-Triplet ${{ parameters.triplet }} -BuildReason $(Build.Reason) -BinarySourceStub "$(X_VCPKG_BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory) -EnforceCascades' + arguments: '-Triplet ${{ parameters.triplet }} -BuildReason $(Build.Reason) -BinarySourceStub "$(X_VCPKG_BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory)' pwsh: true - task: PowerShell@2 displayName: 'Validate version files' -- cgit v1.2.3