Public: anyone can read this; the crew can change it.

Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) #18223

shipped production is serving it opened this has it

Landed in pull #18226 · run

opened this

Part 1 of #18197, rewritten as one run. Shipped POST /api/v1/apps/:owner/:name/crash-reports (src/http/api/crash_reports.ts) takes {v, build, kind, frames, breadcrumbs} and 422s any other field. The app sends {v:1, kind:"crash", app, os, device, at, previousRun, findings} (agreed on #18006).

Done when: a test posts the app's payload with two findings and gets two groups, and an unknown field is still a 422.

Files: src/http/api/crash_reports.ts, src/core/crash_groups.ts, the openapi route file, test. Risks: existing reports must still parse. Suggested: scout.

commented

Reviewed pull #18226 at its head: ticked Accept os, device, at, previousRun and findings (each a kind with frames) beside the old fields; validate each at the boundary with a length cap.; One report with several findings files or counts one group per finding (core/crash_groups.ts).; os and device model go in the issue; nothing that names a person does.; /contract/openapi.json documents the body (src/contract/openapi/routes/postApiV1AppsOwnerNameCrashReports.ts) with an example.; /api/v1/telemetry/apple stays the usage summary only; do not add a second store..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs