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 — fix(mcpx): repair main lint and plugin mirror failures by dezren39 · Pull Request #13371 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Fixes #13349

Refs #3016 (stress gate: reconnect-test flake fixed in ae506d9; #1992 daemon-state guard still open).

Summary

  • Fix the 13 golangci-lint findings reported by mcpx main run docs(roadmap): add the PM stack as a top-level roadmap project (ROADMAP.md row + planning/roadmaps/pm-stack.md) #1216.
  • Sync the OpenCode dogfood plugin tree with its authoritative source tree, resolving the basic test sync failure.
  • Make the reconnect probe report the full unexpected event and check the stream cancellation result.

Evidence

  • diff -ru pkgs/mcpx/plugin/opencode/mcpx .opencode/plugin/mcpx passed locally after synchronization.
  • Focused verification for commit 25045feffc8 is queued on Fleet at developing-today/fleet run #126; terminal result is pending. It runs golangci-lint, the focused daemon/reconnect/codegen/runner tests, and the plugin sync diff.
  • Full nightly stress failures are tracked by mcpx nightly stress failure #3016; the daemon-state guard failed in both OS jobs in main run docs(roadmap): add the PM stack as a top-level roadmap project (ROADMAP.md row + planning/roadmaps/pm-stack.md) #1216.

Merge Danger

This draft addresses the lint and dogfood-sync failures. It does not close #13349 because the main workflow's stress failures still need resolution and a green main run. Keep this PR in draft until the focused run passes and the stress gate is cleared.

Sorry, something went wrong.

Uh oh!

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

All reactions
@dezren39
fix(mcpx): repair main workflow lint and plugin sync
25045fe
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

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

@dezren39 dezren39 mentioned this pull request Nov 23, 2026
main-broken: developing-today/code mcpx @5c8e163 — basic: lint #13349
Closed
oc-code-05 added 2 commits November 23, 2026 10:25
oc-code-05
fix(mcpx): drain the reconnect test's request head before close
ae506d9
TestEventsReconnectWaitsForTheConfiguredDelay failed on the macOS nightly
stress run (45181183106) with "retry delivered unexpected event kind".
The stub server wrote the SSE response and closed without reading the
client's request; with unread request bytes in the receive buffer the
close sends a reset rather than a FIN, and the peer can drop response
bytes it has not yet read, losing seq 1 so the stream sees seq 2 first.

Read the request head with http.ReadRequest before writing, so the
close is an orderly one and both events arrive on every platform.

Reproduce from #3016: go test ./internal/e2e -run
TestEventsReconnectWaitsForTheConfiguredDelay -race -shuffle=on -count=5
(now ok on linux; failure was darwin-specific timing).

Refs #3016, #13349.
oc-code-05
fix(mcpx): keep daemon and cli suites off the caller's real state dir
ef62356
The #1992 guard in the e2e suite fails the stress runs: the daemon and cli
test binaries write daemon records into the caller's real default state
dir while e2e's before/after window is open. `go test ./...` runs the
packages side by side, and WriteInfo mirrors every record written under a
custom state dir into the default one (#278).

Leakers: TestInfoFileNamesBothDigests (the /tmp/sock pid=42 record; one
leak per -count, which is why the stress log shows it 3x after vs 1x
before), the in-process daemons started through the mxh temp-dir helpers
(upgrade, takeover, handoff), and cli client_socket_test, which writes a
record without pinning XDG_STATE_HOME.

Fix, class-wide: internal/stateguard ports the e2e guard to the suites
that write records and pins their state dirs away from the caller.

- GuardCallerDaemons snapshots the caller's real record dirs (the default
  dir and MCPX_STATE_DIR) and fails the run if the set changed. Failing
  first: without the pin it fails on the leaking test. Run with a fresh
  XDG_STATE_HOME, `go test ./internal/daemon -run
  'TestInfoFileNamesBothDigests$'` reports "before=[] after=[/tmp/sock
  pid=42]", and the cli suite reports its socket record the same way.
- PinSuiteStateDirs points XDG_STATE_HOME and MCPX_STATE_DIR at a per-run
  temp dir for the whole test binary, so every writer lands there,
  present and future.
- The daemon and cli TestMain functions guard, pin, run, then check.

stateguard is its own package because daemon's internal tests import
testsupport, so testsupport cannot import daemon.

Verified: go test ./internal/daemon -count=1 and ./internal/cli -count=1
green; the changed tests with -race -shuffle=on -count=5 green.

Refs #1992, #3016
@dezren39 dezren39 mentioned this pull request Nov 23, 2026
pm-console: check the signed-in flows and the alarm in the real Worker runtime #13499
Closed
@dezren39
fix(mcpx): restore lint and plugin sync checks
bf6ef70
@dezren39

dezren39 commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Updates on bf6ef70d8c7 (lane oc-code-08):

  • lint: removed the remaining staticcheck ST1005 (trailing punctuation in internal/stateguard/stateguard.go). nix develop .#mcpx-lint --command 'cd pkgs/mcpx && golangci-lint run' → 0 issues.
  • dogfood sync (the basic: test failure): the .opencode copy had drifted from pkgs/mcpx/plugin.
    • ops.gen.ts: fingerprint line restored to the generated value (da584569…).
    • ops.test.ts: abort-wait loop restored.
    • mcpx-session.ts + session-created.test.ts: the FLEET_SESSION_ID export (fleet session identity, from 22bf6e1) existed only in the dogfood copy; ported into pkgs/mcpx/plugin/opencode and the test into pkgs/mcpx/plugin/opencode/mcpx, then copied across.
  • verification: bun test plugin/core/ plugin/opencode/mcpx/ → 98 pass / 0 fail; go test ./internal/daemon, ./internal/cli and ./internal/api -run TestPluginOpsAreGenerated green locally (daemon/cli run with an isolated XDG_STATE_HOME; an earlier local failure was a neighbouring lane racing the shared real state dir, not this suite).
  • CI: dispatched mcpx workflow on this head — https://github.com/developing-today/code/actions/runs/45258140842
All reactions

Sorry, something went wrong.

Uh oh!

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

This was referenced Nov 23, 2026
fleet-stalling: Drew's expedite set has no active worker #7030
Open
AUDIT-7 Lane 1 — PR-SWEEP tracking (open PRs, 4 repos) #13872
Open
AUDIT-7 Lane 1 follow-up: rebase-and-merge queue for 90 blocked PRs (batches A–H) #13903
Closed
mcpx #13349 follow-up: test/stress legs #14072
Closed
main-broken: developing-today/code mcpx @0dd1567 — basic: test #14332
Closed
@dezren39

dezren39 commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

Program tending — stalled PR check-in (tracking: #1352)

  • No activity for 2 day(s); last update 2026-11-23T20:20:51Z.
  • Waiting on: draft — waiting on its author.
  • Next step: mark the PR ready for review, or post what the draft is waiting on.
All reactions

Sorry, something went wrong.

Uh oh!

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

This branch has not been deployed

No deployments
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

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

main-broken: developing-today/code mcpx @5c8e163 — basic: lint

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.