CRAP: newly scored platform-apple simulator boot retry and macOS helper file listing
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 52/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- mobile-dev, testing-qa
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 5.3k
- Forks
- 377
- Ø Merge
- 13 Std. 58 Min.
- Gemergte PRs (30 T.)
- 654
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus callstack/agent-device
-
iOS alert wait: the last poll can get ~30 ms and turns "no alert" into a failed readEvtl. vergeben @pcbeingused333 hat das vor 7 Tagen übernommen. Offenbug ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
callstack/agent-device#4018 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
callstack/agent-device#1869 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
callstack/agent-device#4322 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug ready-for-agent
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
callstack/agent-device#4321 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
callstack/agent-device#4318 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in callstack/agent-device
Ähnliche Issues
-
desktop v3 windows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
esengine/DeepSeek-Reasonix#15016 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
FR: Support CJK brackets, symbols and full-width markers in footnoteHeuristics (EBPAJ support)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
readest/readest#7413 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue priority: medium size: XS
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
content triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
eliasstravik/herdr-projects#788 ·