Repository navigation
ci(verify): upload macOS crash reports from failed Engine verify jobs #3019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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,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 on lines
+227
to
+229
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If Prompt To Fix With AIThis 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.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 0580567. The collector step now has |
||
| 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') | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Crash report may be written after the one-shot find runsMedium Severity · Investigate The collection step at .github/workflows/engine-verify-os.yml lines 227-245 snapshots DiagnosticReports with a single |
||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: verify-report-${{ inputs.platform }}-${{ inputs.tier }}-${{ matrix.shard }} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.