-
Notifications
You must be signed in to change notification settings - Fork 196
create retry
function
#401
Comments
/cc @grahamwhaley |
Great. Yes, I think this might be helpful in some cases. Quite often we are seeing network timeouts from:
I think there is no guarantee this will fix things - but, the only way to see is to try it. I think we'd probably like a few retries over a decent period of time - if a network is down sometimes it is very transient, and sometimes it is a long term issue. So something like:
|
I mulled over this a touch more (as I might need it for one of my CI systems that seems to be suffering more network timeout related failures than I'd like - and not from inside the containers, but for things like docker pull and gpg key fetches....) I think we could implement this one of two ways:
I like (2) as it is a simple quick fix that will (hopefully) cover all invocations, but it will also hide the retry functionality from anybody reading or implementing a script. Any preference @chavafg ? :-) |
I had a peek at this adding something like the following to the lib.sh (note, bash functions are better than and have basically replaced 'alias', so functions it was...)
I then went to check what cmds might need function redirections - and realised a number of the commands (take for instance |
Hi @grahamwhaley, sorry for my late response here. I'll prefer option 1, I think it will be more readable... |
+1 for adding this feature. Recently I am getting a few BTW are you aware if the often used packages like |
Hi @marcov afaik, nothing is cached. For our Jenkins CIs that is predominantly because we (deliberately) use a clean fresh machine/instance/VM for each build (see kata-containers/ci#39 for some details as to why). Thus, we'd need some external cache layer outside of our build instances - so a proxy cache or something. |
Closing this issue as it has been solved |
We sometimes hit network issues when setting up the kata-containers environment, and the jobs fail even before starting the tests. If we can add a
retry
function in this cases, it would be helpful to minimize this type of failures.The text was updated successfully, but these errors were encountered: