From c8381d7253d2007218e529b3d8e02bc41d347444 Mon Sep 17 00:00:00 2001 From: Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com> Date: Fri, 23 Oct 2026 21:25:31 +0100 Subject: [PATCH 1/2] ci(verify): upload macOS crash reports from failed Engine verify jobs --- .github/workflows/engine-verify-os.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/engine-verify-os.yml b/.github/workflows/engine-verify-os.yml index 95da0616218..bedfc01c2d7 100644 --- a/.github/workflows/engine-verify-os.yml +++ b/.github/workflows/engine-verify-os.yml @@ -178,6 +178,13 @@ jobs: name: verify-archive-${{ inputs.platform }}-${{ github.run_attempt }} path: ${{ runner.temp }} + # A test process that crashes (SIGSEGV) leaves no Rust backtrace; + # macOS writes a crash report instead, collected below on failure. + - name: Mark crash report start + if: inputs.platform == 'macos' + shell: bash + run: touch "$RUNNER_TEMP/crash-reports-since" + - name: Prepare recorded fixtures without concurrent rendering if: contains(format(',{0},', inputs.suites), ',export,') shell: bash @@ -217,6 +224,21 @@ jobs: --junit "$CAP_VERIFY_REPORT_DIR/junit.xml" --flaky "$CAP_VERIFY_FLAKY_FILE" "$CAP_VERIFY_REPORT_DIR" >> "$GITHUB_STEP_SUMMARY" + - name: Collect macOS crash reports + if: failure() && inputs.platform == 'macos' + continue-on-error: true + shell: bash + run: | + dest="$RUNNER_TEMP/verify-report/crash-reports" + for dir in "$HOME/Library/Logs/DiagnosticReports" /Library/Logs/DiagnosticReports; do + [[ -d "$dir" ]] || continue + find "$dir" -type f \( -name '*.ips' -o -name '*.crash' \) -newer "$RUNNER_TEMP/crash-reports-since" -print0 2>/dev/null | + while IFS= read -r -d '' report; do + mkdir -p "$dest" + cp "$report" "$dest/" && echo "collected $report" || echo "could not copy $report" + done + done + - name: Upload report if: always() && steps.test.outcome != 'skipped' uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 From 05805674385873f54122d99882187b8eaf7a9ffc Mon Sep 17 00:00:00 2001 From: Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com> Date: Fri, 23 Oct 2026 22:35:48 +0100 Subject: [PATCH 2/2] ci(verify): upload crash reports when fixture prep crashes and tolerate find errors --- .github/workflows/engine-verify-os.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/engine-verify-os.yml b/.github/workflows/engine-verify-os.yml index bedfc01c2d7..a6cd1398ccd 100644 --- a/.github/workflows/engine-verify-os.yml +++ b/.github/workflows/engine-verify-os.yml @@ -225,6 +225,7 @@ jobs: "$CAP_VERIFY_REPORT_DIR" >> "$GITHUB_STEP_SUMMARY" - name: Collect macOS crash reports + id: crash-reports if: failure() && inputs.platform == 'macos' continue-on-error: true shell: bash @@ -232,15 +233,18 @@ jobs: dest="$RUNNER_TEMP/verify-report/crash-reports" for dir in "$HOME/Library/Logs/DiagnosticReports" /Library/Logs/DiagnosticReports; do [[ -d "$dir" ]] || continue - find "$dir" -type f \( -name '*.ips' -o -name '*.crash' \) -newer "$RUNNER_TEMP/crash-reports-since" -print0 2>/dev/null | + { find "$dir" -type f \( -name '*.ips' -o -name '*.crash' \) -newer "$RUNNER_TEMP/crash-reports-since" -print0 2>/dev/null || true; } | while IFS= read -r -d '' report; do mkdir -p "$dest" cp "$report" "$dest/" && echo "collected $report" || echo "could not copy $report" done done + if [[ -n "$(ls -A "$dest" 2>/dev/null)" ]]; then + echo "collected=true" >> "$GITHUB_OUTPUT" + fi - name: Upload report - if: always() && steps.test.outcome != 'skipped' + if: always() && (steps.test.outcome != 'skipped' || steps.crash-reports.outputs.collected == 'true') uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: verify-report-${{ inputs.platform }}-${{ inputs.tier }}-${{ matrix.shard }}