Skip to content

Add a workflow that attaches to Bencher bare metal jobs - #9

Merged
epompeii merged 1 commit into
mainfrom
u/ep/bare-metal-attach
Sep 26, 2026
Merged

epompeii merged 1 commit into
mainfrom
u/ep/bare-metal-attach

Conversation

@epompeii

Copy link
Copy Markdown
Member

Adds workflow 2 of "Pull Requests on Bare Metal": on a bencher_run repository_dispatch, it attaches to the finished Job with bencher run --job, completes the GitHub Check the detached run started, and posts the pull request comment.

GitHub only runs repository_dispatch workflows from the default branch, so this file has to be on main before a detached run can be tested end to end. It does nothing until a bencher_run dispatch arrives.

Until job callbacks ship, it differs from the docs' example in three ways: it installs the CLI from the job callbacks branch (cached by commit), it talks to the dev API, and it authenticates with the dev token. Once callbacks are released, it moves to Bencher Cloud and bencherdev/bencher@main.

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

ProjectExample
Branchu/ep/bare-metal-attach
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
4.32 ns
(-15.74%)Baseline: 5.13 ns
11.63 ns
(37.17%)
bencher::mock_1📈 view plot
🚷 view threshold
13.16 ns
(-16.41%)Baseline: 15.74 ns
22.31 ns
(58.98%)
bencher::mock_2📈 view plot
🚷 view threshold
24.26 ns
(-0.68%)Baseline: 24.43 ns
31.34 ns
(77.41%)
bencher::mock_3📈 view plot
🚷 view threshold
32.71 ns
(-5.50%)Baseline: 34.62 ns
42.30 ns
(77.35%)
bencher::mock_4📈 view plot
🚷 view threshold
41.34 ns
(-7.07%)Baseline: 44.48 ns
51.06 ns
(80.96%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

ProjectExample
Branchfork/u/ep/bare-metal-attach
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
(-80.52%)Baseline: 5.13 ns
11.63 ns
(8.60%)
🐰 View full continuous benchmarking report in Bencher

When a detached bare metal run finishes, its callback sends a
`bencher_run` repository_dispatch. This workflow attaches to that Job
with `bencher run --job`, then completes the GitHub Check the detached
run started and posts the pull request comment.

A first step prints the type of each field in the dispatch payload, and
never a value, so a run shows what shape the callback's body arrived in.

GitHub only runs repository_dispatch workflows from the default branch,
so this file has to live on main. Until job callbacks ship, it installs
the CLI from the job callbacks branch, cached by commit, and talks to
the dev API.
@epompeii
epompeii force-pushed the u/ep/bare-metal-attach branch from aa11b31 to a1b211d Compare September 26, 2026 20:06
@epompeii
epompeii marked this pull request as ready for review September 26, 2026 20:06
@epompeii
epompeii merged commit faada1d into main Sep 26, 2026
3 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