Skip to content

Commit

Permalink
Update benchmark.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral authored Apr 8, 2024
1 parent 6ca1cc1 commit af9c78c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,16 @@ jobs:

- name: Track base benchmarks
run: |
git rev-list ${{ github.head_ref }}.. --count
bencher run \
--if-branch '${{ github.head_ref }}_${{ github.event.pull_request.base.sha }}' \
--if-branch '${{ github.head_ref }}_{${{ github.event.pull_request.base.sha }}:0:7}' \
--else-branch \
--token "${{ secrets.BENCHER_API_TOKEN }}" \
--file "$BASE_BENCHMARK_RESULTS"
- name: Create PR threshold
run: |
bencher threshold create \
--branch '${{ github.head_ref }}_${{ github.event.pull_request.base.sha }}' \
--if-branch '${{ github.head_ref }}_{${{ github.event.pull_request.base.sha }}:0:7}' \
--testbed "$BENCHER_TESTBED" \
--measure latency \
--test t \
Expand All @@ -160,7 +159,7 @@ jobs:
- name: Track PR Benchmarks
run: |
bencher run \
--branch '${{ github.head_ref }}_${{ github.event.pull_request.base.sha }}' \
--if-branch '${{ github.head_ref }}_{${{ github.event.pull_request.base.sha }}:0:7}' \
--ci-number '${{github.event.number}}' \
--token "${{ secrets.BENCHER_API_TOKEN }}" \
--github-actions "${{ secrets.GITHUB_TOKEN }}" \
Expand Down

0 comments on commit af9c78c

Please sign in to comment.