Skip to content

Make PathFormatStore doctest hermetic (no /tmp walk) - #99

Merged
thorwhalen merged 2 commits into
masterfrom
fix/pathformatstore-doctest-hermetic
Oct 13, 2026
Merged

thorwhalen merged 2 commits into
masterfrom
fix/pathformatstore-doctest-hermetic

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Fixes #98.

The doctest's PathFormatStore(path_format=rootdir_2 + '{}.txt') had no separator, so the store root was the system temp dir and s != ss iterated all of /tmp (20+ min on a busy machine). Both roots are now fresh tempfile.mkdtemp() + os.sep dirs, removed at the end. Suite: 79 passed, 1 skipped in ~5s.

Adversarial review (fresh Opus subagent): sound, no blockers. Two findings, both fixed: the second set of files was written to the first dir (so s != ss passed trivially against an empty dir) and temp dirs were left behind.

🤖 Generated with Claude Code

thorwhalen and others added 2 commits October 13, 2026 07:37
…alk)

Fixes #98

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…lean up temp dirs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thorwhalen
thorwhalen merged commit a50cd30 into master Oct 13, 2026
6 checks passed
@thorwhalen
thorwhalen deleted the fix/pathformatstore-doctest-hermetic branch October 13, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PathFormatStore doctest walks the whole temp dir (hangs on a busy /tmp)

1 participant