Skip to content

test(mcp): isolate callback listener ownership - #480

Merged
BunsDev merged 1 commit into
mainfrom
test/375-callback-fixture-isolation-20261114
Nov 14, 2026
Merged

BunsDev merged 1 commit into
mainfrom
test/375-callback-fixture-isolation-20261114

Conversation

@BunsDev

@BunsDev BunsDev commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Isolate the callback timeout/rebind fixture in an owned re-executed worker so sibling process-spawning tests cannot inherit its listener. The original 20ms callback deadline and immediate single rebind assertion remain unchanged.

Context

Changes

  • Keep the active testcase responsible for an exact worker with a scratch environment, successful one-test result and owned-PID completion receipt.
  • Kill and reap the owned child on supervision failure or unwind; capture diagnostics in regular files and bound post-exit reads.
  • Preserve the original timeout, request-size and immediate-rebind predicates in the worker.

Validation

The independent local commands below ran with Rust 1.99.1, disposable child homes, existing Cargo/Rustup caches and default test concurrency. The final combined candidate additionally passed with CI's Rust 1.100.0 as recorded below.

  • git diff --check: passed.
  • cargo fmt --all: passed.
  • cargo check --workspace --locked: passed.
  • cargo clippy --workspace --all-targets --locked -- -D warnings: passed.
  • cargo test --workspace --locked: complete suite passed, exit 0 in 294.51 seconds.
  • cargo test -p claurst-mcp --locked: 139 active unit cases passed; the additional ignored worker is executed and checked by its active owner. Integration and documentation suites passed.
  • cargo test -p claurst-mcp --locked oauth::tests::callback_overall_timeout_releases_listener -- --exact --nocapture: passed before and after a test-only retained-listener mutation. The mutation failed the unchanged immediate-rebind predicate with AddrInUse and was restored.
  • Fresh scoped and combined source review: no Critical or Important findings.
  • All 14 exact-head hosted checks completed successfully at 91c80f5f4d3f6c5259c69c26579d0cd9bd7cb88e; actual CodeQL analyses passed.
  • Not run: native Windows execution. The fixture uses portable process/file APIs; this does not establish Windows runtime acceptance.

Retained diagnosis reproduced inherited listener ownership under process-spawn pressure and identified the owned child in a deterministic fork control. The original failed suite did not expose its port or owner, so attribution of that particular failure remains inferred. Earlier failures are retained; this change does not weaken their assertions. The separate 15-second worker supervisor bounds polling after spawn, and diagnostic limits bound reads rather than arbitrary child disk output.

The reviewed combined candidate on base 31e1511 plus #478, #480 and #481 passed Rust 1.100.0 formatting, workspace check, strict all-target Clippy and the complete workspace suite (349.58 seconds, default concurrency). It also passed both feature-enabled voice commands, 48 Python harness tests, the debug build, seven real tiny-terminal PTY journeys/53 checks, eight controlled long-history profiles and help/paste journeys at both sizes (11/11 each). All twelve committed blobs match this qualified source. This combined candidate is distinct from each independent PR head; hosted checks cover the individual head.

PR Readiness

  • Only the intended MCP test module changed; generated files and dependencies are unchanged.
  • User-facing documentation is unnecessary for a test-only fixture change.
  • No credentials, private paths or unrelated logs are included.
  • Remaining platform, inference and verification limits are recorded above.

Signed-off-by: Val Alexander <val@opencoven.ai>
@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 14, 2026 11:32am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 91c80f5f Deployed Nov 14, 2026 by vercel[bot]
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.

Redact sensitive endpoint URLs from MCP connection errors

1 participant