Skip to content

Commit 02fe137

Browse files
authored
Merge branch 'main' into cython-memPool-capped-pool
2 parents ff06d41 + ab9e20f commit 02fe137

14 files changed

Lines changed: 59 additions & 24 deletions

‎.github/workflows/ci-pixi-lockfile-freshness-check.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ jobs:
6363
- name: Checkout ${{ github.event.repository.name }}
6464
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6565
with:
66+
# Keep full ancestry for the PR base worktree, without downloading
67+
# historical file contents (especially gh-pages). See ci/README.md.
6668
fetch-depth: 0
69+
filter: blob:none
6770
persist-credentials: false
6871

6972
- name: Setup pixi

‎.github/workflows/ci-pixi-lockfile-refresh.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ jobs:
3838
- name: Checkout ${{ github.event.repository.name }}
3939
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4040
with:
41+
# Full history and tags for package metadata, without historical
42+
# file contents. See ci/README.md for the checkout policy.
4143
fetch-depth: 0
44+
filter: blob:none
4245
ref: ${{ github.event.repository.default_branch }}
4346

4447
- name: Setup pixi

‎.github/workflows/ci-pixi-source-test.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
# package version; a shallow checkout yields 0.1.dev1, which trips
8585
# cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard.
8686
fetch-depth: 0
87+
filter: blob:none
8788

8889
- name: Setup pixi
8990
uses: ./.github/actions/setup-pixi
@@ -140,6 +141,7 @@ jobs:
140141
# package version; a shallow checkout yields 0.1.dev1, which trips
141142
# cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard.
142143
fetch-depth: 0
144+
filter: blob:none
143145

144146
- name: Setup pixi
145147
uses: ./.github/actions/setup-pixi
@@ -205,6 +207,7 @@ jobs:
205207
# package version; a shallow checkout yields 0.1.dev1, which trips
206208
# cuda.core's "cuda.bindings 12.x or 13.x must be installed" guard.
207209
fetch-depth: 0
210+
filter: blob:none
208211

209212
- name: Setup proxy cache
210213
uses: nv-gha-runners/setup-proxy-cache@main

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ jobs:
8787
doc-only: ${{ steps.get-should-skip.outputs.doc_only }}
8888
base-ref: ${{ steps.get-should-skip.outputs.base_ref }}
8989
steps:
90-
- name: Checkout repository
91-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
9290
- name: Compute whether to skip builds and tests
9391
id: get-should-skip
9492
env:
9593
GH_TOKEN: ${{ github.token }}
94+
GH_REPO: ${{ github.repository }}
9695
run: |
9796
set -euxo pipefail
9897
if ${{ startsWith(github.ref_name, 'pull-request/') }}; then
@@ -143,9 +142,8 @@ jobs:
143142
- name: Checkout repository
144143
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
145144
with:
146-
# Treeless clone: the commit graph is needed to resolve the PR merge
147-
# base and classify its changed paths, but historical blobs aren't.
148-
fetch-depth: 0
145+
# Only PR mirrors need full ancestry to find their merge base.
146+
fetch-depth: ${{ startsWith(github.ref_name, 'pull-request/') && '0' || '1' }}
149147
filter: blob:none
150148

151149
- name: Resolve PR merge base

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
- name: Checkout repository
3737
uses: actions/[email protected]
3838
with:
39-
# Treeless clone: `git worktree add gh-pages` needs the commit graph,
40-
# but historical blobs aren't required.
41-
fetch-depth: 0
39+
# The cleanup script fetches gh-pages explicitly; source history
40+
# and unrelated branches aren't needed for the script checkout.
41+
fetch-depth: 1
4242
filter: blob:none
4343

4444
- name: Configure git identity

‎.github/workflows/pr-auto-label.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
pull-requests: write
2121
steps:
2222
- name: Apply labels
23-
uses: actions/labeler@e52e4fb63ed5cd0e07abaad9826b2a893ccb921f # main (include actions/labeler#917)
23+
uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ jobs:
6262
6363
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
6464
with:
65-
# lookup-run-id resolves the git tag to a SHA; we need tags but not history.
65+
# The exact tag supplies the SHA for lookup-run-id; no other tags
66+
# or commit history are needed.
6667
fetch-depth: 1
67-
fetch-tags: true
6868
# Resolve only the exact tag ref; checkout fails if the tag does not exist.
6969
ref: refs/tags/${{ steps.vars.outputs.tag }}
7070

‎.pre-commit-config.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ repos:
1919
# Self-installing: the hook downloads a pinned, checksum-verified trufflehog on
2020
# first use (no manual install). Skipped on pre-commit.ci; Pulse CI enforces server-side.
2121
- repo: https://github.com/NVIDIA/security-workflows
22-
rev: 711025b090f2aa728da576700750b195d1e816dc # frozen: v0.3.0
22+
rev: c736f0454dc99764a66af6b906adfcdfbf621985 # frozen: v0.4.0
2323
hooks:
2424
- id: secret-scan-trufflehog
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: c60c980e561ed3e73101667fe8365c609d19a438 # frozen: v0.15.9
27+
rev: a56c0b927e6465d37cae3e97d35d4d18ab2b96cd # frozen: v0.16.9
2828
hooks:
2929
- id: ruff-check
3030
args: [--fix, --show-fixes]
@@ -155,7 +155,7 @@ repos:
155155
- id: rst-inline-touching-normal
156156

157157
- repo: https://github.com/pre-commit/mirrors-mypy
158-
rev: 8e5c80792e2ec0c87804d8ef915bf35e2caea6da # frozen: v1.20.0
158+
rev: 7ff8d35ae36a7d2b968f2f90b4c723e292e594ee # frozen: v2.3.1
159159
hooks:
160160
- id: mypy
161161
alias: mypy-pathfinder
@@ -180,7 +180,7 @@ repos:
180180
exclude: ^\.github/workflows/coverage.yml$
181181

182182
- repo: https://github.com/MarcoGorelli/cython-lint
183-
rev: "7c6152f6c8f9087684ff2e09a9227941e233bafb" # frozen: v0.19.0
183+
rev: "eb2f695bb80387913b8cb1f91ba7ff6cb3026715" # frozen: v0.21.1
184184
hooks:
185185
- id: cython-lint
186186
args: [--no-pycodestyle]

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ to miss in large files and makes later per-test provenance changes ambiguous.
165165
```python
166166
import pytest
167167

168+
168169
@pytest.mark.agent_authored(model="gpt-5.5")
169-
def test_something():
170-
...
170+
def test_something(): ...
171171
```
172172

173173
- `@pytest.mark.human_reviewed`: a human has materially reviewed or rewritten

‎ci/README.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Continuous Integration
22

3+
## Checkout History
4+
5+
Use the default shallow checkout for jobs that only read files or test prebuilt
6+
wheels. Source builds need complete commit ancestry and release tags so
7+
`setuptools-scm` can derive each package's version.
8+
9+
For those jobs, use `fetch-depth: 0` with `filter: blob:none`. The checkout
10+
action fetches complete ancestry for all branches and tags, while the blob
11+
filter skips historical file contents. This avoids downloading the large
12+
historical `gh-pages` contents discussed in issue #2197. Git retrieves file
13+
contents as needed when checking out the requested commit or creating the
14+
freshness check's base-commit worktree.
15+
16+
CI change detection uses this full-history checkout for PR mirrors, so the
17+
actual PR base branch is available when computing its merge base. Non-PR runs
18+
need only a shallow checkout. PR-preview cleanup checks out its script
19+
shallowly and fetches `gh-pages` separately when needed. Pathfinder release
20+
preparation fetches its exact tag without requesting every other tag.
21+
22+
Git documents blob filtering in its
23+
[clone reference](https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---filterltfilter-specgt).
24+
The pinned checkout action's
25+
[`README`](https://github.com/actions/checkout/blob/3d3c42e5aac5ba805825da76410c181273ba90b1/README.md#fetch-all-history-for-all-tags-and-branches)
26+
documents `fetch-depth: 0` for fetching all history, branches, and tags.
27+
328
## Repository Customizations
429

530
The workflows in this repository use the `CI_CUSTOMIZATIONS_*` namespace for

0 commit comments

Comments
 (0)