Repository navigation
test(mcpx/execsvc): guard node-pinned preflight-timeout test on node, not any runtime (#13481) - #17100
Conversation
… not any runtime (#13481) TestFailureKindPreflightTimeout pins Runtime: "node" (its frozen install preflight is npm) but guarded only with needRuntime, which resolves "auto" and passes when any JS runtime exists. On a venue with bun/deno but no node the run dies not_started ("node not found") before the preflight can time out, failing the suite for a missing binary instead of exercising the timeout — the failure recorded in #13481's acceptance measurement (item 2) and reproduced on the fleet-run image (bun 1.4.5, no node): timedOut=false, kind="not_started". Guard on node specifically via runner.Resolve("node", ...), the same pattern TestCheckWarnDiagnosticReachesSuccessResult already uses in this package and the LookPath guards in internal/runner. Audit of internal/execsvc: this was the only node-pinned test with the any-runtime guard.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 36 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
🤖 Agent note · lane 0007-R (Archer, charlie ADVANCE 2026-11-30 00:07 CST — fresh-window discovery) — CLAIM for landing verification. PR #17100 (test(mcpx/execsvc): guard node-pinned preflight-timeout test on node, #13481 item 2) was created 2026-11-30T06:20:10Z, after the parent sweep, with no claim comment on record. Taking it for full-diff verification against its stated purpose; will merge when verified under Drew's standing merge rule (CI is not a gate), or stand down here if verification fails. Queue broker down (#16762) — claim rests on this comment. Key: 0007-R |
|
🤖 Agent note · lane 0007-R — STAND-DOWN / correction. My claim comment (7270614835, posted 06:24:22Z) landed AFTER this PR was already merged at 2026-11-30T06:23:34Z (merge 6013e56) by a sibling landing lane — the merge raced my claim while the claim POST was in flight. I did verify the full diff firsthand (single hunk, execsvc_test.go +10/-1, exactly the stated node-specific guard) and my merge attempt returned already-merged. The landing credit is the sibling lane's, not 0007-R's; no claim by 0007-R stands on this PR. Key: 0007-R |
Refs #13481 (item 2 of the acceptance blocker list; does not close the issue — items remain).
Defect
TestFailureKindPreflightTimeoutpinsRuntime: "node"(its frozen-install preflight is npm) but guarded only withneedRuntime(t), which resolvesautoand passes when any JS runtime exists. On a venue with bun/deno but no node, the run diesnot_startedbefore the frozen-npm preflight can time out — the suite fails for a missing binary instead of exercising the timeout. This is the failure recorded in #13481's 2026-11-29 acceptance measurement and reproduced fresh below.Fix
Guard on node specifically —
runner.Resolve("node", "", runner.Setup{})+ skip — the same patternTestCheckWarnDiagnosticReachesSuccessResultalready uses in this package (and theexec.LookPath("node")guards in internal/runner, e.g.TestRunTimeoutBoundsFrozenInstall). Skipping rather than failing is the doctrine stated onneedRuntimeitself. Audit of internal/execsvc: this was the only node-pinned test carrying the any-runtime guard; the other node-pinned test already guards on node.One file, test-only:
pkgs/mcpx/internal/execsvc/execsvc_test.go(+10/−1).Verification
--- FAIL: TestFailureKindPreflightTimeout — preflight timeout: timedOut = false, kind = "not_started", error = "node not found".go vet ./internal/execsvc+ fullgo test ./internal/execsvc -count=1+ the named test (expected SKIP on this node-less venue). Verdict recorded on mcpx: full-suite health on main blocks #8465 close condition (conformance/daemon/defaults/e2e/execsvc/sdnotify) #13481 at merge.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T06:20:05Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "c36a28d672723b085b14125996bcd72b1931e09d" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.