Skip to content

Commit

Permalink
[ci][actions] Add more HTTP retries for conda
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati committed May 18, 2022
1 parent 2b1e5ce commit 6b8b243
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ runs:
auto-activate-base: false
use-only-tar-bz2: true
python-version: 3.7
condarc-file: conda/condarc
- name: Conda info
shell: pwsh
run: |
Expand Down
42 changes: 42 additions & 0 deletions conda/condarc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# See https://docs.conda.io/projects/conda/en/latest/configuration.html for details

# 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: 10

# remote_max_retries (int)
# The maximum number of retries each HTTP connection should attempt.
#
remote_max_retries: 6

# remote_backoff_factor (int)
# The factor determines the time HTTP connection should wait for
# attempt.
#
remote_backoff_factor: 5

# 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
1 change: 1 addition & 0 deletions tests/lint/check_file_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"Makefile",
"Doxyfile",
"pylintrc",
"condarc",
"rat-excludes",
"log4j.properties",
".clang-format",
Expand Down

0 comments on commit 6b8b243

Please sign in to comment.