Repository navigation
Migrate microbenchmarks from benchmarking-platform into this repository - #408
Conversation
BenchmarksBenchmark execution time: 2026-11-27 14:53:51 Comparing candidate commit 5119c0a in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 8 metrics, 0 unstable metrics.
|
Move the suite in-repo: container and gate config from the BP dd-trace-cpp branch (verbatim apart from path rewrites), the CI image built in-repo via the shared build-ci-images template, and the flow run on bp-runner configs (bp-runner.yml, bp-runner.pr-comment.yml) instead of step scripts. Baseline via bp-runner auto-resolution.
1d4a9c5 to
e5d93fc
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
An S3 upload failure now propagates as a hard failure in the required benchmarks job, blocking downstream regression-check and PR-reporting jobs; the previous upload-results-to-s3.sh || : tolerated this, and the pinned bp-runner offers no per-step nonfatal setting, so the upload must be isolated (e.g., in a separate allow-failure job) to restore the original behaviour.
🤖 Bits Code Review · Commit 15893af
There was a problem hiding this comment.
The PR consolidates benchmark container builds, runner configuration, regression gating, and documentation in this repository. The latest commit adds two S3 retries, mitigating transient errors, but the earlier issue remains: exhausting retries still fails successful benchmark runs and skips regression checks and PR reporting.
🤖 Bits Code Review · Commit 3eb3a68
There was a problem hiding this comment.
Please try again by commenting @datadog review.
xlamorlette-datadog
left a comment
There was a problem hiding this comment.
Please follow Contributing documentation, notably:
- The PR description must be written manually.
- The PR description must not restate implementation details and must not contain irrelevant details.
|
Thanks, @xlamorlette-datadog! I removed the "(AI-generated)" sections of the PR. They had some implementation details I imagined would facilitate reviews, but I suppose the PR is quite understandable as is :) |
Drop the ppa:git-core repository and the apt upgrade, and drop the packages nothing uses (clang, clang-format, gdb, libc++-dev, libc++abi-dev, shellcheck, ssh). Keep wget and sed because bin/install-cmake needs them, and fetch install-cmake with a depth-1 clone of the repository. Delete the manual Google Benchmark install: the benchmark suite builds it from the benchmark/google-benchmark submodule.
The benchmark binary needs the google-benchmark and tinycc submodules, not just google-benchmark. Drop --recurse-submodules from the git clone; the later git submodule update --init --recursive already initialises them after the SHA checkout. Quote $BRANCH and $COMMIT_SHA.
The four analyzer settings variables, the rules block, and the reports artifacts block were duplicated across the benchmark jobs. Anchor them at the top of the file and reference them from each job. Values are unchanged.
Sort the directory listing bullets alphabetically and capitalize the section titles. Replace the em-dashes in the file list with colons.
There was a problem hiding this comment.
More details
The PR consolidates microbenchmark images, execution, regression gating, and documentation in this repository, with slimmer dependencies and shared CI settings. No reportable findings remain: the earlier S3 concern is withdrawn following the author’s explicit confirmation that failure after exhausted retries is intentional, rather than being fixed by this commit.
🤖 Bits Code Review · Commit f278f41
|
Thank you for the thorough review @xlamorlette-datadog! I applied fixes, rebuilt the benchmark image and ran a new benchmark based on the new image. Running successfully: https://gitlab.ddbuild.io/DataDog/apm-reliability/dd-trace-cpp/-/jobs/2303798604 |
Merge a split comment, drop a comment that repeats the code, and describe allow_failure without referring to removed code.
The three bp-runner jobs repeated the same ARTIFACTS_DIR and git insteadOf setup. Move it to a .bp-runner-prelude before_script. Drop the CI_JOB_TOKEN check, which is always true in a GitLab job.
bin/install-cmake is already executable and does not depend on the working directory, so call it by path.
The execution flow already explains what each job does, so the file list only names each config. The repin step no longer asks for the job URL, which benchmarks.yml does not keep.
"Experiment" is a bp-runner term the README never defines. Say the benchmarks job and the bp-runner.yml flow instead.
Why
The microbenchmarks are split across two repositories: the Docker image and the step scripts live on the
dd-trace-cppbranch of benchmarking-platform, cloned at CI time by every benchmark job, while the benchmark code lives here.This creates friction and complicates maintenance for LP teams, product teams, and the perf team.
Here's the dd-trace-cpp 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.
Also, use
bp-runnertemplates. Thedd-trace-cppbranch on benchmarking-platform had many Bash scripts to achieve secondary tasks (e.g., analyze results, upload results to S3).bp-runneralready has centralized templates for those, and it's easier for the perf team to maintain those scripts there.Testing
dd-trace-cpp-152931925.