about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-23 18:00:16 +0000
committerEric Huss <eric@huss.org>2022-06-24 07:00:06 -0700
commit31eb5f77d3b2e5eb40db2c118e5adba6c9e014a1 (patch)
tree5b79addb3ec98bb3bd2ac888fe87e02fd31f5862
parentc211c673e231474cf8741764849616aa3ff78e09 (diff)
Auto merge of #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.
-rwxr-xr-xsrc/ci/init_repo.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/ci/init_repo.sh b/src/ci/init_repo.sh
index 93af8c26111..87a5eece39f 100755
--- a/src/ci/init_repo.sh
+++ b/src/ci/init_repo.sh
@@ -52,7 +52,10 @@ function fetch_github_commit_archive {
     rm $cached
 }
 
-included="src/llvm-project src/doc/book src/doc/rust-by-example"
+# Archive downloads are temporarily disabled due to sudden 504
+# gateway timeout errors.
+# included="src/llvm-project src/doc/book src/doc/rust-by-example"
+included=""
 modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
 modules=($modules)
 use_git=""
@@ -75,10 +78,10 @@ for i in ${!modules[@]}; do
 done
 retry sh -c "git submodule deinit -f $use_git && \
     git submodule sync && \
-    git submodule update -j 16 --init --recursive $use_git"
-STATUS=0
-for pid in ${bg_pids[*]}
-do
-    wait $pid || STATUS=1
-done
-exit ${STATUS}
+    git submodule update -j 16 --init --recursive --depth 1 $use_git"
+# STATUS=0
+# for pid in ${bg_pids[*]}
+# do
+#     wait $pid || STATUS=1
+# done
+# exit ${STATUS}