-
Notifications
You must be signed in to change notification settings - Fork 179
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
MAINT: using common test primitive for banned primitives check in locations #1867
MAINT: using common test primitive for banned primitives check in locations #1867
Conversation
/intelci: run |
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 find the justification for the PR to be weak, but since the work has been done, I ask that you show that fuctionality hasn't been reduced. please show the CI failing for private CI and public CI for target_offload and sklearn_check_version when they are placed in the codebase. ideally by temporarily modifying your PR, running CIs and then returning them back.
@icfaust Thank you for the feedback! |
The justification of this PR is that this is a movement since it is a developer-only feature. However, all tests are included in the install package, and those are for developers and not end users. That is also the case with sklearn, where we install sklearn and then directly use the testing suite as developers, even those it is in the user install. I would like to see the tests throw a failure (to show they are working in CI). Could you add cases of sklearn_check_version and device_offload to show that the tests properly fail in CI? We can remove them later before merging. |
Thank you @icfaust ! I thought about it once again and I think that your opinion is reseanoble and it really might be worth it to include this in standard testing of the package. |
just avoiding code duplication via _test_primitive_usage_ban use merged main
@icfaust I have returned back tests, but generalized in a test primitive common parts to avoid code duplication. |
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.
Big things are: spelling mistakes on 'primitive', using pkgutil instead of importlib (also in standard library), and a stylistic change from "_test" to "_check". Thanks also for catching some mistakes in the original implementation. These changes and we can merge quickly.
using pkgutil.get_loader instead of importlib.import_module
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.
Sorry again for making you change this again. This should now remove the added TODO.
/intelci: run |
No problem. I tought we can update it later, but maybe make sense do it now. Applied suggestions. Thank you! |
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.
Let the CI run through. Merge ready assuming green
Description
Suggested changes:
Discussed here #1839 (comment)