Skip to content

Commit 8d9d6ba

Browse files
authored
chore(ci): set benchmarking jobs to be interruptible outside main (#262)
* set benchmarking jobs to be interruptible outside main * don't allow check-big-regressions to fail * test interruptibility
1 parent e7120b3 commit 8d9d6ba

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.gitlab/benchmarks.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ benchmarks:
66
when: on_success
77
tags: ["runner:apm-k8s-tweaked-metal"]
88
image: $BENCHMARKS_CI_IMAGE
9-
interruptible: true
9+
rules:
10+
- if: $CI_COMMIT_BRANCH == "main"
11+
interruptible: false
12+
- interruptible: true
1013
timeout: 15m
1114
script:
1215
- export ARTIFACTS_DIR="$(pwd)/reports" && (mkdir "${ARTIFACTS_DIR}" || :)
@@ -38,7 +41,10 @@ check-big-regressions:
3841
stage: benchmarks-report
3942
needs: [ benchmarks ]
4043
when: on_success
41-
allow_failure: false
44+
rules:
45+
- if: $CI_COMMIT_BRANCH == "main"
46+
interruptible: false
47+
- interruptible: true
4248
tags: ["arch:amd64"]
4349
image: $BENCHMARKS_CI_IMAGE
4450
script: |

0 commit comments

Comments
 (0)