This is an automated email from the ASF dual-hosted git repository.

masahi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 9aaf96ef13 [ci][actions] Add more HTTP retries for conda (#11360)
9aaf96ef13 is described below

commit 9aaf96ef13ec2f13fe677c023a10c5b81d1f5d8a
Author: driazati <[email protected]>
AuthorDate: Wed May 18 14:07:34 2022 -0700

    [ci][actions] Add more HTTP retries for conda (#11360)
    
    Co-authored-by: driazati <[email protected]>
---
 .github/actions/setup/action.yml |  1 +
 conda/condarc                    | 42 ++++++++++++++++++++++++++++++++++++++++
 tests/lint/check_file_type.py    |  1 +
 3 files changed, 44 insertions(+)

diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 0ce2023ae4..81a0d4d48a 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -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: |
diff --git a/conda/condarc b/conda/condarc
new file mode 100644
index 0000000000..eef4967f90
--- /dev/null
+++ b/conda/condarc
@@ -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
diff --git a/tests/lint/check_file_type.py b/tests/lint/check_file_type.py
index b01174bfee..4dc0109bde 100644
--- a/tests/lint/check_file_type.py
+++ b/tests/lint/check_file_type.py
@@ -100,6 +100,7 @@ ALLOW_FILE_NAME = {
     "Makefile",
     "Doxyfile",
     "pylintrc",
+    "condarc",
     "rat-excludes",
     "log4j.properties",
     ".clang-format",

Reply via email to