From: Yaroslav Halchenko <yoh@onerussian.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Cc: Isaac To <isaac.chun.to@gmail.com>
Subject: git-retry tool or git.retry config (built-in implementation)?
Date: Tue, 26 Sep 2023 12:47:51 -0400 [thread overview]
Message-ID: <ZRMLNyHXoWOj6K-l@bilena> (raw)
Dear Git Gurus,
In DataLad (https://datalad.org) we are doing lots of automated cloning,
fetching etc as part of our CI etc jobs. Once in a while git operations
fail [see e.g. 1], and beg us to retry but we need to know when to
do so, and not do it upon every failed git invocation since some
failures could be legit (repository is gone). While looking how others
solve it we found
https://stackoverflow.com/questions/35014012/git-retry-if-http-request-failed
which pointed to tools like git-retry and later part of
https://chromium.googlesource.com/infra/infra/+/HEAD/go/src/infra/tools/git/retry_regexp.go
which serve as a collection of regexes to be on lookout for to retry.
Would that be the "best" strategy currently?
As regex matching might eventually break whenever `git` changes
anything in the output messages, I wondered if there could be a more
robust internal implementation in git itself? Similarly git-annex has
annex.retry config setting which sets the count of retries for
"retriable" operations.
Do you think something like that could be implemented in git in some
foreseable future?
[1] https://github.com/datalad/datalad/issues/7485
Thank you in advance!
--
Yaroslav O. Halchenko
Center for Open Neuroscience http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
WWW: http://www.linkedin.com/in/yarik
next reply other threads:[~2023-09-26 17:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 16:47 Yaroslav Halchenko [this message]
2023-09-26 23:57 ` git-retry tool or git.retry config (built-in implementation)? Bagas Sanjaya
2023-09-27 12:42 ` Yaroslav Halchenko
2023-09-27 13:29 ` Bagas Sanjaya
-- strict thread matches above, loose matches on Subject: below --
2024-02-16 8:36 Meiswinkel, Jan SF/HZA-ZC3S
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZRMLNyHXoWOj6K-l@bilena \
--to=yoh@onerussian.com \
--cc=git@vger.kernel.org \
--cc=isaac.chun.to@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).