-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Add support for retrying copa patch on failure/timeout #49
Comments
@SaptarshiSarkar12 thanks for the issue! I think a better solution to timeout error would be changing the timeout arg in copa which we already support through the copa action. If the timeout is not changed from default (5 min) and copa patch is failing due to network, running it multiple times will still result in the same error. |
@ashnamehrotra I have changed the timeout to 10 mins, but it still reports timeout error. I am currently using retry-action which seems to handle the issue properly by re-running the step when it fails. But that is a 3rd party solution. I was looking for an official solution from Copa.
and many more. |
@SaptarshiSarkar12 thats interesting, out of curiosity, if you use the default and remove |
@ashnamehrotra They work totally fine, but the overall workflow fails because cache export is not supported by the current docker buildx installed by default. |
@SaptarshiSarkar12 got it, I will assign this issue to you thanks! |
Thank you @ashnamehrotra for assigning the issue to me 😄. |
Problem
Due to network issues,
copa patch
fails (timed out) often. It is tedious to re-run GitHub actions jobs on failure each time.Solution proposed
We can add an optional GitHub actions input -
max_attempts
which would store the number of times thecopa patch
would be run if it failed. Moreover, at the last the workflow can print the number of attempts before it succeeded.Additional Information
I would like to work on this issue if the maintainers approve this issue.
The text was updated successfully, but these errors were encountered: