marcoabreu closed pull request #11461: [MXNET-606] Ppa retries in CI URL: https://github.com/apache/incubator-mxnet/pull/11461
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/ci/docker/install/ubuntu_nightly_tests.sh b/ci/docker/install/ubuntu_nightly_tests.sh index abc2134f6ab..63f8c22edfe 100755 --- a/ci/docker/install/ubuntu_nightly_tests.sh +++ b/ci/docker/install/ubuntu_nightly_tests.sh @@ -21,8 +21,10 @@ set -ex -#Install for Compilation warning Nightly Test -add-apt-repository ppa:ubuntu-toolchain-r/test +# Install for Compilation warning Nightly Test +# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays. +for i in 1 2 3 4 5; do add-apt-repository -y ppa:ubuntu-toolchain-r/test && break || sleep 300; done + apt-get update apt-get -y install time diff --git a/ci/docker/install/ubuntu_nvidia.sh b/ci/docker/install/ubuntu_nvidia.sh index e6d7926dadb..4c57404ff63 100755 --- a/ci/docker/install/ubuntu_nvidia.sh +++ b/ci/docker/install/ubuntu_nvidia.sh @@ -19,7 +19,10 @@ set -ex apt install -y software-properties-common -add-apt-repository -y ppa:graphics-drivers + +# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays. +for i in 1 2 3 4 5; do add-apt-repository -y ppa:graphics-drivers && break || sleep 300; done + # Retrieve ppa:graphics-drivers and install nvidia-drivers. # Note: DEBIAN_FRONTEND required to skip the interactive setup steps apt update ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
