iOS: a clone whose mark or swap fails is deleted once, and a delete that times out or fails is dropped silently

Offen
#1,802 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
42/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
ios, typescript
Bereich
devtools

Rechercherichtung

The failing call is this.#simctl.invoke(["delete", udid], COMMAND_TIMEOUT_MS).catch(() => undefined) in src/drivers/ios/seeds.ts around line 249, in the provision path after a clone succeeds. Read how invoke reports timeouts and non-zero exits, and compare with deleteLateSimulator as the logging model to copy. Done when a failed or timed-out delete logs the UDID and the outcome, and a test covers the non-throwing failure path.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug:new

A provision whose simctl clone succeeded but whose mark write, LaunchServices drop or lineage swap then fails deletes the clone once and drops every outcome of that delete:

src/drivers/ios/seeds.ts:249:

await this.#simctl.invoke(["delete", udid], COMMAND_TIMEOUT_MS).catch(() => undefined);

invoke answers a time-out or a non-zero exit as an outcome rather than throwing, so .catch only covers a spawn failure. A delete that times out (30 s) or exits non-zero is neither retried nor logged. The clone has no registry record, so it is left as an orphan-device (deviceSet: "simlock") or, under deviceSet: "default", as an unmarked simulator that listManaged never lists and nothing deletes (the end state #1546 fixed for a late clone). The request fails, and after a second failure is rejected unresolvable-spec, with no line naming the UDID left behind.

Expected: a failed delete is at least logged with the UDID, as deleteLateSimulator does for a late clone.

Found while triaging #1801.

Written by an agent.

Vorherrschende Sprache
TypeScript
Sterne
705
Forks
40
Ø Merge
12 Std. 9 Min.
Gemergte PRs (30 T.)
376

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus callstackincubator/simlock

Alle Issues in callstackincubator/simlock

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.