Skip to content

fix(mcpx): check broker.Close in refusal test cleanup (errcheck, #8924 slice) - #10970

Merged
dezren39 merged 1 commit into
mainfrom
queue/20238-8924-errcheck-broker-close
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20238-8924-errcheck-broker-close

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Refs #8924 — one slice of the mcpx lint track (task 20238): the errcheck hit on broker.Close in pkgs/mcpx/internal/daemon/refusal_code_test.go.

refusalRegistry registered the broker cleanup as t.Cleanup(func() { broker.Close() }), leaving the Close error return unchecked — an errcheck finding in the basic: lint leg of the mcpx workflow. This changes it to the house idiom already used in the same package (internal/daemon/handoff_conns_test.go) and in logstore/eventstore tests: t.Cleanup(func() { _ = broker.Close() }).

Scope is deliberately this one hit only: #8924 is the shared mcpx main-broken track with further errcheck/staticcheck hits in other files, owned by their own queued slices, so this PR references rather than fixes/closes the issue.

Verification: gofmt clean; go test ./internal/daemon/ -run Refusal -count=1 passes on the laptop; the golangci-lint leg itself runs in CI (no lint binary on the laptop).


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 17, 2026 04:39
@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-17T04:40:00.654313Z
We couldn’t complete this review. Comment @codex review to try again.
2eec497 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 17, 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 0c25dba into main Nov 17, 2026
1 check failed
@dezren39
dezren39 deleted the queue/20238-8924-errcheck-broker-close branch November 17, 2026 04:40
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.

1 participant