A lease whose new device fails to boot always says "Timed out waiting for device to boot" with code INTERNAL, whatever the driver's reason

オープン 初心者向け
#1,229 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

まず src/core/device-provisioner.ts から始め、makeReady の失敗がどのように BootTimeoutError になるかをたどります。次に、src/core/device-provisioner.test.ts の固定されたケースを読みます。理由 boot-timeout は維持しつつ、リクエストを行った側がドライバーの失敗メッセージを確認できるようにします。この issue では、エラーに独自のコードを付けることも提案されていますが、必須ではありません。テストで、失敗応答にドライバーの理由が含まれることを確認できれば完了です。

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

説明

bug:new

`DeviceProvisioner.provision` catches every `makeReady` failure of a new device, logs the driver's error, and throws `new BootTimeoutError(device.id)` (`src/core/device-provisioner.ts:126`, `:142`). The requester sees only `Timed out waiting for device to boot: `, even when the driver failed at once with a clear reason (a `DriverCrashError` naming another emulator on the console port, an emulator that exited). `BootTimeoutError` has no wire code, so it answers `INTERNAL` (#1199's output).

{"error":{"code":"INTERNAL","message":"Timed out waiting for device to boot: dev_0a628b60-..."}}

The test pins this today: `src/core/device-provisioner.test.ts` "rolls back a registered device and returns BootTimeoutError-compatible failure on boot failure". A fix keeps `BootTimeoutError` (reason `boot-timeout`) but carries the driver's message, and could give it a code of its own.

Found while triaging #1199.

Written by an agent.

主要言語
TypeScript
スター
535
フォーク
21
平均マージ
9時間 26分
マージ済み PR(30日)
437

環境構築

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

はじめの一歩

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

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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