Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Capture and upload performance suite logs
Richie McIlroy87d4525ef8ad
diff --git a/.github/workflows/performance-regressions.yml b/.github/workflows/performance-regressions.ymlindex 1d03b5a37..8e93e5e08 100644--- a/.github/workflows/performance-regressions.yml+++ b/.github/workflows/performance-regressions.yml@@ -47,12 +47,17 @@ jobs:- name: Set results pathshell: bash- run: echo "PERFORMANCE_RESULTS_PATH=performance-results-${{ matrix.runner }}.json" >> "$GITHUB_ENV"+ run: |+ echo "PERFORMANCE_RESULTS_PATH=performance-results-${{ matrix.runner }}.json" >> "$GITHUB_ENV"+ echo "PERFORMANCE_LOG_PATH=performance-suite-${{ matrix.runner }}.log" >> "$GITHUB_ENV"- name: Run performance suiteid: performance_suitecontinue-on-error: true- run: cargo run --release -p cap-test -- suite performance --recording-path performance-fixtures/reference-recording.cap --duration 8 --output "$PERFORMANCE_RESULTS_PATH" --gate+ shell: bash+ run: |+ set -o pipefail+ cargo run --release -p cap-test -- suite performance --recording-path performance-fixtures/reference-recording.cap --duration 8 --output "$PERFORMANCE_RESULTS_PATH" 2>&1 | tee "$PERFORMANCE_LOG_PATH"- name: Upload resultsif: always()@@ -61,6 +66,13 @@ jobs:name: performance-results-${{ matrix.runner }}path: ${{ github.workspace }}/${{ env.PERFORMANCE_RESULTS_PATH }}+ - name: Upload suite log+ if: always()+ uses: actions/upload-artifact@v4+ with:+ name: performance-log-${{ matrix.runner }}+ path: ${{ github.workspace }}/${{ env.PERFORMANCE_LOG_PATH }}+- name: Print resultsif: always()shell: bash@@ -72,12 +84,16 @@ jobs:fi- name: Enforce suite gate- if: always() && steps.performance_suite.outcome != 'success'+ if: always()shell: bashrun: |if [ -f "$PERFORMANCE_RESULTS_PATH" ]; thentarget/release/cap-test report "$PERFORMANCE_RESULTS_PATH"+ node -e 'const fs = require("fs"); const p = process.env.PERFORMANCE_RESULTS_PATH; const r = JSON.parse(fs.readFileSync(p, "utf8")); process.exit((r.summary.failed || r.summary.errors) ? 1 : 0);'elseecho "$PERFORMANCE_RESULTS_PATH not found"+ if [ -f "$PERFORMANCE_LOG_PATH" ]; then+ cat "$PERFORMANCE_LOG_PATH"+ fi+ exit 1fi- exit 1