-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
TST: consolidate array API test skip decorators #19682
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
I suppose we don't need to fix gh-19683 (causing the CI failures) before this, in which case this is ready for review @tylerjereddy (no rush of course) |
fbda457
to
2ac45c8
Compare
I've reverted the fix for gh-19683 as that can be done separately, I think this should pass CI now |
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.
I just went through the first two files in the diff so far, but added a few comments. It mostly looks like an improvement from what I've seen so far at least, but need to circle back for the next 4 files in the diff.
a6707b3
to
3b62ced
Compare
@tylerjereddy I've fixed the granularity problem by using a Sorry, the diff has increased in size by quite a bit, but I think this is the right direction. |
3b62ced
to
d3d6eba
Compare
9ceb4a4
to
093e409
Compare
Okay, this is ready for a look @tylerjereddy . I've had some success with the rework - the granularity issue is fixed, the skips can be applied to classes now, and overall verbosity in the test files is reduced greatly. cc @tupui as original author of the infra in case you're interested |
b472d55
to
09421e7
Compare
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.
I took a detailed look again today, including looking at the test pass/skip numbers for this branch vs. main
, and re-reading every single line of the diff here again.
I think I'm in favor of merge once the failing test is marked appropriately. Perhaps we could start a fresh issue for the array-like/empty list input business since going through this PR multiple rounds can take a fair bit of time, and that was only a few cases I think.
EDIT: to clarify, there are way more skips on this branch vs. main
, while preserving or increasing the number of passes (if you rebase), so that's consistent with properly registered skips now.
Thanks Tyler!
If you don't mind, when I find the time, I'll go ahead with my suggestion of:
and make sure that is consistent here. I'm pretty sure that makes sense and is better than what we currently have. I'll also clear up any unresolved comments and let you know when I think this looks ready 👍 |
09421e7
to
77c275b
Compare
@tylerjereddy I think this is ready to go now. I believe that the test coverage is now strictly increased in this PR. |
5186ba3
to
bc7c7c5
Compare
Co-authored-by: Tyler Reddy <tyler.je.reddy@gmail.com>
bc7c7c5
to
cc7e87c
Compare
@rgommers merge conflict resolved, at your leisure :) |
cc7e87c
to
512719f
Compare
512719f
to
eb435aa
Compare
@pytest.mark.xfail(SCIPY_ARRAY_API, | ||
reason='`np.matrix` unsupported in array API mode') |
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.
should probably skip rather than xfail
here.
I spent quite some time reading every line of the diff again and checking the arithmetic on the skip/pass results for a This is a clear improvement in the array API testing infrastructure so I'm going to merge it now. The commit history is clean/reasonable for the size of the PR, so I'll keep it. This is mostly internal testing infrastructure improvements, and has been open for long enough to give folks time to comment if they wanted to. It is true that we're getting deeper into Thanks! |
thanks for the thorough reviews Tyler! Will send a follow-up for the few remaining bits in the coming days 👍 |
Reference issue
Closes gh-19181, towards gh-18866.
What does this implement/fix?
pytest
fixture and marker.Additional information
cluster
.