You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(cuda.core): exercise the Windows Cython test wrapper in wheel CI - #3513
Add a native batch wrapper for building the cuda.core Cython tests. It supplies the Core and CUDA toolkit header directories to MSVC and delegates to the existing Python builder. The Windows Pixi task already points to this wrapper.
Run the batch wrapper in the Windows wheel build for both the current and maintenance CUDA variants. The wheel jobs upload the resulting extensions for the existing GPU test jobs. Linux builds continue through the shell wrapper.
Reviewing files that changed from the base of the PR and between adeb29a and e2fc262.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Tests
Automated Cython test-extension builds now run in separate Linux and Windows steps for current and maintenance CUDA environments.
Maintenance CUDA test setup now clears generated build artifacts and removes existing CUDA packages before installing the required wheels.
The wheel workflow now separates Cython test preparation from OS-specific build steps for current and maintenance CUDA variants. Linux uses build_tests.sh; Windows uses a new batch wrapper that runs build_tests.py and returns its exit code.
The workflow routes current and maintenance variant builds to Linux or Windows steps based on runner OS. The new Windows wrapper sets INCLUDE, runs build_tests.py, and returns its exit code.
Suggested reviewers:juenglin, leofang
Change: Other
Merge Risk: Minimal · previous review adeb2
This change adds a Windows build path for CUDA Core Cython tests in CI. It affects only the test-build workflow, and no concrete problem was found. It is low risk to merge.
Architecture risk: Low · up to adeb2
The change affects 1 system.
Changed systems:cuda_core
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — cuda_core (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
observed — Modified behavior in cuda_core/tests/cython/build_tests.bat: Adds a batch wrapper that configures INCLUDE, invokes build_tests.py, captures its exit code, and returns that code after ending the local environment.
observed — Modified behavior in .github/workflows/build-wheel.yml: The current-variant Cython test step is renamed from “Build” to “Prepare”; its condition and setup commands remain.
observed — Modified behavior in .github/workflows/build-wheel.yml: The former in-step Linux build command is replaced by OS-specific build steps: Linux runs build_tests.sh from cuda_core/tests/cython, while Windows runs build_tests.bat using cmd. Both are gated on current-variant core testing and their matching runner OS.
observed — Modified behavior in .github/workflows/build-wheel.yml: The maintenance-variant Cython test step is renamed from “Build” to “Prepare”; its condition and preparation commands remain.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between faeb2e2 and adeb29a.
Files selected for processing: 2
.github/workflows/build-wheel.yml
cuda_core/tests/cython/build_tests.bat
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Approving to keep this aligned with NVIDIA-dev/cuda-python-private#885 and off the critical path. Could we track a follow-up that replaces the per-platform Cython test wrappers in all three roots (cuda_core, cuda_bindings_12, cuda_bindings_13) with a single cross-platform step?
The wrappers exist only to pass include directories to the compiler (CPLUS_INCLUDE_PATH on Linux, CL or INCLUDE on Windows). Each root's build_tests.py already loads _build_shared.py, so it can add the directories itself:
_get_cuda_path() resolves CUDA_PATH or CUDA_HOME the same way the package build does and raises if neither is set.
Then:
build-wheel.yml: replace the platform-specific steps for Core and bindings, both variants, with one step each: working-directory: <root>/tests/cython, run: python build_tests.py.
Each pixi.toml: merge the linux and win-64build-cython-tests tasks into one task running python $PIXI_PROJECT_ROOT/tests/cython/build_tests.py.
Wrappers: delete build_tests.sh and build_tests.bat in all three roots, or reduce them to pass-throughs. Update the AGENTS.md and README references.
Behavior change to decide: on Linux, CPLUS_INCLUDE_PATH currently gives these headers system-header warning suppression, and include_dirs (-I) does not. Either accept the extra warnings or pass these directories as -isystem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CI/CDCI/CD infrastructurecuda.coreEverything related to the cuda.core moduletestImprovements or additions to tests
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
— codex on behalf of Ralf —
Description
Add a native batch wrapper for building the cuda.core Cython tests. It supplies the Core and CUDA toolkit header directories to MSVC and delegates to the existing Python builder. The Windows Pixi task already points to this wrapper.
Run the batch wrapper in the Windows wheel build for both the current and maintenance CUDA variants. The wheel jobs upload the resulting extensions for the existing GPU test jobs. Linux builds continue through the shell wrapper.
xref: ctk-next 885
Checklist