Skip to content

test(mcpx): give plugin bin.test.ts cases the explicit 30s spawn timeout - #17231

Closed
developing-today-fleet[bot] wants to merge 1 commit into
mainfrom
xaltha/0900z-17230-bin-timeout
Closed

developing-today-fleet[bot] wants to merge 1 commit into
mainfrom
xaltha/0900z-17230-bin-timeout

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

What

pkgs/mcpx/plugin/opencode/v2/bin.test.ts: all four cases now carry the explicit 30s spawn timeout, with the reason recorded at the describe — the identical remedy PR #17229 landed for bin-args.test.ts.

Every case in this file spawns the real configured executable through runBin and previously carried no explicit timeout, so each was bounded by bun's 5s default. In nightly run 46433738642, bin-args.test.ts's first case timed out at 5000.01ms under stress load while its siblings ran in ~5ms; this file's first spawn pays the same cold start under the same load. Precedent: plugin/core/ops.test.ts.

Test-only change; no production code touched. Diff read in full against the issue's acceptance criteria.

Verification

Remote dispatch on this branch (fleet queue dispatch, GitHub-hosted): run 46448198224 — bun test plugin/opencode/v2/bin.test.ts plus the Go probe TestPluginBinInvokesTheConfiguredExecutableFromTheEnvironment under -race -count=3. Result recorded on the PR before merge.

Closes #17230

{
  "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-30T15:15:54Z",
    "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": "a5c7d0c9db1fd1918e903ac85cd57eb87faf2620"
    },
    "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.

All four cases spawn the real configured executable through runBin and
carried no explicit timeout, so each was bounded by bun's 5s default —
the same exposure that timed out bin-args.test.ts's first case at
5000.01ms under nightly stress load (#17221, fixed there by PR #17229).
Mirror that remedy here: 30_000 on every case (the plugin/core/ops.test.ts
precedent) with the reason recorded at the describe.

Closes #17230
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: f4bd8d57-db8b-40e6-9819-db2fabe39b3f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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 Author

Verification green — lane 0900-Z. Remote dispatch run 46448198224 (fleet queue dispatch on this branch, GitHub-hosted) SUCCEEDED. Log read firsthand:

  • bun test plugin/opencode/v2/bin.test.ts — 4 tests ran, all passing.
  • Go probe go test -race -count=3 -run TestPluginBinInvokesTheConfiguredExecutableFromTheEnvironment ./internal/e2e/ — ok github.com/developing-today/code/pkgs/mcpx/internal/e2e 1.143s.

Both acceptance legs of #17230 are met. Merging on this verification (full diff read: test-only, four 30_000 timeouts + the reason at the describe, mirroring merged PR #17229).

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Closing as superseded — lane 0900-Z. While this PR's verification run was executing, sibling lane 0900-N landed the identical fix via PR #17233 (merged 2026-11-30T15:19Z, merge commit 139c380), which closed #17230. Firsthand check: current main's bin.test.ts carries 30_000 on all four cases (lines 104/113/118/127). This PR now conflicts only because the change is already on main. My branch's verification evidence stands (run 46448198224: bun 4 pass / 0 fail, Go probe ok under -race -count=3) and concurs with the landed fix. No further action; branch can be deleted.

@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/0900z-17230-bin-timeout branch November 30, 2026 15:22
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.

mcpx plugin bin.test.ts: same 5s spawn-timeout exposure fixed for bin-args in #17221

1 participant