The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(update): hostile-lock cells for the orphaned tree's readers and a clean git status
Teknium09c36718e022
diff --git a/tests/e2e/core/upgrade/git/test_hostile_lock.py b/tests/e2e/core/upgrade/git/test_hostile_lock.pyindex 6323e17f3bc..38f17e87308 100644--- a/tests/e2e/core/upgrade/git/test_hostile_lock.py+++ b/tests/e2e/core/upgrade/git/test_hostile_lock.py@@ -220,6 +220,10 @@ def test_two_homes_cannot_update_one_checkout_at_once(rig):first = rig.update("home-a")try:H.wait_for(lambda: rig.fetchers(), timeout=180, what="the first update to reach its fetch")+ # --ignored: a lock file in the worktree shows whatever the tree's .gitignore says.+ status = I.git("status", "--porcelain", "--ignored", "--untracked-files=all", cwd=rig.checkout)+ held = [line for line in status.splitlines() if "hermes-update" in line]+ assert not held, f"the live update's lock is a worktree file (autostash takes it): {held}"code, out = _finish(rig.update("home-b"), timeout=60)assert code == 2 and REFUSAL in out, f"second home's update was not refused (rc={code}):\n{out[-4000:]}"assert len(rig.fetchers()) == 1, f"two updates reached the fetch concurrently: {rig.fetchers()}"