From 65694653516a1c166c4b83b8609547dd1c83c5b1 Mon Sep 17 00:00:00 2001 From: Matthew Roeschke Date: Mon, 6 Jun 2022 12:08:20 -0700 Subject: [PATCH] CI: Allow more permissive HTTP retries/timeouts when connecting to conda --- .github/actions/setup-conda/action.yml | 3 ++- .github/workflows/asv-bot.yml | 1 + .github/workflows/code-checks.yml | 2 ++ .github/workflows/posix.yml | 1 + .github/workflows/sdist.yml | 1 + ci/condarc.yml | 32 ++++++++++++++++++++++++++ 6 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 ci/condarc.yml diff --git a/.github/actions/setup-conda/action.yml b/.github/actions/setup-conda/action.yml index 1c947ff244fb9..7f5d864330db2 100644 --- a/.github/actions/setup-conda/action.yml +++ b/.github/actions/setup-conda/action.yml @@ -18,10 +18,11 @@ runs: if: ${{ inputs.pyarrow-version }} - name: Install ${{ inputs.environment-file }} - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: environment-file: ${{ inputs.environment-file }} channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }} channels: conda-forge mamba-version: "0.23" use-mamba: true + condarc-file: ci/condarc.yml diff --git a/.github/workflows/asv-bot.yml b/.github/workflows/asv-bot.yml index 78c224b84d5d9..50720c5ebf0e2 100644 --- a/.github/workflows/asv-bot.yml +++ b/.github/workflows/asv-bot.yml @@ -47,6 +47,7 @@ jobs: channel-priority: strict environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true + condarc-file: ci/condarc.yml - name: Run benchmarks id: bench diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 7812c4dd00bcb..9d51062754f35 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -66,6 +66,7 @@ jobs: channel-priority: strict environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true + condarc-file: ci/condarc.yml - name: Build Pandas id: build @@ -135,6 +136,7 @@ jobs: channel-priority: strict environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true + condarc-file: ci/condarc.yml - name: Build Pandas id: build diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 35c40f2a4aa54..28d2ae6d26bda 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -155,6 +155,7 @@ jobs: channel-priority: flexible environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true + condarc-file: ci/condarc.yml - name: Upgrade Arrow version run: conda install -n pandas-dev -c conda-forge --no-update-deps pyarrow=${{ matrix.pyarrow_version }} diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 21d252f4cef67..27f7da0b83d27 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -64,6 +64,7 @@ jobs: activate-environment: pandas-sdist channels: conda-forge python-version: '${{ matrix.python-version }}' + condarc-file: ci/condarc.yml - name: Install pandas from sdist run: | diff --git a/ci/condarc.yml b/ci/condarc.yml new file mode 100644 index 0000000000000..9d750b7102c39 --- /dev/null +++ b/ci/condarc.yml @@ -0,0 +1,32 @@ +# https://docs.conda.io/projects/conda/en/latest/configuration.html + +# always_yes (NoneType, bool) +# aliases: yes +# Automatically choose the 'yes' option whenever asked to proceed with a +# conda operation, such as when running `conda install`. +# +always_yes: true + +# remote_connect_timeout_secs (float) +# The number seconds conda will wait for your client to establish a +# connection to a remote url resource. +# +remote_connect_timeout_secs: 30.0 + +# remote_max_retries (int) +# The maximum number of retries each HTTP connection should attempt. +# +remote_max_retries: 10 + +# remote_backoff_factor (int) +# The factor determines the time HTTP connection should wait for +# attempt. +# +remote_backoff_factor: 3 + +# remote_read_timeout_secs (float) +# Once conda has connected to a remote resource and sent an HTTP +# request, the read timeout is the number of seconds conda will wait for +# the server to send a response. +# +remote_read_timeout_secs: 60.0