perf: skip unused Start request setup - #8451
schiller-manuel wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe changes update server request routing, middleware execution, serialization adapter handling, request origin resolution, decoded pathname handling, and final manifest caching. Tests cover these behaviors, and a changeset records patch releases. ChangesServer runtime fixes
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Refactor Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant Request
participant createStartHandler
participant Router
participant executeRouter
Request->>createStartHandler: request URL and request context
createStartHandler->>Router: configure origin and serialization adapters
Router->>createStartHandler: matched routes and latest pathname
createStartHandler->>executeRouter: execute route without empty middleware chain
executeRouter-->>Request: server route response
Merge Risk: ⚪ Minimal · up to The optimized request and manifest paths preserve their relevant middleware and cache contracts, with no unresolved merge-blocking issue identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 6 files. (1 skipped: 1 unsupported.)
✨ 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 |
|
View your CI Pipeline Execution ↗ for commit 9dffae9
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview4 package(s) bumped directly, 19 bumped as dependents. 🟩 Patch bumps
|
Bundle Size BenchmarksThis pull request does not affect bundle size in any measured scenario. |
Merging this PR will degrade performance by 0.09%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Memory | mem client unique-location-churn (vue) |
2 MB | 2.1 MB | -4.27% |
| ⚡ | Simulation | ssr rewrite localized (react) |
182.4 ms | 174.9 ms | +4.27% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing codex/trim-unused-start-request-work (9dffae9) with codex/skip-unused-start-routing (6604453)
Footnotes
-
3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
d3c2816 to
001baa4
Compare
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.
🎓 Learn more about Self-Healing CI on nx.dev
92dfe48 to
9dffae9
Compare
🎯 Changes
Stacked on #8444.
Skip request setup when its corresponding Start feature is unused:
Validation: affected unit, type, and lint checks across 16 projects; server-route and global server-function middleware Chromium suites (13 tests). All 18 client bundle scenarios have unchanged raw, gzip, initial-gzip, and Brotli sizes.
✅ Checklist
🚀 Release Impact
Summary by CodeRabbit