Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/workflows/bare_metal_attach.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/base_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
--threshold-max-sample-size 64 \
--threshold-upper-boundary 0.99 \
--thresholds-reset \
--err \
--error-on-alert \
--adapter json \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
bencher mock
2 changes: 1 addition & 1 deletion .github/workflows/fork_pr_benchmarks_track.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
--start-point-clone-thresholds \
--start-point-reset \
--testbed ubuntu-latest \
--err \
--error-on-alert \
--adapter json \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
--ci-number "$PR_NUMBER" \
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/pr_bare_metal_benchmarks_attach.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
repository_dispatch:
types: [bencher_run]

jobs:
attach_pr_benchmarks:
name: Post PR Benchmark Results from Bencher Bare Metal
permissions:
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: bencherdev/bencher@main
- name: Post PR Benchmark Results with Bencher
env:
JOB_UUID: ${{ github.event.client_payload.bencher.job }}
run: |
bencher run \
--project example \
--key '${{ secrets.BENCHER_API_KEY }}' \
--job "$JOB_UUID" \
--error-on-alert \
--github-actions '${{ secrets.GITHUB_TOKEN }}'
2 changes: 1 addition & 1 deletion .github/workflows/pr_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
--start-point-clone-thresholds \
--start-point-reset \
--testbed ubuntu-latest \
--err \
--error-on-alert \
--adapter json \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
bencher mock
2 changes: 1 addition & 1 deletion .github/workflows/pr_benchmarks_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
archive_pr_branch:
name: Archive closed PR branch with Bencher
# DO NOT REMOVE: For handling Fork PRs see Pull Requests from Forks
# DO NOT REMOVE: For handling Fork PRs see Pull Requests from Forks
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ The `.github` directory contains example workflows from [how to use Bencher in G
- [Run benchmarks](.github/workflows/fork_pr_benchmarks_run.yml)
- [Track benchmarks](.github/workflows/fork_pr_benchmarks_track.yml)
- [Archive branches for closed pull requests from forks](.github/workflows/fork_pr_benchmarks_closed.yml)
- Benchmark pull requests on Bare Metal
- [Post results of finished Jobs to pull requests](.github/workflows/pr_bare_metal_benchmarks_attach.yml)

These examples use the [Bencher CLI GitHub Action](https://github.com/marketplace/actions/bencher-cli).
Loading