Repository navigation
Conversation
|
@aelde hey thanks for the PR! are you able to run the pr-review skills and post the results? Skills are available at: |
|
Thanks for the review request. I used the project’s review checklist in an isolated worktree, with AI assistance. I did not run the installer or automatic posting steps. The review found a test-collection issue with the console pytest command. I moved the test into the existing test package in commit efa208e. The focused tests now pass 5/5 with both pytest and python -m pytest. I also verified that reverting the guard causes three tests to fail as expected. I found no further issues in the scoped review. I did not run the full suite, ASV, or real GPU tests locally. The new CI workflows are awaiting approval. |
Fixes #3707.
The CuPy benchmark helper tested the
has_cuda_and_cupyfunction object instead of calling it. On a host without usable CUDA/CuPy, this bypassed the intendedNotImplementedErrorskip and attempted to import or use CuPy. Call the existing predicate, matching the neighboring dask+cupy branch.Five regression cases cover CuPy absent or present with CUDA unavailable for both GPU backend choices, and confirm that the CuPy conversion path is still reached when the predicate returns true. The tests use real project imports and mock only the capability result and CuPy calls; they require no GPU.
Validation
python -m pytest benchmarks/tests/test_common.py -q: 5 passed; reverting the one-line fix gives 3 failed, 2 passed.git diff --checkandpip checkpassed.AI-assisted review
Reviewed using an adapted local checklist from the project's command suite, as permitted by CONTRIBUTING.md. The review checked the full changed files, capability dispatch, test failure modes, API compatibility and performance implications. No further source changes were needed.
The complete
/review-prcommand was not run: this review preceded PR creation, and its referenced/humanizerskill was not available locally. Numerical validation sweeps do not apply to this capability-guard-only fix. GPU execution and full-suite coverage remain unverified as noted above.