Hey,
We're using dagger on a long-running hosted GitHub actions runner to build a large go project (lint,test,build pipeline).
We're using mounted cache for /root/.cache/<cachedirs>.
The build is quite heavy.
The first build takes ~20 minutes.
After we have cached Go packages, build cache, golangci cache etc, the build takes ~ 1 min.
Once every several builds it seems that the cache gets invalidated and the build takes ~20 minutes again.
I suspect that it's related to Buildkit's garbage collection mechanism.
I'm seeing the following in dagger engine logs:
gc cleaned up 1389721294 bytes
Does builtkit actually gc my mounted cache volumes?
How does dagger interact with buildkit? what driver does it use, and will it respect a custom buildkit configuration?
Is it possible to modify buildkit configuration to keep the cache for an extended period?