Skip to content

Commit d95ac0c

Browse files
committed
turn off submodule updating for all testing submodules
1 parent 89f1b7c commit d95ac0c

File tree

6 files changed

+53
-18
lines changed

6 files changed

+53
-18
lines changed
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
@@ -43,8 +43,9 @@ jobs:
4343
steps:
4444
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4545
with:
46-
submodules: true
4746
fetch-depth: 1
47+
- name: Setup Submodules
48+
uses: ./.github/actions/setup-submodules
4849
- name: Setup Rust toolchain
4950
uses: ./.github/actions/setup-builder
5051
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4444
with:
45-
submodules: true
4645
fetch-depth: 1
46+
- name: Setup Submodules
47+
uses: ./.github/actions/setup-submodules
4748
- name: Setup Python
4849
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4950
with:

.github/workflows/extended.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ jobs:
6363
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6464
with:
6565
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
66-
submodules: true
6766
fetch-depth: 1
67+
- name: Setup Submodules
68+
uses: ./.github/actions/setup-submodules
6869
- name: Install Rust
6970
run: |
7071
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -87,8 +88,9 @@ jobs:
8788
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8889
with:
8990
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
90-
submodules: true
9191
fetch-depth: 1
92+
- name: Setup Submodules
93+
uses: ./.github/actions/setup-submodules
9294
- name: Free Disk Space (Ubuntu)
9395
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
9496
- name: Install Rust
@@ -131,8 +133,9 @@ jobs:
131133
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
132134
with:
133135
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
134-
submodules: true
135136
fetch-depth: 1
137+
- name: Setup Submodules
138+
uses: ./.github/actions/setup-submodules
136139
- name: Setup Rust toolchain
137140
uses: ./.github/actions/setup-builder
138141
with:
@@ -152,8 +155,9 @@ jobs:
152155
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
153156
with:
154157
ref: ${{ github.event.inputs.pr_head_sha }} # will be empty if triggered by push
155-
submodules: true
156158
fetch-depth: 1
159+
- name: Setup Submodules
160+
uses: ./.github/actions/setup-submodules
157161
- name: Setup Rust toolchain
158162
uses: ./.github/actions/setup-builder
159163
with:

.github/workflows/rust.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,9 @@ jobs:
269269
steps:
270270
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
271271
with:
272-
submodules: true
273272
fetch-depth: 1
273+
- name: Setup Submodules
274+
uses: ./.github/actions/setup-submodules
274275
- name: Setup Rust toolchain
275276
uses: ./.github/actions/setup-builder
276277
with:
@@ -310,8 +311,9 @@ jobs:
310311
steps:
311312
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
312313
with:
313-
submodules: true
314314
fetch-depth: 1
315+
- name: Setup Submodules
316+
uses: ./.github/actions/setup-submodules
315317
- name: Setup Rust toolchain
316318
run: rustup toolchain install stable
317319
- name: Run tests (excluding doctests)
@@ -336,8 +338,9 @@ jobs:
336338
steps:
337339
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
338340
with:
339-
submodules: true
340341
fetch-depth: 1
342+
- name: Setup Submodules
343+
uses: ./.github/actions/setup-submodules
341344
- name: Setup Rust toolchain
342345
uses: ./.github/actions/setup-builder
343346
with:
@@ -366,8 +369,9 @@ jobs:
366369
steps:
367370
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
368371
with:
369-
submodules: true
370372
fetch-depth: 1
373+
- name: Setup Submodules
374+
uses: ./.github/actions/setup-submodules
371375
- name: Setup Rust toolchain
372376
uses: ./.github/actions/setup-builder
373377
with:
@@ -424,8 +428,9 @@ jobs:
424428
steps:
425429
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
426430
with:
427-
submodules: true
428431
fetch-depth: 1
432+
- name: Setup Submodules
433+
uses: ./.github/actions/setup-submodules
429434
- name: Setup Rust toolchain
430435
uses: ./.github/actions/setup-builder
431436
with:
@@ -471,8 +476,9 @@ jobs:
471476
steps:
472477
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
473478
with:
474-
submodules: true
475479
fetch-depth: 1
480+
- name: Setup Submodules
481+
uses: ./.github/actions/setup-submodules
476482
- name: Setup Rust toolchain
477483
uses: ./.github/actions/setup-builder
478484
with:
@@ -495,8 +501,9 @@ jobs:
495501
steps:
496502
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
497503
with:
498-
submodules: true
499504
fetch-depth: 1
505+
- name: Setup Submodules
506+
uses: ./.github/actions/setup-submodules
500507
- name: Setup Rust toolchain
501508
uses: ./.github/actions/setup-builder
502509
with:
@@ -549,8 +556,9 @@ jobs:
549556
steps:
550557
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
551558
with:
552-
submodules: true
553559
fetch-depth: 1
560+
- name: Setup Submodules
561+
uses: ./.github/actions/setup-submodules
554562
- name: Setup Rust toolchain
555563
uses: ./.github/actions/setup-macos-aarch64-builder
556564
- name: Run tests (excluding doctests)
@@ -566,8 +574,9 @@ jobs:
566574
steps:
567575
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
568576
with:
569-
submodules: true
570577
fetch-depth: 1
578+
- name: Setup Submodules
579+
uses: ./.github/actions/setup-submodules
571580
- name: Install PyArrow
572581
run: |
573582
echo "LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
@@ -665,8 +674,9 @@ jobs:
665674
steps:
666675
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
667676
with:
668-
submodules: true
669677
fetch-depth: 1
678+
- name: Setup Submodules
679+
uses: ./.github/actions/setup-submodules
670680
- name: Setup Rust toolchain
671681
uses: ./.github/actions/setup-builder
672682
with:
@@ -690,8 +700,9 @@ jobs:
690700
steps:
691701
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
692702
with:
693-
submodules: true
694703
fetch-depth: 1
704+
- name: Setup Submodules
705+
uses: ./.github/actions/setup-submodules
695706
- name: Setup Rust toolchain
696707
uses: ./.github/actions/setup-builder
697708
with:
@@ -711,8 +722,9 @@ jobs:
711722
steps:
712723
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
713724
with:
714-
submodules: true
715725
fetch-depth: 1
726+
- name: Setup Submodules
727+
uses: ./.github/actions/setup-submodules
716728
- name: Setup Rust toolchain
717729
uses: ./.github/actions/setup-builder
718730
with:

.gitmodules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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

0 commit comments

Comments
 (0)