Skip to content

test(packaged-startup): Print crash-report evidence on a signal exit (#2714) - #2718

Merged
zackees merged 2 commits into
masterfrom
test/2714-packaged-startup-crash-report
Oct 28, 2026
Merged

zackees merged 2 commits into
masterfrom
test/2714-packaged-startup-crash-report

Conversation

@zackees

@zackees zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member

What

test/packaged-startup.py only ever printed a stack on the 30 s timeout path. A frontend that died from a signal reported packaged frontend failed during shutdown: -11 with no thread, no exception type and no frame — the .ips was an artifact download away — and the hang variant has no .ips at all, so nothing said so.

  • summarize_diagnostic_report(text, frames=10) returns exception type:, crashed thread: <index> <name> and frame N: <image> <symbol> + <offset> for the faulting thread only. A report that does not parse returns no frames parsed: ... instead of raising.
  • report_crash_reports(directories, since, frames=10) prints the newest .ips/.crash written after the launch inside one shutdown evidence: group, and prints no crash report was written after the launch when there is none. Returns whether it printed one.
  • close_frontend(proc, platform, since) takes the launch time. The non-zero-exit path prints shutdown evidence: frontend exited with signal 11 (SIGSEGV) plus the report before raising; the timeout path uses the same group shape and then reports the absent report. Both stay fatal.
  • main() records the launch time before Popen and passes it, so a stale report from an earlier run is never offered as this run's evidence.

RED

0d7207c6b — ci/test_packaged_startup.py::CrashReportEvidenceTest, 8 cases, all AttributeError: module 'packaged_startup' has no attribute 'summarize_diagnostic_report' / 'report_crash_reports' (functions do not exist on master). Run:

uv run python -m unittest ci/test_packaged_startup.py
Ran 35 tests ... FAILED (errors=8)

GREEN

efa5c6b8e — the harness change. Same command: Ran 35 tests ... OK. ./lint: == lane lint: ok (45.2s).

The tests need no real crash: the fixture is a two-document .ips (header line plus body) written into a temporary directory, and the missing, empty, older-than-launch and unparsable-directory cases assert a notice with no exception. They run on the Linux lanes; no macOS runner is required for the summary itself.

Tiers

Test/CI tooling only — no libobs, Rust or product behavior changes, so the Tier 1–4 ladder does not apply and there is no docs/features.md line (CI, tests and refactors get none). The macOS behaviour this observes is upstream of the harness (DMG startup lane); when the next signal exit happens the step itself will carry the frames.

Refs #2714

…it (#2714, RED)

The harness printed a stack only on the 30 s shutdown timeout, so a
frontend that died from a signal reported just `-11`, and the hang
variant produced no report at all. Pins the summary the harness must
print: exception type, crashed thread and that thread's first ten
frames from the newest .ips written after the launch.
…2714, GREEN)

A frontend that died from a signal now prints the newest .ips written
after its launch - exception type, crashed thread and that thread's
first ten frames - plus the signal name, before the failure is raised.
Both evidence branches use one `shutdown evidence:` group shape, and a
hang (no .ips at all) says so instead of leaving it implied. The
summariser is stdlib-only, so the new tests need no real crash and run
on the Linux lanes.

Refs #2714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant