-
-
Notifications
You must be signed in to change notification settings - Fork 638
Fix CI failures on master #1940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Fix ESLint @typescript-eslint/no-deprecated error in ClientSideRenderer.ts by adding eslint-disable comment for unmountComponentAtNode - Fix ESLint @typescript-eslint/unbound-method errors in createReactOnRailsPro.ts by adding eslint-disable comments - Update test expectation in react_on_rails_helper_spec.rb to match new SmartError class and error message format from PR #1934 All linting and specific test now pass locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Warning Rate limit exceeded@justin808 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 33 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
✨ 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 |
Code Review: PR #1940 - Fix CI failures on masterSummaryThis PR effectively addresses CI failures introduced by PR #1934 (smart error messages). The changes are minimal, focused, and appropriate for fixing the broken build. ✅ Positives1. Appropriate Use of ESLint DisablesThe eslint-disable directives are well-justified:
2. Correct Test UpdateThe change from
3. Code Quality
🔍 Observations1. Technical Debt RecognitionThe deprecated API usage is acknowledged and properly handled:
2. Test CoverageThe updated test (
Note: Consider verifying that the full test suite passes in CI, not just the specific failing test mentioned in the PR description. 🎯 RecommendationsMinor Improvements (Optional)
🔒 Security & Performance
✨ Final VerdictAPPROVED ✅ This is a solid fix that:
The changes are ready to merge once CI confirms all tests pass. Great work on the quick turnaround fixing the CI! The smart error messages from #1934 are a valuable addition to the codebase. |
Summary
This PR fixes the CI failures on master that were introduced by PR #1934 (smart error messages).
Changes Made
ESLint Fixes:
@typescript-eslint/no-deprecatederror inClientSideRenderer.tsby adding eslint-disable comment forunmountComponentAtNode(React 18 deprecated API that we still need to support for older versions)@typescript-eslint/unbound-methoderrors increateReactOnRailsPro.tsby adding eslint-disable comments for method referencesTest Fixes:
react_on_rails_helper_spec.rbto expectReactOnRails::SmartErrorinstead ofReactOnRails::Error/the generated component entrypoint/to/Auto-loaded Bundle Missing/to match the new SmartError formatTest Plan
bundle exec rubocopandyarn run lint)spec/helpers/react_on_rails_helper_spec.rb:128)Notes
SmartErroris a subclass ofError, so this change maintains backward compatibility🤖 Generated with Claude Code
This change is