Replies: 1 comment 4 replies
-
This could be related to the Tart's automatic pruning functionality. It could be disabled by passing the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to set up a Gitlab Pipeline which builds iOS apps on a MacMini through Tart.
For this I am using the Tart Gitlab Executor, which I installed through brew.
My issue is that the Tart image is being pulled from remote on every run. Since I am using the xcode-image this is around 60GB and therefore inflates the runtime of the pipeline by a lot.
I think this is related to the fact that the MacMini has a total disk space of 240GB of which 11GB are already taken by the actual OS running on the machine. I read in one issue (cirrus-cli#645) that insufficient disk space can lead to such behavior because the cached image is being deleted to make space for the running vm. During the actual execution of the pipeline there is still a lot of space left (>50GB), so I think it could also be that I am doing something wrong with my configuration.
I have tried to use the different options provided with the executor to disable this pruning, but I am unable to resolve this issue.
Tart Executor version: 1.19.0-cbb18ff
Gitlab Runner version: HEAD / built 2024-15-11 with go1.23.3
My Gitlab Runner config looks like this (Please excuse the repeated commands for disabling auto-prune, this is an artifact of me trying to resolve the issue):
In my
.gitlab-ci.yml
I specify the image like this:I will get an external hard drive to increase the available disk space by 1TB or 2TB to be able to cache multiple images, but I feel the disk space that is currently available should be sufficient to maintain one VM, therefore I am asking here if my configuration is bad.
I was able to improve the situation somewhat by manually calling
tart pull
on the host system, which then caches the image and makes it available for future runs, but at some point the image is deleted and pulled from scratch. I was unable to determine what leads to the deletion, so for now it is "random".Thank you in advance for your time.
Beta Was this translation helpful? Give feedback.
All reactions