Skip to content

Commit e2ae355

Browse files
igoragolirochdev
andauthored
ci: parallelize macrobenchmark experiments (#6564)
* test parallelizing macrobenchmarks * extend from macrobenchmarks * change experiment to high-load on high-load-with-debug-and-without-http-plugin * simplify macrobenchmarks, parallelize experiments under the same jobs * test changing CI_JOB_NAME to see if results names are more readable * test a cleaner approach for updating the CI_JOB_NAME * test another cleaner approach for updating the CI_JOB_NAME * set CI_JOB_NAME directly on each benchmark group Since CI_JOB_GROUP_NAME is empty * add a TODO for reverting the benchmarking-platform branch * update the TODO for reverting the benchmarking-platform branch * add only-tracing-wiht-runtime-metrics-enabled to check-slo-breaches "needs" --------- Co-authored-by: Roch Devost <roch.devost@datadoghq.com>
1 parent 7a57c8e commit e2ae355

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.gitlab/macrobenchmarks.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ include:
1616
timeout: 1h
1717
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:js-hapi
1818
script:
19-
- git clone --branch js/hapi https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform platform && cd platform
20-
- bp-runner bp-runner.yml --debug -t
19+
# TODO: Revert to js/hapi after https://github.com/DataDog/benchmarking-platform/pull/199 is merged
20+
- git clone --branch rochdev/parallel-experiments https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/benchmarking-platform platform && cd platform
21+
- bp-runner bp-runner.$EXPERIMENT.yml --debug -t
2122
artifacts:
2223
name: "artifacts"
2324
when: always
@@ -64,17 +65,34 @@ baseline:
6465
extends: .macrobenchmarks
6566
variables:
6667
DD_BENCHMARKS_CONFIGURATION: baseline
68+
# Must be set to ensure consistent benchmark result naming and tagging
69+
CI_JOB_NAME: baseline
70+
parallel:
71+
matrix:
72+
- EXPERIMENT: normal-operation
73+
- EXPERIMENT: high-load
6774

6875
only-tracing:
6976
extends: .macrobenchmarks
7077
variables:
7178
DD_BENCHMARKS_CONFIGURATION: only-tracing
79+
# Must be set to ensure consistent benchmark result naming and tagging
80+
CI_JOB_NAME: only-tracing
81+
parallel:
82+
matrix:
83+
- EXPERIMENT: normal-operation
84+
- EXPERIMENT: high-load
7285

7386
only-tracing-with-runtime-metrics-enabled:
7487
extends: .macrobenchmarks
7588
variables:
76-
DD_BENCHMARKS_CONFIGURATION: only-tracing
77-
DD_RUNTIME_METRICS_ENABLED: "true"
89+
DD_BENCHMARKS_CONFIGURATION: only-tracing-with-runtime-metrics-enabled
90+
# Must be set to ensure consistent benchmark result naming and tagging
91+
CI_JOB_NAME: only-tracing-with-runtime-metrics-enabled
92+
parallel:
93+
matrix:
94+
- EXPERIMENT: normal-operation
95+
- EXPERIMENT: high-load
7896

7997
check-slo-breaches:
8098
extends: .check-slo-breaches

0 commit comments

Comments
 (0)