-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Make pytest err on PytestUnraisableExceptionWarning #24438
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
CI Make pytest err on PytestUnraisableExceptionWarning #24438
Conversation
See: scikit-learn#13649 (comment) Co-authored-by: Jérémie du Boisberranger <[email protected]>
I ran it locally and got 180+ failures 😄. Most of them come from the issue detected in #13649 though. You'll need to backport here the fix you found. |
looks like it did not trigger |
I do not have issues locally. The problem was introduced in #13649, but likely was not present in another place in the code-base before. |
Right, most of the failures comes from #13649. But I do have errors locally on main, from |
Which failure do you have exactly so that we can address them? |
EDIT: my bad I was looking at the windows job while it's enabled in a linux job. |
Move the handling under the "$CHECK_WARNINGS" checks. Co-authored-by: Jérémie du Boisberranger <[email protected]>
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.
LGTM.
as discussed irl, let's try to enable boundscheck in the |
Co-authored-by: Jérémie du Boisberranger <[email protected]>
So, enabling boundschecks didn't trigger any error, but made the run 20min faster 😲 |
There must be something related to shared machines and load balancing. 😄 |
There is a lot of variability for CI jobs' duration; I think we can note it generally but ignore this for this PR. |
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.
LGTM. The timings have a lot of fluctuations but it seems that it's not longer than without enabling the bounds checks.
Reference Issues/PRs
Relates to discussions in #13649, see #13649 (comment).
What does this implement/fix? Explain your changes.
If Cython directives are activated,
IndexErrors
(which aren't fatal) are raised and captured bypytest
, but not raised again.pytest
in return raisesPytestUnraisableExceptionWarnings
, which we must treat as errors on the CI.