Skip to content
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

ndimage: more efficient testing of binary morphology functions #8313

Merged

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Apr 28, 2024

The purpose of this MR is to refactor existing binary morphology tests from a single dense product over all parameters to 2 or 3 products over a small subset of the parameters. The functionality tested should be equivalent while reducing the total number of test cases run by an order of magnitude.

When running the morphology tests with pytest flag -k Binary, the number of tests that run is reduced from 4054 (before) to 412 (after).

@takagi takagi self-assigned this Apr 30, 2024
@takagi takagi added cat:test Test code / CI prio:medium labels Apr 30, 2024
takagi
takagi previously approved these changes Apr 30, 2024
Copy link
Member

@takagi takagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@takagi takagi enabled auto-merge April 30, 2024 04:42
@takagi takagi added this to the v14.0.0a1 milestone Apr 30, 2024
@takagi
Copy link
Member

takagi commented May 1, 2024

/test mini

Copy link
Contributor

mergify bot commented May 1, 2024

This pull request is now in conflicts. Could you fix it @grlee77? 🙏

split fully dense product into separate products that test different aspects with less redundancy

This change reduced the number of binary morphology tests cases from 4118 to 476
auto-merge was automatically disabled May 1, 2024 11:40

Head branch was pushed to by a user without write access

@grlee77 grlee77 force-pushed the ndimage-reduce-binary-morphology-test-cases branch from 4f263dd to 1070901 Compare May 1, 2024 11:40
@grlee77
Copy link
Contributor Author

grlee77 commented May 3, 2024

conflicts have been resolved, please retest

@takagi
Copy link
Member

takagi commented May 8, 2024

/test mini

@takagi takagi enabled auto-merge May 8, 2024 09:20
@takagi takagi merged commit b2ac134 into cupy:main May 8, 2024
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants