-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Clean up some warnings from the test suite #6067
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
@@ Coverage Diff @@
## main #6067 +/- ##
==========================================
- Coverage 89.56% 89.52% -0.05%
==========================================
Files 72 72
Lines 12941 12942 +1
==========================================
- Hits 11591 11586 -5
- Misses 1350 1356 +6
|
I am not sure why this test is failing on the runner, as it is passing on my computer. |
I see. Shouldn't that better be fixed by fixing the PRNG seed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing. There are just some cases where I think we should assert the warning is being issued instead of ignoring it.
I never saw this test fail so I think it's safe to just ignore and rerun. |
Opened an issue for the failing test: #6069 |
e0ff992
to
75aa269
Compare
Thank you for your review! I pushed the requested changes. |
What is this PR about?
This PR removes 200 warnings from the 678 generated by the test suite. This de-clutters the output of the tests and makes it easier to spot if something is wrong. Also, but I am not sure if this is significant, the whole test suite ran 10% faster on my computer after the cleanup. I will check if it also makes the github runners faster.
I think that the ones that I fixed are the less controversial ones.
A good proportion if not the majority of the remaining warnings comes from a numpy deprecation in aesara which I will also address.
The rest are less easy to fix, or potential legit indications of problems (when I was not sure, I left them alone).
If there is interest, I can make a second pass later and try to tackle the rest.
I can breakup this huge commit into smaller thematic ones, let me know if this would be easier to review.
Checklist
Major / Breaking Changes
Bugfixes / New features
Docs / Maintenance