Skip to content

The uploader should retry on ETIMEDOUT but it doesn't #1180

@webknjaz

Description

@webknjaz

Describe the bug

A connection timeout made a GHA job fail in the codecov action.

To Reproduce

https://github.com/sphinx-contrib/sphinxcontrib-towncrier/actions/runs/6210474137/job/16858771919#step:12:26

Expected behavior

$sbj.

Screenshots

https://github.com/sphinx-contrib/sphinxcontrib-towncrier/actions/runs/6210474137/job/16858771919#step:12:26

Additional context

This is similar to #537 except the error code is different.

Log:

Run codecov/codecov-action@v3
  with:
    files: .test-results/pytest/cov.xml
    flags: CI-GHA, OS-macOS, VM-macos-12, Py-3.7.17, Towncrier-v21.3.0
  env:
    FORCE_COLOR: 1
    MYPY_FORCE_COLOR: 1
    PIP_DISABLE_PIP_VERSION_CHECK: 1
    PIP_NO_PYTHON_VERSION_WARNING: 1
    PIP_NO_WARN_SCRIPT_LOCATION: 1
    PRE_COMMIT_COLOR: 1
    PY_COLORS: 1
    PYTHONIOENCODING: utf-8
    PYTHONLEGACYWINDOWSSTDIO: 1
    PYTHONUTF8: 1
    TOX_PARALLEL_NO_SPINNER: 1
    TOX_TESTENV_PASSENV: FORCE_COLOR MYPY_FORCE_COLOR NO_COLOR PY_COLORS PYTEST_THEME PYTEST_THEME_MODE
    TOXENV: python
    pythonLocation: /Users/runner/hostedtoolcache/Python/3.7.17/x64
    PKG_CONFIG_PATH: /Users/runner/hostedtoolcache/Python/3.7.17/x64/lib/pkgconfig
    Python_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.7.17/x64
    Python2_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.7.17/x64
    Python3_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.7.17/x64
==> macos OS detected
Error: connect ETIMEDOUT 104.22.22.101:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions