Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .repo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["governance"]

# No .pytest_cache: the suite is fast enough that the cache buys nothing, and it
# would land on the workspace bind mount. Fixtures already live in tmp_path.
[tool.pytest.ini_options]
addopts = "-p no:cacheprovider"
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ If settings aren't applying after changes, rebuild without cache:
Named volumes may initialize with root ownership. The `ensure_writable_dir` function in `common.sh` and the
`base_setup_config_dirs` step handle this for base volumes; they recurse only when a directory's own owner is wrong.

### Running out of disk

Docker-in-Docker keeps its images and build cache on a volume that survives rebuilds, so it only grows. `task
docker:prune` removes the build cache, stopped containers and unused images, and keeps every volume (stack data
included). Under Docker Desktop on Windows, the freed space can stay allocated in WSL's virtual disk until that
`.vhdx` is compacted (`wsl --shutdown`, then `Optimize-VHD` or `diskpart`'s `compact vdisk`).

### Tool installation failures

Base setup uses `retry` with 3 attempts and 5-second delays for network operations. If a tool consistently fails to
Expand Down
8 changes: 8 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ tasks:
cmds:
- bash .devcontainer/scripts/startup.sh

docker:prune:
desc: Free Docker-in-Docker disk -- build cache, stopped containers, unused images. Keeps every volume.
cmds:
- docker container prune --force
- docker image prune --all --force
- docker builder prune --all --force
- docker system df

env:setup:
desc: Fill in the values the enabled stacks need, interactively.
interactive: true
Expand Down