Skip to content

Commit fb5e93a

Browse files
authored
[PERF] Update dependson for mono perf jobs (#100420)
* Remove the dependson for coreclr when running mono * Add parameters to help with selecting which runs to run for testing.
1 parent 869dfb7 commit fb5e93a

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

eng/pipelines/coreclr/perf_slow.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
parameters:
2+
- name: runPrivateJobs
3+
type: boolean
4+
default: false
5+
- name: runScheduledJobs
6+
type: boolean
7+
default: false
8+
19
trigger:
210
batch: true
311
branches:
@@ -34,14 +42,13 @@ extends:
3442
- stage: Build
3543
jobs:
3644

37-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'Schedule')) }}:
38-
45+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), or(in(variables['Build.Reason'], 'Schedule'), parameters.runScheduledJobs)) }}:
46+
# build mono
3947
- template: /eng/pipelines/common/platform-matrix.yml
4048
parameters:
4149
jobTemplate: /eng/pipelines/common/global-build-job.yml
4250
buildConfig: release
4351
runtimeFlavor: mono
44-
runtimeVariant: monointerpreter
4552
platforms:
4653
- linux_arm64
4754
jobParameters:
@@ -78,7 +85,7 @@ extends:
7885
logicalmachine: 'perfampere'
7986
timeoutInMinutes: 720
8087

81-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'Schedule')) }}:
88+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), or(notin(variables['Build.Reason'], 'Schedule', 'Manual'), parameters.runPrivateJobs)) }}:
8289

8390
# build coreclr and libraries
8491
- template: /eng/pipelines/common/platform-matrix.yml

eng/pipelines/coreclr/templates/perf-job.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# Test job depends on the corresponding build job
7878
${{ if eq(parameters.downloadSpecificBuild.buildId, '') }}:
7979
dependsOn:
80-
- ${{ if not(in(parameters.runtimeType, 'AndroidMono', 'iOSMono', 'iOSNativeAOT', 'wasm')) }}:
80+
- ${{ if not(or(in(parameters.runtimeType, 'AndroidMono', 'iOSMono', 'iOSNativeAOT', 'wasm'), and(eq(parameters.runtimeType, 'mono'), ne(parameters.codeGenType, 'AOT')))) }}:
8181
- ${{ format('build_{0}{1}_{2}_{3}_{4}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig, 'coreclr') }}
8282
- ${{ if and(eq(parameters.runtimeType, 'mono'), ne(parameters.codeGenType, 'AOT')) }}:
8383
- ${{ format('build_{0}{1}_{2}_{3}_{4}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig, 'mono') }}

0 commit comments

Comments
 (0)