Skip to content

Codegen refresh#1702

Merged
rwgk merged 10 commits intoNVIDIA:mainfrom
rwgk:codegen_refresh_2026-02-27
Feb 27, 2026
Merged

Codegen refresh#1702
rwgk merged 10 commits intoNVIDIA:mainfrom
rwgk:codegen_refresh_2026-02-27

Conversation

@rwgk
Copy link
Collaborator

@rwgk rwgk commented Feb 27, 2026

Bring main back in sync with code generators.

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Feb 27, 2026

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.

@rwgk
Copy link
Collaborator Author

rwgk commented Feb 27, 2026

Tracking these little hiccups:

smc120-0009.ipp2a2.colossus.nvidia.com:/wrk/forked/cuda-python $ pre-commit run --all-files
ruff check...............................................................Failed
- hook id: ruff-check
- exit code: 1

E501 Line too long (149 > 120)
 --> cuda_bindings/cuda/bindings/_internal/_fast_enum.py:5:121
  |
5 | …to 13.1.1, generator version 0.3.1.dev1322+g646ce84ec. Do not modify it directly.
  |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |

Found 1 error.

ruff format..............................................................Passed
Check SPDX Headers.......................................................Passed
Prevent markdown files in docs/source directories....(no files to check)Skipped
check for added large files..............................................Passed
check for case conflicts.................................................Passed
check docstring is first.................................................Passed
check for merge conflicts................................................Passed
check for broken symlinks................................................Passed
check toml...............................................................Passed
check yaml...............................................................Passed
debug statements (python)................................................Passed
fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing cuda_bindings/cuda/bindings/nvml.pyx

mixed line ending........................................................Passed
trim trailing whitespace.................................................Passed
rst ``code`` is two backticks............................................Passed
rst directives end with two colons.......................................Passed
rst ``inline code`` next to normal text..................................Passed
mypy-pathfinder..........................................................Passed
Lint GitHub Actions workflow files.......................................Passed
cython-lint..............................................................Passed

E501 is not auto-fixed.

@rwgk
Copy link
Collaborator Author

rwgk commented Feb 27, 2026

/ok to test

@github-actions

This comment has been minimized.

@rwgk
Copy link
Collaborator Author

rwgk commented Feb 27, 2026

/ok to test

…ation

- Register 'flaky' marker in pytest.ini to eliminate warnings about unknown mark
- Fix dependency group references in cuda_core/pyproject.toml to use {include-group = "test"} instead of "cuda-core[test]" extra
- This ensures pytest-rerunfailures is properly installed so @pytest.mark.flaky() decorators work correctly

Example failure fixed by this commit: https://github.com/NVIDIA/cuda-python/actions/runs/22501839950/job/65191834971?pr=1702

Made-with: Cursor
@rwgk rwgk force-pushed the codegen_refresh_2026-02-27 branch from 53c4c5b to ffaab34 Compare February 27, 2026 22:25
rwgk added 3 commits February 27, 2026 14:54
Exclude cuda_bindings/cuda/bindings/_internal/_fast_enum.py from ruff
checks to fix pre-commit error. This file is auto-generated and contains
a long line that exceeds the 120 character limit.

Made-with: Cursor
@rwgk
Copy link
Collaborator Author

rwgk commented Feb 27, 2026

/ok to test

@leofang leofang added this to the cuda.bindings 13.2 milestone Feb 27, 2026
@leofang leofang added P0 High priority - Must do! cuda.bindings Everything related to the cuda.bindings module labels Feb 27, 2026
@rwgk
Copy link
Collaborator Author

rwgk commented Feb 27, 2026

To ensure commit ffaab34 is working as intended, I looked manually through one of the test logs:

https://github.com/NVIDIA/cuda-python/actions/runs/22507629723/job/65210357955?pr=1702

I didn't see any pytest warnings anymore.

@rwgk rwgk enabled auto-merge (squash) February 27, 2026 23:51
@rwgk rwgk merged commit 7832aaf into NVIDIA:main Feb 27, 2026
90 checks passed
@rwgk rwgk deleted the codegen_refresh_2026-02-27 branch February 27, 2026 23:55
@leofang leofang mentioned this pull request Feb 27, 2026
2 tasks
@github-actions

This comment has been minimized.

3 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

Doc Preview CI
Preview removed because the pull request was closed or merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindings Everything related to the cuda.bindings module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants