← Back to Pull requests

End-to-end symbolication run against a Bugsee backend (Android and iOS native verified; iOS Dart exceptions blocked by a backend bug) #53

Closed
unknown closed this pull request without merging on Nov 24, 2026 16:40 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 15:29 UTC
Author

What

scripts/device/e2e_symbolication.dart (+ example/lib/e2e_main.dart, scripts/device/core/e2e.dart, scripts/device/symbols_logged.py): builds an obfuscated release app with a unique build string, uploads the Dart symbols (pinned symbols.py, HTTP statuses logged and required) and the native symbols (iOS dSYM via bugsee-cli; Android via the Gradle plugin), installs it on a physical device, reports Dart errors and dies of a native signal and a platform-language crash, then reads the backend back when given an org server token. Without that it ends UNVERIFIED (exit 3), never a pass. Guards and parsers are unit-tested in test/device_harness_test.dart.

Results (doc/verification.md scenario 11)

  • The two supplied app tokens are unknown to api.bugsee.com (ApplicationNotFoundError) and known to apidev.bugsee.com; all runs went to apidev. Not the default endpoint, and production was not used.

  • iPhone XS (iOS 18.7.9, build 9.1123.2012) and HONOR WOD-LX1 (build 9.1123.2016): Dart symbols POST+PUT 2xx; iOS dSYMs uploaded; 4 launches, 2 crashes each.

  • Backend read-back (2026-11-24, by hand through the Bugsee staging MCP, apidev):

  • - Android: everything symbolicated, including the Dart 3.14 stacks, the R8-mapped Java crash and the ffi crash.
    - iOS native crashes symbolicated; iOS Dart exceptions stayed raw. Root cause (reproduced with the worker's own code against staging data): two ready symbol records share the build-id UUID, both format dsym (App.framework dSYM and the Dart app.ios-arm64.symbols); the backend's batch lookup returned the dSYM and dart_symbolize echoed the raw frames. Backend fixes in review: bugsee/bugsee-appserver#280 and bugsee/bugsee-background-worker#182. Nothing is wrong in the wrapper or the upload.
  • The harness's own read-back and the new device-side checks (Android pid/logcat evidence, iOS signal 6 / exit-code rule, libapp.so guard, per-run staging, properties guard) are written from measured parsers but have never run on a device or against the backend; the first real run may need adjustments. PLAN.md, CHANGELOG and doc/verification.md state this.

  • Found: symbols.py exits 0 when its POST gets a non-2xx; devicectl env vars do not reach the app; print is not on the iOS release console.

  • Review findings (the first 26 inline comments, then a re-review round: recording scope per build, CodeRabbit's 13 follow-ups and the review of those) addressed in b863706, 0e6ef16, 6d95213, f41a230, 04ddb01, d139f12, 37dec07, 51fce2e, 3addad5, d422eae; every thread has a reply. The read-back only trusts recordings of this run's build (and of this attempt under --reuse-build), fails closed on anything it cannot read or place, and a good run at the deadline now ends NOT CONFIRMED (exit 1) rather than risk a late report. The R8 mapping record is cited only for the Java mapping upload; the native (NDK) upload is not confirmed. README and doc/exceptions.md carry a known-issue note about the iOS symbol-record collision.
  • No token is in the repo, docs or logs.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01WeiJxNbNUdWru1zs68bYV8

    Diff: 399 lines (+299 / -100) across 4 files Reviewer: krassx Review duration: 1511m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 399 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.358
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #53"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.2% (MEDIUM) · Higher = larger blast radius
    43.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.1% · Safe to merge
    17.1%