Skip to content

Feature Request: Retry on network errors #1853

Open
@FX-Muesli

Description

@FX-Muesli

Problem description

I am using the checkout action on an enterprise server. Sometimes the overall network load leads to connection problems. This is a known problem and there are solutions for that, e.g. this one from chromium: https://chromium.googlesource.com/chromium/tools/depot_tools/+/refs/heads/main/git_retry.py

Feature request

Could you add an option to enable a retry-mechanism?

Possible Impementation

API:

    # Number of retries on transient network errors per checkout
    # Transient network errors can occur if the network traffic exceeds the capabilities of the target server. 
    # Default: 0 (no retries)
    transient-error-retries: 0

Backend:
take the GIT_TRANSIENT_ERRORS list from https://chromium.googlesource.com/chromium/tools/depot_tools/+/refs/heads/main/git_common.py and check stderror against it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions