Skip to content

test(mcpx): give bin-args plugin tests a 30s spawn timeout (#17221 slice 1) - #17229

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900n-17221-binargs-timeout
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900n-17221-binargs-timeout

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

What

Slice 1 of #17221 (the bin-args leg): give all four cases in pkgs/mcpx/plugin/opencode/v2/bin-args.test.ts an explicit 30_000 timeout, following the existing plugin/core/ops.test.ts precedent, with the reason recorded in a comment at the describe.

Root cause

Nightly stress run 46433738642 (macos-latest) failed TestPluginBinArgsPrependsTheConfiguredArgumentsFromTheEnvironment: the first bun case ("unset") timed out at exactly 5000.01ms — bun's default test timeout — while its siblings completed in 3–6ms. Every case spawns the real executable through runBin; the first spawn in the file pays the cold start, which the 5s default does not cover under the stress suite's parallel load.

Verification

Remote dispatch on this branch's head (fleet run 46445335912, succeeded):

  • bun test plugin/opencode/v2/bin-args.test.ts — 4 pass, run twice.
  • go test ./internal/e2e/ -run TestPluginBinArgsPrependsTheConfiguredArgumentsFromTheEnvironment -count=3 -race — PASS ×3.

Scope

Refs #17221 — the issue stays open: its other two flakes are filed separately as #17226 (era probe/restart race) and #17227 (replay transport deadline hang).

{
  "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:09:30Z",
    "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": "4f844671e00e490b2263ad8a52eaebe03a623cdb"
    },
    "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.

The nightly stress run 46433738642 failed on macos-latest:
TestPluginBinArgsPrependsTheConfiguredArgumentsFromTheEnvironment —
the first bun case (unset) timed out at bun's 5s default (5000.01ms)
while its siblings completed in ~5ms. Every case spawns the real
executable through runBin; the first spawn pays the cold start,
which the 5s default does not cover under the stress suite's
parallel load. Apply the ops.test.ts remedy: explicit 30_000
timeout on all four cases.
@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: 6b5098aa-c281-4afe-aa87-483a93accc52

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
developing-today-fleet Bot merged commit ff0f5af into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/0900n-17221-binargs-timeout branch November 30, 2026 15:09
developing-today-fleet Bot pushed a commit that referenced this pull request Nov 30, 2026
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
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