Skip to content

The agent that grows with you

test(e2e): mid_git asserts recovery outright (the launcher now reaches the repair first)

Tekniumfd0b331c6fad
diff --git a/tests/e2e/core/windows_update/test_crash_cells.py b/tests/e2e/core/windows_update/test_crash_cells.py
index a9362a5e016..0be99356930 100644
--- a/tests/e2e/core/windows_update/test_crash_cells.py
+++ b/tests/e2e/core/windows_update/test_crash_cells.py
@@ -660,17 +660,10 @@ def test_update_killed_mid_fetch_leaves_a_runnable_install(journey: Journey) ->
# Fixed by #132361. Until round 6 every green run killed at fetch (index.lock never
# existed); the hold now lands the kill inside the merge's checkout, lock held.
#
-# What that exposed (native run 37190464303): the Windows launcher
-# (hermes_cli/_launchers.py::_launcher_script, the bin\hermes.exe __main__) imports
-# hermes_constants from the checkout BEFORE `import hermes_bootstrap`, whose
-# restore_interrupted_pull is the repair. The killed merge had unlinked
-# hermes_constants.py, so every launch, `hermes update` included, dies with
-# ModuleNotFoundError and the repair never runs: the install stays unrunnable.
-# Gated on exactly that traceback; an acceptance run of the batch fails on it.
-MID_MERGE_LAUNCHER_GAP = (
- r"(?s)mid_git: the first launch after the killed update ran no turn.*"
- r"ModuleNotFoundError: No module named 'hermes_constants'",
- "upd-txn: the launcher imports hermes_constants before the interrupted-pull repair runs")
+# What that exposed (native run 37190464303): the launcher imported hermes_constants from the
+# checkout before `import hermes_bootstrap`, whose restore_interrupted_pull is the repair, so a
+# merge killed after git unlinked hermes_constants.py bricked every launch. Fixed in #132361
+# (launchers reach the repair first); this cell asserts recovery outright.
def test_update_killed_mid_git_leaves_a_runnable_install(journey: Journey) -> None:
@@ -678,8 +671,7 @@ def test_update_killed_mid_git_leaves_a_runnable_install(journey: Journey) -> No
assert r["index_lock_after_kill"], fail_with(
journey.machine, f"mid_git: the kill did not land inside git's checkout (killed at {r['seen']}, "
f"no .git/index.lock after it): this cell proves nothing about a merge-time kill")
- with known_failure(*MID_MERGE_LAUNCHER_GAP):
- _assert_recovered(journey, "mid_git")
+ _assert_recovered(journey, "mid_git")
def test_update_killed_after_the_tree_moved_leaves_a_runnable_install(journey: Journey) -> None:
diff --git a/website/docs/developer-guide/source-update-completion.md b/website/docs/developer-guide/source-update-completion.md
index 89746727dc3..cc093846ed3 100644
--- a/website/docs/developer-guide/source-update-completion.md
+++ b/website/docs/developer-guide/source-update-completion.md
@@ -210,7 +210,7 @@ inside its checkout by a filter with `index.lock` present, HEAD read from the re
| Cell | Kill point | Test | Fixing lane |
|---|---|---|---|
| Windows `mid_fetch` | `taskkill /T /F` while the update's `git fetch` child runs | `tests/e2e/core/windows_update/test_crash_cells.py::test_update_killed_mid_fetch_leaves_a_runnable_install` | green |
-| Windows `mid_git` | `taskkill /T /F` inside the fast-forward's checkout: a smudge filter the harness sets in the install's `.git/config` + `.git/info/attributes` holds `git merge` while it writes `hermes_constants.py` (index.lock held, two files already at the target, that one unlinked) | `tests/e2e/core/windows_update/test_crash_cells.py::test_update_killed_mid_git_leaves_a_runnable_install` | #132361 (stale `.git/index.lock`; launch-time interrupted-pull repair ran a bare `git` a machine with only the installer's Git does not have). Open, gated `upd-txn`: the launcher (`hermes_cli/_launchers.py::_launcher_script`) imports `hermes_constants` before `hermes_bootstrap` runs the repair, so the unlinked module kills every launch first. Runs last in the journey |
+| Windows `mid_git` | `taskkill /T /F` inside the fast-forward's checkout: a smudge filter the harness sets in the install's `.git/config` + `.git/info/attributes` holds `git merge` while it writes `hermes_constants.py` (index.lock held, two files already at the target, that one unlinked) | `tests/e2e/core/windows_update/test_crash_cells.py::test_update_killed_mid_git_leaves_a_runnable_install` | #132361 (stale `.git/index.lock`; launch-time interrupted-pull repair ran a bare `git` a machine with only the installer's Git does not have).; the launcher imported `hermes_constants` before `hermes_bootstrap` ran the repair, so the unlinked module killed every launch first: launchers now reach the repair before any other checkout module. Runs last in the journey |
| Windows `tree_moved` | right after the checkout reached the target, before the update finished | `tests/e2e/core/windows_update/test_crash_cells.py::test_update_killed_after_the_tree_moved_leaves_a_runnable_install` | green on main |
| Windows `desktop_handoff` | `scripts/desktop-update/windows.ps1` and its whole tree while its `hermes update` child runs | `tests/e2e/core/windows_update/test_crash_cells.py::test_desktop_handoff_killed_mid_run_leaves_a_runnable_install` | green on main |
| Windows `orphaned_update` | only `windows.ps1` (no `/T`); its `hermes update` keeps running and must finish with the marker LIVE until it exits, then gone | `tests/e2e/core/windows_update/test_crash_cells.py::test_desktop_handoff_script_killed_alone_keeps_the_marker_live_until_its_update_ends` | #132354 + #132365 (line-4 delegate) |