Skip to content

Commit 434957e

Browse files
bcmyersgabotechs
authored andcommitted
turn off submodule updating
1 parent 82e0e31 commit 434957e

6 files changed

Lines changed: 54 additions & 18 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Setup Submodules"
2+
description: "Initialize and update git submodules for testing"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Initialize and update submodules
7+
shell: bash
8+
run: |
9+
git config --global --add safe.directory $GITHUB_WORKSPACE
10+
git submodule init
11+
# Override update=none setting for CI
12+
git config submodule.testing.update checkout
13+
git config submodule.parquet-testing.update checkout
14+
git config submodule.datafusion-testing.update checkout
15+
git submodule update --depth 1

.github/workflows/dependencies.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ jobs:
4646
steps:
4747
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4848
with:
49-
submodules: true
5049
fetch-depth: 1
50+
- name: Setup Submodules
51+
uses: ./.github/actions/setup-submodules
5152
- name: Setup Rust toolchain
5253
uses: ./.github/actions/setup-builder
5354
with:

.github/workflows/docs_pr.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4444
with:
45-
submodules: true
4645
fetch-depth: 1
46+
- name: Setup Submodules
47+
uses: ./.github/actions/setup-submodules
4748
- name: Setup uv
4849
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
4950
- name: Install doc dependencies

.github/workflows/extended.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ jobs:
7373
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7474
with:
7575
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
76-
submodules: true
7776
fetch-depth: 1
77+
- name: Setup Submodules
78+
uses: ./.github/actions/setup-submodules
7879
- name: Install Rust
7980
run: |
8081
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -101,8 +102,9 @@ jobs:
101102
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
102103
with:
103104
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
104-
submodules: true
105105
fetch-depth: 1
106+
- name: Setup Submodules
107+
uses: ./.github/actions/setup-submodules
106108
- name: Free Disk Space (Ubuntu)
107109
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
108110
- name: Install Rust
@@ -148,8 +150,9 @@ jobs:
148150
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
149151
with:
150152
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
151-
submodules: true
152153
fetch-depth: 1
154+
- name: Setup Submodules
155+
uses: ./.github/actions/setup-submodules
153156
- name: Setup Rust toolchain
154157
uses: ./.github/actions/setup-builder
155158
with:
@@ -171,8 +174,9 @@ jobs:
171174
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
172175
with:
173176
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
174-
submodules: true
175177
fetch-depth: 1
178+
- name: Setup Submodules
179+
uses: ./.github/actions/setup-submodules
176180
# Don't use setup-builder to avoid configuring RUST_BACKTRACE which is expensive
177181
- name: Install protobuf compiler
178182
run: |

.github/workflows/rust.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ jobs:
280280
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
281281
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
282282
with:
283-
submodules: true
284283
fetch-depth: 1
284+
- name: Setup Submodules
285+
uses: ./.github/actions/setup-submodules
285286
- name: Setup Rust toolchain
286287
uses: ./.github/actions/setup-builder
287288
with:
@@ -327,8 +328,9 @@ jobs:
327328
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
328329
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
329330
with:
330-
submodules: true
331331
fetch-depth: 1
332+
- name: Setup Submodules
333+
uses: ./.github/actions/setup-submodules
332334
- name: Setup Rust toolchain
333335
run: rustup toolchain install stable
334336
- name: Rust Dependency Cache
@@ -359,8 +361,9 @@ jobs:
359361
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
360362
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
361363
with:
362-
submodules: true
363364
fetch-depth: 1
365+
- name: Setup Submodules
366+
uses: ./.github/actions/setup-submodules
364367
- name: Setup Rust toolchain
365368
uses: ./.github/actions/setup-builder
366369
with:
@@ -390,8 +393,9 @@ jobs:
390393
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
391394
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
392395
with:
393-
submodules: true
394396
fetch-depth: 1
397+
- name: Setup Submodules
398+
uses: ./.github/actions/setup-submodules
395399
- name: Setup Rust toolchain
396400
uses: ./.github/actions/setup-builder
397401
with:
@@ -453,8 +457,9 @@ jobs:
453457
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
454458
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
455459
with:
456-
submodules: true
457460
fetch-depth: 1
461+
- name: Setup Submodules
462+
uses: ./.github/actions/setup-submodules
458463
- name: Setup Rust toolchain
459464
uses: ./.github/actions/setup-builder
460465
with:
@@ -501,8 +506,9 @@ jobs:
501506
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
502507
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
503508
with:
504-
submodules: true
505509
fetch-depth: 1
510+
- name: Setup Submodules
511+
uses: ./.github/actions/setup-submodules
506512
- name: Setup Rust toolchain
507513
uses: ./.github/actions/setup-builder
508514
with:
@@ -526,8 +532,9 @@ jobs:
526532
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
527533
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
528534
with:
529-
submodules: true
530535
fetch-depth: 1
536+
- name: Setup Submodules
537+
uses: ./.github/actions/setup-submodules
531538
- name: Setup Rust toolchain
532539
uses: ./.github/actions/setup-builder
533540
with:
@@ -564,8 +571,9 @@ jobs:
564571
steps:
565572
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
566573
with:
567-
submodules: true
568574
fetch-depth: 1
575+
- name: Setup Submodules
576+
uses: ./.github/actions/setup-submodules
569577
- name: Setup Rust toolchain
570578
uses: ./.github/actions/setup-macos-aarch64-builder
571579
- name: Run tests (excluding doctests)
@@ -657,8 +665,9 @@ jobs:
657665
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
658666
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
659667
with:
660-
submodules: true
661668
fetch-depth: 1
669+
- name: Setup Submodules
670+
uses: ./.github/actions/setup-submodules
662671
- name: Setup Rust toolchain
663672
uses: ./.github/actions/setup-builder
664673
with:
@@ -682,8 +691,9 @@ jobs:
682691
steps:
683692
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
684693
with:
685-
submodules: true
686694
fetch-depth: 1
695+
- name: Setup Submodules
696+
uses: ./.github/actions/setup-submodules
687697
- name: Setup Rust toolchain
688698
uses: ./.github/actions/setup-builder
689699
with:
@@ -704,8 +714,9 @@ jobs:
704714
- uses: runs-on/action@cd2b598b0515d39d78c38a02d529db87d2196d1e # v2.0.3
705715
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
706716
with:
707-
submodules: true
708717
fetch-depth: 1
718+
- name: Setup Submodules
719+
uses: ./.github/actions/setup-submodules
709720
- name: Setup Rust toolchain
710721
uses: ./.github/actions/setup-builder
711722
with:
@@ -739,8 +750,9 @@ jobs:
739750
steps:
740751
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
741752
with:
742-
submodules: true
743753
fetch-depth: 1
754+
- name: Setup Submodules
755+
uses: ./.github/actions/setup-submodules
744756

745757
- name: Mark repository as safe for git
746758
# Required for git commands inside container (avoids "dubious ownership" error)

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
[submodule "parquet-testing"]
22
path = parquet-testing
33
url = https://github.com/apache/parquet-testing.git
4+
update = none
45
[submodule "testing"]
56
path = testing
67
url = https://github.com/apache/arrow-testing
8+
update = none
79
[submodule "datafusion-testing"]
810
path = datafusion-testing
911
url = https://github.com/apache/datafusion-testing.git
1012
branch = main
13+
update = none

0 commit comments

Comments
 (0)