File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,19 @@ function main {
8686 echo " SHOULD_UPLOAD_BENCHMARKS=1" >> $GITHUB_ENV
8787 fi
8888
89+ # Determine the branch label for benchmark publishing.
90+ # Only merge-queue runs targeting "next" publish under "next" since those represent code about to land.
91+ # Everything else (ci-full PRs, merge queues for other branches) publishes under "prs"
92+ # to avoid polluting the main benchmark graphs.
93+ local bench_branch
94+ if [[ (" $ci_mode " == " merge-queue" || " $ci_mode " == " merge-queue-heavy" ) && " $target_branch " == " next" ]]; then
95+ bench_branch=" $target_branch "
96+ else
97+ bench_branch=" prs"
98+ fi
99+ echo " BENCH_BRANCH=$bench_branch " >> $GITHUB_ENV
100+ echo " Bench branch: $bench_branch "
101+
89102 # Handle no-cache label
90103 if has_label " no-cache" ; then
91104 echo " NO_CACHE=1" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ jobs:
117117 uses : benchmark-action/github-action-benchmark@4de1bed97a47495fc4c5404952da0499e31f5c29
118118 with : &ci_benchmark_args
119119 name : Aztec Benchmarks
120- benchmark-data-dir-path : " bench/${{ env.TARGET_BRANCH }}"
120+ benchmark-data-dir-path : " bench/${{ env.BENCH_BRANCH }}"
121121 tool : " customSmallerIsBetter"
122122 output-file-path : ./bench-out/bench.json
123123 gh-repository : github.com/AztecProtocol/benchmark-page-data
You can’t perform that action at this time.
0 commit comments