Skip to content

fix(ci): keep unused Discord test mocks private - #202297

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ci-discord-private-mocks-20261120
Nov 20, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ci-discord-private-mocks-20261120

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Hourly main CI fails its unused-export check because two Discord test mocks are still exported after their last outside callers were removed in PR #201965.

User Impact

No user-facing change. This restores the test-helper export check without removing mock behavior or test coverage.

Why This Change Was Made

Keep readAllowFromStoreMock and upsertPairingRequestMock in the existing private destructuring. Their internal resets and runtime wiring remain unchanged. All four importing suites use other exports and need no changes.

Evidence

  • Failing hourly main job reports exactly these two exports. The unchanged Discord source blob was verified on live main.
  • Before editing, pnpm deadcode:exports reproduced both findings; its production and script scans reported zero entries.
  • Independent review and local ClawSweeper found no actionable issues on the complete range da816e2190ca2466c0a5cebe32a6aaabea64029a..6416fbcab7f845ae872fec6d5739769cd87f7e34. Syntax, formatting, the line-growth hook, and whitespace checks pass.
  • Fixed source: pnpm deadcode:exports passes all three scans with zero entries.
  • All four importing suites pass: 40 tests, 62.75s complete wrapper time. No tests or assertions were removed.
  • Type-aware oxlint, formatting, and scoped tsgo (helper plus four consumers, inheriting the canonical extension-test configuration and ambient declarations) pass.
  • Patch: +5/-3 test-helper lines; no production changes. No billed-cost or runtime speedup is claimed.

@vincentkoc vincentkoc self-assigned this Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: XS labels Nov 20, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 20, 2026 06:29
@vincentkoc
vincentkoc enabled auto-merge (squash) November 20, 2026 06:30
@vincentkoc
vincentkoc merged commit 6c6d9b8 into main Nov 20, 2026
186 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-discord-private-mocks-20261120 branch November 20, 2026 06:37
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant