Skip to content

Commit 3c44d4c

Browse files
committed
Add performance-suite logging and enforce gate
1 parent c2fbe52 commit 3c44d4c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/performance-regressions.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,27 @@ jobs:
4646
run: Add-Content -Path $env:GITHUB_PATH -Value "${{ github.workspace }}\\target\\ffmpeg\\bin"
4747

4848
- name: Run performance suite
49+
id: performance_suite
50+
continue-on-error: true
4951
run: cargo run --release -p cap-test -- suite performance --recording-path performance-fixtures/reference-recording.cap --duration 8 --output performance-results.json --gate
5052

5153
- name: Upload results
54+
if: always()
5255
uses: actions/upload-artifact@v4
5356
with:
5457
name: performance-results-${{ matrix.runner }}
5558
path: performance-results.json
59+
60+
- name: Print results
61+
if: always()
62+
shell: bash
63+
run: |
64+
if [ -f performance-results.json ]; then
65+
cat performance-results.json
66+
else
67+
echo "performance-results.json not found"
68+
fi
69+
70+
- name: Enforce suite gate
71+
if: always() && steps.performance_suite.outcome != 'success'
72+
run: exit 1

0 commit comments

Comments
 (0)