Repository navigation
refactor: remove catalog test-only URL re-exports - #134205
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 4:43 PM ET / 20:43 UTC. ClawSweeper reviewWhat this changesRemoves two pricing-source URL re-exports from the catalog publisher and has its test import the constants directly from the model-catalog pricing package. Merge readinessNo correctness finding: the PR removes a test-only forwarding export and keeps the catalog publisher’s existing pricing dependency unchanged. This is a maintainer-labeled PR with exact-head CI still running, so it should remain open for ordinary merge handling. Priority: P3 Review scores
Verification
How this fits togetherThe catalog publisher reads plugin manifests and pricing sources to build the hosted model catalog. Its test supplies deterministic pricing responses, using the same URL constants that the pricing package owns. flowchart LR
A[Plugin manifests] --> B[Catalog publisher]
C[Model pricing package] --> B
B --> D[Published catalog bundle]
E[Publisher test] --> C
E --> B
Before merge
Agent review detailsSecurityNone. PR surfaceTests +2, Other -4. Total -2 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the direct package imports and merge after exact-head CI completes successfully. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a behavior-neutral export cleanup, and source inspection shows the test and publisher retain the same pricing-package dependency. Is this the best way to solve the issue? Yes: importing the constants from their declared package owner removes the test-only facade without adding an alternate source of truth. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fec69b40d651. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
e90994d to
71d88dd
Compare
71d88dd to
0abdebd
Compare
|
Merged via squash.
|
What Problem This Solves
The catalog publisher re-exports two pricing-source URL constants solely for its tests, although the pricing package already owns and exports them.
Why This Change Was Made
Import the constants directly from their owning package and remove the publisher's forwarding export. The publisher already imports its pricing implementation from that module, so module loading, URL values and CLI behavior stay unchanged.
User Impact
Tooling: -4 lines. Test imports: +4/-2. Every test body, fixture, assertion and CLI case remains, including the Cerebras/Chutes parsing and paid/free/missing-price cases added by #134311. Public pricing-package exports and plugin pricing APIs remain intact.
Evidence
Read the full publisher, pricing owner, tests, exports, callers, native pricing parsers and relevant history. All 47 source and validation references match the reviewed current-owner composition on main
10564e2f.The current composed run passed 126 cases before and 125 after, including this patch and the separate benchmark cleanup in #133894. Catalog's 76 pricing and 42 publisher cases and the SDK cleanup case have identical names, order and results; only the benchmark's two overlapping cases combine into one. The catalog cases include real CLI dry-run and output-preserving failures with synthetic pricing responses. All 18 normal changed-file checks passed, including script/test types, lint and formatting. No live pricing request or catalog publication was performed.
CI Refresh
CI 33434419614 failed in an unchanged SDK CLI test that required the shared
RUNNER_TEMPparent to be empty. The child cancellation, deadline and Git cleanup assertions had passed. This refresh incorporates canonical #134422, which checks removal of the CLI's actual registered temporary root and preservation of unrelated sibling files. The revised SDK case passes in both composed runs; this PR adds no duplicate SDK repair. The two catalog afterimages remain byte-for-byte unchanged. Fresh exact-head hosted CI is required before landing.Fresh managed Codex review of the complete composed diff is scoped-clean at the configured P0 threshold. Manual owner, coverage and source-composition review is recorded separately.