Skip to content

test(mcpx/execsvc): guard node-pinned preflight-timeout test on node, not any runtime (#13481) - #17100

Merged
dezren39 merged 1 commit into
mainfrom
xaltha/13481-preflight-node
Nov 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
xaltha/13481-preflight-node

Conversation

@dezren39

@dezren39 dezren39 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Refs #13481 (item 2 of the acceptance blocker list; does not close the issue — items remain).

Defect

TestFailureKindPreflightTimeout pins Runtime: "node" (its frozen-install preflight is npm) but guarded only with needRuntime(t), which resolves auto and passes when any JS runtime exists. On a venue with bun/deno but no node, the run dies not_started before 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 pattern TestCheckWarnDiagnosticReachesSuccessResult already uses in this package (and the exec.LookPath("node") guards in internal/runner, e.g. TestRunTimeoutBoundsFrozenInstall). Skipping rather than failing is the doctrine stated on needRuntime itself. 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

{
  "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-bot with what you need.

… 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.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a27615f3-edc8-454a-80b1-0cd8732b1f93
Commits

Reviewing files that changed from the base of the PR and between 9228540 and 08d1c63.

Files selected for processing: 1

  • pkgs/mcpx/internal/execsvc/execsvc_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant