iOS: destroy stops at a timed-out simctl shutdown, so quarantine never reaches simctl delete

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

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

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

評価

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

調査の方向性

Start in src/drivers/ios/simctl.ts around line 64, where shutdown uses COMMAND_TIMEOUT_MS, then read destroy in src/drivers/ios/index.ts near lines 449-452. The retry and give-up calls are in src/core/quarantine-coordinator.ts at lines 313 and 367. The open question is whether simctl delete succeeds while a shutdown is unfinished; answer it on a real simulator before changing the code. Done means a timed-out shutdown no longer blocks the delete, or a setting exists for the shutdown timeout.

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

説明

bug:new

A simulator whose simctl shutdown keeps running past 30 s is never deleted at lease end, in quarantine or at give-up, because the iOS destroy stops at the shutdown.

  • src/drivers/ios/simctl.ts:64: shutdown waits a fixed COMMAND_TIMEOUT_MS (30 s), and throws simctl shutdown <udid> timed out after 30000ms at the limit. No setting changes it (#1563 added ios.simulator.createTimeoutMs for clone/create only).
  • src/drivers/ios/index.ts:449-452: destroy runs shutdown and then simctl delete. A shutdown that times out throws before delete is tried.
  • src/core/quarantine-coordinator.ts:313 (each retry) and :367 (give-up) both call that destroy. On a host where the shutdown keeps timing out (memory pressure, swap ~2.5 GB in #1801), each attempt spends 30 s on the shutdown and none reaches the delete. The device ends device.quarantine-stranded, keeping its capacity slot and its disk until an operator acts.

The record is kept, so this leaves no orphan. #1801 showed the log lines but not this end state.

Open question for the fix, to settle on a real simulator: does simctl delete remove a simulator whose shutdown has not finished? If it does, destroy can go on to the delete after a timed-out shutdown. If not, the shutdown needs a setting like createTimeoutMs.

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 を短くまとめたダイジェスト。