CRAP: newly scored platform-apple simulator boot retry and macOS helper file listing
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- mobile-dev, testing-qa
Research direction
Start with packages/platform-apple/src/core/simulator.ts and its simulator boot entry point; add coverage for shouldRetry and classifyReason through that public path. Then inspect packages/platform-apple/src/os/macos/helper.ts and test listMacOsHelperSourceFiles through its owning module. Run pnpm check:coverage-crap --all on a branch containing #3448 and finish with pnpm check:affected --run; #3323 also edits the helper file.
Written by the indexing model from the issue text.
Description
Purpose
These findings were exposed by #3448, which patches the coverage tooling (part of #3425) so the six files that used to be unscored now get scores. Re-scoring them (full pnpm test:coverage on #3448's head, then pnpm check:coverage-crap --all) adds three functions at or above CRAP 30.
Findings (head 18d22c745 of #3448)
| Function | CRAP | CC | Coverage |
|---|---|---|---|
packages/platform-apple/src/core/simulator.ts:142 shouldRetry (boot retry policy) |
72 | 8 | 0% |
packages/platform-apple/src/core/simulator.ts:156 classifyReason (boot deadline classifier) |
56 | 7 | 0% |
packages/platform-apple/src/os/macos/helper.ts:190 files (listMacOsHelperSourceFiles entry mapper) |
42 | 6 | 0% |
Owned files
packages/platform-apple/src/core/simulator.tspackages/platform-apple/src/os/macos/helper.ts
Notes
shouldRetry,classifyReasonand thecatchblock each rebuild the sameclassifyBootFailureinput frombootStatusResult?.stdout ?? bootResult?.stdout. One local classifier closure would remove most of that branching, so covering the retry and deadline paths through the simulator boot entry point may need only a small production change.- Open #3323 also edits
os/macos/helper.ts. Add tests only for that file, or rebase onto #3323 first. - These scores depend on #3448's patches. Without them, the two files stay unscored on
main, so measure on a branch that includes #3448 (or after it merges).
Completion
- None of the three functions is listed by
pnpm check:coverage-crap --allon the PR head (with #3448's patches). - Tests go through the owning module's public entry point. No new production exports for tests and no test-only DI.
pnpm check:affected --runpasses on the pushed head.
Part of #3414.
- Dominant language
- TypeScript
- Stars
- 5k
- Forks
- 334
- Avg merge
- 11h 48m
- Merged PRs (30d)
- 605
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstack/agent-device
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
callstack/agent-device#3407 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
callstack/agent-device#3353 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
callstack/agent-device#1869 ·
Maintainers usually reply within 1 day
-
iOS: fill rejects the right text as `TEXT_ENTRY_MISMATCH` when the focused field moves while typing (since 0.21.25)Possibly taken @Lanchez claimed this 1 day ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
callstack/agent-device#3595 ·
Maintainers usually reply within 1 day
-
`fold` always fails on Xcode 27.1 RC: its pose check calls `devicectl device motion hinge-angle`, which this devicectl doesn't havePossibly taken @thymikee claimed this 1 day ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
callstack/agent-device#3581 ·
Maintainers usually reply within 1 day
All issues in callstack/agent-device
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
high priority
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CI-CMG/deep-sea-corals-exb#84 · 1 comment ·
-
Create/import wallet form shows raw "password must be at least 1 characters" instead of the translated messagePossibly taken @CapThunder19 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
joinmarket-webui/jam#1538 ·
Maintainers usually reply within 1 day
-
t0ggles
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nolimits4web/swiper#8240 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day