Skip to content

Commit b4a85ab

Browse files
authored
Merge branch 'main' into fix/coverage-early-start
2 parents 0f6b290 + db463bf commit b4a85ab

249 files changed

Lines changed: 25053 additions & 3474 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/actions/doc_preview/action.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
steps:
2121
- name: Deploy doc preview
2222
if: ${{ startsWith(github.ref_name, 'pull-request/') }}
23-
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
23+
uses: JamesIves/github-pages-deploy-action@fa24774553152dd7873cd16ebd8d959b010c5445 # v4.9.0
2424
with:
2525
git-config-name: cuda-python-bot
2626
git-config-email: [email protected]
@@ -35,7 +35,7 @@ runs:
3535

3636
- name: Leave a comment after deployment
3737
if: ${{ startsWith(github.ref_name, 'pull-request/') }}
38-
uses: marocchino/sticky-pull-request-comment@d4d6b0936434b21bc8345ad45a440c5f7d2c40ff # v3.0.3
38+
uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
3939
with:
4040
header: pr-preview
4141
number: ${{ inputs.pr-number }}

‎.github/actions/fetch_ctk/action.yml‎

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ inputs:
1919
description: "where the CTK components will be installed to, relative to $PWD"
2020
required: false
2121
default: "./cuda_toolkit"
22+
install-mode:
23+
description: >
24+
"replace" (default) empties cuda-path before installing.
25+
"add" installs the components on top of the mini CTK that an earlier
26+
fetch_ctk call installed at the same cuda-path, and leaves the
27+
environment that call exported unchanged.
28+
required: false
29+
default: "replace"
2230
redist-base-url:
2331
description: >
2432
Base URL of a redistrib server (manifest and component archives).
@@ -43,6 +51,34 @@ runs:
4351
with:
4452
dependent_exes: "curl unzip tar sha256sum cygpath"
4553

54+
- name: Check install mode
55+
shell: bash --noprofile --norc -xeuo pipefail {0}
56+
run: |
57+
case "${{ inputs.install-mode }}" in
58+
replace)
59+
;;
60+
add)
61+
# The environment exports are skipped in this mode, so the target
62+
# must be the CUDA_PATH an earlier fetch_ctk call exported.
63+
if [[ -z "${CUDA_PATH:-}" ]]; then
64+
echo "::error::install-mode 'add' requires CUDA_PATH from an earlier fetch_ctk call"
65+
exit 1
66+
fi
67+
EXISTING_PATH="$CUDA_PATH"
68+
if [[ "${{ inputs.host-platform }}" == win* ]]; then
69+
EXISTING_PATH="$(cygpath -u "$EXISTING_PATH")"
70+
fi
71+
if [[ "$(realpath -e "${{ inputs.cuda-path }}")" != "$(realpath -e "$EXISTING_PATH")" ]]; then
72+
echo "::error::install-mode 'add' requires cuda-path to be the existing CUDA_PATH ($CUDA_PATH)"
73+
exit 1
74+
fi
75+
;;
76+
*)
77+
echo "::error::install-mode must be 'replace' or 'add', got '${{ inputs.install-mode }}'"
78+
exit 1
79+
;;
80+
esac
81+
4682
- name: Set up CTK cache variable
4783
shell: bash --noprofile --norc -xeuo pipefail {0}
4884
run: |
@@ -92,7 +128,7 @@ runs:
92128
93129
- name: Download CTK cache
94130
id: ctk-get-cache
95-
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
131+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
96132
continue-on-error: true
97133
with:
98134
key: ${{ env.CTK_CACHE_KEY }}
@@ -170,7 +206,9 @@ runs:
170206
# symlinks from a prerelease CTK at ./cuda_toolkit/include etc., causing
171207
# "cp: cannot overwrite non-directory" failures on the next restore).
172208
CUDA_PATH="${{ inputs.cuda-path }}"
173-
rm -rf $CUDA_PATH
209+
if [[ "${{ inputs.install-mode }}" == replace ]]; then
210+
rm -rf $CUDA_PATH
211+
fi
174212
mkdir -p $CUDA_PATH
175213
# Unfortunately we cannot use "rsync -av $CACHE_TMP_DIR/ $CUDA_PATH" because
176214
# not all runners have rsync pre-installed (or even installable, such as
@@ -182,7 +220,7 @@ runs:
182220
- name: Upload CTK cache
183221
if: ${{ !cancelled() &&
184222
steps.ctk-get-cache.outputs.cache-hit != 'true' }}
185-
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
223+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
186224
with:
187225
key: ${{ env.CTK_CACHE_KEY }}
188226
path: ./${{ env.CTK_CACHE_FILENAME }}
@@ -194,7 +232,9 @@ runs:
194232
ls -l
195233
CACHE_TMP_DIR="./cache_tmp_dir"
196234
CUDA_PATH="${{ inputs.cuda-path }}"
197-
rm -rf $CUDA_PATH
235+
if [[ "${{ inputs.install-mode }}" == replace ]]; then
236+
rm -rf $CUDA_PATH
237+
fi
198238
mkdir -p $CUDA_PATH
199239
tar -xzvf $CTK_CACHE_FILENAME
200240
# Can't use rsync here, see above
@@ -203,6 +243,7 @@ runs:
203243
ls -l $CUDA_PATH
204244
205245
- name: Set output environment variables
246+
if: ${{ inputs.install-mode == 'replace' }}
206247
shell: bash --noprofile --norc -xeuo pipefail {0}
207248
run: |
208249
# mimics actual CTK installation

‎.github/actions/griffe-api-check/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
using: composite
2626
steps:
2727
- name: Install uv
28-
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
28+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
2929
with:
3030
enable-cache: false
3131

‎.github/actions/install_unix_deps/action.yml‎

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

‎.github/actions/lychee-links/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ runs:
138138

139139
- name: Upload link-check reports
140140
if: ${{ always() }}
141-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
141+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
142142
with:
143143
name: lychee-${{ inputs.kind }}-${{ runner.os }}-${{ github.run_id }}-${{ github.run_attempt }}
144144
path: ${{ runner.temp }}/lychee-reports/

‎.github/actions/upgrade-ca-certificates/emudhra_intermediates.ps1‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,56 @@ function Test-ExplicitlyDistrusted([System.Security.Cryptography.X509Certificate
6969
$chain.Dispose()
7070
}
7171
}
72+
73+
# Classifies how Windows chain building treats the certificate, using only the
74+
# local trust state (no revocation, no AIA downloads):
75+
# ExplicitDistrust : in LocalMachine\Disallowed or Microsoft's disallowed list
76+
# NoTrustAnchor : the chain no longer ends in a trusted root, and
77+
# UntrustedRoot / PartialChain are the only problems
78+
# reported, e.g. because the root was removed
79+
# Trusted : the chain builds cleanly, so the compromised key is usable
80+
# Indeterminate : the build failed for some other reason; never a pass
81+
# Verification time is pinned (the instant used by runner_trust_probe.sh) so an
82+
# expired certificate cannot masquerade as untrusted.
83+
# A PartialChain only shows that the root is untrusted if the issuers are
84+
# available to the build, so callers pass the non-root issuers in
85+
# $ExtraCertificates. Issuers that are roots need not be supplied: a missing
86+
# root is exactly the condition this function reports as NoTrustAnchor.
87+
function Get-ChainTrustState(
88+
[System.Security.Cryptography.X509Certificates.X509Certificate2]$Cert,
89+
[System.Security.Cryptography.X509Certificates.X509Certificate2[]]$ExtraCertificates = @()
90+
) {
91+
$explicitDistrust = [System.Security.Cryptography.X509Certificates.X509ChainStatusFlags]::ExplicitDistrust
92+
$noAnchor = [int]([System.Security.Cryptography.X509Certificates.X509ChainStatusFlags]::UntrustedRoot -bor
93+
[System.Security.Cryptography.X509Certificates.X509ChainStatusFlags]::PartialChain)
94+
$chain = [System.Security.Cryptography.X509Certificates.X509Chain]::new()
95+
try {
96+
foreach ($extra in $ExtraCertificates) {
97+
[void]$chain.ChainPolicy.ExtraStore.Add($extra)
98+
}
99+
$chain.ChainPolicy.RevocationMode = [System.Security.Cryptography.X509Certificates.X509RevocationMode]::NoCheck
100+
$chain.ChainPolicy.VerificationTime = [DateTime]::new(2026, 10, 23, 0, 0, 0, [DateTimeKind]::Utc)
101+
# DisableCertificateDownloads does not exist on .NET Framework (Windows PowerShell 5.1).
102+
if ($chain.ChainPolicy | Get-Member -Name DisableCertificateDownloads) {
103+
$chain.ChainPolicy.DisableCertificateDownloads = $true
104+
}
105+
$built = $chain.Build($Cert)
106+
$statuses = @($chain.ChainStatus) + @($chain.ChainElements | ForEach-Object { $_.ChainElementStatus })
107+
$names = @($statuses | ForEach-Object { $_.Status.ToString() } | Where-Object { $_ -ne 'NoError' } | Sort-Object -Unique)
108+
if ($statuses | Where-Object { $_.Status.HasFlag($explicitDistrust) }) {
109+
$state = 'ExplicitDistrust'
110+
} elseif ($built) {
111+
$state = 'Trusted'
112+
} elseif (
113+
($statuses | Where-Object { ([int]$_.Status -band $noAnchor) -ne 0 }) -and
114+
-not ($statuses | Where-Object { ([int]$_.Status -band (-bnot $noAnchor)) -ne 0 })
115+
) {
116+
$state = 'NoTrustAnchor'
117+
} else {
118+
$state = 'Indeterminate'
119+
}
120+
return [pscustomobject]@{ State = $state; Statuses = ($names -join ',') }
121+
} finally {
122+
$chain.Dispose()
123+
}
124+
}

‎.github/copy-pr-bot.yaml‎

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

44
# Configuration file for `copy-pr-bot` GitHub App

‎.github/workflows/bandit.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2727

2828
- name: Install uv
29-
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
29+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
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@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3
48+
uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
4949
with:
5050
sarif_file: results.sarif

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,13 @@ jobs:
7272
# but not historical blobs.
7373
fetch-depth: 0
7474
filter: blob:none
75-
# third_party/cccl provides the CCCL headers cuda.core compiles against.
76-
submodules: true
75+
# Fetch CCCL separately: checkout's filter does not apply to submodules.
76+
submodules: false
77+
78+
- name: Checkout CCCL submodule
79+
run: |
80+
git submodule sync --recursive
81+
git submodule update --init --force --depth=1 --filter=blob:none --recursive
7782
7883
- name: Register problem matchers
7984
# Compiler and Cython errors from the wheel builds become annotations
@@ -91,7 +96,7 @@ jobs:
9196
# xref: https://github.com/orgs/community/discussions/42856#discussioncomment-7678867
9297
- name: Adding addtional GHA cache-related env vars
9398
if: ${{ env.BUILD_BINDINGS == 'true' || env.BUILD_CORE == 'true' }}
94-
uses: actions/github-script@v9
99+
uses: actions/github-script@v9.0.0
95100
with:
96101
script: |
97102
core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on');
@@ -226,7 +231,7 @@ jobs:
226231

227232
- name: Build cuda.bindings wheel
228233
if: ${{ env.BUILD_BINDINGS == 'true' }}
229-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
234+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
230235
with:
231236
package-dir: ./cuda_bindings_13/
232237
output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
@@ -328,7 +333,7 @@ jobs:
328333

329334
- name: Build cuda.core wheel
330335
if: ${{ env.BUILD_CORE == 'true' }}
331-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
336+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
332337
with:
333338
package-dir: ./cuda_core/
334339
output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
@@ -611,7 +616,7 @@ jobs:
611616
612617
- name: Build cuda.core wheel
613618
if: ${{ !inputs.single-cuda-major && env.BUILD_CORE == 'true' }}
614-
uses: pypa/cibuildwheel@b9e566a2b284570af229f6c2a33673410d0389a3 # v4.3.4
619+
uses: pypa/cibuildwheel@f9b966cfadf4109556cadc5bb39ddb72d0ce664e # v4.3.5
615620
with:
616621
package-dir: ./cuda_core/
617622
output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}

‎.github/workflows/ci-nightly.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,12 @@ jobs:
6161
- name: Set up Python
6262
uses: ./.github/actions/setup-hardened-python
6363
with:
64-
python-version: "3.12"
64+
python-version: "3.11"
6565

6666
- name: Run CI tools unit tests
6767
run: |
68-
python -m pip install pytest pyyaml==6.0.3
69-
# Standalone CI tool tests; skip repo-root conftest.py (imports cuda.pathfinder).
70-
python -m pytest -v --noconftest ci/tools/tests
68+
python -m pip install -e './ci[test]'
69+
python -m pytest -v ci/tools/tests
7170
7271
find-wheels:
7372
if: ${{ github.repository_owner == 'nvidia' && !inputs.documentation-links-only }}

0 commit comments

Comments
 (0)