Repository navigation
Description
Context & Rationale
e8eaf4a (#749, PR #758) added a workspace tripwire to tests/conftest.py. After the test session, it reports each tracked file that tests changed. _is_git_file_modified returns True whenever <root>/.git/index doesn't exist, without asking git.
In a linked worktree, .git is a file that points at the main repository's worktrees/<name> directory, so that path never exists. uv run devops ci regenerates the docs and README while pytest runs. The tripwire then reports every regenerated file as "modified by tests", and the gate fails from any linked worktree even when every test passes. It turned up while delivering #819 from a worktree.
Every agent-built change in this repository is made in a linked worktree, and the pre-push hook runs this gate. e8eaf4a is in no tag (git tag --contains e8eaf4a prints nothing), so v0.2.24 would ship the regression.
Scope & Deliverables
- Deliverable:
_is_git_file_modifiedleaves finding the index togit diff --quiet. A git error exits non-zero and still counts as a change. - Acceptance criteria:
- A test in
tests/test_isolation_tripwire.pyuses the existingnested_worktreefixture. A tracked file whose mtime changes but whose content doesn't is not reported. An edited one is reported. - The test fails against e8eaf4a's
conftest.py. uv run devops cipasses from a linked worktree.
- A test in
- Constraint: Tests never touch the network.
Strategic Alignment
- Milestone: v0.2.24, as a critical fix (regression from e8eaf4a, fix(test): tests never write to the project config, data or tracked files #749)
- Depends on: none. Related: fix(test): tests never write to the project config, data or tracked files #749, fix(k8s): deploy-stack installs the Prometheus Operator CRDs its ServiceMonitors need #819.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(test): the workspace tripwire passes from a linked worktree (#824) (
dan-petty commentedon Oct 1, 2026
Closed by #826, merged into
release/v0.2.24.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.fix(k8s): deploy-stack installs the prometheus operator crds its serv…
feat(release): v0.2.24 (#905)