Repository navigation
improve(test): remove obsolete Gateway registry proof - #123643
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 8:20 AM ET / 12:20 UTC. ClawSweeper reviewWhat this changesThe PR deletes a redundant Gateway registry-swap test and removes its now-unused CI shard-routing rule. Merge readinessKeep open for human merge handling: the cleanup remains absent from current main, while current main retains stronger owner-boundary and Gateway boot coverage. No blocking correctness or security finding was identified; the maintainer label and MEMBER authorship prevent automated closure or merge. Priority: P3 Review scores
Verification
How this fits togetherThe plugin runtime publishes an active registry that channel lookup reads through a versioned snapshot for Gateway and outbound operations. CI assigns Gateway server tests to shards, so its plan must track the actual test inventory. flowchart LR
A[Active plugin registry] --> B[Versioned registry snapshot]
B --> C[Channel plugin lookup]
C --> D[Gateway channel operations]
E[Registry owner test] --> C
F[Gateway boot smoke] --> D
G[CI test plan] --> H[Gateway test shards]
Decision needed
Why: The protected maintainer label and MEMBER authorship require an explicit human merge decision even though the patch has no identified correctness blocker. Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -64, Other -1. Total -65 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Merge the two deletions only with the current registry-owner test and real Gateway boot smoke retained as the canonical independent coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes internal test and CI-planning code rather than addressing a user-reported runtime failure. Is this the best way to solve the issue? Yes. The registry owner test covers replacement lookup behavior directly, while the retained Gateway smoke covers real startup and shutdown, so the deleted server lifecycle adds duplicate coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ad400d810b3b. 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
A stale Gateway regression test still started a real loopback server to prove that channel lookups follow a replacement plugin registry. The production registry-pinning mechanism that motivated the test was removed by #117749, and the remaining assertion is already covered more directly by the channel registry owner suite.
The obsolete test added a full Gateway process to the suite despite no longer exercising a distinct Gateway behavior.
Why This Change Was Made
Delete
server.minimal-channel-pin.test.tsand remove its now-dead CI shard-name special case. The stronger registry-owner regression remains, and the dedicated minimal-Gateway boot smoke continues to prove real startup and shutdown.This removes the obsolete path rather than converting it to a cheaper duplicate.
User Impact
No runtime behavior change. Developers and CI stop paying for one redundant Gateway startup, reducing feedback time and memory pressure.
Evidence
Measured on Blacksmith Testbox
tbx_01m000a8637h3h0qw1t7jqj7j4before deletion:The single assertion itself took 8.06s because it paid for a real server lifecycle. Deleting the file removes that entire focused process from the suite.
Coverage retained and verified on the published branch with Blacksmith Testbox
tbx_01m0019v8m5r8hfmmpassc2tf8:src/channels/plugins/registry.test.ts: proves replacing the active registry immediately rebuilds channel lookups.src/gateway/server-startup-minimal-boot.test.ts: proves a real minimal Gateway boots and shuts down within budget.test/scripts/ci-node-test-plan.test.ts: proves the deleted file is absent from the complete agentic shard inventory.History proof:
Production LOC: -1 stale CI classification branch. Tests: -64 lines / -1 obsolete test. No replacement seam or assertion weakening.
AI-assisted. No transcript attached.