From 839bd19edeffa639ed3e0470f3006c74b24d7107 Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Wed, 25 Nov 2026 11:13:11 -0500 Subject: [PATCH 1/2] ci(benchmarks): speed up the PR comment job Run the reporting jobs on the pinned benchmarking-platform-tools image (1.9 GB) instead of the 3.2 GB microbenchmarks image, skip the git checkout (they only read reports/; their bp-runner configs are now generated inline), and move the Benchmarking Platform API upload to a sibling job that runs in parallel with the PR comment. The upload config carries a no-op experiment because bp-runner rejects a config without experiments. --- .claude/ci/benchmarks.md | 9 +- .claude/ci/index.md | 4 +- .gitlab/benchmarks.yml | 106 ++++++++++++++---- .gitlab/benchmarks/README.md | 36 +++--- .../bp-runner.pr-comment-appsec.yml | 12 -- .../bp-runner.pr-comment-profiler.yml | 12 -- .gitlab/benchmarks/bp-runner.pr-comment.yml | 12 -- 7 files changed, 111 insertions(+), 80 deletions(-) delete mode 100644 .gitlab/benchmarks/bp-runner.pr-comment-appsec.yml delete mode 100644 .gitlab/benchmarks/bp-runner.pr-comment-profiler.yml delete mode 100644 .gitlab/benchmarks/bp-runner.pr-comment.yml diff --git a/.claude/ci/benchmarks.md b/.claude/ci/benchmarks.md index 24d3b74abc..b1e74b8f8b 100644 --- a/.claude/ci/benchmarks.md +++ b/.claude/ci/benchmarks.md @@ -13,13 +13,14 @@ | `benchmarks-tracer` | `$MICROBENCHMARKS_CI_IMAGE` (see `.gitlab/benchmarks.yml`; built in-repo from `.gitlab/benchmarks/container/`) | Runs PHP tracer microbenchmarks via the Benchmarking Platform framework, one `TRACER_PART` (phpbench, phpbench-opcache, tea) and, for the phpbench parts, one `PHPBENCH_SHARD` (1, 2) per matrix job; skips automatically if no tracer-relevant files changed | | `benchmarks-appsec` | same | Runs appsec microbenchmarks; produces `candidate.tar.gz` and `baseline.tar.gz` artifacts | | `benchmarks-profiler` | same | Runs profiler microbenchmarks | -| `benchmarks-pr-comment` | `$MICROBENCHMARKS_CI_IMAGE` (see `.gitlab/benchmarks.yml`; built in-repo from `.gitlab/benchmarks/container/`) | Runs `.gitlab/benchmarks/bp-runner.pr-comment.yml`: posts the tracer comparison as a PR comment and uploads the results to the Benchmarking Platform API; needs `benchmarks-tracer`; allow_failure | -| `benchmarks-pr-comment-appsec` | same | Same flow for AppSec, with its own comment header; needs `benchmarks-appsec` | -| `benchmarks-pr-comment-profiler` | same | Same flow for the profiler, with its own comment header; needs `benchmarks-profiler` | +| `benchmarks-pr-comment` | `$BENCHMARKING_PLATFORM_TOOLS_IMAGE` (see `.gitlab/benchmarks.yml`) | Posts the tracer comparison as a PR comment (bp-runner config generated inline; no checkout); needs `benchmarks-tracer`; allow_failure | +| `benchmarks-upload-bp-api` | same | Uploads the tracer results to the Benchmarking Platform API, in parallel with the comment; needs `benchmarks-tracer`; allow_failure | +| `benchmarks-pr-comment-appsec`, `benchmarks-upload-bp-api-appsec` | same | Same flow for AppSec, with its own comment header; needs `benchmarks-appsec` | +| `benchmarks-pr-comment-profiler`, `benchmarks-upload-bp-api-profiler` | same | Same flow for the profiler, with its own comment header; needs `benchmarks-profiler` | | `build-benchmark-ci-images` | (built in-repo from `.gitlab/benchmarks/container/`) | Manual job that builds the microbenchmark CI image from `.gitlab/benchmarks/container/`; described in `.gitlab/benchmarks/README.md` § How to rebuild the CI Docker image | | `build-llvm-bolt-align-image` | (built in-repo from `.gitlab/benchmarks/container/llvm-bolt-align/`) | Manual job that builds the static `llvm-bolt-align` tool image copied into the microbenchmark CI image; described in `.gitlab/benchmarks/README.md` § Rebuilding the `llvm-bolt-align` image | | `macrobenchmarks: [{PHP_VERSION}]` | `486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:php_laravel-realworld` | Runs a Laravel Realworld application under k6 load at three traffic levels; PHP 7.4 and 8.1 | -| `check-big-regressions` | `registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu@sha256:b682acae509fa391ac559705b66df07cac876e4c46641d2457077972a1c0bbb8` | Post-benchmark gate: fails if `benchmarks-tracer` results contain a regression above threshold, or if any part's candidate results (or baseline results, when there is a baseline branch) are missing | +| `check-big-regressions` | `$BENCHMARKING_PLATFORM_TOOLS_IMAGE` | Post-benchmark gate: fails if `benchmarks-tracer` results contain a regression above threshold, or if any part's candidate results (or baseline results, when there is a baseline branch) are missing | | `check-slo-breaches` | (benchmarking-platform-tools template) | Post-macrobenchmark gate: evaluates SLO breaches | | `notify-slo-breaches` | (benchmarking-platform-tools template) | Posts SLO breach notifications to `#guild-dd-php` Slack channel | diff --git a/.claude/ci/index.md b/.claude/ci/index.md index 5ffdcc97d4..1ebf03fd62 100644 --- a/.claude/ci/index.md +++ b/.claude/ci/index.md @@ -411,7 +411,9 @@ Dedicated performance hardware — not easily reproducible locally. → **[benchmarks.md](benchmarks.md)** Covers: `benchmarks-tracer`, `benchmarks-appsec`, `benchmarks-profiler`, `benchmarks-pr-comment`, `benchmarks-pr-comment-appsec`, -`benchmarks-pr-comment-profiler`, `macrobenchmarks [7.4]`, `macrobenchmarks [8.1]`, +`benchmarks-pr-comment-profiler`, `benchmarks-upload-bp-api`, +`benchmarks-upload-bp-api-appsec`, `benchmarks-upload-bp-api-profiler`, +`macrobenchmarks [7.4]`, `macrobenchmarks [8.1]`, `build-benchmark-ci-images` --- diff --git a/.gitlab/benchmarks.yml b/.gitlab/benchmarks.yml index d717a1bf7d..5130f845b0 100644 --- a/.gitlab/benchmarks.yml +++ b/.gitlab/benchmarks.yml @@ -112,6 +112,9 @@ variables: # `.gitlab/benchmarks/container/` (see `.gitlab/benchmarks/README.md`). # Built here: https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-php/-/jobs/2300686392 MICROBENCHMARKS_CI_IMAGE: registry.ddbuild.io/ci/benchmarking-platform:dd-trace-php-156499868 + # Benchmarking Platform tools image for the jobs that only read reports/. + # Keep in sync with the FROM of .gitlab/benchmarks/container/Dockerfile. + BENCHMARKING_PLATFORM_TOOLS_IMAGE: registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu@sha256:c84f48353ba084394b62037c9bd8839721bd3b5c527cce142c3506ca1efaddd4 # The Dockerfile is located at: .gitlab/benchmarks/container/Dockerfile BASE_CI_IMAGE_SUFFIX: dd-trace-php-${CI_PIPELINE_ID} BASE_CI_IMAGE_CONTAINER_DIR: .gitlab/benchmarks/container @@ -320,22 +323,21 @@ benchmarks-appsec: variables: SCENARIO: "appsec" -# Posts the comparison and uploads results. allow_failure preserves the old || : -# semantics, and a separate job avoids the parallel-teardown race with the S3 -# upload. -# One reporting job per scenario: appsec and profiler benchmarks are manual, -# tracer is not, and a need on an unplayed manual job makes GitLab skip the -# dependent. +# Reporting jobs: a PR comment and a parallel Benchmarking Platform API +# upload. allow_failure preserves the old || : semantics, and separate jobs +# avoid the parallel-teardown race with the S3 upload. +# One pair per scenario: appsec and profiler benchmarks are manual, tracer is +# not, and a need on an unplayed manual job makes GitLab skip the dependent. +# Extending jobs must not set before_script: it holds the skip guard. .benchmarks-report: stage: benchmarks-report allow_failure: true when: on_success tags: ["arch:amd64"] - image: $MICROBENCHMARKS_CI_IMAGE + image: $BENCHMARKING_PLATFORM_TOOLS_IMAGE timeout: 30m - script: + before_script: - export ARTIFACTS_DIR="$(pwd)/reports" && (mkdir "${ARTIFACTS_DIR}" || :) - - git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.ddbuild.io/DataDog/".insteadOf "https://github.com/DataDog/" - | if [ -f "reports/skip-reason.txt" ] && ! ls reports/candidate*.converted.json >/dev/null 2>&1; then echo "Benchmarks were skipped (no relevant file changes) - nothing to report" @@ -344,42 +346,100 @@ benchmarks-appsec: echo "ERROR: Reports directory exists but is empty - benchmarks job had issues" exit 1 fi - - bp-runner "${CI_PROJECT_DIR}/.gitlab/benchmarks/$BP_RUNNER_PR_COMMENT_CONFIG" --debug - artifacts: - name: "reports" - when: always - paths: - - reports/ - expire_in: 3 months variables: + GIT_STRATEGY: none # See https://datadoghq.atlassian.net/wiki/spaces/APMINT/pages/7223313012/Flaky+Benchmarks+Monitoring for more details. FLAKY_BENCHMARKS_REGEX: "" + +.benchmarks-pr-comment: + extends: .benchmarks-report + variables: # Analyzer settings the PR comment's comparison output depends on. SIGNIFICANT_IMPACT_THRESHOLD: "5.0" MD_REPORT_ONLY_CHANGES: "1" + script: + # pr-commenter identifies its comment by this header. + - | + cat > /tmp/bp-runner.pr-comment.yml < /tmp/bp-runner.upload-bp-api.yml </dev/null 2>&1; then echo "Benchmarks were skipped (no relevant file changes) - regression check not needed" diff --git a/.gitlab/benchmarks/README.md b/.gitlab/benchmarks/README.md index a756185006..27b445c47a 100644 --- a/.gitlab/benchmarks/README.md +++ b/.gitlab/benchmarks/README.md @@ -23,19 +23,16 @@ This directory holds everything the microbenchmark jobs need: sysctl), clones the candidate and the baseline and runs `benchmark/runall.sh` on pinned CPUs, converts the results per framework (PHPBench, tea's Google Benchmark, Sirun), and uploads the reports to S3. -- **`bp-runner.pr-comment.yml`**: posts the comparison on the PR and uploads - the converted results to the Benchmarking Platform API (run by the separate - `benchmarks-pr-comment` job; `bp-runner.pr-comment-appsec.yml` and - `bp-runner.pr-comment-profiler.yml` are the same flow with the AppSec and - profiler comment headers, run by `benchmarks-pr-comment-appsec` and - `benchmarks-pr-comment-profiler`). - **`bp-runner.fail-on-regression.yml`**: gate config used by `check-big-regressions` to fail the pipeline on regressions above its threshold (10%). +The reporting jobs' bp-runner configs are generated inline in +`.gitlab/benchmarks.yml`, since those jobs run without a checkout. + The jobs themselves (`benchmarks-tracer`, `benchmarks-appsec`, -`benchmarks-profiler`, `benchmarks-pr-comment`, `benchmarks-pr-comment-appsec`, -`benchmarks-pr-comment-profiler`, `check-big-regressions`) are defined in +`benchmarks-profiler`, `benchmarks-pr-comment*`, `benchmarks-upload-bp-api*`, +`check-big-regressions`) are defined in [`.gitlab/benchmarks.yml`](../benchmarks.yml), which runs as a child pipeline of `package-trigger` (the stage list it validates against is generated by `.gitlab/generate-package.php`). @@ -61,15 +58,17 @@ Execution flow on each PR: also uploads the logs, tarred as `candidate.tar.gz`/`baseline.tar.gz`. 3. The config's analyze steps convert the results per framework (PHPBench, GoogleBenchmark for tea, Sirun) and the S3 teardown archives the reports; - `benchmarks-pr-comment*` jobs run their `bp-runner.pr-comment*.yml` to - push the converted results to the Benchmarking Platform API so they land on - the project's trend series. -4. `check-big-regressions` and `benchmarks-pr-comment` merge the five - tracer jobs' `reports/`. The gate fails if any part's candidate (or, when - there is a baseline branch, baseline) `.converted.json` is missing, or on + the `benchmarks-upload-bp-api*` jobs push the converted results to the + Benchmarking Platform API so they land on the project's trend series. +4. `check-big-regressions`, `benchmarks-pr-comment` and + `benchmarks-upload-bp-api` merge the five tracer jobs' `reports/`. The + gate fails if any part's candidate (or, when there is a baseline branch, + baseline) `.converted.json` is missing, or on regressions above the threshold of 10% in `bp-runner.fail-on-regression.yml`, and - `benchmarks-pr-comment*` comments the comparison on the PR. + `benchmarks-pr-comment*` comments the comparison on the PR. The reporting + jobs only read `reports/`, so they skip the checkout and run on + `BENCHMARKING_PLATFORM_TOOLS_IMAGE`. ## Binary layout processing @@ -158,7 +157,8 @@ you iterate, see Changes to the benchmark CI (this directory, `.gitlab/benchmarks.yml`) run `benchmarks-tracer` like tracer changes do. AppSec and profiler stay manual unless their sources change: play the benchmark job to exercise a CI change -there; its `benchmarks-pr-comment-*` job follows automatically. +there; its `benchmarks-pr-comment-*` and `benchmarks-upload-bp-api-*` jobs +follow automatically. ## How to mark a benchmark as known flaky @@ -213,6 +213,10 @@ or updating `sirun`). MICROBENCHMARKS_CI_IMAGE: registry.ddbuild.io/ci/benchmarking-platform:dd-trace-php- ``` + If the rebuild picked up a newer `benchmarking-platform-tools-ubuntu`, repin + `BENCHMARKING_PLATFORM_TOOLS_IMAGE` to its digest too, so the reporting jobs + read the results with the same tools that wrote them. + 5. Push the update. The microbenchmarks now run against the rebuilt image. Verify a green benchmark pipeline before merging. diff --git a/.gitlab/benchmarks/bp-runner.pr-comment-appsec.yml b/.gitlab/benchmarks/bp-runner.pr-comment-appsec.yml deleted file mode 100644 index 0a2cb9cb63..0000000000 --- a/.gitlab/benchmarks/bp-runner.pr-comment-appsec.yml +++ /dev/null @@ -1,12 +0,0 @@ -experiments: - - name: Post PR comment - steps: - - name: Post PR comment - run: post_pr_comment - header: Benchmarks [ appsec ] - -global_teardown: - - name: Upload to BP API - run: upload_to_bp_api - retries_on_failure: 3 - project: dd-trace-php diff --git a/.gitlab/benchmarks/bp-runner.pr-comment-profiler.yml b/.gitlab/benchmarks/bp-runner.pr-comment-profiler.yml deleted file mode 100644 index c525ddeaca..0000000000 --- a/.gitlab/benchmarks/bp-runner.pr-comment-profiler.yml +++ /dev/null @@ -1,12 +0,0 @@ -experiments: - - name: Post PR comment - steps: - - name: Post PR comment - run: post_pr_comment - header: Benchmarks [ profiler ] - -global_teardown: - - name: Upload to BP API - run: upload_to_bp_api - retries_on_failure: 3 - project: dd-trace-php diff --git a/.gitlab/benchmarks/bp-runner.pr-comment.yml b/.gitlab/benchmarks/bp-runner.pr-comment.yml deleted file mode 100644 index a6c3124c4c..0000000000 --- a/.gitlab/benchmarks/bp-runner.pr-comment.yml +++ /dev/null @@ -1,12 +0,0 @@ -experiments: - - name: Post PR comment - steps: - - name: Post PR comment - run: post_pr_comment - header: Benchmarks [ tracer ] - -global_teardown: - - name: Upload to BP API - run: upload_to_bp_api - retries_on_failure: 3 - project: dd-trace-php From 7453dd3bd362498efe7794e3412bc51b93e9a88c Mon Sep 17 00:00:00 2001 From: Brian Marks Date: Thu, 26 Nov 2026 10:31:08 -0500 Subject: [PATCH 2/2] ci(benchmarks): pin the container tools base by digest Pin both the container FROM and BENCHMARKING_PLATFORM_TOOLS_IMAGE to the digest the current MICROBENCHMARKS_CI_IMAGE (dd-trace-php-156499868) was built from, so the reporting jobs read results with the same tools that wrote them and a container rebuild can't silently pick up a newer tools base. The digest is carried in both places deliberately; repin them together per the container README. Also move the reporting skip guard from the .benchmarks-report before_script into a hidden .benchmarks-report-guard job referenced via !reference, so jobs extending .benchmarks-report stay free to define their own before_script, and rename the hidden templates to .benchmarks-report-pr-comment / .benchmarks-report-upload-bp-api so a future extends: cannot silently bind to the same-named concrete jobs. Split the two-jobs-per-row appsec and profiler reporting entries in .claude/ci/benchmarks.md into one row per job. --- .claude/ci/benchmarks.md | 6 ++- .gitlab/benchmarks.yml | 57 +++++++++++++------------ .gitlab/benchmarks/README.md | 10 +++-- .gitlab/benchmarks/container/Dockerfile | 4 +- 4 files changed, 42 insertions(+), 35 deletions(-) diff --git a/.claude/ci/benchmarks.md b/.claude/ci/benchmarks.md index b1e74b8f8b..32325eb5c1 100644 --- a/.claude/ci/benchmarks.md +++ b/.claude/ci/benchmarks.md @@ -15,8 +15,10 @@ | `benchmarks-profiler` | same | Runs profiler microbenchmarks | | `benchmarks-pr-comment` | `$BENCHMARKING_PLATFORM_TOOLS_IMAGE` (see `.gitlab/benchmarks.yml`) | Posts the tracer comparison as a PR comment (bp-runner config generated inline; no checkout); needs `benchmarks-tracer`; allow_failure | | `benchmarks-upload-bp-api` | same | Uploads the tracer results to the Benchmarking Platform API, in parallel with the comment; needs `benchmarks-tracer`; allow_failure | -| `benchmarks-pr-comment-appsec`, `benchmarks-upload-bp-api-appsec` | same | Same flow for AppSec, with its own comment header; needs `benchmarks-appsec` | -| `benchmarks-pr-comment-profiler`, `benchmarks-upload-bp-api-profiler` | same | Same flow for the profiler, with its own comment header; needs `benchmarks-profiler` | +| `benchmarks-pr-comment-appsec` | same | Posts the AppSec comparison as a PR comment (bp-runner config generated inline; no checkout); needs `benchmarks-appsec`; allow_failure | +| `benchmarks-upload-bp-api-appsec` | same | Uploads the AppSec results to the Benchmarking Platform API, in parallel with the comment; needs `benchmarks-appsec`; allow_failure | +| `benchmarks-pr-comment-profiler` | same | Posts the profiler comparison as a PR comment (bp-runner config generated inline; no checkout); needs `benchmarks-profiler`; allow_failure | +| `benchmarks-upload-bp-api-profiler` | same | Uploads the profiler results to the Benchmarking Platform API, in parallel with the comment; needs `benchmarks-profiler`; allow_failure | | `build-benchmark-ci-images` | (built in-repo from `.gitlab/benchmarks/container/`) | Manual job that builds the microbenchmark CI image from `.gitlab/benchmarks/container/`; described in `.gitlab/benchmarks/README.md` § How to rebuild the CI Docker image | | `build-llvm-bolt-align-image` | (built in-repo from `.gitlab/benchmarks/container/llvm-bolt-align/`) | Manual job that builds the static `llvm-bolt-align` tool image copied into the microbenchmark CI image; described in `.gitlab/benchmarks/README.md` § Rebuilding the `llvm-bolt-align` image | | `macrobenchmarks: [{PHP_VERSION}]` | `486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:php_laravel-realworld` | Runs a Laravel Realworld application under k6 load at three traffic levels; PHP 7.4 and 8.1 | diff --git a/.gitlab/benchmarks.yml b/.gitlab/benchmarks.yml index 5130f845b0..a65f7a6366 100644 --- a/.gitlab/benchmarks.yml +++ b/.gitlab/benchmarks.yml @@ -114,7 +114,7 @@ variables: MICROBENCHMARKS_CI_IMAGE: registry.ddbuild.io/ci/benchmarking-platform:dd-trace-php-156499868 # Benchmarking Platform tools image for the jobs that only read reports/. # Keep in sync with the FROM of .gitlab/benchmarks/container/Dockerfile. - BENCHMARKING_PLATFORM_TOOLS_IMAGE: registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu@sha256:c84f48353ba084394b62037c9bd8839721bd3b5c527cce142c3506ca1efaddd4 + BENCHMARKING_PLATFORM_TOOLS_IMAGE: registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu@sha256:dbdd7f39672099fca20799a44b38e472a029376c98115b449debe68fb8f38856 # The Dockerfile is located at: .gitlab/benchmarks/container/Dockerfile BASE_CI_IMAGE_SUFFIX: dd-trace-php-${CI_PIPELINE_ID} BASE_CI_IMAGE_CONTAINER_DIR: .gitlab/benchmarks/container @@ -323,12 +323,13 @@ benchmarks-appsec: variables: SCENARIO: "appsec" -# Reporting jobs: a PR comment and a parallel Benchmarking Platform API -# upload. allow_failure preserves the old || : semantics, and separate jobs -# avoid the parallel-teardown race with the S3 upload. -# One pair per scenario: appsec and profiler benchmarks are manual, tracer is -# not, and a need on an unplayed manual job makes GitLab skip the dependent. -# Extending jobs must not set before_script: it holds the skip guard. +.benchmarks-report-rules: &benchmarks-report-rules + - when: on_success + +# Reporting jobs: a PR comment plus a parallel Benchmarking Platform API +# upload. allow_failure preserves the old || : semantics. +# One pair per scenario: appsec and profiler benchmarks are manual, tracer +# is not, and a need on an unplayed manual job makes GitLab skip the dependent. .benchmarks-report: stage: benchmarks-report allow_failure: true @@ -336,7 +337,13 @@ benchmarks-appsec: tags: ["arch:amd64"] image: $BENCHMARKING_PLATFORM_TOOLS_IMAGE timeout: 30m - before_script: + variables: + GIT_STRATEGY: none + # See https://datadoghq.atlassian.net/wiki/spaces/APMINT/pages/7223313012/Flaky+Benchmarks+Monitoring for more details. + FLAKY_BENCHMARKS_REGEX: "" + +.benchmarks-report-guard: + script: - export ARTIFACTS_DIR="$(pwd)/reports" && (mkdir "${ARTIFACTS_DIR}" || :) - | if [ -f "reports/skip-reason.txt" ] && ! ls reports/candidate*.converted.json >/dev/null 2>&1; then @@ -346,18 +353,15 @@ benchmarks-appsec: echo "ERROR: Reports directory exists but is empty - benchmarks job had issues" exit 1 fi - variables: - GIT_STRATEGY: none - # See https://datadoghq.atlassian.net/wiki/spaces/APMINT/pages/7223313012/Flaky+Benchmarks+Monitoring for more details. - FLAKY_BENCHMARKS_REGEX: "" -.benchmarks-pr-comment: +.benchmarks-report-pr-comment: extends: .benchmarks-report variables: # Analyzer settings the PR comment's comparison output depends on. SIGNIFICANT_IMPACT_THRESHOLD: "5.0" MD_REPORT_ONLY_CHANGES: "1" script: + - !reference [.benchmarks-report-guard, script] # pr-commenter identifies its comment by this header. - | cat > /tmp/bp-runner.pr-comment.yml < /tmp/bp-runner.upload-bp-api.yml < ``` - If the rebuild picked up a newer `benchmarking-platform-tools-ubuntu`, repin - `BENCHMARKING_PLATFORM_TOOLS_IMAGE` to its digest too, so the reporting jobs - read the results with the same tools that wrote them. + The container builds `FROM` the digest pinned in + `BENCHMARKING_PLATFORM_TOOLS_IMAGE` (see `.gitlab/benchmarks.yml`), so a + rebuild can't silently pick up a newer tools base: to bump the tools, repin + the digest in both places together. This keeps the reporting jobs reading + the results with the same tools that wrote them. 5. Push the update. The microbenchmarks now run against the rebuilt image. Verify a green benchmark pipeline before merging. diff --git a/.gitlab/benchmarks/container/Dockerfile b/.gitlab/benchmarks/container/Dockerfile index 20df4d5585..7779d89fa4 100644 --- a/.gitlab/benchmarks/container/Dockerfile +++ b/.gitlab/benchmarks/container/Dockerfile @@ -2,7 +2,9 @@ # the build-llvm-bolt-align-image job from container/llvm-bolt-align/. FROM registry.ddbuild.io/ci/benchmarking-platform:llvm-bolt-align-156483907@sha256:800c006534c5182a29fef46d6f963398606485194b924c7d5636fd06d155d7fb AS bolt-align -FROM registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu:latest +# Pinned by digest; keep in sync with BENCHMARKING_PLATFORM_TOOLS_IMAGE in +# .gitlab/benchmarks.yml (see README § How to rebuild the CI Docker image). +FROM registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu@sha256:dbdd7f39672099fca20799a44b38e472a029376c98115b449debe68fb8f38856 ARG CI_JOB_TOKEN ARG RUST_VERSION=1.91.1