From 491593e96e75ea45b3a4c3aad0815cba591a74b9 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Thu, 4 Nov 2021 16:55:36 -0700 Subject: [PATCH] Only run Spanish CI leg on LOC PRs --- azure-pipelines.yml | 49 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e063d38e743f8..ef5ce8d5cd001 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -75,15 +75,6 @@ jobs: configuration: Release testArguments: -testDesktop -test32 -- template: eng/pipelines/test-windows-job.yml - parameters: - testRunName: 'Test Windows Desktop Spanish Release 32' - jobName: Test_Windows_Desktop_Spanish_Release_32 - buildJobName: Build_Windows_Release - testArtifactName: Transport_Artifacts_Windows_Release - configuration: Release - testArguments: -testDesktop -test32 -helixQueueName Windows.10.Amd64.Server19H1.ES.Open - - template: eng/pipelines/test-windows-job.yml parameters: testRunName: 'Test Windows Desktop Release 64' @@ -229,3 +220,43 @@ jobs: parameters: jobName: Correctness_Rebuild configuration: Release + +# The Spansh CI Job is only run on OneLOC PRs that update our localized strings. This is to catch tests +# that are relying on the unlocalized strings to pass. +- job: Test_Windows_Desktop_Spanish_Release_32 + dependsOn: Build_Windows_Release + condition: and(in(variables['Build.Reason'], 'PullRequest'), startsWith(replace(variables['System.PullRequest.SourceBranch'], 'refs/heads/', ''), 'locfiles/')) + pool: + # Note that when helix is enabled, the agent running this job is essentially + # a thin client that kicks off a helix job and waits for it to complete. + # Thus we don't use a helix queue to run the job here, and instead use the plentiful AzDO vmImages. + vmImage: windows-2019 + timeoutInMinutes: 120 + steps: + - checkout: none + + - task: DownloadPipelineArtifact@2 + displayName: Download Test Payload + inputs: + artifact: Transport_Artifacts_Windows_Release + path: '$(Build.SourcesDirectory)' + + - task: BatchScript@1 + displayName: Rehydrate RunTests + inputs: + filename: ./artifacts/bin/RunTests/Release/net6.0/rehydrate.cmd + env: + HELIX_CORRELATION_PAYLOAD: '$(Build.SourcesDirectory)\.duplicate' + + - task: PowerShell@2 + displayName: Run Unit Tests + inputs: + filePath: eng/build.ps1 + arguments: -ci -helix -configuration Release -testDesktop -test32 -helixQueueName Windows.10.Amd64.Server19H1.ES.Open -collectDumps + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + + - template: eng/pipelines/publish-logs.yml + parameters: + configuration: Release + jobName: Test_Windows_Desktop_Spanish_Release_32