From 323fa298adbba4977b4ba48daeb544a768d323a3 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Nov 2026 17:46:43 -0800 Subject: [PATCH 1/3] test(cuda.core): add a Windows Cython test build wrapper --- cuda_core/tests/cython/build_tests.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cuda_core/tests/cython/build_tests.bat diff --git a/cuda_core/tests/cython/build_tests.bat b/cuda_core/tests/cython/build_tests.bat new file mode 100644 index 00000000000..9dd49ff7405 --- /dev/null +++ b/cuda_core/tests/cython/build_tests.bat @@ -0,0 +1,10 @@ +@echo off + +REM SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +REM SPDX-License-Identifier: Apache-2.0 + +setlocal +set "INCLUDE=%~dp0..\..\cuda\core\_include;%CUDA_HOME%\include;%INCLUDE%" +python "%~dp0build_tests.py" +set "BUILD_RESULT=%ERRORLEVEL%" +endlocal & exit /b %BUILD_RESULT% From 60baf1d1a4ce1098f6e8e6bf177ac361069526f9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Nov 2026 17:47:23 -0800 Subject: [PATCH 2/3] ci(cuda.core): build Windows Cython tests through CMD --- .github/workflows/build-wheel.yml | 32 +++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.yml index e1ab9b2802d..40f7e20634c 100644 --- a/.github/workflows/build-wheel.yml +++ b/.github/workflows/build-wheel.yml @@ -512,7 +512,7 @@ jobs: path: ${{ env.CURRENT_BINDINGS_CYTHON_TESTS_DIR }}/test_*${{ env.PY_EXT_SUFFIX }} if-no-files-found: error - - name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests + - name: Prepare cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests if: ${{ env.TEST_CORE_CURRENT == 'true' }} run: | pip install ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }}/*.whl @@ -526,9 +526,17 @@ jobs: exit 1 fi pip install "${core_wheel}" --group ./cuda_core/pyproject.toml:test - pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} - bash build_tests.sh - popd + + - name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests (Linux) + if: ${{ env.TEST_CORE_CURRENT == 'true' && runner.os == 'Linux' }} + working-directory: cuda_core/tests/cython + run: bash build_tests.sh + + - name: Build cuda.core ${{ env.CURRENT_CUDA_VARIANT }} Cython tests (Windows) + if: ${{ env.TEST_CORE_CURRENT == 'true' && runner.os == 'Windows' }} + working-directory: cuda_core/tests/cython + shell: cmd + run: call .\build_tests.bat - name: Upload current cuda.core Cython tests if: ${{ env.TEST_CORE_CURRENT == 'true' }} @@ -733,7 +741,7 @@ jobs: ls -lahR ${{ env.CUDA_CORE_ARTIFACTS_DIR }} - - name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests + - name: Prepare cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' }} run: | # The current package's test extensions were built in this same source tree. @@ -755,9 +763,17 @@ jobs: exit 1 fi pip install "${core_wheel}" --group ./cuda_core/pyproject.toml:test - pushd ${{ env.CUDA_CORE_CYTHON_TESTS_DIR }} - bash build_tests.sh - popd + + - name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests (Linux) + if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' && runner.os == 'Linux' }} + working-directory: cuda_core/tests/cython + run: bash build_tests.sh + + - name: Build cuda.core ${{ env.MAINTENANCE_CUDA_VARIANT }} Cython tests (Windows) + if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' && runner.os == 'Windows' }} + working-directory: cuda_core/tests/cython + shell: cmd + run: call .\build_tests.bat - name: Upload maintenance cuda.core Cython tests if: ${{ !inputs.single-cuda-major && env.TEST_CORE_MAINTENANCE == 'true' }} From adeb29a63ef67358ae9af1a03997414d074fa0b9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Nov 2026 17:47:27 -0800 Subject: [PATCH 3/3] ci: require manual copy-pr-bot approval