Skip to content

fix(mcpx): clear the golangci gate, regenerate environment doc, make config test hermetic - #10600

Merged
dezren39 merged 1 commit into
mainfrom
queue/fallback-10486-mcpx-lint
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/fallback-10486-mcpx-lint

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Fixes the mcpx workflow failures behind main-broken #10486 (run 43707720627 @7d3dceb and every completed mcpx run since, latest 2fadad3: basic lint + basic test).

What was failing, verified on current main

  1. basic lint — golangci-lint (the standard set + staticcheck-all gate from .golangci.yml) reported 28 issues on current main, reproduced locally via nix develop .#mcpx-lint with golangci-lint 2.15.0: 14 errcheck, 9 staticcheck, 5 unused. All fixed: unchecked error returns now blank-assigned in the codebase idiom (or deferred via closure where the call was deferred), five dead wrapper/helper functions removed (recipes refs/substitute/literal, cli scriptPath, cli sortedFlagNames plus its orphaned sort import), comment-form fixes (ST1000/ST1020/ST1021 — including moving the Module paragraph off RecipeMeta and splitting the merged CallTimeout/callTimeout comment), S1007 raw-string regexp, and the QF1001/QF1002/QF1008 quickfixes.
  2. basic test — TestTheEnvironmentDocIsCurrent: docs/environment.md was stale. Regenerated with the test own -update flag; internal/settings now passes in full (that also covers TestEveryDocumentHasAChapter).
  3. basic test — TestServerKeysAnotherHostWritesAreRecordedNotRefused: the merged-load half read the ambient MCPX_CONFIG file instead of the test fixtures, because MCPX_CONFIG short-circuits the search path (chain.go) and the devshell sets it — in CI as on a dev machine. The test now isolates it with t.Setenv(MCPX_CONFIG, ""), the same pattern chain_test.go already uses. Verified: internal/config passes with MCPX_CONFIG set in the environment, and the failure reproduces on clean main without this change.

Not reproduced on current main

  • basic plugin tests (bun test plugin/opencode/v2/): 73 pass, 0 fail.
  • stress nightly failures from the @7d3dceb run other than the settings doc tests (TestEveryRegistryVariableIsHarnessSetOrSafe passes; the e2e 10-minute timeout did not reproduce in a bounded local run and is not addressed here).

Verification (oracle: the CI gates themselves, run locally)

  • golangci-lint run ./... via nix develop .#mcpx-lint — 0 issues (was 28)
  • go vet ./... — clean; gofmt -l — clean
  • go test for every mcpx package except internal/e2e — pass (internal/config included, with MCPX_CONFIG set); internal/e2e guard tests run individually — pass

Fixes #10486


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

@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 03:06
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T03:06:17.844716Z
We couldn’t complete this review. Comment @codex review to try again.
17e55d5 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

@dezren39
dezren39 merged commit 3fb6724 into main Nov 16, 2026
1 check failed
@dezren39
dezren39 deleted the queue/fallback-10486-mcpx-lint branch November 16, 2026 03:07
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.

main-broken: developing-today/code mcpx @7d3dceb — basic: lint

1 participant