You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WithMountedDirectory/WithMountedFile does not use content-based cache in withExec #6421
This behavior is explicitly disabled in buildkit - mounts only use slow content-based cache when both:
The mount is not the root mount
The mount is read-only
This is to avoid computing expensive content-based checksums. The root mount case often makes sense for us as well: I really struggle to imagine a scenario where caching this would be super useful. It would allow refactoring of previous steps into steps that produce the exact same file system to be kept - but this doesn't often happen, since timestamps on files exist.
However, it would be more reasonable to allow non-readonly, non-root mounts to do this as well. There is also llb.ForceNoOutput, but we do rely on the output to ensure that the outputs do propagate and changes to mount content is kept.
We should investigate further, and attempt to remove this constraint in upstream buildkit (atm, I'm not sure I fully understand what this constraint actually is.
I noticed this a long time ago and was afraid it broke caching in subtle ways everywhere but could never create a practical scenario where it happened w/ dagger. That was a while back though now. Do you know of any @jedevc?
Activity
sipsma commentedon Jan 17, 2024
I noticed this a long time ago and was afraid it broke caching in subtle ways everywhere but could never create a practical scenario where it happened w/ dagger. That was a while back though now. Do you know of any @jedevc?
jedevc commentedon Jan 31, 2024
I think there's an explicit reason for this. It doesn't spring to mind 😢 Have asked on the community slack if anyone's aware" https://dockercommunity.slack.com/archives/C7S7A40MP/p1706711391769259
fix(ci): stale Dagger mount cache (dagger/dagger#6421)
fix(ci): stale Dagger mount cache; add release-please + homelab dispatch
sni_tls strict mode + release-please + Dagger stale-cache fix (#13)
feat(ci): heavy-tier DevSecOps gate, sni_tls strict mode, golangci-li…