Decrease maximum time that GitLab waits for a mirror to finish
failed
Decrease maximum time that GitLab waits for a mirror to finish before to mark it as Now, if the mirror process for a project takes too long or gets stuck, GitLab waits 24 hours to mark the build as failed.
Users see that the mirror is started
, however it is stuck and no message or option to re-start it is available.
If a mirror takes longer than 2 hours to get updated, we can conclude that something wrong has happened and mark it already as failed
.
This will triggers the mirror to be retried earlier and will provide the user a hint to review if maybe the mirror URL is actually correct and working.
Proposal
Decrease the time after which GitLab considers the mirror failed
from one day to two hours.
Links / references
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/app/workers/update_all_mirrors_worker.rb#L19