This is an automated email from the ASF dual-hosted git repository.

marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new b73b7b8  [MXNET-606] Ppa retries in CI (#11461)
b73b7b8 is described below

commit b73b7b803eab02d2f385bf6381c92ca5b729921c
Author: Kellen Sunderland <[email protected]>
AuthorDate: Thu Jun 28 17:35:15 2018 +0200

    [MXNET-606] Ppa retries in CI (#11461)
---
 ci/docker/install/ubuntu_nightly_tests.sh | 6 ++++--
 ci/docker/install/ubuntu_nvidia.sh        | 5 ++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ci/docker/install/ubuntu_nightly_tests.sh 
b/ci/docker/install/ubuntu_nightly_tests.sh
index abc2134..63f8c22 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 e6d7926..4c57404 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

Reply via email to