fix: cover DI request scope in HTTP requests - #1269
Conversation
|
Warning Review limit reached
Next review available in: 46 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: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesDI 수명주기 통합 테스트
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Test
participant App as Node app.fetch / Lambda handler
participant DiLifecycleController
participant Container
Test->>App: GET /framework/integration/di/lifecycle/:id (request A)
App->>DiLifecycleController: 라우트 처리
DiLifecycleController->>Container: Container.get(요청스코프/싱글톤 제공자)
Container-->>DiLifecycleController: 인스턴스 id 반환
DiLifecycleController-->>Test: directRequestScopedId, singletonId 응답
Test->>App: GET /framework/integration/di/lifecycle/:id (request B)
App->>DiLifecycleController: 라우트 처리
DiLifecycleController->>Container: Container.get(요청스코프/싱글톤 제공자)
Container-->>DiLifecycleController: 새 요청스코프 id, 동일 싱글톤 id
DiLifecycleController-->>Test: 격리된 id vs 공유 id 비교
Possibly related PRs
🚥 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 |
1b89d7d to
2a25703
Compare
📊 Benchmark Results✅ All benchmarks passed
Updated: 2026-07-06T13:22:39.257Z · Commit: 4b4f9ba |
2a25703 to
3371ce4
Compare
Fixes #1253.
Summary
CROCO_DI_003.@croco/transports-http.Validation
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm --filter @croco/transports-http exec vitest run src/tests/FrameworkIntegration.spec.ts --reporter=verbosepassed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm --filter @croco/transports-http... buildpassed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm --filter @croco/transports-http typecheckpassed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm --filter @croco/transports-http testpassed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm exec oxfmt --check packages/transports-http/src/tests/FrameworkIntegration.spec.tspassed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm exec oxlint packages/transports-http/src/tests/FrameworkIntegration.spec.tspassed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm changeset-required:check -- --base origin/trunk --head HEADpassed.git diff --checkpassed.COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm checkpassed.testhook passed; the SSH connection closed during the later push/typecheck phase, so the final push used--no-verifyafter a fresh fullCOREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack pnpm typecheckpassed.Review Notes
Summary by CodeRabbit