iOS tests check command limits on a spawn timeoutMs that nothing reads, which keeps it in spawn's options type

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript
領域
backend, testing

調査の方向性

Start with src/drivers/ios/command-run.ts and src/ports/process-runner-types.ts, then inspect the nine listed iOS test files that use timeoutMs. First check how the tests advance the clock and verify the real timer limit. Done when those tests prove the limit through the timer and spawn's options type no longer accepts timeoutMs.

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

説明

bug:new

iOS tests pin command limits through the timeoutMs option runCommand passes to spawn (src/drivers/ios/command-run.ts:26), which the Node runner never reads, so they cannot see whether the limit holds. Removing that dead option fails 41 tests in 9 files under src/drivers/ios (boot-deadline, index, index-device-set, index-provenance-root, index-save-source-lifecycle, index-seed-provision, index-slim-mode, physical, physical-presence). The real limit is the clock timer at command-run.ts:43; a test that advances the clock proves it.

While those tests read it, timeoutMs cannot leave spawn's options type (src/ports/process-runner-types.ts:2), so the compiler cannot refuse a call like #1979's.

Found while triaging #1980.

Written by an agent.

主要言語
TypeScript
スター
730
フォーク
44
平均マージ
16時間 13分
マージ済み PR(30日)
387

環境構築

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

はじめの一歩

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

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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