Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: Configure persistent git cache volume for job containers #614

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

martinpitt
Copy link
Member

Define a cockpituous-git-cache persistent volume so that the expensive and big node-cache.git (plus the much less expensive bots.git) get re-used between jobs.

Note that we don't want to keep all of $XDG_CACHE_HOME, in particular not the libvirt/ directory. So restrict that to the
cockpit-dev/ subdirectory, which is handled by cockpit's git-utils.sh.

Fixes #611


I applied this to rhos-01-1, started a local test log, and inspected the resulting volume from the outside:

$ sudo ls -l /var/lib/containers/storage/volumes/cockpituous-git-cache/_data/cockpit-project
total 0
drwxr-xr-x. 1 cockpituous cockpituous 62 Apr  6 08:57 bots.git
drwxr-xr-x. 1 cockpituous cockpituous 62 Apr  6 08:57 node-cache.git

Define a `cockpituous-git-cache` persistent volume so that the expensive
and big node-cache.git (plus the much less expensive bots.git) get
re-used between jobs.

Note that we don't want to keep *all* of `$XDG_CACHE_HOME`, in
particular not the libvirt/ directory. So restrict that to the
`cockpit-dev/` subdirectory, which is handled by cockpit's
`git-utils.sh`.

Fixes #611
@martinpitt
Copy link
Member Author

I deployed this everywhere. Let's let it run over the weekend.

@martinpitt martinpitt requested review from jelly and mvollmer April 6, 2024 09:18
@martinpitt martinpitt merged commit 771d26f into main Apr 8, 2024
3 checks passed
@martinpitt martinpitt deleted the git-cache branch April 8, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tasks: Bring back git caching
2 participants