Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Retry on network errors #1853

Open
FX-Muesli opened this issue Aug 14, 2024 · 1 comment
Open

Feature Request: Retry on network errors #1853

FX-Muesli opened this issue Aug 14, 2024 · 1 comment

Comments

@FX-Muesli
Copy link

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.

@shink
Copy link

shink commented Sep 12, 2024

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants