From 36bf585d658f4d43e9ceed1fa08536606062119c Mon Sep 17 00:00:00 2001 From: Klaus Zimmermann Date: Thu, 13 Nov 2025 17:51:54 +0100 Subject: [PATCH 1/3] Add checkout mode to linux job v2 --- .github/workflows/linux_job_v2.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/linux_job_v2.yml b/.github/workflows/linux_job_v2.yml index 591a89d9ba..589dd8fd92 100644 --- a/.github/workflows/linux_job_v2.yml +++ b/.github/workflows/linux_job_v2.yml @@ -40,6 +40,10 @@ on: description: 'Number of commits to fetch, defaults to 1 similar to actions/checkout' default: 1 type: number + checkout-mode: + description: 'Mode of checkout; one of "normal", "blobless", "treeless".' + default: "normal" + type: string submodules: description: Same as actions/checkout, set to `true` to checkout submodules or `recursive` to @@ -185,6 +189,7 @@ jobs: path: ${{ inputs.repository || github.repository }} fetch-depth: ${{ inputs.fetch-depth }} submodules: ${{ inputs.submodules }} + filter: ${{ inputs.checkout-mode == 'blobless' && 'blob:none' || inputs.checkout-mode == 'treeless' && 'tree:0' || null }} - name: Calculate docker image id: calculate-docker-image From 5fed4b18327a4efdafd27d06d02349f25f8c7d37 Mon Sep 17 00:00:00 2001 From: Klaus Zimmermann Date: Thu, 13 Nov 2025 18:00:49 +0100 Subject: [PATCH 2/3] Test treeless checkout --- .github/workflows/test_linux_job_v2.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test_linux_job_v2.yml b/.github/workflows/test_linux_job_v2.yml index e078619df5..e1aee8b892 100644 --- a/.github/workflows/test_linux_job_v2.yml +++ b/.github/workflows/test_linux_job_v2.yml @@ -19,6 +19,7 @@ jobs: runner: linux.2xlarge test-infra-repository: ${{ github.repository }} test-infra-ref: ${{ github.ref }} + checkout-mode: "treeless" submodules: "recursive" gpu-arch-type: cpu gpu-arch-version: "" From c79fc5a182611778bf1d1ea6d6dfaa0069c4e85c Mon Sep 17 00:00:00 2001 From: Klaus Zimmermann Date: Fri, 14 Nov 2025 11:31:19 +0100 Subject: [PATCH 3/3] Switch to patched checkout action --- .github/workflows/linux_job_v2.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux_job_v2.yml b/.github/workflows/linux_job_v2.yml index 589dd8fd92..9ec00bf15e 100644 --- a/.github/workflows/linux_job_v2.yml +++ b/.github/workflows/linux_job_v2.yml @@ -181,7 +181,8 @@ jobs: docker exec -it $(docker container ps --format '{{.ID}}') bash - name: Checkout repository (${{ inputs.repository || github.repository }}@${{ inputs.ref }}) - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: zklaus/checkout@4a5ddcafe75fd4cd42b59eff291c317d66eea084 # submodules filter enabled + # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: # Support the use case where we need to checkout someone's fork repository: ${{ inputs.repository || github.repository }} @@ -190,6 +191,7 @@ jobs: fetch-depth: ${{ inputs.fetch-depth }} submodules: ${{ inputs.submodules }} filter: ${{ inputs.checkout-mode == 'blobless' && 'blob:none' || inputs.checkout-mode == 'treeless' && 'tree:0' || null }} + submodules-filter: ${{ inputs.checkout-mode == 'blobless' && 'blob:none' || inputs.checkout-mode == 'treeless' && 'tree:0' || null }} - name: Calculate docker image id: calculate-docker-image