GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx tests: assert the spawn happened in TestEnsureDaemonCancelledWhileWaiting by dezren39 · Pull Request #362 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 19, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Problem → solution

The mcpx dedup audit (this repo's pkgs/mcpx vs the vendored copy in dezren39/nix) found all production code behaviorally identical; the one real divergence was test-only: the nix copy's cancel-while-polling test asserts the daemon spawn actually happened, this copy's didn't. This ports that assertion (see #361 for the full evidence), so this repo — about to become the only mcpx source — loses no coverage when the nix copy is deleted.

TestEnsureDaemonCancelledWhileWaiting now keeps the marker from ensureTestClient and, after the existing error/promptness assertions, waits up to 5s for it, failing with "expected the daemon spawn to have happened before cancellation". The bounded wait mirrors the pattern TestEnsureDaemonNeverReadyStillTimesOut already uses (cmd.Start returns before the child runs; the child is Setsid + Released, so the marker can land after the return).

Verification

  • go test ./internal/cli/ -run TestEnsureDaemon -count=1 -v: all 5 pass.
  • Ablation: with cmd.Start/Release temporarily stubbed out of EnsureDaemon, the test fails with exactly that message (5.21s); stub reverted.
  • Full go test ./internal/cli/ -count=1: ok (25.2s).
  • No production code changes — one test file, +26/−1.

Closes #361. Downstream: dezren39/darwin-nix#468 pins this repo (at the merge rev of this PR) as its mcpx source and deletes its vendored copy.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Muse Sweep
mcpx tests: assert the spawn happened in TestEnsureDaemonCancelledWhi…
5a8639b
…leWaiting

The dezren39/nix copy of this test (TestEnsureDaemonCancelWhilePolling)
has always asserted, after the prompt context.Canceled return, that the
daemon spawn actually happened — waiting up to 5s for the fake daemon's
marker, since cmd.Start returns before the child runs and the child is
Setsid + Released. This copy discarded the marker, so it would pass even
if EnsureDaemon returned context.Canceled without spawning at all.

Ported as part of the mcpx dedup (code becomes the single source; the
nix copy is deleted and pinned to this repo). Ablation: with cmd.Start
stubbed out, the test now fails with 'expected the daemon spawn to have
happened before cancellation'; unmodified code passes, as does the full
internal/cli suite.

Closes #361
@dezren39
dezren39 requested a review from a team as a code owner October 19, 2026 17:00
@github-actions github-actions Bot assigned dezren39 Oct 19, 2026
@dezren39
dezren39 merged commit 7274889 into main Oct 19, 2026
16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the dedup/361-spawn-marker branch October 19, 2026 17:06
This was referenced Oct 19, 2026
mcpx: delete the vendored pkgs/mcpx; build from pinned developing-today/code input dezren39/darwin-nix#469
Merged
docs: roadmaps still say mcpx is vendored in dezren39/nix — the vendored copy was deleted 2026-10-19 (nix#468/#469) #396
Closed
docs: roadmaps no longer say mcpx is vendored in dezren39/nix #397
Merged
This was referenced Oct 26, 2026
mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309
Closed
mcpx: takeover/upgrade/handoff unsupported on darwin; Linux-only tests break the darwin build #237
Closed
mcpx: Go tests fail on macOS (2 path tests in internal/config, plus 2 unidentified packages) #1988
Closed
This was referenced Nov 5, 2026
id: research/design: fork a Rust KDL stack for ID — universal + multiple annotations, upstream archaeology, fork-base selection (extends #5688) #5753
Open
id: design: KDL as human presentation format + triples + ANSI graph SQL (SQL/PGQ) for ID data #5688
Closed
This was referenced Nov 16, 2026
docs: KDL fork section 5 design decisions (#5753) #10679
Merged
closure audit: read-the-record verdicts for the 200 screened SUSPECT closures #10745
Closed
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 mentioned this pull request Nov 25, 2026
AUDIT-7 Lane 2 — Closed-Issues Review (past month, since 2026-10-23) #13878
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

mcpx tests: port the spawn-marker assertion into TestEnsureDaemonCancelledWhileWaiting (nix copy has it, this copy doesn't)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.