Skip to content

Commit

Permalink
Update benchmark behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tomleavy committed Nov 6, 2023
1 parent ec96258 commit 6df711f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 42 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/benchmarks_merge.yml
Expand Up @@ -3,8 +3,6 @@ on:
push:
branches:
- main
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
jobs:
benchmark:
runs-on: ubuntu-latest
Expand All @@ -26,7 +24,7 @@ jobs:
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'cargo'
tool: "cargo"
output-file-path: mls-rs/output.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/benchmarks_pr.yml
Expand Up @@ -3,14 +3,13 @@ on:
pull_request:
branches:
- main
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
jobs:
benchmark:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
contents: write
deployments: read
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -22,3 +21,13 @@ jobs:
- name: Run benchmark
working-directory: mls-rs
run: ( set -o pipefail; cargo bench --features benchmark_util --bench group_commit --bench group_receive_commit --bench group_application --bench group_serialize -- --output-format bencher | tee -a output.txt )
- name: Report benchmark issues
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "cargo"
output-file-path: mls-rs/output.txt
fail-on-alert: true
auto-push: false
github-token: ${{ secrets.GITHUB_TOKEN }}
alert-threshold: "200%"
summary-always: true
36 changes: 0 additions & 36 deletions .github/workflows/benchmarks_push.yml

This file was deleted.

0 comments on commit 6df711f

Please sign in to comment.