Repository navigation
Conversation
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. |
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 4 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed 🎯 Code Coverage (details) Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 7453dd3 | Docs | View more details | Give us feedback! |
There was a problem hiding this comment.
More details
Scenario dependencies, comment headers, and upload settings remain consistent across the split reporting jobs. Runtime execution on the pinned reporting image remains unverified.
🤖 Bits Code Review · Commit 7795e6c
Benchmarks [ tracer ]Benchmark execution time: 2026-11-26 17:43:19 Comparing candidate commit 7453dd3 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 215 metrics, 2 unstable metrics.
|
7795e6c to
a4259c6
Compare
There was a problem hiding this comment.
More details
The split reporting jobs preserve the existing comment headers, analyzer settings, artifact dependencies, and upload retries. The static reviewer found no actionable regression in the supplied revision.
🤖 Bits Code Review · Commit a4259c6
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.
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.
a4259c6 to
7453dd3
Compare
There was a problem hiding this comment.
More details
The generated reporting configurations preserve scenario-specific comment headers and consume the same benchmark artifacts after checkout is disabled. Full GitLab execution remains unverified.
🤖 Bits Code Review · Commit 7453dd3
Description
Speeds up the benchmark reporting jobs (
benchmarks-pr-comment*), which only readreports/but paid for a 3.2 GB image pull and a full checkout.Changes to
.gitlab/benchmarks.yml:benchmarking-platform-tools-ubuntuimage (1.9 GB) through a newBENCHMARKING_PLATFORM_TOOLS_IMAGEvariable;check-big-regressionsreads the same variable instead of its own hardcoded digest. The digest moves to the base the currentMICROBENCHMARKS_CI_IMAGEwas built from; see the container note below.GIT_STRATEGY: none. Their bp-runner configs are generated inline, sobp-runner.pr-comment*.ymlare deleted.global_teardowninto newbenchmarks-upload-bp-api,-appsecand-profilerjobs that run in parallel with the comment jobs. bp-runner rejects a config with no experiments, so the upload config has a no-op one.before_scriptinto a hidden.benchmarks-report-guardjob pulled in with!reference, so extending jobs stay free to define their ownbefore_script. The hidden templates are renamed.benchmarks-report-pr-comment/.benchmarks-report-upload-bp-apiso a futureextends:can't silently bind to the same-named concrete jobs.README and
.claude/ci/docs are updated to match.Behavior change: the upload no longer shares a job with the comment. bp-runner already ran its
global_teardownupload when the comment step failed, but a failure before bp-runner started (pod, image pull, artifact download) skipped both. Now each job can fail on its own, and the upload runs in parallel instead of after the comment. The split also removes the parallel-teardown race between the BP API upload and the S3 upload that the combined config had.Timings: over 17 historical full runs, the comment job took 313s p50 in total (117s pod start, 31s git). In the experiment pipeline, the comment job's pod start was 68–83s and git ~1s, and the upload job took 98–133s. For a branch with a PR I expect the comment job at ~105–120s (the analyzer and GitHub post add ~32s at p50) and the upload job at ~220s (6 files instead of 3; on #4562's five-shard matrix, 10), in parallel. Merge-gate time doesn't change: the report jobs finish ~10 min before system tests.
What was and wasn't verified: the experiment branch had no PR, so
post_pr_commentexited at "PR doesn't exist".benchmark_analyzer, pr-commenter and the 3 baseline uploads did not run in CI there. To cover the comment, I ran the comment flow locally on the pinned image against the reports of an earlier PR benchmark job (with baseline and candidate results). The comparison markdown was byte-identical to what CI had produced, except for the timestamp line, and pr-commenter got the same arguments, including theBenchmarks [ tracer ]header. The upload job uploaded all 3 candidate files successfully. This PR's own pipeline runs the full benchmarks, since it touches.gitlab/benchmarks.yml, so it covers the paths the experiment skipped:benchmarks-pr-commenttook 98s (pod start ~64s, git skipped, analyzer ~25s).benchmark_analyzerwrote the comparison and pr-commenter posted theBenchmarks [ tracer ]comment on this PR.benchmarks-upload-bp-apitook 217s, in parallel. All 6 files (3 baseline, 3 candidate) returned{"status":"success"}.check-big-regressionspassed on the shared image variable.For comparison,
benchmarks-pr-commenton the old flow took 311s in #4559's pipeline, which ran at the same time.The container Dockerfile now builds
FROMthe digest pinned inBENCHMARKING_PLATFORM_TOOLS_IMAGE. Both are pinned tosha256:dbdd7f39672099fca20799a44b38e472a029376c98115b449debe68fb8f38856, the tools base the currentMICROBENCHMARKS_CI_IMAGE(dd-trace-php-156499868) was built from, so a rebuild can't silently pick up a newer tools base and the reporting jobs read results with the same tools that wrote them. To bump the tools, repin both places together, as the README's rebuild steps say.Rebased onto master after #4562 (which also edits
.gitlab/benchmarks.ymland splits the phpbench parts into shards) merged; the README's execution flow reflects its five-shard matrix.Reviewer checklist