Skip to content

[eas-cli] Add simulator:crashes - #4547

Open
gwdp wants to merge 14 commits into
gwdp/simulator-network-requests-commandfrom
gwdp/simulator-crashes-command
Open

gwdp wants to merge 14 commits into
gwdp/simulator-network-requests-commandfrom
gwdp/simulator-crashes-command

Conversation

@gwdp

@gwdp gwdp commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Why

Inspect iOS simulator crash reports from the CLI.

How

eas simulator:crashes lists live crashes with optional timestamps and JSON. Use --report-id <id> to see the latest occurrence, including its report and app log tail when available. After the session stops, --artifact <index> --output crash.ips downloads one native report. If the live watcher fails and has no reports, the command exits with status 1. Stacked on #4546.

Test Plan

Codex verified the crash list and report in a hosted iOS session and downloaded two distinct SIGABRT reports by index from a stopped production session. Codex verified the built help and repeated the first download at df1821a5. The Devin fixes passed 1,054 Simulator and JSON tests, type checking, and lint.

Command output
$ eas sim:crashes --id 01a1fae9-9dcb-75a2-b960-c789a6385f62 --artifact 1 --output ./crash.ips --non-interactive
✔ Downloading session artifact
Saved Crash report 1: E2EProbe (404F2659) to ./crash.ips.

Live output · Stopped output before crash artifact support was deployed

Authorship and LLM use

Gabe directed the work and reviewed the command before the help label change. Claude implemented the command. Codex added stopped-session downloads, incorporated review feedback, and verified the rebased CLI.

— Codex

@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from 83e48e0 to 5f4761b Compare October 6, 2026 06:03
@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.01%. Comparing base (0614b48) to head (63d9884).

Additional details and impacted files
@@                             Coverage Diff                             @@
##           gwdp/simulator-network-requests-command    #4547      +/-   ##
===========================================================================
+ Coverage                                    77.98%   78.01%   +0.04%     
===========================================================================
  Files                                         1148     1149       +1     
  Lines                                        58872    58965      +93     
  Branches                                     13094    13126      +32     
===========================================================================
+ Hits                                         45904    45997      +93     
  Misses                                       12848    12848              
  Partials                                       120      120              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from 5f4761b to f2b569e Compare October 8, 2026 05:23
@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from f2b569e to d3c0148 Compare October 8, 2026 05:35
@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from d3c0148 to a776939 Compare October 8, 2026 05:44
@gwdp

This comment has been minimized.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

devin-ai-integration[bot]

This comment was marked as outdated.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from 2e1a98e to 1daa053 Compare October 9, 2026 07:54
@gwdp

This comment has been minimized.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

devin-ai-integration[bot]

This comment was marked as resolved.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

@gwdp

This comment has been minimized.

@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from f3165d7 to e9cc46c Compare November 20, 2026 21:50
@gwdp
gwdp added this pull request to stack #4639 November 20, 2026 21:51
@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from e9cc46c to baff8bd Compare November 27, 2026 18:48
@gwdp

gwdp commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Codex added stopped-session IPS downloads and verified two native reports from a stopped production session. The command rejects live Android sessions and invalid dot-segment report IDs. Its help matches #4869.

In 63d9884d8, crash JSON keeps explicit nulls. An unavailable watcher exits 1 when it has no reports and still lists retained reports when available. The IPS test sorts directory entries before comparing them. 1,054 local tests, type checking, and lint passed.

— Codex

@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from baff8bd to 589b2aa Compare November 27, 2026 19:09
gwdp and others added 13 commits November 27, 2026 12:34
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Enable JSON output before parsing flags, and rewrite the missing report
error and warning to say what failed, why, and what to do next.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Resolve the session ID in the command, pass the crash report 404 message to the shared
helper, and skip the empty-list message when the watcher reports an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Point to simulator:logs when no log lines were recorded with the crash, and explain why
the list is read before a report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The worker uploads crash reports with __eas_type simulator-crash, so the plural never matched a stopped session's reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gwdp
gwdp force-pushed the gwdp/simulator-crashes-command branch from 589b2aa to df1821a Compare November 27, 2026 19:35
@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

devin-ai-integration[bot]

This comment was marked as outdated.

@github-actions

Copy link
Copy Markdown

✅ Thank you for adding a changeset!

@gwdp

This comment has been minimized.

@devin-ai-integration

This comment has been minimized.

@gwdp
gwdp marked this pull request as ready for review November 27, 2026 20:01
@gwdp
gwdp requested a review from szdziedzic November 27, 2026 20:01
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
packages/eas-cli/** @douglowder

Generated by CodeMention

Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants