Skip to content

Commit 6317d81

Browse files
authored
CI: Allow more permissive HTTP retries/timeouts when connecting to conda (#47260)
1 parent 297c59a commit 6317d81

File tree

6 files changed

+39
-1
lines changed

6 files changed

+39
-1
lines changed

.github/actions/setup-conda/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ runs:
1818
if: ${{ inputs.pyarrow-version }}
1919

2020
- name: Install ${{ inputs.environment-file }}
21-
uses: conda-incubator/setup-miniconda@v2
21+
uses: conda-incubator/setup-miniconda@v2.1.1
2222
with:
2323
environment-file: ${{ inputs.environment-file }}
2424
channel-priority: ${{ runner.os == 'macOS' && 'flexible' || 'strict' }}
2525
channels: conda-forge
2626
mamba-version: "0.23"
2727
use-mamba: true
28+
condarc-file: ci/condarc.yml

.github/workflows/asv-bot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
channel-priority: strict
4848
environment-file: ${{ env.ENV_FILE }}
4949
use-only-tar-bz2: true
50+
condarc-file: ci/condarc.yml
5051

5152
- name: Run benchmarks
5253
id: bench

.github/workflows/code-checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
channel-priority: strict
6767
environment-file: ${{ env.ENV_FILE }}
6868
use-only-tar-bz2: true
69+
condarc-file: ci/condarc.yml
6970

7071
- name: Build Pandas
7172
id: build
@@ -135,6 +136,7 @@ jobs:
135136
channel-priority: strict
136137
environment-file: ${{ env.ENV_FILE }}
137138
use-only-tar-bz2: true
139+
condarc-file: ci/condarc.yml
138140

139141
- name: Build Pandas
140142
id: build

.github/workflows/posix.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ jobs:
155155
channel-priority: flexible
156156
environment-file: ${{ env.ENV_FILE }}
157157
use-only-tar-bz2: true
158+
condarc-file: ci/condarc.yml
158159

159160
- name: Upgrade Arrow version
160161
run: conda install -n pandas-dev -c conda-forge --no-update-deps pyarrow=${{ matrix.pyarrow_version }}

.github/workflows/sdist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
activate-environment: pandas-sdist
6565
channels: conda-forge
6666
python-version: '${{ matrix.python-version }}'
67+
condarc-file: ci/condarc.yml
6768

6869
- name: Install pandas from sdist
6970
run: |

ci/condarc.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://docs.conda.io/projects/conda/en/latest/configuration.html
2+
3+
# always_yes (NoneType, bool)
4+
# aliases: yes
5+
# Automatically choose the 'yes' option whenever asked to proceed with a
6+
# conda operation, such as when running `conda install`.
7+
#
8+
always_yes: true
9+
10+
# remote_connect_timeout_secs (float)
11+
# The number seconds conda will wait for your client to establish a
12+
# connection to a remote url resource.
13+
#
14+
remote_connect_timeout_secs: 30.0
15+
16+
# remote_max_retries (int)
17+
# The maximum number of retries each HTTP connection should attempt.
18+
#
19+
remote_max_retries: 10
20+
21+
# remote_backoff_factor (int)
22+
# The factor determines the time HTTP connection should wait for
23+
# attempt.
24+
#
25+
remote_backoff_factor: 3
26+
27+
# remote_read_timeout_secs (float)
28+
# Once conda has connected to a remote resource and sent an HTTP
29+
# request, the read timeout is the number of seconds conda will wait for
30+
# the server to send a response.
31+
#
32+
remote_read_timeout_secs: 60.0

0 commit comments

Comments
 (0)