Skip to content

fix(repos): exclude nested .venv directories from prune data - #7127

Merged
dan-petty merged 1 commit into
mainfrom
fix/6636-nested-venv-prune
Nov 25, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/6636-nested-venv-prune

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This pull request excludes nested .venv virtual environments from ignored data counts in devops repos worktrees prune and worktrees add --reclaim.

  • Changes :(exclude).venv to :(exclude,glob)**/.venv/** in CONST_WORKTREE_REGENERABLE_PATHSPECS (src/devops_cli/config/constants.py) so .venv directories under service subdirectories count as regenerable caches while nested build/ and data files remain counted.
  • Updates openspec/specs/repos-worktrees-prune/spec.md and adds tests in tests/git/test_repos_worktrees_reclaim_scope.py.

Closes #6636

Change: openspec/changes/archive/2026-11-25-6636-nested-venv-prune/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/repos The devops repos commands and worktrees labels Nov 25, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 25, 2026 07:54
@dan-petty
dan-petty merged commit a45d7ce into main Nov 25, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/6636-nested-venv-prune branch November 25, 2026 07:57
dan-petty-release Bot added a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.218.2](v0.218.1...v0.218.2)
(2026-11-25)


### Bug Fixes

* **devcontainer:** set DOCKER_HOST for Minikube with Podman
([#7126](#7126))
([bdb338a](bdb338a))
* **repos:** exclude nested .venv directories from prune data
([#7127](#7127))
([a45d7ce](a45d7ce)),
closes [#6636](#6636)
* **roadmap:** clear implement run keys on rejected plan or return
([#7121](#7121))
([2ad146a](2ad146a))
* **roadmap:** remove spend disagreement pair from catalog
([#7125](#7125))
([97b13eb](97b13eb))
* **sandbox:** give each sandbox NetworkPolicy one type
([#7122](#7122))
([7148aa1](7148aa1))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/repos The devops repos commands and worktrees type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(repos): worktrees prune counts a nested .venv as data

1 participant