Skip to content

Pass the PR head hash in the same-repo PR workflows - #16

Merged
epompeii merged 1 commit into
mainfrom
u/ep/pr-head-hash
Oct 17, 2026
Merged

epompeii merged 1 commit into
mainfrom
u/ep/pr-head-hash

Conversation

@epompeii

@epompeii epompeii commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

On a pull_request event, actions/checkout checks out GitHub's synthetic merge commit (refs/pull/N/merge), so without --hash each report records a merge-commit hash that never appears in the pull request.

pr_benchmarks.yml and pr_bare_metal_benchmarks.yml now pass --hash '${{ github.event.pull_request.head.sha }}', matching the GitHub Actions how-to (bencherdev/bencher#1263). The fork track workflow already passes --hash "$PR_HEAD_SHA".

On a pull_request event, actions/checkout checks out the synthetic merge
commit, so without --hash each report records a commit that never appears
in the pull request. Matches the GitHub Actions how-to.
@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

ProjectExample
Branchu/ep/pr-head-hash
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
bencher::mock_0📈 view plot
🚷 view threshold
7.82 ns
(+61.25%)Baseline: 4.85 ns
11.27 ns
(69.39%)
bencher::mock_1📈 view plot
🚷 view threshold
10.01 ns
(-35.72%)Baseline: 15.57 ns
22.28 ns
(44.92%)
bencher::mock_2📈 view plot
🚷 view threshold
21.89 ns
(-10.28%)Baseline: 24.40 ns
30.99 ns
(70.64%)
bencher::mock_3📈 view plot
🚷 view threshold
36.75 ns
(+6.05%)Baseline: 34.65 ns
42.13 ns
(87.22%)
bencher::mock_4📈 view plot
🚷 view threshold
47.12 ns
(+6.47%)Baseline: 44.26 ns
50.89 ns
(92.60%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

ProjectExample
Branchfork/u/ep/pr-head-hash
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
bencher::mock_0📈 view plot
🚷 view threshold
1.00 ns
(-79.39%)Baseline: 4.85 ns
11.27 ns
(8.87%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

ProjectExample
Branchu/ep/pr-head-hash
TestbedIntel v1

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
bencher::mock_0📈 view plot
⚠️ NO THRESHOLD
9.36 ns
bencher::mock_1📈 view plot
⚠️ NO THRESHOLD
14.31 ns
bencher::mock_2📈 view plot
⚠️ NO THRESHOLD
23.76 ns
bencher::mock_3📈 view plot
⚠️ NO THRESHOLD
39.04 ns
bencher::mock_4📈 view plot
⚠️ NO THRESHOLD
46.40 ns
🐰 View full continuous benchmarking report in Bencher

@epompeii
epompeii marked this pull request as ready for review October 17, 2026 06:25
@epompeii
epompeii merged commit cb6d3c4 into main Oct 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant