Skip to content

Commit dacb4d2

Browse files
authored
Merge branch 'main' into pyi-experiment
2 parents 70528ee + 9b3d3cf commit dacb4d2

13 files changed

Lines changed: 37 additions & 11 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Checkout ${{ github.event.repository.name }}
4848
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4949
with:
50-
fetch-depth: 0
50+
fetch-depth: 1
5151
ref: ${{ inputs.git-tag }}
5252

5353
- name: Read build CTK version

.github/workflows/build-wheel.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ jobs:
4242
- name: Checkout ${{ github.event.repository.name }}
4343
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4444
with:
45+
# Treeless clone: setuptools-scm needs the commit graph (`git describe`)
46+
# but not historical blobs.
4547
fetch-depth: 0
48+
filter: blob:none
4649

4750
- name: Install latest rapidsai/sccache
4851
if: ${{ startsWith(inputs.host-platform, 'linux') }}

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Checkout repository
3636
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3737
with:
38-
fetch-depth: 0
38+
fetch-depth: 1
3939
- name: Get CUDA build versions
4040
id: get-vars
4141
run: |
@@ -106,7 +106,10 @@ jobs:
106106
- name: Checkout repository
107107
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
108108
with:
109+
# Treeless clone: commit graph is needed for `git merge-base` and
110+
# `git diff --name-only` below, but historical blobs aren't.
109111
fetch-depth: 0
112+
filter: blob:none
110113

111114
# copy-pr-bot pushes every PR (whether it targets main or a backport
112115
# branch such as 12.9.x) to pull-request/<N>, so the base branch

.github/workflows/cleanup-pr-previews.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ jobs:
3030
- name: Checkout repository
3131
uses: actions/checkout@v6.0.3
3232
with:
33-
# Fetch all history and branches for worktree operations
33+
# Treeless clone: `git worktree add gh-pages` needs the commit graph,
34+
# but historical blobs aren't required.
3435
fetch-depth: 0
36+
filter: blob:none
3537

3638
- name: Configure git identity
3739
run: |

.github/workflows/coverage.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ jobs:
6666
- name: Checkout ${{ github.event.repository.name }}
6767
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6868
with:
69+
# Treeless clone: setuptools-scm needs the commit graph (`git describe`)
70+
# but not historical blobs.
6971
fetch-depth: 0
72+
filter: blob:none
7073

7174
- name: Fix workspace ownership
7275
run: |
@@ -198,7 +201,10 @@ jobs:
198201
- name: Checkout ${{ github.event.repository.name }}
199202
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
200203
with:
204+
# Treeless clone: setuptools-scm needs the commit graph (`git describe`)
205+
# but not historical blobs.
201206
fetch-depth: 0
207+
filter: blob:none
202208

203209
- name: Set up Python
204210
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
@@ -269,7 +275,7 @@ jobs:
269275
- name: Checkout ${{ github.event.repository.name }}
270276
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
271277
with:
272-
fetch-depth: 0
278+
fetch-depth: 1
273279

274280
- name: Setup proxy cache
275281
uses: nv-gha-runners/setup-proxy-cache@main

.github/workflows/release-cuda-pathfinder.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
6262
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6363
with:
64-
fetch-depth: 0
64+
# lookup-run-id resolves the git tag to a SHA; we need tags but not history.
65+
fetch-depth: 1
66+
fetch-tags: true
6567
# Resolve only the exact tag ref; checkout fails if the tag does not exist.
6668
ref: refs/tags/${{ steps.vars.outputs.tag }}
6769

@@ -161,7 +163,7 @@ jobs:
161163
steps:
162164
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
163165
with:
164-
fetch-depth: 0
166+
fetch-depth: 1
165167
ref: ${{ needs.prepare.outputs.tag }}
166168

167169
- name: Create source archive

.github/workflows/release-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Checkout Source
4444
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4545
with:
46-
fetch-depth: 0
46+
fetch-depth: 1
4747
ref: ${{ inputs.git-tag }}
4848

4949
- name: Create Release Directory

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ jobs:
4343
- name: Checkout Source
4444
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4545
with:
46-
# fetch-depth: 0 is required so the lookup-run-id script can access all git tags
47-
fetch-depth: 0
46+
# lookup-run-id resolves the git tag to a SHA; we need tags but not history.
47+
fetch-depth: 1
48+
fetch-tags: true
4849

4950
- name: Determine Run ID
5051
id: lookup-run-id
@@ -62,7 +63,7 @@ jobs:
6263
- name: Checkout Source
6364
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
6465
with:
65-
fetch-depth: 0
66+
fetch-depth: 1
6667

6768
- name: Check or create draft release for the tag
6869
env:

.github/workflows/test-sdist-linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
- name: Checkout ${{ github.event.repository.name }}
2929
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3030
with:
31+
# Treeless clone: setuptools-scm (invoked via `python -m build`) needs
32+
# the commit graph (`git describe`) but not historical blobs.
3133
fetch-depth: 0
34+
filter: blob:none
3235

3336
- name: Set up Python
3437
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0

.github/workflows/test-sdist-windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434
- name: Checkout ${{ github.event.repository.name }}
3535
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3636
with:
37+
# Treeless clone: setuptools-scm (invoked via `python -m build`) needs
38+
# the commit graph (`git describe`) but not historical blobs.
3739
fetch-depth: 0
40+
filter: blob:none
3841

3942
- name: Set up Python
4043
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0

0 commit comments

Comments
 (0)