Skip to content

Commit 0b185eb

Browse files
committed
chore(benchmarks): add PR performance quality gate
1 parent cf59df3 commit 0b185eb

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
stages:
22
- benchmarks
3+
- benchmarks-gate
34

45
include: ".gitlab/benchmarks.yml"

.gitlab/benchmarks.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
variables:
2-
BASE_CI_IMAGE: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-cpp
2+
BENCHMARKS_CI_IMAGE: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-cpp
33

44
benchmarks:
55
stage: benchmarks
66
when: on_success
77
tags: ["runner:apm-k8s-tweaked-metal"]
8-
image: $BASE_CI_IMAGE
8+
image: $BENCHMARKS_CI_IMAGE
99
interruptible: true
1010
timeout: 15m
1111
script:
@@ -19,6 +19,7 @@ benchmarks:
1919
- "./steps/post-pr-comment.sh || :"
2020
artifacts:
2121
name: "reports"
22+
when: always
2223
paths:
2324
- reports/
2425
expire_in: 3 months
@@ -30,3 +31,28 @@ benchmarks:
3031

3132
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-cpp
3233
FF_USE_LEGACY_KUBERNETES_EXECUTION_STRATEGY: "true"
34+
35+
benchmarks-pr-comment:
36+
stage: benchmarks-gate
37+
needs: [ benchmarks ]
38+
when: on_success
39+
tags: ["arch:amd64"]
40+
image: $BENCHMARKS_CI_IMAGE
41+
script:
42+
- cd platform && (git init && git remote add origin https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform && git pull origin dd-trace-cpp)
43+
- bp-runner bp-runner.pr-comment.yml --debug
44+
allow_failure: true
45+
variables:
46+
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-cpp
47+
48+
check-big-regressions:
49+
stage: benchmarks-gate
50+
needs: [ benchmarks ]
51+
when: on_success
52+
tags: ["arch:amd64"]
53+
image: $BENCHMARKS_CI_IMAGE
54+
script:
55+
- cd platform && (git init && git remote add origin https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform && git pull origin dd-trace-cpp)
56+
- bp-runner bp-runner.fail-on-regression.yml --debug
57+
variables:
58+
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: dd-trace-cpp

0 commit comments

Comments
 (0)