Repository navigation
test: remove redundant subset assertions - #124198
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:53 AM ET / 15:53 UTC. ClawSweeper reviewWhat this changesThis PR deletes 25 redundant test assertions across AI registry, remote catalog, postbuild asset, and Control UI route/navigation tests. Merge readinessNo blocking findings. The branch removes only assertions already implied by retained owner-boundary checks, while preserving exact route, package, and runtime-asset contracts. Priority: P3 Review scores
Verification
How this fits togetherThe affected tests verify provider registration, remote-catalog sanitization, postbuild asset copying, and Control UI routes. These contracts feed runtime provider calls, release packaging, and user navigation. flowchart LR
A[Provider and catalog definitions] --> B[AI and catalog tests]
C[Extension asset metadata] --> D[Postbuild tests]
E[Route and sidebar definitions] --> F[Control UI tests]
B --> G[Runtime and security contracts]
D --> H[Release package]
F --> I[User navigation]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -25. Total -25 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused deletion after exact-head checks are green, keeping the retained owner-boundary tests as the single source of each contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes duplicate test assertions rather than addressing a reported runtime failure. Is this the best way to solve the issue? Yes. The deletions retain the stronger exact owner-boundary checks, rather than weakening route, packaging, provider, or sanitization coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a5603681c617. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for exact head
This removes 25 test-only lines and no production lines. Stronger exact inventories, structural assertions, explicit guards, owner-colocated route mappings, and executable metadata-discovery coverage remain. No docs or changelog change is required. |
|
Merged via squash.
|
What Problem This Solves
Several tests carried weaker assertions immediately beside stronger assertions that already fail for every meaningful regression. One tooling test also duplicated the exact static-asset inventory owned by the executable metadata-discovery test.
Why This Change Was Made
Tests should protect behavior or an independent contract, not add maintenance-only assertions that must be updated alongside stronger neighboring proof. This removes strict subsets while retaining the exact route inventories, structural package assertions, explicit provider guards, owner-colocated route-path coverage, and the runtime postbuild discovery/no-filesystem-scan contract.
User Impact
No production behavior changes. The test suite has less duplicated maintenance surface while preserving the same behavioral and packaging coverage.
Evidence
node scripts/run-vitest.mjs test/scripts/runtime-postbuild.test.ts test/scripts/bundled-plugin-assets.test.ts— 51 passednode scripts/run-vitest.mjs ui/src/app-routes.test.ts ui/src/app-navigation-groups.test.ts ui/src/app-navigation.test.ts ui/src/app-route-paths.test.ts— 137 passednode scripts/run-vitest.mjs packages/model-catalog-core/src/remote-catalog-bundle.test.ts packages/ai/src/host.test.ts packages/ai/src/api-registry.test.ts— 8 passednode scripts/check-changed.mjs -- <changed files>— passed via the documented local fallback because no remote provider was availablegit diff --check— passedProduction delta: 0 lines. Test delta: -25 lines.