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

オープン
#1,802 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
ios, typescript
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
705
フォーク
40
平均マージ
12時間 9分
マージ済み PR(30日)
376

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。