Skip to content

CI: Allow more permissive HTTP retries/timeouts when connecting to conda #47260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/actions/setup-conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .github/workflows/asv-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
32 changes: 32 additions & 0 deletions ci/condarc.yml
Original file line number Diff line number Diff line change
@@ -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