Skip to content

Commit 82e6d0e

Browse files
authored
Parallelize submodule checkout (project-chip#41335)
Signed-off-by: Maciej Grela <[email protected]>
1 parent 4a578ea commit 82e6d0e

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.github/actions/checkout-submodules/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ runs:
1414
- uses: Wandalen/[email protected]
1515
name: Checkout submodules
1616
with:
17-
command: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform ${{ inputs.platform }} ${{ inputs.extra-parameters }}
17+
command: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --jobs 4 --platform ${{ inputs.platform }} ${{ inputs.extra-parameters }}
1818
attempt_limit: 3
1919
attempt_delay: 2000

.github/workflows/examples-telink.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Build tools required for Factory Data
6464
# Run test for master and all PRs
6565
run: |
66-
./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
66+
./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --jobs 4 --platform linux
6767
./scripts/build/gn_gen.sh
6868
./scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE chip-cert chip-tool spake2p"
6969
mv ./out/$BUILD_TYPE/chip-cert ./out/$BUILD_TYPE/chip-tool ./out/$BUILD_TYPE/spake2p ./out
@@ -410,7 +410,7 @@ jobs:
410410
- name: Build tools required for Factory Data
411411
# Run test for master and all PRs
412412
run: |
413-
./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
413+
./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --jobs 4 --platform linux
414414
./scripts/build/gn_gen.sh
415415
./scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE chip-cert chip-tool spake2p"
416416
mv ./out/$BUILD_TYPE/chip-cert ./out/$BUILD_TYPE/chip-tool ./out/$BUILD_TYPE/spake2p ./out

integrations/cloudbuild/chef.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ steps:
55
- "-c"
66
- |
77
git config --global --add safe.directory "*"
8-
python scripts/checkout_submodules.py --shallow --recursive --platform esp32 nrfconnect silabs linux android
8+
python scripts/checkout_submodules.py --shallow --recursive --jobs 4 --platform esp32 nrfconnect silabs linux android
99
id: Submodules
1010
- name: "ghcr.io/project-chip/chip-build-vscode:169"
1111
# NOTE: silabs boostrap is NOT done with the rest as it requests a conflicting

integrations/cloudbuild/smoke-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ steps:
55
- "-c"
66
- |
77
git config --global --add safe.directory "*"
8-
python scripts/checkout_submodules.py --shallow --recursive --platform esp32 nrfconnect silabs linux android
8+
python scripts/checkout_submodules.py --shallow --recursive --jobs 4 --platform esp32 nrfconnect silabs linux android
99
id: Submodules
1010
- name: "ghcr.io/project-chip/chip-build-vscode:169"
1111
# NOTE: silabs boostrap is NOT done with the rest as it requests a conflicting

integrations/docker/images/chip-cert-bins/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ RUN mkdir /root/connectedhomeip
140140
RUN git clone https://github.com/project-chip/connectedhomeip.git /root/connectedhomeip
141141
WORKDIR /root/connectedhomeip/
142142
RUN git checkout ${COMMITHASH}
143-
RUN ./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
143+
RUN ./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --jobs 4 --platform linux
144144
RUN bash scripts/bootstrap.sh
145145

146146
# Stage 2: Build.

scripts/build/gn_gen_cirque.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env
3030
cd "$ROOT_PATH"
3131

3232
echo "Ensure submodules for Linux builds are checked out"
33-
./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
33+
./scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --jobs 4 --platform linux
3434

3535
echo "Setup build environment"
3636
source "./scripts/activate.sh"

src/darwin/Framework/chip_xcode_build_connector.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ find_in_ancestors() {
220220
fi
221221

222222
# there are environments where these bits are unwanted, unnecessary, or impossible
223-
[[ -n $CHIP_NO_SUBMODULES ]] || scripts/checkout_submodules.py --shallow --platform darwin
223+
[[ -n $CHIP_NO_SUBMODULES ]] || scripts/checkout_submodules.py --shallow --jobs 4 --platform darwin
224224
if [[ -z $CHIP_NO_ACTIVATE ]]; then
225225
# first run bootstrap/activate in an external env to build everything
226226
env -i PW_ENVSETUP_NO_BANNER=1 PW_ENVSETUP_QUIET=1 bash -c '. scripts/activate.sh'

0 commit comments

Comments
 (0)