fix(start): keep server-only routes out of RSC bundles - #7944
Conversation
Use the Start storage context for request cancellation and focused server entrypoints to keep unrelated route dependencies out of the RSC module graph. Add emitted-build regression coverage for the boundary. fixes #7938
|
View your CI Pipeline Execution ↗ for commit 819175d
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview5 package(s) bumped directly, 4 bumped as dependents. 🟩 Patch bumps
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (25)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe change adds focused ChangesFocused server entrypoints
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant PlaywrightTest
participant RscBuildBoundaryRoute
participant SSRBuild
participant RSCBuild
PlaywrightTest->>RscBuildBoundaryRoute: Request /api/rsc-build-boundary
RscBuildBoundaryRoute-->>PlaywrightTest: Return build-boundary sentinel
PlaywrightTest->>SSRBuild: Scan executable SSR files
SSRBuild-->>PlaywrightTest: Require sentinel
PlaywrightTest->>RSCBuild: Scan executable RSC files
RSCBuild-->>PlaywrightTest: Reject sentinel
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
Bundle Size BenchmarksThis pull request does not affect bundle size in any measured scenario. |
Merging this PR will degrade performance by 21.68%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Memory | mem server error-paths unmatched (vue) |
468.9 KB | 2,207.6 KB | -78.76% |
| ❌ | Memory | mem server error-paths unmatched (react) |
369.2 KB | 1,450.6 KB | -74.55% |
| ❌ | Memory | mem server error-paths not-found (solid) |
416.3 KB | 983.7 KB | -57.68% |
| ❌ | Memory | mem server server-fn-churn (vue) |
269.4 KB | 416.2 KB | -35.28% |
| ❌ | Memory | mem server server-fn-churn (solid) |
263.5 KB | 273.6 KB | -3.69% |
| ⚡ | Memory | mem server error-paths redirect (vue) |
809.1 KB | 450.2 KB | +79.74% |
| ⚡ | Memory | mem server error-paths redirect (solid) |
504.4 KB | 442.7 KB | +13.93% |
| ⚡ | Memory | mem client preload-churn (vue) |
758.9 KB | 667.8 KB | +13.63% |
| ⚡ | Simulation | ssr server-fn multipart (solid) |
63 ms | 59.3 ms | +6.18% |
| ⚡ | Memory | mem server error-paths not-found (react) |
280.9 KB | 266.5 KB | +5.4% |
| ⚡ | Simulation | ssr server-fn raw-stream (solid) |
111.8 ms | 106.7 ms | +4.77% |
| ⚡ | Simulation | client-async-pipeline navigation loop (react) |
51.7 ms | 49.9 ms | +3.73% |
| ⚡ | Simulation | ssr server-fn raw-response (solid) |
57.2 ms | 55.3 ms | +3.4% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing fix-7938 (819175d) with main (b5e540d)
Use the Start storage context for request cancellation and focused server entrypoints to keep unrelated route dependencies out of the RSC module graph. Add emitted-build regression coverage for the boundary.
fixes #7938
Summary by CodeRabbit
New Features
Bug Fixes
Tests