Fix generated server config lint cleanup - #4840
Conversation
Keep generated server configs lint-clean while commonWebpackConfig retains the defensive clone.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe generated server webpack configuration no longer imports the unused ChangesServer webpack configuration cleanup
Estimated code review effort: 1 (Trivial) | ~5 minutes 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 |
ReviewOverviewSmall, well-scoped cleanup: removes the unused Correctness ✅Verified directly:
Test coverage ✅
Style / conventions
RiskVery low — generator template + fixtures only, no runtime code paths outside code generation are touched, and behavior is unchanged per the No blocking issues found. |
Greptile SummaryThe PR removes an unused Shakapacker
Confidence Score: 5/5The PR appears safe to merge because it removes only an unused binding and misleading comments while keeping generated outputs synchronized. The removed Important Files Changed
Reviews (1): Last reviewed commit: "Fix generated server config lint cleanup" | Re-trigger Greptile |
|
+ci-status |
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 `@CHANGELOG.md`:
- Around line 29-33: Update the changelog entry for Issue 4791 to include the
repository-required pull-request link and author attribution, matching the
formatting used by neighboring CHANGELOG.md entries. Preserve the existing
description and issue link.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 43a9a216-711e-4e3d-ae14-db0742829a24
⛔ Files ignored due to path filters (7)
react_on_rails/spec/react_on_rails/fixtures/generated/rspack_base/config/rspack/serverWebpackConfig.jsis excluded by!**/generated/**react_on_rails/spec/react_on_rails/fixtures/generated/rspack_pro/config/rspack/serverWebpackConfig.jsis excluded by!**/generated/**react_on_rails/spec/react_on_rails/fixtures/generated/rspack_rsc/config/rspack/serverWebpackConfig.jsis excluded by!**/generated/**react_on_rails/spec/react_on_rails/fixtures/generated/webpack_base/config/webpack/serverWebpackConfig.jsis excluded by!**/generated/**react_on_rails/spec/react_on_rails/fixtures/generated/webpack_base_shakapacker8/config/webpack/serverWebpackConfig.jsis excluded by!**/generated/**react_on_rails/spec/react_on_rails/fixtures/generated/webpack_pro/config/webpack/serverWebpackConfig.jsis excluded by!**/generated/**react_on_rails/spec/react_on_rails/fixtures/generated/webpack_rsc/config/webpack/serverWebpackConfig.jsis excluded by!**/generated/**
📒 Files selected for processing (3)
CHANGELOG.mdreact_on_rails/lib/generators/react_on_rails/templates/base/base/config/webpack/serverWebpackConfig.js.ttreact_on_rails/spec/dummy/config/webpack/serverWebpackConfig.js
💤 Files with no reviewable changes (1)
- react_on_rails/spec/dummy/config/webpack/serverWebpackConfig.js
CI StatusHead SHA: Only the required gate is active unless hosted CI is requested. |
|
+ci-run-hosted |
Hosted CI RequestedTriggered 9 workflow(s) for View progress in the Actions tab. |
Keep the unreleased changelog entry consistent with neighboring contributor attributions.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1c29441bfc
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
QA Evidence
|
Review: Fix generated server config lint cleanupOverviewRemoves the unused Correctness — verified
Code quality
Minor/nit
Test coverage
Security / performance
Overall: safe, well-scoped, and the core "runtime unchanged" claim checks out against the actual |
Review feedback addressedReviewed the complete current review wave through head
|
|
+ci-status |
CI StatusHead SHA: Optimized hosted CI is enabled for this PR. |
|
Completed-batch audit: replay evidence follows. |
…kaperf-evidence * origin/main: Docs: add missing content — release notes, upgrade guide, config, API references (#4843) (#4844) Fix incorrect docs: helper names, defaults, requirements, runtime refs (#4836) Scroll-priority streaming: candidate architecture evaluation (#4835) (#4841) Fix generated server config lint cleanup (#4840) # Conflicts: # CHANGELOG.md
…out-vm-pool * origin/main: Docs: move agent coordination to the HTTP backend (#4764) Detect unnoticed changes across generated webpack/Rspack configs (#4839) Fix durable ShakaPerf release evidence reuse (#4833) Docs: add missing content — release notes, upgrade guide, config, API references (#4843) (#4844) Fix incorrect docs: helper names, defaults, requirements, runtime refs (#4836) Scroll-priority streaming: candidate architecture evaluation (#4835) (#4841) Fix generated server config lint cleanup (#4840) Document serialized release backport policy (#4592) Package version-matched agent skills and docs (#4809) Fix ci-required base ref for PR merge-ref checkouts (#4819) Honor response charset and reject non-2xx HTTP-served SSR bundles (#4817) [Pro] Redact RSC render-error metadata on the fetched (client-navigation) payload path (#4821) Forward-port the 17.0.1 changelog section to main (#4814) # Conflicts: # CHANGELOG.md
…ential-broker * origin/main: (75 commits) Silence routine startup diagnostics for Rails commands (#4849) Docs: move agent coordination to the HTTP backend (#4764) Detect unnoticed changes across generated webpack/Rspack configs (#4839) Fix durable ShakaPerf release evidence reuse (#4833) Docs: add missing content — release notes, upgrade guide, config, API references (#4843) (#4844) Fix incorrect docs: helper names, defaults, requirements, runtime refs (#4836) Scroll-priority streaming: candidate architecture evaluation (#4835) (#4841) Fix generated server config lint cleanup (#4840) Document serialized release backport policy (#4592) Package version-matched agent skills and docs (#4809) Fix ci-required base ref for PR merge-ref checkouts (#4819) Honor response charset and reject non-2xx HTTP-served SSR bundles (#4817) [Pro] Redact RSC render-error metadata on the fetched (client-navigation) payload path (#4821) Forward-port the 17.0.1 changelog section to main (#4814) Handle selector metacharacters in renderComponent DOM IDs (#4808) [Pro] Prevent caching RSC renders with errors (#4804) Agents: trust Copilot review identities (#4807) Agents: bind fleet closeout to generated pack (#4805) Docs: ADR 0002 — Skills-in-package over MCP for agent-native DX (#4735) Scope GitHub release commands to the origin repository (#4803) ...
Why
Generated server webpack configs imported
mergefrom Shakapacker without using it, and nearby comments incorrectly said the server config performed a merge. The sharedcommonWebpackConfigalready performs the defensive merge/clone, so keeping the extra import and comments creates lint noise and misleading generated code.Fixes #4791.
What changed
mergeimport from the server webpack config template.Decision
This removes the unused API rather than adding a redundant merge call. Runtime behavior remains unchanged because
commonWebpackConfigcontinues to merge into a fresh object.Validation
REGENERATE_GENERATOR_GOLDEN=1 bundle exec rspec spec/react_on_rails/generators/generator_golden_output_spec.rb— 34 examples, 0 failurespnpm run lint— passedgit diff --check— passedorigin/main— no findingsChurn notes
The first normal commit attempt was blocked by an outdated Corepack signature key. Corepack was updated to 0.34.6 and pnpm 10.33.4 was activated; hooks were then rerun normally and passed. No hook was bypassed.
Codex decision log
Summary by CodeRabbit
Bug Fixes
Documentation
Completed-batch audit
Status: Clean — no outstanding findings or follow-ups. Durable receipt.