Skip to content

Conversation

@mdboom
Copy link
Contributor

@mdboom mdboom commented Dec 10, 2025

Description

As @rwgk discovered, all of the tests using the for_all_devices fixture fail with fixture function has more than one 'yield'. I didn't realize that wasn't allowed. This changes the fixture to just yield the whole list of devices.

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Dec 10, 2025

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@mdboom mdboom requested a review from rwgk December 10, 2025 00:50
@mdboom
Copy link
Contributor Author

mdboom commented Dec 10, 2025

/ok to test

@github-actions
Copy link

Copy link
Collaborator

@rwgk rwgk left a comment

Choose a reason for hiding this comment

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

LGTM although I'd try to preserve the skip information. I think it's worth a small effort, so that we can reason about what we're actually testing. E.g. where you have the continue, maybe build a defaultdict(int) with the current skip messages as keys; when the end of a subtest is reached, check if the dict is empty, if not call pytest.skip with the key/counts in the message.

I'd try to give that as a prompt to Cursor. Good chance it'll "just do it".

@mdboom mdboom force-pushed the fix-nvml-tests-multiple-devices branch from 7580dfa to 634abf3 Compare December 10, 2025 01:18
@mdboom
Copy link
Contributor Author

mdboom commented Dec 10, 2025

/ok to test

@mdboom
Copy link
Contributor Author

mdboom commented Dec 10, 2025

Good idea.

I'd try to give that as a prompt to Cursor. Good chance it'll "just do it".

I did one of these, and VSCode/Copilot was able to infer the rest.

@mdboom mdboom enabled auto-merge (squash) December 10, 2025 01:24
Copy link
Collaborator

@rwgk rwgk left a comment

Choose a reason for hiding this comment

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

The TestIpcReexport.test_main segfault is interesting. @Andy-Jost for awareness:

https://github.com/NVIDIA/cuda-python/actions/runs/20083999706/job/57617779182?pr=1352

I expect a rerun will deflake that.

@mdboom mdboom merged commit 4886636 into NVIDIA:main Dec 10, 2025
79 of 80 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 10, 2025
Removed preview folders for the following PRs:
- PR #1352
mdboom added a commit to mdboom/cuda-python that referenced this pull request Dec 10, 2025
mdboom added a commit that referenced this pull request Dec 11, 2025
* Add experimental NVML bindings to 12.9.x branch

* Add tests from main to 12.9.x branch

* Remove newer APIs

* Remove hand-written 13.0 bindings

* Queue up 'skip reasons' (#1352)

* Handle backport correctly

* Fix cimport

* More versioned struct fixes

* Fix test for 12.9

* Add 13.1 bindings
@leofang leofang added this to the cuda-python 13-next, 12-next milestone Dec 14, 2025
@leofang leofang added bug Something isn't working test Improvements or additions to tests cuda.bindings Everything related to the cuda.bindings module P0 High priority - Must do! labels Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.bindings Everything related to the cuda.bindings module P0 High priority - Must do! test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants