fix(openapi): return fresh cached specs - #6550
Conversation
🦋 Changeset detectedLatest commit: 7a0d740 The changes in this PR will be included in the next version bump. This PR includes changesets to release 28 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reached
Next review available in: 18 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesOpenAPI cache isolation
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
Comment |
c33e7f3 to
2fd3fee
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/effect/test/unstable/httpapi/OpenApi.test.ts`:
- Around line 73-91: The regression test should mutate a cache-hit result rather
than only the initially generated result. In the “returns fresh spec instances
when using the cache” test, obtain `second` via `OpenApi.fromApi(Api)`, mutate
its `info.title` and resource GET summary, then call `OpenApi.fromApi(Api)`
again and assert the third result retains the original title and has no summary,
while preserving the existing instance-isolation assertions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 70c904a4-09b4-41cd-82ef-314083381c13
📒 Files selected for processing (3)
.changeset/fix-openapi-from-api-cache-copy.mdpackages/effect/src/unstable/httpapi/OpenApi.tspackages/effect/test/unstable/httpapi/OpenApi.test.ts
Fixes #6330
Summary
Tests
Summary by CodeRabbit