Skip to content

Commit

Permalink
Remove SHA1 workarounds from VMR build
Browse files Browse the repository at this point in the history
These are no longer needed since dotnet/arcade#12940

Fixes: dotnet/source-build#3458
  • Loading branch information
omajid committed Jun 21, 2023
1 parent 2fb3af9 commit 0adf983
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 37 deletions.
11 changes: 0 additions & 11 deletions eng/pipelines/templates/jobs/vmr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ parameters:
- name: buildFromArchive
type: boolean

# Some distros like CentOS Stream 9 use OpenSSL 3.0 which disables SHA1 signing.
# This option overrides that default configuration and enables it. See https://github.com/dotnet/installer/pull/15289
- name: overrideDistroDisablingSha1
type: boolean
default: false

# Use the previous version's SDK to build the current one
- name: withPreviousSDK
type: boolean
Expand Down Expand Up @@ -204,11 +198,6 @@ jobs:
customRunArgs="$customRunArgs --network none"
fi
# See https://github.com/dotnet/source-build/issues/3202
if [[ '${{ parameters.overrideDistroDisablingSha1 }}' == 'True' ]]; then
customRunArgs="$customRunArgs -e OPENSSL_ENABLE_SHA1_SIGNATURES=1"
fi
if [[ '${{ parameters.enablePoison }}' == 'True' ]]; then
customBuildArgs="$customBuildArgs --poison"
fi
Expand Down
42 changes: 16 additions & 26 deletions eng/pipelines/templates/stages/vmr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,11 @@ stages:
buildFromArchive: false # 🚫
enablePoison: false # 🚫
excludeOmniSharpTests: true # βœ…
overrideDistroDisablingSha1: false # 🚫
runOnline: true # βœ…
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫

- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- ${{ if ne(variables['Build.Reason'], 'fixme') }}:

# CI - Stage 1 x64 legs ------------------------------------

Expand All @@ -104,7 +103,6 @@ stages:
buildFromArchive: false # βœ…
enablePoison: false # 🚫
excludeOmniSharpTests: true # βœ…
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
Expand All @@ -122,7 +120,6 @@ stages:
buildFromArchive: false # 🚫
enablePoison: false # 🚫
excludeOmniSharpTests: true # βœ…
overrideDistroDisablingSha1: false # 🚫
runOnline: true # βœ…
useMonoRuntime: false # 🚫
withPreviousSDK: true # βœ…
Expand All @@ -140,7 +137,6 @@ stages:
buildFromArchive: true # βœ…
enablePoison: false # 🚫
excludeOmniSharpTests: true # βœ…
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
Expand All @@ -158,7 +154,6 @@ stages:
buildFromArchive: true # βœ…
enablePoison: false # 🚫
excludeOmniSharpTests: true # βœ…
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: true # βœ…
withPreviousSDK: false # 🚫
Expand All @@ -176,7 +171,6 @@ stages:
buildFromArchive: true # βœ…
enablePoison: false # 🚫
excludeOmniSharpTests: false # 🚫
overrideDistroDisablingSha1: true # βœ…
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
Expand All @@ -194,7 +188,6 @@ stages:
buildFromArchive: true # βœ…
enablePoison: true # βœ…
excludeOmniSharpTests: false # 🚫
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
Expand All @@ -212,28 +205,27 @@ stages:
buildFromArchive: false # 🚫
enablePoison: false # 🚫
excludeOmniSharpTests: false # 🚫
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫

# CI - Stage 1 arm64 Legs ------------------------------------

- template: ../jobs/vmr-build.yml
parameters:
buildName: Debian11_Offline_MsftSdk
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: arm64
pool: ${{ parameters.poolInternalArm64 }}
container: ${{ parameters.debian11Arm64Container }}
buildFromArchive: false # 🚫
enablePoison: false # 🚫
excludeOmniSharpTests: false # 🚫
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- template: ../jobs/vmr-build.yml
parameters:
buildName: Debian11_Offline_MsftSdk
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
vmrBranch: ${{ variables.VmrBranch }}
architecture: arm64
pool: ${{ parameters.poolInternalArm64 }}
container: ${{ parameters.debian11Arm64Container }}
buildFromArchive: false # 🚫
enablePoison: false # 🚫
excludeOmniSharpTests: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫

# CI - Stage 2 x64 Legs ------------------------------------

Expand All @@ -250,7 +242,6 @@ stages:
buildFromArchive: false # 🚫
enablePoison: false # 🚫
excludeOmniSharpTests: true # βœ…
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
Expand All @@ -269,7 +260,6 @@ stages:
buildFromArchive: false # 🚫
enablePoison: false # 🚫
excludeOmniSharpTests: false # 🚫
overrideDistroDisablingSha1: false # 🚫
runOnline: false # 🚫
useMonoRuntime: false # 🚫
withPreviousSDK: false # 🚫
Expand Down

0 comments on commit 0adf983

Please sign in to comment.