port watch-tree-writes.py to a madtea-dev subcommand #628

Open
opened 2026-09-24 18:36:22 +00:00 by hexajon · 0 comments
Owner

What

scripts/watch-tree-writes.py (added in #603) logs every file that appears or disappears under internal/ and cmd/ while a test run is going. It found the config test that wrote into the source tree and made the gitexec contract test fail at random. It is Python in a Go project.

Fix

  • A madtea-dev subcommand does the same: it lists internal/ and cmd/ again and again, logs each path that appears (+) or disappears (-), stops when a given stop file exists, and writes nothing in the repo.
  • scripts/watch-tree-writes.py is removed, and scripts/README.md points at the subcommand.

Acceptance

  • The subcommand, run beside go test ./..., logs a directory that a test creates and removes in internal/, with a test for it.
  • No Python file remains under scripts/ for this tool.
## What `scripts/watch-tree-writes.py` (added in #603) logs every file that appears or disappears under `internal/` and `cmd/` while a test run is going. It found the config test that wrote into the source tree and made the gitexec contract test fail at random. It is Python in a Go project. ## Fix - A `madtea-dev` subcommand does the same: it lists `internal/` and `cmd/` again and again, logs each path that appears (`+`) or disappears (`-`), stops when a given stop file exists, and writes nothing in the repo. - `scripts/watch-tree-writes.py` is removed, and `scripts/README.md` points at the subcommand. ## Acceptance - The subcommand, run beside `go test ./...`, logs a directory that a test creates and removes in `internal/`, with a test for it. - No Python file remains under `scripts/` for this tool.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
Reference
sixfold-space/madtea#628
No description provided.