Remove tests from official builds (#23056)

* Remove tests from official builds
  - #22787

nit: _add_ dependency on Windows ARM64 build when publishing to the BAR
    - not a major problem because this particular build rarely if ever fails
    - the existence of the correct manifests is much more important

* Address nit: `Windows_64_build` -> `Windows_arm64_build`
This commit is contained in:
Doug Bunting 2020-06-17 14:46:29 -07:00 committed by GitHub
parent c4c6e25a06
commit 6c941485fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 125 additions and 127 deletions

View File

@ -246,7 +246,7 @@ stages:
- template: jobs/default-build.yml - template: jobs/default-build.yml
parameters: parameters:
codeSign: true codeSign: true
jobName: Windows_64_build jobName: Windows_arm64_build
jobDisplayName: "Build: Windows ARM64" jobDisplayName: "Build: Windows ARM64"
agentOs: Windows agentOs: Windows
buildArgs: buildArgs:
@ -492,132 +492,133 @@ stages:
parameters: parameters:
inputName: Linux_musl_arm64 inputName: Linux_musl_arm64
# Test jobs - ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
- template: jobs/default-build.yml # Test jobs
parameters: - template: jobs/default-build.yml
condition: ne(variables['SkipTests'], 'true') parameters:
jobName: Windows_Test condition: ne(variables['SkipTests'], 'true')
jobDisplayName: "Test: Windows Server 2016 x64" jobName: Windows_Test
agentOs: Windows jobDisplayName: "Test: Windows Server 2016 x64"
isTestingJob: true agentOs: Windows
buildArgs: -all -pack -test /p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true isTestingJob: true
/p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false buildArgs: -all -pack -test /p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true
$(_InternalRuntimeDownloadArgs) /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false
beforeBuild: $(_InternalRuntimeDownloadArgs)
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1" beforeBuild:
displayName: Setup IISExpress test certificates and schema - powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
artifacts: displayName: Setup IISExpress test certificates and schema
- name: Windows_Test_Dumps artifacts:
path: artifacts/dumps/ - name: Windows_Test_Dumps
publishOnError: true path: artifacts/dumps/
includeForks: true publishOnError: true
- name: Windows_Test_Logs includeForks: true
path: artifacts/log/ - name: Windows_Test_Logs
publishOnError: true path: artifacts/log/
includeForks: true publishOnError: true
- name: Windows_Test_Results includeForks: true
path: artifacts/TestResults/ - name: Windows_Test_Results
publishOnError: true path: artifacts/TestResults/
includeForks: true publishOnError: true
includeForks: true
- template: jobs/default-build.yml - template: jobs/default-build.yml
parameters: parameters:
condition: ne(variables['SkipTests'], 'true') condition: ne(variables['SkipTests'], 'true')
jobName: Windows_Templates_Test jobName: Windows_Templates_Test
jobDisplayName: "Test: Templates - Windows Server 2016 x64" jobDisplayName: "Test: Templates - Windows Server 2016 x64"
agentOs: Windows agentOs: Windows
isTestingJob: true isTestingJob: true
steps: steps:
- script: ./build.cmd -ci -nobl -all -pack $(_InternalRuntimeDownloadArgs) - script: ./build.cmd -ci -nobl -all -pack $(_InternalRuntimeDownloadArgs)
displayName: Build Repo displayName: Build Repo
- script: ./src/ProjectTemplates/build.cmd -ci -nobl -noBuildRepoTasks -pack -NoRestore -noBuildNative -NoBuilddeps "/p:RunTemplateTests=true" - script: ./src/ProjectTemplates/build.cmd -ci -nobl -noBuildRepoTasks -pack -NoRestore -noBuildNative -NoBuilddeps "/p:RunTemplateTests=true"
displayName: Pack Templates displayName: Pack Templates
- script: ./src/ProjectTemplates/build.cmd -ci -nobl -noBuildRepoTasks -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true" - script: ./src/ProjectTemplates/build.cmd -ci -nobl -noBuildRepoTasks -test -NoRestore -NoBuild -NoBuilddeps "/p:RunTemplateTests=true"
displayName: Test Templates displayName: Test Templates
artifacts: artifacts:
- name: Windows_Test_Templates_Dumps - name: Windows_Test_Templates_Dumps
path: artifacts/dumps/ path: artifacts/dumps/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
- name: Windows_Test_Templates_Logs - name: Windows_Test_Templates_Logs
path: artifacts/log/ path: artifacts/log/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
- name: Windows_Test_Templates_Results - name: Windows_Test_Templates_Results
path: artifacts/TestResults/ path: artifacts/TestResults/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
- template: jobs/default-build.yml - template: jobs/default-build.yml
parameters: parameters:
condition: ne(variables['SkipTests'], 'true') condition: ne(variables['SkipTests'], 'true')
jobName: MacOS_Test jobName: MacOS_Test
jobDisplayName: "Test: macOS 10.14" jobDisplayName: "Test: macOS 10.14"
agentOs: macOS agentOs: macOS
isTestingJob: true isTestingJob: true
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs) buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs)
beforeBuild: beforeBuild:
- bash: "./eng/scripts/install-nginx-mac.sh" - bash: "./eng/scripts/install-nginx-mac.sh"
displayName: Installing Nginx displayName: Installing Nginx
artifacts: artifacts:
- name: MacOS_Test_Logs - name: MacOS_Test_Logs
path: artifacts/log/ path: artifacts/log/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
- name: MacOS_Test_Results - name: MacOS_Test_Results
path: artifacts/TestResults/ path: artifacts/TestResults/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
- template: jobs/default-build.yml - template: jobs/default-build.yml
parameters: parameters:
condition: ne(variables['SkipTests'], 'true') condition: ne(variables['SkipTests'], 'true')
jobName: Linux_Test jobName: Linux_Test
jobDisplayName: "Test: Ubuntu 16.04 x64" jobDisplayName: "Test: Ubuntu 16.04 x64"
agentOs: Linux agentOs: Linux
isTestingJob: true isTestingJob: true
useHostedUbuntu: false useHostedUbuntu: false
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs) buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs)
beforeBuild: beforeBuild:
- bash: "./eng/scripts/install-nginx-linux.sh" - bash: "./eng/scripts/install-nginx-linux.sh"
displayName: Installing Nginx displayName: Installing Nginx
- bash: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p" - bash: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"
displayName: Increase inotify limit displayName: Increase inotify limit
artifacts: artifacts:
- name: Linux_Test_Logs - name: Linux_Test_Logs
path: artifacts/log/ path: artifacts/log/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
- name: Linux_Test_Results - name: Linux_Test_Results
path: artifacts/TestResults/ path: artifacts/TestResults/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
# Helix x64 # Helix x64
- template: jobs/default-build.yml - template: jobs/default-build.yml
parameters: parameters:
jobName: Helix_x64 jobName: Helix_x64
jobDisplayName: 'Tests: Helix x64' jobDisplayName: 'Tests: Helix x64'
agentOs: Windows agentOs: Windows
timeoutInMinutes: 180 timeoutInMinutes: 180
steps: steps:
# Build the shared framework # Build the shared framework
- script: ./build.cmd -ci -nobl -all -pack -arch x64 /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log - script: ./build.cmd -ci -nobl -all -pack -arch x64 /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
displayName: Build shared fx displayName: Build shared fx
- script: ./build.cmd -ci -nobl -noBuildRepoTasks -restore -noBuild -noBuildNative -projects src/Grpc/**/*.csproj - script: ./build.cmd -ci -nobl -noBuildRepoTasks -restore -noBuild -noBuildNative -projects src/Grpc/**/*.csproj
displayName: Restore interop projects displayName: Restore interop projects
- script: ./build.cmd -ci -nobl -noBuildRepoTasks -noRestore -test -all -noBuildNative -projects eng\helix\helix.proj - script: ./build.cmd -ci -nobl -noBuildRepoTasks -noRestore -test -all -noBuildNative -projects eng\helix\helix.proj
/p:IsRequiredCheck=true /p:IsHelixJob=true /p:BuildInteropProjects=true /p:RunTemplateTests=true /p:IsRequiredCheck=true /p:IsHelixJob=true /p:BuildInteropProjects=true /p:RunTemplateTests=true
/p:ASPNETCORE_TEST_LOG_DIR=artifacts/log /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
displayName: Run build.cmd helix target displayName: Run build.cmd helix target
env: env:
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
artifacts: artifacts:
- name: Helix_logs - name: Helix_logs
path: artifacts/log/ path: artifacts/log/
publishOnError: true publishOnError: true
includeForks: true includeForks: true
# Source build # Source build
- job: Source_Build - job: Source_Build
@ -675,6 +676,7 @@ stages:
dependsOn: dependsOn:
- Windows_build - Windows_build
- Windows_arm_build - Windows_arm_build
- Windows_arm64_build
- CodeSign_Xplat_MacOS_x64 - CodeSign_Xplat_MacOS_x64
- CodeSign_Xplat_Linux_x64 - CodeSign_Xplat_Linux_x64
- CodeSign_Xplat_Linux_arm - CodeSign_Xplat_Linux_arm
@ -682,11 +684,7 @@ stages:
- CodeSign_Xplat_Linux_musl_x64 - CodeSign_Xplat_Linux_musl_x64
- CodeSign_Xplat_Linux_musl_arm64 - CodeSign_Xplat_Linux_musl_arm64
# In addition to the dependencies above, ensure the build was successful overall. # In addition to the dependencies above, ensure the build was successful overall.
- Linux_Test
- MacOS_Test
- Source_Build - Source_Build
- Windows_Templates_Test
- Windows_Test
pool: pool:
vmImage: vs2017-win2016 vmImage: vs2017-win2016
publishUsingPipelines: ${{ variables._PublishUsingPipelines }} publishUsingPipelines: ${{ variables._PublishUsingPipelines }}