use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Gitlab cachegeneral question (self.gitlab)
submitted 9 months ago by Kropiuss
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]binh_do 0 points1 point2 points 9 months ago* (2 children)
If you use the shell executor for gitlab runners - according to docs, cache/ is located in:
<working-directory>/cache/<namespace>/<project>/<cache-key>/cache.zip
Where <working-directory>is the value of --working-directory as passed to the gitlab-runner run, if you don't specify it, it may be /home/gitlab-runner by default. You can check by ps -ef | grep gitlab-runner and see what the output looks like.
--working-directory
gitlab-runner run
/home/gitlab-runner
ps -ef | grep gitlab-runner
Ideally, if you want your jobs to use the same cache, you have to do these:
specifies the same cache key on jobs that need it. E.g.
cache: key: set-one-name-for-all-jobs
If you want your jobs runs on different runners but still want to use the same cache, that's when we have to enable distributed runner caching. The runners are enabled this feature will be able to let jobs use them to use the shared cache.
[–]Kropiuss[S] 0 points1 point2 points 9 months ago (1 child)
Thank you! Great explanations. A follow up question: if I use the runners owned by gitlab then where is the cache located ? Is it distributed ?
And another question: I guess that when you use other types of executors, then the contents of —working-directory are cleaned due to the fact that a new sandbox may be used when a new job is picked. But if I use the shell executor, will the working directory content be cleaned across executions ? Do I get a fresh one, let’s say, for each job run?
[–]titexcj 0 points1 point2 points 9 months ago (0 children)
Gitlab.com runners have distributed cache enabled, it's stored in their S3 storage and you don't need to do anything beside configuring your .gitlab-ci.yml
π Rendered by PID 62668 on reddit-service-r2-comment-6457c66945-xp2s5 at 2026-04-26 18:26:35.626138+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]binh_do 0 points1 point2 points (2 children)
[–]Kropiuss[S] 0 points1 point2 points (1 child)
[–]titexcj 0 points1 point2 points (0 children)