Repository navigation
fix: hooks-stdout-policy.test.ts の AC7 タイムアウト失敗を修正する - #1355
Conversation
…#1350) Add an explicit Vitest test-level timeout (35_000ms) to the AC7 test 'spawns test-codex-single-composite.mjs and all assertions pass', which previously relied on the default 5000ms Vitest timeout while the inner spawnSync call has its own 30000ms timeout. Under full `pnpm test` suite load this test deterministically exceeded the default 5000ms Vitest timeout even though the standalone script itself completed well within its own budget, causing a decisive baseline regression-gate flake. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
TEST_VERDICT: PASS (mergeable: MERGEABLE, BEHIND only). AC1: rg found 35_000 at line 322. AC2: pnpm test x2 both PASS (1399 tests). |
Preview URLPreview removed (PR #1355 closed). |
squne121
left a comment
There was a problem hiding this comment.
レビュー結果
- Closes #1350 を確認。AC1(
}, 35_000)行の追加)/ AC2(pnpm testフルスイート連続2回PASS, 92 test files / 1399 tests)ともに PASS。 - Allowed Paths: 変更ファイルは
tests/hooks/hooks-stdout-policy.test.tsの1件のみで、Issue #1350 の Allowed Paths と完全一致(GitHub PR Files API で rename provenance を含め再計算)。 - CI:
deploy-pagesworkflow のdeploy-prjob(Verify preview assets are livestep)が一時的に失敗(infra flake、404後 timeout)していたため run 28789765611 を再実行し、deploy-prを含む全 required check が SUCCESS になったことを確認済み(ci_verdict_summary.pystatus: all_pass, exit 0)。 - Schema Change Applicability: not_schema_change(該当なし、テストファイルのみの変更)。Safety Claim Matrix: N/A(非 safety-sensitive)。いずれも妥当。
- mergeStateStatus は
BEHIND(base に対して古い)だがmergeable: MERGEABLEであり衝突なし。ブロッカーではないためrequired_auto_actions: update_branchとして次工程へ引き継ぐ。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "059b1533ee72992457a95c4dc67999bec662ef56"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BEHIND"
blockers: []
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
schema: ALLOWED_PATHS_GATE_RESULT_V1
status: ok
producer_role: review_subagent
worker_report_used_as_canonical: false
changed_files_source: github_pull_request_files_api_with_previous_filename
audited_paths:- filename: tests/hooks/hooks-stdout-policy.test.ts
status: modified
allowed_paths: - tests/hooks/hooks-stdout-policy.test.ts
contract_source_kind: issue
contract_source_id: "1350"
expected_contract_fingerprint: "sha256:0dde17ad952cc6dca10b7b939807399cfa9df44adebd74fd77717095f2bade78"
- filename: tests/hooks/hooks-stdout-policy.test.ts
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 3
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果レポートIssue #1350: hooks-stdout-policy test-ts AC7
総合判定
確認事項
|
squne121
left a comment
There was a problem hiding this comment.
レビュー結果(再レビュー・head 更新後)
- 前回 APPROVE(head 059b153)から
update_branch(main merge のみ)で head が3d5310d9に変化。対象ファイルの内容変更なし。 - Allowed Paths 独立再計算: base(502822c)...head(3d5310d) の diff は
tests/hooks/hooks-stdout-policy.test.tsの1件のみ(git diff --name-status -M -zlocal fallback で確認)。Issue #1350 Allowed Paths と完全一致。 - AC1: 該当
it()に}, 35_000)が line 322 に存在することを diff で直接確認。 - AC2: TEST_VERDICT_MACHINE(head 3d5310d 一致)で
pnpm test連続2回・92 test files / 1399 tests 全PASS、verification_skipped_count: 0 を確認。 - CI:
wait_pr_checks.py --expected-head-sha 3d5310d9...で該当 head の全 required check(build/validate-generated-artifact/lint/typecheck/python-test/test)が SUCCESS(decision: pass, failed_blocking_count: 0)であることを確認済み。 - Mergeability: mergeable MERGEABLE / mergeStateStatus CLEAN(BEHIND 解消済み)。
- Schema Change Applicability: not_schema_change。Safety Claim Matrix: N/A(非 safety-sensitive)。いずれも妥当。
- blocker なし。required_auto_actions なし。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "3d5310d9bf2517c4f632c174733c004e14115fc8"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
schema: ALLOWED_PATHS_GATE_RESULT_V1
status: ok
producer_role: review_subagent
worker_report_used_as_canonical: false
changed_files_source: git_diff_name_status_find_renames_z
audited_paths:
- filename: tests/hooks/hooks-stdout-policy.test.ts
status: modified
allowed_paths:
- tests/hooks/hooks-stdout-policy.test.ts
contract_source_kind: issue
contract_source_id: "1350"
expected_contract_fingerprint: "sha256:0dde17ad952cc6dca10b7b939807399cfa9df44adebd74fd77717095f2bade78"
結論判定: APPROVE寄り。現時点で #1355 自体にマージブロッカーは見当たりません。 PR #1355 は draft 状態ですが、mergeable は true、変更は 確認したこと#1350 の契約は、 PRの実装は、該当 Vitest公式仕様上、 Node.js 公式仕様上、 CI面では、head 敵対的レビュー観点P0 / ブロッカーなし。 P1 / 構造的な未解決問題このPRは 遅いテストを速くしていません。むしろ、Vitest が 5秒で落としていたものを最大35秒まで待てるようにする修正です。観測済み regression gate を安定化するには妥当ですが、テスト設計としては 実際、AC7 は これは #797 / PR #852 由来の AC7 smoke 検証構造です。PR #852 で ただし、同じ Vitest の P2 / 品質メモ
また、PRに付いている Preview URL / deploy-pages 成功は、この変更の本質とは関係が薄いです。テストファイル1行変更なので、見るべき主ゲートは 推奨アクション#1355 は merge してよいです。条件は、マージ直前に head が その後、別Issueで以下を切るのが妥当です。 Issue案: 狙いは、 |
Summary
tests/hooks/hooks-stdout-policy.test.tsのAC7: test-codex-single-composite.mjs runs within pnpm test > spawns test-codex-single-composite.mjs and all assertions passテストがpnpm testフルスイート実行時にのみ決定的にタイムアウト失敗していた問題を修正する。原因は、当該
it()の内側でspawnSyncにtimeout: 30000を指定していたが、外側の Vitest test-level timeout(デフォルト 5000ms)が明示されていなかったため、フルスイート実行の負荷下で Vitest 側が先にタイムアウトしていたこと。変更内容
tests/hooks/hooks-stdout-policy.test.tsの該当it()に Vitest test-level timeout35_000を明示追加(内側spawnSync timeout: 30000より確実に大きい値とし、race を回避)Checks
pnpm typecheck: PASSpnpm lint: PASSpnpm test(連続2回実行、AC2 要求どおり): 両方とも 92 test files / 1399 tests PASSpnpm build: PASSSchema Change Applicability
Schema Consumer Inventory
N/A(schema 変更なし。既存テストの Vitest test-level timeout 引数追加のみ)
Safety Claim Matrix
N/A - reason: 変更は既存テストファイル1件の timeout 引数追加のみで、transport / permission / sandbox / auth / mcp / .claude/skills / .github/workflows のいずれにも該当しない safety-sensitive でない変更。
Notes
tests/hooks/hooks-stdout-policy.test.tsの1ファイルのみで、Issue の Allowed Paths と完全一致。