Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/engine-verify-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -217,8 +224,27 @@ 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
id: crash-reports
if: failure() && inputs.platform == 'macos'
Comment thread
capy-ai[bot] marked this conversation as resolved.
Resolved
Comment on lines +227 to +229

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Fixture crashes skip the upload

If Prepare recorded fixtures without concurrent rendering crashes, this step collects its crash report, but Upload report skips because steps.test.outcome is skipped. Reviewers still cannot download the report. Allow the upload when crash reports were collected, even if Test never ran.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/engine-verify-os.yml
Line: 227-228

Comment:
**Fixture crashes skip the upload**

If `Prepare recorded fixtures without concurrent rendering` crashes, this step collects its crash report, but `Upload report` skips because `steps.test.outcome` is `skipped`. Reviewers still cannot download the report. Allow the upload when crash reports were collected, even if `Test` never ran.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 0580567. The collector step now has id: crash-reports and writes collected=true to $GITHUB_OUTPUT when it copied at least one report. Upload report runs on always() && (steps.test.outcome != 'skipped' || steps.crash-reports.outputs.collected == 'true'), so a crash during fixture prep still uploads its crash reports even though Test was skipped.

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 || 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')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crash report may be written after the one-shot find runs

Medium Severity · Investigate

The collection step at .github/workflows/engine-verify-os.yml lines 227-245 snapshots DiagnosticReports with a single find right after the failing step: when "Prepare recorded fixtures" (line 188) crashes, Test, Guard sentinels and Summary all skip, so the find can run only seconds after the SIGSEGV while macOS's ReportCrash is still generating the .ips. If the report has not landed yet, no file is copied, collected is never set, and the new upload escape hatch at line 247 evaluates false while steps.test.outcome == 'skipped', so the upload is skipped and the report disappears with the runner — the exact fixture-prep crash this commit claims to cover. The Test-crash path is unaffected because the gate's first clause already uploads. What is unverified: the actual ReportCrash write latency on the macOS runner versus the skip-to-collect gap; verify by forcing a fixture-prep crash on the runner and checking whether the .ips exists before the find runs. Fix by polling briefly for reports newer than the marker before deciding collected.

Open in Capy

uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: verify-report-${{ inputs.platform }}-${{ inputs.tier }}-${{ matrix.shard }}
Expand Down
Loading