Getting source from Git repository step takes over 10 minutes for each workload
Whenever the flow gets created and started, Getting source from Git repository step takes over 10 minutes. Full discussion: &16050 (comment 2794618364)
Here are the detailed logs to showcase the exact problem from the production environment:
-
When I requested a review from
GitLabDuo, it almost immediately created a workload and I was able to see it athttps://gitlab.com/gitlab-org/gitlab
-
From the job logs, I can see it was picked up pretty fast:
Running on runner--azerasqr-project-278964-concurrent-0 via runner-azerasqr-s-l-s-amd64-1759444748-6ea2c946... -
However, it got stuck after the
Created fresh repository.step (line 17). Screenshot:
-
So, the delay is between
Line 17 -> Line 18.Checking out ea5a48f1 as detached HEAD (ref is workloads/8e388f0f861)...showed up after~12 minutes
-
After line 18 appeared, everything else executed pretty fast
-
Basically,
Getting source from Git repositorystep took ~11 minutes
-
Job: https://gitlab.com/gitlab-org/gitlab/-/jobs/11584586929
Hopefully this provides the full picture of where it's getting stuck.
To me, it seems like we fetch the fresh clone of the repository for each workload. I think we need to use a pre-built image with the repository already cloned for workload jobs or maybe shallow cloning?



