Skip to content

Commit

Permalink
Time out docker load after 10 minutes, kill after 12 due to CI hangs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkratz committed Oct 21, 2021
1 parent 838e673 commit 3e6a695
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
retry curl --max-time 600 -y 30 -Y 10 --connect-timeout 30 -f -L -C - \
-o /tmp/rustci_docker_cache "$url"
echo "Loading images into docker"
loaded_images=$(docker load -i /tmp/rustci_docker_cache | sed 's/.* sha/sha/')
# docker load sometimes hangs in the CI, so time out after 10 minutes with TERM,
# KILL after 12 minutes
loaded_images=$(/usr/bin/timeout -k 720 600 docker load -i /tmp/rustci_docker_cache \
| sed 's/.* sha/sha/')
set -e
echo "Downloaded containers:\n$loaded_images"
fi
Expand Down

0 comments on commit 3e6a695

Please sign in to comment.