test_sim reports SUCCEEDED with 0 tests when per-call projectPath is ignored
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- devtools, mobile-dev, testing-qa
調査の方向性
test_sim ツールと、session_set_defaults と併用した呼び出しごとの projectPath の処理から始めます。worktree パスを分け、-only-testing フィルターを使って報告を再現し、要求したプロジェクトが使われること、またはテストが 0 件になるフィルター済みの実行が SUCCEEDED を返さずに失敗することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Summary
test_sim appears to ignore a per-call projectPath and use the session default instead. When the two differ, it reported SUCCEEDED having run zero tests.
What happened
I had several agents working concurrently in separate git worktrees of one repo. Session defaults were set once, pointing projectPath at the main checkout:
session_set_defaults
projectPath: <repo>/src/PinPoint.xcodeproj
scheme: PinPoint
simulatorName: iPhone 17 Pro
An agent working in <repo>/.claude/worktrees/agent-XXXX/ called test_sim with its own worktree's projectPath and an -only-testing filter for a suite that exists only in that worktree. The call returned SUCCEEDED with 0 tests passed and 0 failed.
The suite it was asked to run did not exist in the project it actually built, so there was nothing to run and nothing to fail. The agent's only clue was the zero count; the status field said success.
Why this is worth fixing above its size
A test tool that returns SUCCEEDED without running the requested tests is the worst available failure mode — it is indistinguishable from a pass at the point where a caller decides whether work is done. In an agent workflow nothing reads the count; it reads the status. Two of my agents would have reported tickets complete on the strength of it. Both worked around it by driving xcodebuild directly with their own -derivedDataPath, which is the right answer but only because they noticed.
Suggested
Either honour a per-call projectPath over the session default, or fail loudly when one is passed and cannot be honoured. Failing that, a zero-test run should not report as SUCCEEDED — an -only-testing filter matching nothing is an error, not a pass.
Environment
Multiple concurrent git worktrees of one project, one shared MCP session, iOS simulator destination. Repointing the shared session defaults was not an option, since a concurrent agent was relying on them.
- 主要言語
- TypeScript
- スター
- 6.4k
- フォーク
- 320
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/XcodeBuildMCP のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/XcodeBuildMCP#520 ·
-
Warden weekly sweep オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
getsentry/XcodeBuildMCP#495 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
getsentry/XcodeBuildMCP#537 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
getsentry/XcodeBuildMCP#535 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
getsentry/XcodeBuildMCP#534 ·
getsentry/XcodeBuildMCP の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fil-donadoni/tolaria#4409 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
corsairdev/corsair#1764 ·