Skip to content

Commit df6a668

Browse files
committed
chore: upload bench artifacts on regression
1 parent 12cf4e7 commit df6a668

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/benchmarks.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
run: cargo run -p tonbo-bench-runner -- --mode component --profile ci
4848

4949
- name: Compare against baseline
50+
id: compare
51+
continue-on-error: true
5052
run: |
5153
cargo run -p tonbo-bench-runner -- compare \
5254
--current target/bench-results \
@@ -56,6 +58,7 @@ jobs:
5658
--report target/bench-results/regression-report.json
5759
5860
- name: Generate performance report
61+
if: ${{ always() }}
5962
run: |
6063
cargo run -p tonbo-bench-runner -- report \
6164
--results-dir target/bench-results \
@@ -64,6 +67,7 @@ jobs:
6467
--output-json target/bench-reports/perf-report.json
6568
6669
- name: Upload benchmark artifacts
70+
if: ${{ always() }}
6771
uses: actions/upload-artifact@v4
6872
with:
6973
name: tonbo-benchmarks
@@ -73,3 +77,7 @@ jobs:
7377
target/bench-reports/perf-report.md
7478
target/bench-reports/perf-report.json
7579
if-no-files-found: ignore
80+
81+
- name: Fail on regression
82+
if: ${{ steps.compare.outcome == 'failure' }}
83+
run: exit 1

0 commit comments

Comments
 (0)