fix(telemetry): classify remaining expected failures in Sentry

Aperta
#50 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
observability

Direzione di ricerca

Start with docs/telemetry.md and tests/telemetry.test.ts to see how expectedOutcome is defined and asserted, then audit each named Sentry group against the code that emits it, e.g. src/server/baguette-runtime.ts:77, src/ui/simulator-panel.ts:868, and the serve-emu/UI discovery paths. Check the 5 s simctl launchctl list deadline before filtering device-apps timeouts. Done means every listed failure has a classification, metric, or sample decision and the telemetry docs and tests match.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Commit 44f1b66 added expectedOutcome, but these user-environment and host-lifecycle failures are still not classified, so they keep being reported as errors. Each one should map to an expected outcome, be counted as a metric, or be sampled.

Toolchain missing (unsupported_platform or a new toolchain_missing)

  • Baguette Swift runtime libraries (src/server/baguette-runtime.ts:77): 3T, 2V
  • spawn /usr/bin/xcrun ENOENT: 9S, likely also 8Q (ios.devices.discovery, 69 users)
  • devicectl "requires Xcode 27": 4E, 21

Device-apps discovery deadlines

  • termination === "deadline" is deliberately left unclassified: 2N (ios_simulator_apps, 108 users), 3W, 61, 4V, 3C
  • Before filtering, check whether the 5 s simctl launchctl list limit is too tight. Consider raising it to about 15 s.
  • The same applies to UI discovery timeouts: UI-P

Physical iOS connection state (device_unavailable)

  • ios_physical_* causes connection_failed, connection_timeout, service_open_failed, service_open_timeout, query_timeout: 4B, 2W, 43
  • "iPhone no longer connected": 7P
  • "Connect the paired iPhone": 22
  • "adapter closed": 7V

Other server errors

  • Processes killed by signal (process_signalled → cancelled): AD, AC
  • adb timeouts and offline devices in serve-emu (device_unavailable): 7
  • ServeEmu.device: 1Q
  • Screenshot HTTP 400 (device_unavailable): 2T
  • Display FPS requires Android 12 (unsupported_platform): 9Y; FPS monitor already exists (invalid_input): 9F
  • "no accessibility data": 39, R. Also route plugin.ts:321 through describeUi so it gets the existing restart recovery.
  • tvOS or no-bezel simulators, definition.json 404 (unsupported_platform, fall back to no bezel): 29, 8X
  • Generic TimeoutError on tool deadlines (count as a metric, keep sampled): 2X, 36, X
  • app_flow "No package.json found" (invalid_input): A2

UI / host lifecycle

  • host_unavailable / session_closed outcomes:
    • UI-15, "app-server process is not available"
    • UI-12, "Transport closed"
    • UI-2X, "MCP client is shut down"
    • UI-2T, "composer unavailable"
    • UI-1F, "MCP app identity changed"
  • Best-effort cleanup calls that time out (*_close, *_reset, mobile_check_plugin_update, mobile_logs_close) should be counted as metrics, not captured as exceptions:
  • Small fixes while you're in there:
    • Guard setPointerCapture (src/ui/simulator-panel.ts:868, UI-2W)
    • Handle EPIPE on writes to a closed helper in resources.read (SERVER-A4)

Update docs/telemetry.md and tests/telemetry.test.ts to match.

Lingua principale
C++
Stelle
243
Fork
21
Merge medio
15h 6m
PR unite (30g)
57

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstackincubator/codex-mobile-dev-plugin

Tutte le issue di callstackincubator/codex-mobile-dev-plugin

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.