Repository navigation
test(conformance): timeout probe の exactly-one-send と MCP shutdown exit code 検証強化 (#384) - #388
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
rebuildup
marked this pull request as ready for review
November 20, 2026 20:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Issue #384。PR #379 の CodeRabbit Major findings 対応。live source のみ修正 —
evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-*.mjsは immutable evidence のため変更しない(次回 evidence run から反映)。1.
conformance/real-run.mjs— timeout probe の exactly-one-send従来は
timeoutResult.outcome === "UNKNOWN"のみ検査しており、runner が request を2回 send しても検出できなかった。probe 前後(他の probe と並行しない区間)でsession.transport.sendCount()を捕捉し、delta === 1 を要求するよう変更。evidence.timeoutProbeにsendsBefore/sendsAfter/sendDeltaを記録。判定ロジックは
devtools-cli/real-run-kit.mjsのisCleanTimeoutProbe({outcome, sendDelta})に集約。2.
conformance/mcp-real-run.mjs— shutdown exit code 検証従来の
cleanShutdownは child の exit/signal のみを見て exit code を検査せず、shutdown 中に exit 1 でも pass になり得た。server.stoppedrecord にexitCode/signalCodeを追加し、SIGTERM 正常終了パス(shutdown(143)→session.close()→process.exit(143))を要求するisCleanServerShutdown()を real-run-kit に追加。SIGKILL 救済・signal 死・異常 exit code は全て failure。fatal メッセージも実際の終了状態を区別して記録するよう修正。テスト(fake/単体レベル、real AE 不要)
devtools-cli/tests/run.mjsに kit verdict helper の test を追加:isCleanTimeoutProbe: UNKNOWN+delta1 のみ true(resend delta2 / no-send delta0 / COMPLETED は false)isCleanServerShutdown: exit 143+signal なし+非 forcedKill のみ true(exit 0/1、signal 死、SIGKILL、未確認は全て false)check-syntax138 files pass、devtools-cli 51 tests green。検証レベル