Skip to content

Commit 67a9db7

Browse files
authored
chore(ci): set benchmarking jobs to be interruptible outside main (#15296)
## Description <!-- Provide an overview of the change and motivation for the change --> Set benchmarking jobs to be interruptible outside main. https://datadoghq.atlassian.net/browse/APMSP-2369 ## Testing <!-- Describe your testing strategy or note what tests are included --> The "test interruptibility" commit cancels both microbenchmarking and macrobenchmarking jobs: https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-py/-/pipelines?ref=augusto.deoliveira%2Fapmsp-2369.ensure-correct-interrupt-policy ## Risks <!-- Note any risks associated with this change, or "None" if no risks --> None. ## Additional Notes <!-- Any other information that would be helpful for reviewers -->
1 parent 3d5a9f3 commit 67a9db7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitlab/benchmarks/macrobenchmarks.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ candidate:
1717
image: $PACKAGE_IMAGE
1818
stage: build
1919
tags: [ "arch:amd64" ]
20+
rules:
21+
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+$/
22+
interruptible: false
23+
- interruptible: true
2024
needs:
2125
- pipeline: $PARENT_PIPELINE_ID
2226
job: download_ddtrace_artifacts
@@ -33,6 +37,10 @@ candidate:
3337
stage: test
3438
needs: [ "candidate" ]
3539
tags: ["runner:apm-k8s-same-cpu"]
40+
rules:
41+
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+$/
42+
interruptible: false
43+
- interruptible: true
3644
timeout: 1h
3745
retry:
3846
max: 2

.gitlab/benchmarks/microbenchmarks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ variables:
1616
when: on_success
1717
tags: ["runner:apm-k8s-tweaked-metal"]
1818
image: $MICROBENCHMARKS_CI_IMAGE
19-
interruptible: true
19+
rules:
20+
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^[0-9]+\.[0-9]+$/
21+
interruptible: false
22+
- interruptible: true
2023
timeout: 30m
2124
dependencies: [ "baseline:build", "candidate" ]
2225
script: |

0 commit comments

Comments
 (0)