1 Commits

Author SHA1 Message Date
Georges-Antoine Assi
4564c9c5e6 chore(coherence): give each worktree its own test database automatically (#5680)
* chore(coherence): give each worktree its own test database automatically

The rootdir conftest now sets ROMM_TEST_DB_TAG to the linked worktree's
folder name when it is unset, so a worktree never runs against the shared
romm_test. With the rule enforced, the "worktree test database" practice
no longer fires on every `uv run pytest`: each firing reopened an owed
enactment at Stop, and sessions committed one identical record per run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: load the rootdir conftest by path

Under a full run, `from conftest import` resolves to whichever conftest
pytest imported first, so the worktree_tag tests failed to collect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(tests): hash the worktree path into its test database tag

Addresses the Greptile review on #5680: worktree folders that sanitize or
truncate to the same name no longer share a temporary test database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 07:04:27 -05:00