All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Travis-CI: try working around network issues by retrying downloads
@ 2017-10-24 21:39 Nicolas Iooss
  2017-10-25 16:06 ` William Roberts
  2017-10-26 19:51 ` William Roberts
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Iooss @ 2017-10-24 21:39 UTC (permalink / raw)
  To: selinux

Some Travis-CI builds failed because of issues when downloading
refpolicy files for sepolgen tests. Use curl's option --retry to make
the downloads work when the networking issues are only transient.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
---
 .travis.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index e21b4d2198e5..88f6297e63bc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -64,10 +64,10 @@ addons:
 install:
   # Download refpolicy Makefile for sepolgen tests
   - sudo mkdir -p /usr/share/selinux/default
-  - sudo curl -o /usr/share/selinux/default/Makefile 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/support/Makefile.devel'
+  - sudo curl --retry 10 -o /usr/share/selinux/default/Makefile 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/support/Makefile.devel'
   - sudo sed "s,^PREFIX :=.*,PREFIX := $TRAVIS_BUILD_DIR/installdir/usr," -i /usr/share/selinux/default/Makefile
   - sudo mkdir -p /usr/share/selinux/refpolicy/include
-  - sudo curl -o /usr/share/selinux/refpolicy/include/build.conf 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/build.conf'
+  - sudo curl --retry 10 -o /usr/share/selinux/refpolicy/include/build.conf 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/build.conf'
   - sudo mkdir -p /etc/selinux
   - echo 'SELINUXTYPE=refpolicy' | sudo tee /etc/selinux/config
 
@@ -77,7 +77,7 @@ install:
   # Download the required python version if it is not installed
   - VIRTUAL_ENV="$HOME/virtualenv/$PYVER"
   - if ! [ -d "$VIRTUAL_ENV" ] ; then
-        curl -o python.tar.bz2 "https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/${PYVER/python/python-}.tar.bz2" &&
+        curl --retry 10 -o python.tar.bz2 "https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/${PYVER/python/python-}.tar.bz2" &&
         sudo tar xjf python.tar.bz2 --directory / &&
         rm python.tar.bz2 ;
     fi
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Travis-CI: try working around network issues by retrying downloads
  2017-10-24 21:39 [PATCH 1/1] Travis-CI: try working around network issues by retrying downloads Nicolas Iooss
@ 2017-10-25 16:06 ` William Roberts
  2017-10-26 19:51 ` William Roberts
  1 sibling, 0 replies; 3+ messages in thread
From: William Roberts @ 2017-10-25 16:06 UTC (permalink / raw)
  To: Nicolas Iooss; +Cc: selinux

On Tue, Oct 24, 2017 at 2:39 PM, Nicolas Iooss <nicolas.iooss@m4x.org> wrote:
> Some Travis-CI builds failed because of issues when downloading
> refpolicy files for sepolgen tests. Use curl's option --retry to make
> the downloads work when the networking issues are only transient.
>
> Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
> ---
>  .travis.yml | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index e21b4d2198e5..88f6297e63bc 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -64,10 +64,10 @@ addons:
>  install:
>    # Download refpolicy Makefile for sepolgen tests
>    - sudo mkdir -p /usr/share/selinux/default
> -  - sudo curl -o /usr/share/selinux/default/Makefile 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/support/Makefile.devel'
> +  - sudo curl --retry 10 -o /usr/share/selinux/default/Makefile 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/support/Makefile.devel'
>    - sudo sed "s,^PREFIX :=.*,PREFIX := $TRAVIS_BUILD_DIR/installdir/usr," -i /usr/share/selinux/default/Makefile
>    - sudo mkdir -p /usr/share/selinux/refpolicy/include
> -  - sudo curl -o /usr/share/selinux/refpolicy/include/build.conf 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/build.conf'
> +  - sudo curl --retry 10 -o /usr/share/selinux/refpolicy/include/build.conf 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/build.conf'
>    - sudo mkdir -p /etc/selinux
>    - echo 'SELINUXTYPE=refpolicy' | sudo tee /etc/selinux/config
>
> @@ -77,7 +77,7 @@ install:
>    # Download the required python version if it is not installed
>    - VIRTUAL_ENV="$HOME/virtualenv/$PYVER"
>    - if ! [ -d "$VIRTUAL_ENV" ] ; then
> -        curl -o python.tar.bz2 "https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/${PYVER/python/python-}.tar.bz2" &&
> +        curl --retry 10 -o python.tar.bz2 "https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/${PYVER/python/python-}.tar.bz2" &&
>          sudo tar xjf python.tar.bz2 --directory / &&
>          rm python.tar.bz2 ;
>      fi
> --
> 2.14.2
>
>

Ack

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Travis-CI: try working around network issues by retrying downloads
  2017-10-24 21:39 [PATCH 1/1] Travis-CI: try working around network issues by retrying downloads Nicolas Iooss
  2017-10-25 16:06 ` William Roberts
@ 2017-10-26 19:51 ` William Roberts
  1 sibling, 0 replies; 3+ messages in thread
From: William Roberts @ 2017-10-26 19:51 UTC (permalink / raw)
  To: Nicolas Iooss; +Cc: selinux

Thank you. Applied.
https://github.com/SELinuxProject/selinux/pull/69


On Tue, Oct 24, 2017 at 2:39 PM, Nicolas Iooss <nicolas.iooss@m4x.org> wrote:
> Some Travis-CI builds failed because of issues when downloading
> refpolicy files for sepolgen tests. Use curl's option --retry to make
> the downloads work when the networking issues are only transient.
>
> Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
> ---
>  .travis.yml | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index e21b4d2198e5..88f6297e63bc 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -64,10 +64,10 @@ addons:
>  install:
>    # Download refpolicy Makefile for sepolgen tests
>    - sudo mkdir -p /usr/share/selinux/default
> -  - sudo curl -o /usr/share/selinux/default/Makefile 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/support/Makefile.devel'
> +  - sudo curl --retry 10 -o /usr/share/selinux/default/Makefile 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/support/Makefile.devel'
>    - sudo sed "s,^PREFIX :=.*,PREFIX := $TRAVIS_BUILD_DIR/installdir/usr," -i /usr/share/selinux/default/Makefile
>    - sudo mkdir -p /usr/share/selinux/refpolicy/include
> -  - sudo curl -o /usr/share/selinux/refpolicy/include/build.conf 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/build.conf'
> +  - sudo curl --retry 10 -o /usr/share/selinux/refpolicy/include/build.conf 'https://raw.githubusercontent.com/TresysTechnology/refpolicy/RELEASE_2_20170204/build.conf'
>    - sudo mkdir -p /etc/selinux
>    - echo 'SELINUXTYPE=refpolicy' | sudo tee /etc/selinux/config
>
> @@ -77,7 +77,7 @@ install:
>    # Download the required python version if it is not installed
>    - VIRTUAL_ENV="$HOME/virtualenv/$PYVER"
>    - if ! [ -d "$VIRTUAL_ENV" ] ; then
> -        curl -o python.tar.bz2 "https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/${PYVER/python/python-}.tar.bz2" &&
> +        curl --retry 10 -o python.tar.bz2 "https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/14.04/x86_64/${PYVER/python/python-}.tar.bz2" &&
>          sudo tar xjf python.tar.bz2 --directory / &&
>          rm python.tar.bz2 ;
>      fi
> --
> 2.14.2
>
>



-- 
Respectfully,

William C Roberts

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-26 23:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-24 21:39 [PATCH 1/1] Travis-CI: try working around network issues by retrying downloads Nicolas Iooss
2017-10-25 16:06 ` William Roberts
2017-10-26 19:51 ` William Roberts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.