Monorepo for Tangled tangled.org

knotmirror: add knotBackoff and reachability test #1168

merged opened by boltless.me targeting master from sl/knotmirror

git-cli doesn't support http connection timeout, so we cannot set short 30s connection timeout on git fetch. We don't want to put operation timeout that short because intial git clone can take pretty long.

go-git does expose http client but only globally and is less efficient than cli. So as a hack, just fetch remote server to check if knot is available and is valid git remote server

Signed-off-by: Seongmin Lee git@boltless.me

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mh3qbj6yyk22
Interdiff #1 #2
knotmirror/resyncer.go

This patch was likely rebased, as context lines do not match.

History

5 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
knotmirror: add knotBackoff and reachability test
2/3 failed, 1/3 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
knotmirror: add knotBackoff and reachability test
expand 0 comments
1 commit
expand
knotmirror: add knotBackoff and reachability test
expand 0 comments
1 commit
expand
knotmirror: add knotBackoff and reachability test
expand 0 comments
1 commit
expand
knotmirror: add knotBackoff and reachability test
expand 0 comments