test(codex-convergence): update route inventory for #1541's attested reload call - #1554
Conversation
…attested reload call lidge-jun#1541 (fb4f2fe) added a seventh 'await convergeCodexCatalog()' to provider-routes.ts in the new attested credential-free provider-reload route, but the inventory contract still expected 6, leaving dev CI red for every open PR. Update the expected count and test title to match. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe route inventory contract test now expects seven convergence calls in ChangesConvergence contract
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Tip For best results, initiate chat on the files or code changes.
🧠 Learnings usedYou are interacting with an AI system. |
|
🧠 Learnings used
|
#1554 raised the provider-routes inventory from 6 to 7, which is correct — the attested reload route adopts a provider from disk and invalidates the same caches as the other write paths. But a bare count that only ever gets raised stops being a contract: the next red run is fixed the same way, whether or not the new call belongs there. Assert the reload handler's convergence call directly. Verified by ablation: removing only that call takes the file from 13 pass to 2 fail.
Problem
devCI is currently red for every open PR: #1541 (fb4f2fe99) added a seventhawait convergeCodexCatalog()tosrc/server/management/provider-routes.tsin the new attested credential-free provider-reload route, buttests/codex-convergence-contract.test.ts("route inventory contains exactly the specified 6 + 6 + 2 + 2 convergence calls") still expects 6. See the analysis on #1500 where the failure surfaced on the merge ref, and @Wibias's confirmation that the stale inventory contract should be repaired ondevbefore merging.Fix
Update the inventory contract to the actual call set: expected count for
provider-routes.ts6 → 7 in both the map and the finaltoEqual, and the test title to7 + 6 + 2 + 2. The seventh call is legitimate — the attested reload route converges the catalog after clearing provider caches, same as every sibling route — so the contract is updated rather than the call removed.Tests
bun test tests/codex-convergence-contract.test.ts— 12 pass / 0 fail on this branch (dev@6c5f94a13+ this commit).Unblocks #1500.
🤖 Generated with Claude Code
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit