-
Notifications
You must be signed in to change notification settings - Fork 329
Stop passing -processorpath to CompilationTestHelper in NullAway tests
#1326
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
|
Confirmed that the changes in this PR make the tests pass in #1323 |
WalkthroughThis pull request refactors the test infrastructure for library models across multiple modules. The code-coverage-report module adds a dependency on test-library-models. The nullaway module removes a test method and related imports from AutoSuggestTest. The test-library-models module gains a new Gradle plugin configuration and test dependencies, adds a new method mapping to TestLibraryModels for cast operations, and restructures CustomLibraryModelsTests to use BugCheckerRefactoringTestHelper instead of extending NullAwayTestsBase, while adding a new test method for verifying unnecessary cast removal. Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: 2025-08-14T18:50:06.159ZApplied to files:
📚 Learning: 2025-08-28T04:54:20.953ZApplied to files:
🧬 Code graph analysis (1)test-library-models/src/test/java/com/uber/nullaway/CustomLibraryModelsTests.java (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (7)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1326 +/- ##
============================================
+ Coverage 88.37% 88.44% +0.06%
- Complexity 2549 2563 +14
============================================
Files 95 96 +1
Lines 8543 8594 +51
Branches 1705 1705
============================================
+ Hits 7550 7601 +51
Misses 499 499
Partials 494 494 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This seems to have a global side effect that causes weird test failures in #1323, and it's a bit of a hack. Instead, move the relevant tests to the
test-library-modelmodule where no such hacks are required. Test-only changes.Summary by CodeRabbit
New Features
Tests
Chores