Skip to content

Commit

Permalink
Increase conda download retries (#3857)
Browse files Browse the repository at this point in the history
* Increase conda download retries

We've been seeing an increase in conda download failures on travis
lately. After talking to the conda team, it was suggested to try
increasing the value of `remote_max_retries` to 10 to see if that helps
(they're not 100% sure why this would be happening).

* Error on install failure

Previously the error would only happen at runtime. Should make debugging
a bit easier.
  • Loading branch information
jcrist committed Aug 6, 2018
1 parent 392e2cb commit bfa1f7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions continuous_integration/hdfs/install.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
set -xe

docker exec -it $CONTAINER_ID conda install -y -q dask hdfs3 pyarrow -c twosigma -c conda-forge
docker exec -it $CONTAINER_ID pip install -e .

set +xe
6 changes: 5 additions & 1 deletion continuous_integration/travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -xe

#!/usr/bin/env bash
# Install conda
case "$(uname -s)" in
Expand All @@ -14,7 +16,7 @@ esac
wget https://repo.continuum.io/miniconda/$MINICONDA_FILENAME -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
conda config --set always_yes yes --set changeps1 no --set remote_max_retries 10

# Create conda environment
conda create -q -n test-environment python=$PYTHON
Expand Down Expand Up @@ -113,3 +115,5 @@ fi;
pip install --no-deps -e .[complete]
echo conda list
conda list

set +xe

0 comments on commit bfa1f7e

Please sign in to comment.