Skip to content

qa/tasks/workunit: retry the clone before falling back to ceph.git - #73734

Open
djgalloway wants to merge 1 commit into
mainfrom
wip-82967-workunit-clone-retry
Open

djgalloway wants to merge 1 commit into
mainfrom
wip-82967-workunit-clone-retry

Conversation

@djgalloway

Copy link
Copy Markdown
Contributor

A transient fetch error from GitHub (HTTP 408) on the ceph-ci clone sent the workunit straight to the ceph.git fallback, which does not have ceph-ci commits, so the checkout failed with "reference is not a tree". Retry the clone a few times before giving up on a repository.

Fixes: https://tracker.ceph.com/issues/82967

Verified with a mocked remote: one that fails twice then succeeds (three clone attempts, no fallback), and one that fails every attempt (CommandFailedError propagates to the ceph.git fallback as before).

A transient fetch error from GitHub (HTTP 408) on the ceph-ci clone sent
the workunit straight to ceph.git, which does not have ceph-ci commits,
so the checkout failed with "reference is not a tree". Retry the clone a
few times before giving up on a repository.

Fixes: https://tracker.ceph.com/issues/82967
Assisted-by: Claude Fable 5.1
Signed-off-by: David Galloway <david.galloway@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant