Skip to content

Commit bef660a

Browse files
authored
feat: dont publish ci-full bench on main page (#20696)
Everything else goes to a 'prs' page.
2 parents 151fbfa + 4650d6a commit bef660a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/ci3_labels_to_env.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/ci3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)