Skip to content

Commit 31eb5f7

Browse files
borsehuss
authored andcommitted
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.
1 parent c211c67 commit 31eb5f7

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
@@ -52,7 +52,10 @@ function fetch_github.ghproxy.topmit_archive {
5252
rm $cached
5353
}
5454

55-
included="src/llvm-project src/doc/book src/doc/rust-by-example"
55+
# Archive downloads are temporarily disabled due to sudden 504
56+
# gateway timeout errors.
57+
# included="src/llvm-project src/doc/book src/doc/rust-by-example"
58+
included=""
5659
modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
5760
modules=($modules)
5861
use_git=""
@@ -75,10 +78,10 @@ for i in ${!modules[@]}; do
7578
done
7679
retry sh -c "git submodule deinit -f $use_git && \
7780
git submodule sync && \
78-
git submodule update -j 16 --init --recursive $use_git"
79-
STATUS=0
80-
for pid in ${bg_pids[*]}
81-
do
82-
wait $pid || STATUS=1
83-
done
84-
exit ${STATUS}
81+
git submodule update -j 16 --init --recursive --depth 1 $use_git"
82+
# STATUS=0
83+
# for pid in ${bg_pids[*]}
84+
# do
85+
# wait $pid || STATUS=1
86+
# done
87+
# exit ${STATUS}

0 commit comments

Comments
 (0)