Repository navigation
test(packaged-startup): Print crash-report evidence on a signal exit (#2714) - #2718
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
test/packaged-startup.pyonly ever printed a stack on the 30 s timeout path. A frontend that died from a signal reportedpackaged frontend failed during shutdown: -11with no thread, no exception type and no frame — the.ipswas an artifact download away — and the hang variant has no.ipsat all, so nothing said so.summarize_diagnostic_report(text, frames=10)returnsexception type:,crashed thread: <index> <name>andframe N: <image> <symbol> + <offset>for the faulting thread only. A report that does not parse returnsno frames parsed: ...instead of raising.report_crash_reports(directories, since, frames=10)prints the newest.ips/.crashwritten after the launch inside oneshutdown evidence:group, and printsno crash report was written after the launchwhen there is none. Returns whether it printed one.close_frontend(proc, platform, since)takes the launch time. The non-zero-exit path printsshutdown 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 beforePopenand 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, allAttributeError: module 'packaged_startup' has no attribute 'summarize_diagnostic_report' / 'report_crash_reports'(functions do not exist on master). Run: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 nodocs/features.mdline (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