Skip to content

Commit 0615816

Browse files
authored
Merge branch 'main' into fix-post-release-wheel-validation
2 parents 832ffd0 + ec4af50 commit 0615816

408 files changed

Lines changed: 50086 additions & 42329 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/dependabot.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

‎.github/workflows/backport.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
}}
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
37+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3838

3939
- name: Load branch name
4040
id: get-branch
@@ -54,7 +54,7 @@ jobs:
5454
if: github.repository_owner == 'nvidia' && github.event_name == 'workflow_dispatch'
5555
runs-on: ubuntu-latest
5656
steps:
57-
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
57+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5858

5959
- name: Load branch from environment name
6060
if: inputs.backport-branch == null

‎.github/workflows/bandit.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
security-events: write
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
26+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
2727

2828
- name: Install uv
29-
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
29+
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
3030
with:
3131
enable-cache: false
3232

@@ -45,6 +45,6 @@ jobs:
4545
with:
4646
args: "check --select S --ignore ${{ steps.ignore-codes.outputs.codes }} --output-format sarif --output-file results.sarif"
4747
- name: Upload SARIF file
48-
uses: github/codeql-action/upload-sarif@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
48+
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
4949
with:
5050
sarif_file: results.sarif

‎.github/workflows/build-docs.yml‎

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ on:
3333
required: false
3434
default: false
3535
type: boolean
36+
deploy-docs:
37+
description: "Deploy generated docs to GitHub Pages or preview branches"
38+
required: false
39+
default: true
40+
type: boolean
41+
docs-branch:
42+
description: "Branch that receives deployed docs"
43+
required: false
44+
default: "gh-pages"
45+
type: string
3646

3747
jobs:
3848
build:
@@ -45,14 +55,21 @@ jobs:
4555
shell: bash -el {0}
4656
steps:
4757
- name: Checkout ${{ github.event.repository.name }}
48-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
58+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4959
with:
5060
fetch-depth: 1
5161
ref: ${{ inputs.git-tag }}
5262

5363
- name: Read build CTK version
5464
run: |
55-
BUILD_CTK_VER=$(yq '.cuda.build.version' ci/versions.yml)
65+
if [[ -f ci/versions.yml ]]; then
66+
BUILD_CTK_VER=$(yq '.cuda.build.version' ci/versions.yml)
67+
elif [[ -f ci/versions.json ]]; then
68+
BUILD_CTK_VER=$(jq -r '.cuda.build.version' ci/versions.json)
69+
else
70+
echo "error: cannot find ci/versions.yml or ci/versions.json" >&2
71+
exit 1
72+
fi
5673
if [[ ! "${BUILD_CTK_VER}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
5774
echo "error: derived CTK build version ${BUILD_CTK_VER} does not match MAJOR.MINOR.MICRO" >&2
5875
exit 1
@@ -259,7 +276,7 @@ jobs:
259276
- name: Restore lychee cache
260277
if: ${{ !inputs.is-release && github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
261278
id: restore-lychee-cache
262-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
279+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
263280
with:
264281
path: .lycheecache
265282
key: docs-rendered-lychee-${{ env.PR_NUMBER }}-${{ github.sha }}
@@ -299,31 +316,41 @@ jobs:
299316

300317
- name: Save lychee cache
301318
if: ${{ always() && !inputs.is-release && github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') && steps.restore-lychee-cache.outputs.cache-hit != 'true' && steps.restore-lychee-cache.outputs.cache-primary-key != '' }}
302-
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
319+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
303320
with:
304321
path: .lycheecache
305322
key: ${{ steps.restore-lychee-cache.outputs.cache-primary-key }}
306323

307324
- name: Upload docs GitHub Pages artifact
325+
if: ${{ inputs.deploy-docs }}
308326
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
309327
with:
310328
path: artifacts/
311329
retention-days: 3
312330

331+
- name: Upload dry-run docs artifact
332+
if: ${{ !inputs.deploy-docs || (inputs.is-release && inputs.docs-branch != 'gh-pages') }}
333+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
334+
with:
335+
name: release-docs-dry-run-${{ inputs.component }}-${{ inputs.git-tag }}
336+
path: artifacts/docs/
337+
retention-days: 3
338+
313339
- name: Deploy or clean up doc preview
314-
if: ${{ !inputs.is-release }}
340+
if: ${{ inputs.deploy-docs && !inputs.is-release }}
315341
uses: ./.github/actions/doc_preview
316342
with:
317343
source-folder: ${{ (github.ref_name != 'main' && 'artifacts/docs') ||
318344
'artifacts/empty_docs' }}
319345
pr-number: ${{ env.PR_NUMBER }}
320346

321347
- name: Deploy doc update
322-
if: ${{ github.ref_name == 'main' || inputs.is-release }}
348+
if: ${{ inputs.deploy-docs && (github.ref_name == 'main' || inputs.is-release) }}
323349
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
324350
with:
325351
git-config-name: cuda-python-bot
326352
git-config-email: [email protected]
353+
branch: ${{ inputs.docs-branch }}
327354
folder: artifacts/docs/
328355
target-folder: docs/
329356
commit-message: "Deploy ${{ (inputs.is-release && 'release') || 'latest' }} docs: ${{ env.CUDA_PYTHON_DOCS_GITHUB_REF }}"

‎.github/workflows/build-wheel.yml‎

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
(inputs.host-platform == 'win-64' && 'windows-2022') }}
4343
steps:
4444
- name: Checkout ${{ github.event.repository.name }}
45-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
45+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4646
with:
4747
# Treeless clone: setuptools-scm needs the commit graph (`git describe`)
4848
# but not historical blobs.
@@ -55,7 +55,6 @@ jobs:
5555
curl -fsSL "https://github.com/rapidsai/sccache/releases/latest/download/sccache-$(uname -m)-unknown-linux-musl.tar.gz" \
5656
| sudo tar -C /usr/local/bin -xvzf - --wildcards --strip-components=1 -x '*/sccache'
5757
echo "SCCACHE_PATH=/usr/local/bin/sccache" >> "$GITHUB_ENV"
58-
echo "SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=true" >> "$GITHUB_ENV"
5958
6059
# xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867
6160
- name: Adding addtional GHA cache-related env vars
@@ -78,7 +77,7 @@ jobs:
7877

7978
- name: Set up Python
8079
id: setup-python1
81-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
80+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
8281
with:
8382
# WAR: setup-python is not relocatable, and cibuildwheel hard-wires to 3.12...
8483
# see https://github.com/actions/setup-python/issues/871
@@ -167,7 +166,7 @@ jobs:
167166
cuda-version: ${{ inputs.cuda-version }}
168167

169168
- name: Build cuda.bindings wheel
170-
uses: pypa/cibuildwheel@54327ab9d35de03b359ac25c97de9417d94639c0 # v4.0.0rc1
169+
uses: pypa/cibuildwheel@294735312765b09d24a2fbec22660ce817587d55 # v4.1.0
171170
with:
172171
package-dir: ./cuda_bindings/
173172
output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
@@ -190,7 +189,6 @@ jobs:
190189
ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }}
191190
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
192191
ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }}
193-
SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=${{ env.SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE }}
194192
SCCACHE_DIR=/host/${{ env.SCCACHE_DIR }}
195193
SCCACHE_CACHE_SIZE=${{ env.SCCACHE_CACHE_SIZE }}
196194
CIBW_ENVIRONMENT_WINDOWS: >
@@ -236,7 +234,7 @@ jobs:
236234
if-no-files-found: error
237235

238236
- name: Build cuda.core wheel
239-
uses: pypa/cibuildwheel@54327ab9d35de03b359ac25c97de9417d94639c0 # v4.0.0rc1
237+
uses: pypa/cibuildwheel@294735312765b09d24a2fbec22660ce817587d55 # v4.1.0
240238
with:
241239
package-dir: ./cuda_core/
242240
output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
@@ -261,7 +259,6 @@ jobs:
261259
ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }}
262260
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
263261
ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }}
264-
SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=${{ env.SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE }}
265262
SCCACHE_DIR=/host/${{ env.SCCACHE_DIR }}
266263
SCCACHE_CACHE_SIZE=${{ env.SCCACHE_CACHE_SIZE }}
267264
CIBW_ENVIRONMENT_WINDOWS: >
@@ -339,7 +336,7 @@ jobs:
339336

340337
- name: Set up Python
341338
id: setup-python2
342-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
339+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
343340
with:
344341
python-version: ${{ matrix.python-version }}
345342
# TODO: remove allow-prereleases once 3.15 is officially supported
@@ -401,7 +398,7 @@ jobs:
401398
402399
- name: Build numpy wheel (pre-release Python)
403400
if: ${{ startsWith(matrix.python-version, '3.15') }}
404-
uses: pypa/cibuildwheel@54327ab9d35de03b359ac25c97de9417d94639c0 # v4.0.0rc1
401+
uses: pypa/cibuildwheel@294735312765b09d24a2fbec22660ce817587d55 # v4.1.0
405402
env:
406403
CIBW_BUILD: ${{ env.CIBW_BUILD }}
407404
CIBW_SKIP: "*-musllinux* *-win32"
@@ -465,6 +462,19 @@ jobs:
465462
cuda-version: ${{ inputs.prev-cuda-version }}
466463
cuda-path: "./cuda_toolkit_prev"
467464

465+
- name: Build cuda.core test binaries
466+
run: bash ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/build_test_binaries.sh
467+
468+
- name: Upload cuda.core test binaries
469+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
470+
with:
471+
name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-test-binaries
472+
path: |
473+
${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/*.o
474+
${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/*.a
475+
${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/*.lib
476+
if-no-files-found: error
477+
468478
- name: Download cuda.bindings build artifacts from the prior branch
469479
env:
470480
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -493,7 +503,7 @@ jobs:
493503
rmdir $OLD_BASENAME
494504
495505
- name: Build cuda.core wheel
496-
uses: pypa/cibuildwheel@54327ab9d35de03b359ac25c97de9417d94639c0 # v4.0.0rc1
506+
uses: pypa/cibuildwheel@294735312765b09d24a2fbec22660ce817587d55 # v4.1.0
497507
with:
498508
package-dir: ./cuda_core/
499509
output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
@@ -518,7 +528,6 @@ jobs:
518528
ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }}
519529
ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
520530
ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }}
521-
SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE=${{ env.SCCACHE_GHA_USE_PREPROCESSOR_CACHE_MODE }}
522531
SCCACHE_DIR=/host/${{ env.SCCACHE_DIR }}
523532
SCCACHE_CACHE_SIZE=${{ env.SCCACHE_CACHE_SIZE }}
524533
CIBW_ENVIRONMENT_WINDOWS: >

0 commit comments

Comments
 (0)