Repository navigation
chore(repo): add task docker:prune and stop pytest writing a cache - #51
Merged
Merged
Conversation
Docker-in-Docker keeps its images and build cache on a volume that survives rebuilds, so it only grows; `task docker:prune` frees the build cache, stopped containers and unused images and keeps every volume. The README gains a "Running out of disk" entry, including the Docker Desktop vhdx caveat. pytest no longer writes .repo/.pytest_cache onto the workspace bind mount. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
task docker:prune: Docker-in-Docker stores its images and build cache on thedind-var-lib-dockervolume, which survives rebuilds, so it only grows. In this session it had reached about 18 GB of reclaimable data: the build cache of pastdevcontainer buildruns plus old images. The task removes the build cache, stopped containers and unused images, and keeps every volume, so stack data such as postgres is untouched..vhdxkeeps the freed space until it is compacted.addopts = "-p no:cacheprovider"in.repo/pyproject.toml): no more.repo/.pytest_cacheon the workspace bind mount. This covers bothtask repo:testand CI.I checked the hooks, Taskfiles and lifecycle scripts for anything else that writes files. The only writes are the intended ones:
.devcontainer/.env, git hooks, the shell-profile line, and.repo/.venvfor the test suite, which is gitignored.Test plan
task check(lint,repo check, 45 tests, conventions: no findings).repo/.pytest_cacheuntouched; its timestamp is still Sep 22🤖 Generated with Claude Code