The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(e2e): isolate Windows crash cells from a prior cell's git lock; xfail mid-git
Teknium37fe7e9af394
diff --git a/tests/e2e/core/windows_update/test_crash_cells.py b/tests/e2e/core/windows_update/test_crash_cells.pyindex 5fae2240851..b77f28b3434 100644--- a/tests/e2e/core/windows_update/test_crash_cells.py+++ b/tests/e2e/core/windows_update/test_crash_cells.py@@ -103,6 +103,13 @@ def _kill_when(machine, proc, label: str, point, target: str) -> str:def _crash(machine, srv, label: str, start, point) -> dict:"""Publish a new commit, start the update, kill it at ``point``, then the nextlaunch and the follow-up update. Returns everything the cell asserts on."""+ # Cells share one machine. A git lock an earlier cell's kill left behind is that+ # cell's verdict, not this one's: remove it the way the refused update tells the+ # user to ("remove the file manually to continue"), and say so in the evidence.+ leftover = machine.install_dir / ".git" / "index.lock"+ if leftover.is_file():+ leftover.unlink()+ machine.timings.append((f"(harness removed a prior cell's {leftover.name} before {label})", 0.0))pre = _head(machine)target = machine.mint(pre, label)machine.publish(target)@@ -195,6 +202,11 @@ def _marker_text(machine) -> str:return f"<unreadable: {exc}>"+# Red on main (wine2e run 37139409703): the killed git leaves .git/index.lock, which+# hermes_cli/gitlock.py only sweeps once it is 10 minutes old, and the launch-time+# interrupted-pull repair (hermes_cli/_early_recovery.py) dies with WinError 2 on a+# machine whose only Git is the installer's private copy — so the next update refuses.[email protected](strict=False, reason="upd-txn: fixed by LP-COMMIT")def test_update_killed_mid_git_leaves_a_runnable_install(journey: Journey) -> None:_assert_recovered(journey, "mid_git")