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 — test(mcpx): regression test for Serve()'s handedOff orphan-DELETE wait by dezren39 · Pull Request #322 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 19, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Problem

Server.Serve()'s handedOff branch — the third of the three waitOrphanTerminations call sites — had no regression test (fixes #319). The shutdown and restart waits are covered; dropping this one-line call would have left the suite green while orphan upstream sessions leaked until expiry.

Solution

New TestSuccessorServeWaitsForABlockedOrphanTerminationOnHandoff in registry_handoff_test.go, reusing the newOrphanUpstream blackhole harness from the sibling tests:

  • an old daemon holds a session on a remote server; a successor whose config removed that server takes over (orphan DELETE starts, blocked upstream);
  • the successor runs its real Serve() loop;
  • a third daemon takes over from the successor, closing its handedOff channel;
  • Serve must not return while the DELETE is blocked, must return once it completes, and the upstream sees exactly one DELETE.

Verification

  • New test passes; ablation-verified: removing s.waitOrphanTerminations() from Serve's handedOff branch fails it ('Serve returned while the orphan DELETE was still blocked').
  • Full internal/daemon + internal/pool suites green locally; gofmt clean.

Cross-repo set

mcpx lives in both repos; the mirrored test lands in dezren39/nix in the same pass, referencing this origin issue: #319


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

Summary by CodeRabbit

  • Tests
    • Added coverage for daemon handoff behavior when an orphan-session deletion is still in progress, including verification that the deletion completes exactly once before serving exits.

Sorry, something went wrong.

Uh oh!

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

All reactions
Muse Sweep
test(mcpx): drive Serve()'s handedOff branch with a blocked orphan DE…
e94f334
…LETE

Serve()'s handedOff branch was the only one of the three
waitOrphanTerminations call sites with no regression test (#319).
The new test takes over with a removed server (orphan DELETE
blackholed), runs the successor's real Serve() loop, then hands
off again to a third daemon: Serve must not return until the
DELETE completes, and the upstream sees exactly one DELETE.
Ablation-verified: removing the wait in Serve fails the test.
@dezren39
dezren39 requested a review from a team as a code owner October 19, 2026 00:06
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T00:09:08.050945Z e94f334 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot assigned dezren39 Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9518fa46-dc17-48a0-a7c5-ef6d176da08b
📥 Commits

Reviewing files that changed from the base of the PR and between 38eb38f and e94f334.

📒 Files selected for processing: 1
  • pkgs/mcpx/internal/daemon/registry_handoff_test.go
+----------------------------------------------------------------------+
| I see you chose the 'dynamic typing' difficulty setting. On purpose. |
+----------------------------------------------------------------------+
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39 dezren39 mentioned this pull request Oct 19, 2026
test(mcpx): regression test for Serve()'s handedOff orphan-DELETE wait dezren39/darwin-nix#433
Merged
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 19, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e94f334bd0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pkgs/mcpx/internal/daemon/registry_handoff_test.go
if err != nil {
t.Fatalf("second takeover: %v", err)
}
_ = h2.Done()

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 19, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wait for the handoff before checking Serve

Handover.Done() only closes the takeover socket; the predecessor’s handOver goroutine closes successor.handedOff asynchronously after its io.Copy observes that close. If that goroutine is delayed for more than 300 ms, this test completes the negative assertion before Serve reaches the branch under test, then unblocks the DELETE and can pass even when s.waitOrphanTerminations() has been removed. Wait for <-successor.handedOff after h2.Done() before asserting that served remains blocked.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
@dezren39
dezren39 merged commit ca1abca into main Oct 19, 2026
16 of 17 checks passed

Uh oh!

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

@dezren39
dezren39 deleted the sweep/319-serve-handoff-test branch October 19, 2026 00:09
This was referenced Oct 19, 2026
mcpx: no regression test drives Server.Serve()'s handedOff branch — the third orphan-DELETE wait has no coverage #319
Closed
mcpx: inlineDaemon's cancel-during-poll path (PR #320) has no regression test — ablating it leaves the suite green #323
Closed
This was referenced Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
fleet queue: add a repair verb for quarantined/malformed task packets (in-place payload fix) #13191
Closed
AUDIT-7 Lane 2 — Closed-Issues Review (past month, since 2026-10-23) #13878
Closed
Audit programme: seven-lane review of PRs, issues and designs (2026-11-23) #13871
Open
Stray work audit: PRs and issues not tied to a design or roadmap item #13874
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

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: no regression test drives Server.Serve()'s handedOff branch — the third orphan-DELETE wait has no coverage

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.