diff options
author | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2019-06-13 16:33:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-13 16:33:42 -0700 |
commit | 0bbdbfcdebc6771f88896d59a22386fc5a18b7dd (patch) | |
tree | 9ef9e557032d62d11edf9ec0bca8f35100e45bb3 /azure-pipelines.yml | |
parent | e73c8e6c4a98b7ef6335afa31052bed7313fd816 (diff) | |
download | coreclr-0bbdbfcdebc6771f88896d59a22386fc5a18b7dd.tar.gz coreclr-0bbdbfcdebc6771f88896d59a22386fc5a18b7dd.tar.bz2 coreclr-0bbdbfcdebc6771f88896d59a22386fc5a18b7dd.zip |
Add platformGroup parameter to platform-matrix.yml (#25111)
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 99 |
1 files changed, 53 insertions, 46 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a837b7391b..eadb9e8b41 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -90,16 +90,16 @@ jobs: # # Debug builds # -- ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: +- ${{ if eq(variables['System.TeamProject'], 'public') }}: - template: eng/platform-matrix.yml parameters: jobTemplate: build-job.yml buildConfig: debug - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: + ${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: platforms: - Windows_NT_x64 - Windows_NT_x86 - ${{ if in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}: + ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: platforms: - Linux_arm - Linux_arm64 @@ -112,7 +112,7 @@ jobs: - Windows_NT_arm64 # -# Checked build +# Checked builds # - ${{ if eq(variables['System.TeamProject'], 'public') }}: - template: eng/platform-matrix.yml @@ -130,13 +130,10 @@ jobs: - Windows_NT_arm64 - Windows_NT_x64 - Windows_NT_x86 - ${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress0x3-gcstress0xc', 'coreclr-outerloop-gcstress-extra', 'coreclr-outerloop-r2r', 'coreclr-outerloop-r2r-extra') }}: - platforms: - - Linux_arm - - Linux_arm64 - - Linux_x64 - - Windows_NT_x64 - - Windows_NT_x86 + ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: + platformGroup: all + ${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop', 'coreclr-outerloop-jitstress', 'coreclr-outerloop-jitstressregs', 'coreclr-outerloop-jitstress2-jitstressregs') }}: + platformGroup: all ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-arm') }}: platforms: - Linux_arm64 @@ -152,6 +149,15 @@ jobs: - Linux_x64 - Windows_NT_x64 - Windows_NT_x86 + ${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress0x3-gcstress0xc', 'coreclr-outerloop-gcstress-extra', 'coreclr-outerloop-r2r-extra') }}: + platformGroup: gcstress + ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r') }}: + platforms: + - Linux_arm + - Linux_arm64 + - Linux_x64 + - Windows_NT_x64 + - Windows_NT_x86 ${{ if in(variables['Build.DefinitionName'], 'coreclr-corefx', 'coreclr-corefx-jitstress', 'coreclr-corefx-jitstressregs', 'coreclr-corefx-jitstress2-jitstressregs') }}: platforms: - Linux_x64 @@ -165,12 +171,12 @@ jobs: # # Release builds # -- ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: +- ${{ if eq(variables['System.TeamProject'], 'public') }}: - template: eng/platform-matrix.yml parameters: jobTemplate: build-job.yml buildConfig: release - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: + ${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: platforms: - Linux_arm64 - Linux_musl_x64 @@ -178,7 +184,7 @@ jobs: - Windows_NT_arm - Windows_NT_arm64 - Windows_NT_x64 - ${{ if in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}: + ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: platforms: - Linux_arm - Linux_musl_arm64 @@ -186,15 +192,13 @@ jobs: - OSX_x64 - Windows_NT_x86 -# -# Release builds (Official build) - non-PullRequest -# - ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}: - template: eng/platform-matrix.yml parameters: jobTemplate: build-job.yml buildConfig: release jobParameters: + platformGroup: all # Publishing packages to blob feeds sometimes takes a long time # due to waiting for an exclusive lock on the feed. # See https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/AsyncPublishing.md @@ -204,8 +208,7 @@ jobs: # Checked test builds # # The test jobs that can be triggered by a PR, manually from ADO and that are scheduled -# TODO: This long 'in' condition needs to be make data driven, perhaps by adding another layer of template. -- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest', 'Manual', 'Schedule'), in(variables['Build.DefinitionName'], 'coreclr-ci', 'coreclr-outerloop', 'coreclr-outerloop-jitstress', 'coreclr-outerloop-jitstress-isas-arm', 'coreclr-outerloop-jitstress-isas-x86', 'coreclr-outerloop-jitstressregs-x86', 'coreclr-outerloop-jitstressregs', 'coreclr-outerloop-jitstress2-jitstressregs', 'coreclr-outerloop-gcstress0x3-gcstress0xc', 'coreclr-outerloop-gcstress-extra', 'coreclr-outerloop-r2r', 'coreclr-outerloop-r2r-extra', 'coreclr-runincontext')) }}: +- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest', 'Manual', 'Schedule')) }}: - template: eng/platform-matrix.yml parameters: jobTemplate: test-job.yml @@ -221,13 +224,8 @@ jobs: - Windows_NT_arm64 - Windows_NT_x64 - Windows_NT_x86 - ${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress0x3-gcstress0xc', 'coreclr-outerloop-gcstress-extra', 'coreclr-outerloop-r2r', 'coreclr-outerloop-r2r-extra') }}: - platforms: - - Linux_arm - - Linux_arm64 - - Linux_x64 - - Windows_NT_x64 - - Windows_NT_x86 + ${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop', 'coreclr-outerloop-jitstress', 'coreclr-outerloop-jitstressregs', 'coreclr-outerloop-jitstress2-jitstressregs') }}: + platformGroup: all ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-jitstress-isas-arm') }}: platforms: - Linux_arm64 @@ -243,6 +241,8 @@ jobs: - Linux_x64 - Windows_NT_x64 - Windows_NT_x86 + ${{ if in(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress0x3-gcstress0xc', 'coreclr-outerloop-gcstress-extra') }}: + platformGroup: gcstress ${{ if eq(variables['Build.DefinitionName'], 'coreclr-runincontext') }}: platforms: - Linux_x64 @@ -269,14 +269,6 @@ jobs: testGroup: gcstress0x3-gcstress0xc ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-gcstress-extra') }}: testGroup: gcstress-extra - ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r') }}: - testGroup: outerloop - readyToRun: true - displayNameArgs: R2R - ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r-extra') }}: - testGroup: r2r-extra - readyToRun: true - displayNameArgs: R2R ${{ if eq(variables['Build.DefinitionName'], 'coreclr-runincontext') }}: testGroup: outerloop runInUnloadableContext: true @@ -284,29 +276,41 @@ jobs: # ReadyToRun test jobs that are triggered by default from a PR. -- ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: +- ${{ if eq(variables['System.TeamProject'], 'public') }}: - template: eng/platform-matrix.yml parameters: jobTemplate: test-job.yml buildConfig: checked - platforms: - - Linux_x64 - - OSX_x64 - - Windows_NT_x64 - - Windows_NT_x86 + ${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: + platforms: + - Linux_x64 + - OSX_x64 + - Windows_NT_x64 + - Windows_NT_x86 + ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r') }}: + platforms: + - Linux_arm + - Linux_arm64 + - Linux_x64 + - Windows_NT_x64 + - Windows_NT_x86 + ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r-extra') }}: + platformGroup: gcstress # r2r-extra testGroup runs gcstress15 scenario jobParameters: + ${{ if eq(variables['Build.DefinitionName'], 'coreclr-ci') }}: + testGroup: innerloop + ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r') }}: + testGroup: outerloop + ${{ if eq(variables['Build.DefinitionName'], 'coreclr-outerloop-r2r-extra') }}: + testGroup: r2r-extra readyToRun: true - testGroup: innerloop displayNameArgs: R2R # # CoreFX test runs against CoreCLR # -# PR innerloop checked build - -# TODO: This long 'in' condition needs to be make data driven, perhaps by adding another layer of template. -- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest', 'Manual', 'Schedule'), in(variables['Build.DefinitionName'], 'coreclr-ci', 'coreclr-corefx', 'coreclr-corefx-jitstress', 'coreclr-corefx-jitstressregs', 'coreclr-corefx-jitstress2-jitstressregs')) }}: +- ${{ if eq(variables['System.TeamProject'], 'public') }}: - template: eng/platform-matrix.yml parameters: jobTemplate: test-job.yml @@ -335,11 +339,12 @@ jobs: # CI (merge) jobs -- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI')) }}: +- ${{ if and(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.DefinitionName'], 'coreclr-ci')) }}: - template: eng/platform-matrix.yml parameters: jobTemplate: test-job.yml buildConfig: checked + platformGroup: all jobParameters: testGroup: outerloop @@ -384,6 +389,7 @@ jobs: parameters: jobTemplate: test-job.yml buildConfig: release + platformGroup: all jobParameters: testGroup: outerloop @@ -391,6 +397,7 @@ jobs: parameters: jobTemplate: test-job.yml buildConfig: release + platformGroup: all jobParameters: testGroup: outerloop readyToRun: true |