Repository navigation
refactor(google-meet): remove testing re-export - #126223
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
0eca702 to
e1206c5
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 3:10 AM ET / 07:10 UTC. ClawSweeper reviewWhat this changesRemoves an accidental test-only named export from the Google Meet plugin entrypoint and makes its two behavior suites import the seam from the owner module. Merge readinessKeep open for normal maintainer handling. Current main still exposes the test-only named export, while this focused branch removes it and preserves the same test seam at its owner; no blocking defect was found. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherThe Google Meet plugin entrypoint is the runtime-loaded public registration module. It imports registration helpers from the owner module, while behavior tests use the owner’s explicit test seam without exporting it from the plugin entrypoint. flowchart LR
A[Google Meet plugin entrypoint] --> B[Registration owner]
B --> C[Gateway and tool registration]
D[Behavior tests] --> B
C --> E[Google Meet runtime]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -3, Tests +2, Other +1. Total 0 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the local owner test seam and remove the accidental entrypoint export once exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an internal export-surface cleanup, not a user-reported runtime failure; current main source confirms the accidental export exists. Is this the best way to solve the issue? Yes. The entrypoint needs only runtime registration helpers, while direct same-plugin test imports preserve the existing test behavior without advertising a test seam as package surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 57a65def4f4d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
The Google Meet plugin entrypoint publicly re-exported a
testingobject solely because its behavior tests imported private owner hooks through the public barrel. That made a test-only seam look like plugin API surface.Why This Change Was Made
The public re-export is removed and the existing behavior tests now import the hooks directly from their owner,
src/plugin-registration.ts. Runtime registration and all behavior coverage remain unchanged. Production Knip models that owner as a focused test seam, while the full-tree unused-export audit still verifies its consumers.User Impact
No user-visible or runtime behavior changes. Plugin developers no longer see an accidental test-only export on the Google Meet entrypoint.
Evidence
node scripts/run-vitest.mjs extensions/google-meet/index.test.ts extensions/google-meet/index.create.test.ts— 2 files, 178 tests passed.node scripts/check-changed.mjs -- config/knip.config.ts extensions/google-meet/index.ts extensions/google-meet/index.test.ts extensions/google-meet/index.create.test.ts— passed.node --import tsx scripts/check-deadcode-exports.mts— production, full-tree, and script scans passed with zero entries.pnpm build— passed..agents/skills/autoreview/scripts/autoreview --mode local— clean; no accepted/actionable findings.rgconfirms notestingexport or public-index test import remains.