-
Notifications
You must be signed in to change notification settings - Fork 906
Remove unnecessary(?) animalsniffer exclusions #7696
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7696 +/- ##
=========================================
Coverage 90.12% 90.12%
Complexity 7187 7187
=========================================
Files 814 814
Lines 21700 21700
Branches 2123 2123
=========================================
Hits 19557 19557
Misses 1477 1477
Partials 666 666 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Worrisome for me, yeah. Is this possibly another scenario where the tests should be running but just aren't, and gradle doesn't complain about it? |
The Android-related parts of animalsniffer for this repo are all in this file, which is then used in this convention one, none of which are changed in this PR, so I'm not worried that those would affect Android checks. They seem more related to concurrency tools that I'm not familiar with, which are probably impacted? But in terms of Android, I wouldn't worry about these changes. |
TODO trask will try adding something that we know will fail on Android 23 to verify it's even running |
A simple way to do this is to write some unsupported code into a module that uses the animalsniffer conventions and then run a gradle check on it. For example, the File.toPath() method is not supported in Android < 26, not even with the corelib help, so by calling it somewhere in the code and running a check, it should raise an animalsniffer error. I've just tested it by calling it from a class inside the
Then I ran:
Which raised this issue in the console:
One thing to note is that, iirc, this checks only our code, not the code from our dependencies. So if there's something from JCTools that is not supported by Android, for example, I think this tool won't let us know that. If that's the case, there's probably a way to create a custom animalsniffer task that also checks dependencies' code, though I haven't checked. |
@open-telemetry/android-approvers is this worrisome that removing these doesn't cause any failures?