Skip to content

Commit 693f054

Browse files
authored
Fix[CI]: deny benchmark runs on temporary graphite branches (#6953)
1 parent e137afe commit 693f054

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.gitlab/benchmarks.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ variables:
99
.benchmarks:
1010
stage: benchmarks
1111
needs: [ ]
12-
when: on_success
12+
rules:
13+
- if: '$CI_COMMIT_REF_NAME =~ /^graphite-base\/.*$/'
14+
when: never
15+
- when: on_success
1316
tags: ["runner:apm-k8s-m7i-metal"]
1417
image: $MICROBENCHMARKS_CI_IMAGE
1518
rules:
@@ -38,7 +41,10 @@ variables:
3841
benchmarks-pr-comment:
3942
stage: benchmarks-pr-comment
4043
needs: [ benchmark, benchmark-serverless ]
41-
when: on_success
44+
rules:
45+
- if: '$CI_COMMIT_REF_NAME =~ /^graphite-base\/.*$/'
46+
when: never
47+
- when: on_success
4248
tags: ["arch:amd64"]
4349
image: $MICROBENCHMARKS_CI_IMAGE
4450
script:
@@ -49,7 +55,10 @@ benchmarks-pr-comment:
4955
check-big-regressions:
5056
stage: benchmarks-pr-comment
5157
needs: [ benchmark, benchmark-serverless ]
52-
when: on_success
58+
rules:
59+
- if: '$CI_COMMIT_REF_NAME =~ /^graphite-base\/.*$/'
60+
when: never
61+
- when: on_success
5362
tags: ["arch:amd64"]
5463
image: $MICROBENCHMARKS_CI_IMAGE
5564
script:

.gitlab/macrobenchmarks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ include:
88
stage: macrobenchmarks
99
when: always
1010
rules:
11+
- if: '$CI_COMMIT_REF_NAME =~ /^graphite-base\/.*$/'
12+
when: never
1113
- if: $CI_COMMIT_BRANCH == 'master'
1214
interruptible: false
1315
- interruptible: true

0 commit comments

Comments
 (0)