Skip to content

Commit 4334739

Browse files
committed
Auto merge of rust-lang#98423 - ehuss:ci-submodule-no-archive, r=compiler-errors
Temporarily disable submodule archive downloads. The `llvm-project` `/archive/` download has been timing out with a 504 error since yesterday. This changes it so that it uses a normal submodule clone, but also uses `--depth 1` since GitHub now supports `allowReachableSHA1InWant` which allows for fetching a specific revision. That should be reasonably fast (but not as fast as an archive download) to unstick CI.
2 parents 10f4ce3 + ebfde3c commit 4334739

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/ci/init_repo.sh

+11-8
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ function fetch_github_commit_archive {
4848
rm $cached
4949
}
5050

51-
included="src/llvm-project src/doc/book src/doc/rust-by-example"
51+
# Archive downloads are temporarily disabled due to sudden 504
52+
# gateway timeout errors.
53+
# included="src/llvm-project src/doc/book src/doc/rust-by-example"
54+
included=""
5255
modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
5356
modules=($modules)
5457
use_git=""
@@ -71,10 +74,10 @@ for i in ${!modules[@]}; do
7174
done
7275
retry sh -c "git submodule deinit -f $use_git && \
7376
git submodule sync && \
74-
git submodule update -j 16 --init --recursive $use_git"
75-
STATUS=0
76-
for pid in ${bg_pids[*]}
77-
do
78-
wait $pid || STATUS=1
79-
done
80-
exit ${STATUS}
77+
git submodule update -j 16 --init --recursive --depth 1 $use_git"
78+
# STATUS=0
79+
# for pid in ${bg_pids[*]}
80+
# do
81+
# wait $pid || STATUS=1
82+
# done
83+
# exit ${STATUS}

0 commit comments

Comments
 (0)