Repository navigation
Conversation
…to the repo
Copy container/, steps/ and the bp-runner gate configs verbatim from the
benchmarking-platform `dd-trace-php` branch into `.gitlab/benchmarks/`
(only change: the copied scripts' `/platform/steps/...` references now
resolve in-repo), and stop cloning the platform in the microbenchmark
jobs:
- `benchmarks-{tracer,appsec,profiler}` and `check-big-regressions` call
the steps from `.gitlab/benchmarks/steps/` and point bp-runner at the
local configs.
- The micro image is built in-repo from `.gitlab/benchmarks/container/`
via the `build-ci-images.template.yml` include (manual
`build-benchmark-ci-images` job, new `ci-image` stage in the generated
child-pipeline stage list); the micro image variable is renamed
`BASE_CI_IMAGE` -> `MICROBENCHMARKS_CI_IMAGE` so it doesn't collide
with the template's `BASE_CI_IMAGE`. The old BP-built tag stays pinned
for this PR's pipeline and is repinned to the in-repo-built tag on top.
- New `.gitlab/benchmarks/README.md` documents add/update/flaky/local
run; replaces `.gitlab/BENCHMARKS.md` (nothing referenced it).
The macro (`php/laravel-realworld`) and DSM (`php/data-streams-monitoring`)
suites still clone benchmarking-platform and are unchanged.
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 58 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)❄️ No new flaky tests detected 🎯 Code Coverage (details) Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 596c31b | Docs | View more details | Give us feedback! |
Benchmarks [ tracer ]Benchmark execution time: 2026-11-13 15:21:15 Comparing candidate commit 596c31b in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 221 metrics, 1 unstable metrics.
|
|
Superseded by #4506: that PR carries the migration and the bp-runner conversion in one signed commit on master, verified end to end (evaluator 7/7, parity with the script-driven run). |
Why
Currently, microbenchmarks are split across multiple repositories, with Docker images living in benchmarking-platform; and benchmarking code/scripts in both benchmarking-platform and dd-trace-*.
This creates friction and complicates maintenance for LP teams, product teams, and the perf team.
Here's the dd-trace-php branch on the benchmarking-platform repo.
APMSP-4182 All microbenchmarks are migrated directly to dd-trace-* repositories
What
Simplify the microbenchmarking setup by moving all code to this repo, along with documentation on how to best use and maintain the setup.
(AI-generated):
.gitlab/benchmarks/container/— the CI image Dockerfile, copied verbatim from the BPdd-trace-phpbranch..gitlab/benchmarks/steps/— the 8 run/analyze/upload/comment scripts, copied verbatim. Only change: internal/platform/steps/...references are rewritten to$(dirname "$0")/...so the scripts find each other in-repo (the scriptscdaround, so plain relative paths don't work)..gitlab/benchmarks/bp-runner.yml,bp-runner.fail-on-regression.yml— the experiment and gate configs, verbatim except the two/platform/steps/references, now repo-root-relative..gitlab/benchmarks.yml— the micro jobs no longer clone benchmarking-platform: they put.gitlab/benchmarks/steps/onPATHand call the steps by name, and pointbp-runnerat the local configs. Thecheck-big-regressionsclone (and itsgit insteadOfrewrite that only existed to serve the clone) is gone.build-ci-images.template.ymlis included,BASE_CI_IMAGE_SUFFIX=dd-trace-php-${CI_PIPELINE_ID}andBASE_CI_IMAGE_CONTAINER_DIR=.gitlab/benchmarks/containerare set, and the manualbuild-benchmark-ci-imagesjob runs in thebenchmarksstage. The micro image variable is renamedBASE_CI_IMAGE→MICROBENCHMARKS_CI_IMAGEso it can't collide with the template's ownBASE_CI_IMAGEglobal (dd-trace-js does the same).MICROBENCHMARKS_CI_IMAGEis pinned to the in-repo-built tagdd-trace-php-152770667(see Testing)..gitlab/benchmarks/README.mddocuments how to add/update a benchmark, mark one flaky, rebuild the image and run the suite locally; it replaces.gitlab/BENCHMARKS.md(nothing referenced the old file)..claude/ci/benchmarks.mdstatements about the clone-based layout are updated.php/laravel-realworldmacro suite and thephp/data-streams-monitoringDSM suite still clone benchmarking-platform.Testing
dd-trace-php-152770667.(AI-generated):
benchmark_analyzeralias deprecation). All four phpbench runs reportFailures: 0, Errors: 0.check-big-regressions: "ALL GOOD! No big regressions are detected (larger than 10.00%)!". The PR comment step posted without error.grep -rnE 'git clone.*benchmarking-platform(\.git)?( |$)' .gitlab/returns only the macro (php/laravel-realworld) and DSM (php/data-streams-monitoring) clones, both unchanged from master.bash -npass on the changed files; the copied step scripts are executable (100755).