The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(e2e): flip the update gates for #124642, #124644, #122557 and #122627
teknium10b5bb59a42df
diff --git a/tests/e2e/core/upgrade/git/test_foreign_state.py b/tests/e2e/core/upgrade/git/test_foreign_state.pyindex 8b0732e95f2..f62eb4de731 100644--- a/tests/e2e/core/upgrade/git/test_foreign_state.py+++ b/tests/e2e/core/upgrade/git/test_foreign_state.py@@ -67,11 +67,8 @@ def test_live_index_lock_is_refused_truthfully(w):assert "index.lock" in out, f"refusal does not name the lock:\n{w.diag(cp)}"assert w.head() == before and not w.status(), f"refusal moved HEAD or dirtied the tree:\n{w.diag(cp)}"assert lock.exists(), f"update deleted a lock another git may still hold:\n{w.diag(cp)}"- with known_failure(r"claims .*history diverged",- "gated on #124642: a ff-merge blocked by index.lock is reported as diverged history, "- "a rescue ref is written and `git reset --hard` is advised"):- assert "diverged" not in out and not w.refs("refs/hermes-update-backups"), (- f"an index.lock refusal claims local history diverged (and writes a rescue ref):\n{w.diag(cp)}")+ assert "diverged" not in out and not w.refs("refs/hermes-update-backups"), (+ f"an index.lock refusal claims local history diverged (and writes a rescue ref):\n{w.diag(cp)}")def test_detached_head_at_an_older_commit_is_brought_back_to_main(w):@@ -121,9 +118,6 @@ def test_abandoned_interactive_rebase_is_healed_or_refused(w):assert w.head() == before, f"refusal moved HEAD:\n{w.diag(cp)}"returnassert w.head() == target and w.branch() == "main", f"update reported rc=0 but did not land:\n{w.diag(cp)}"- with known_failure(r"rebase still in progress",- "gated on #124644: update switches to main under a stopped rebase and leaves "- ".git/rebase-merge, so a later `git rebase --abort` rolls the update back"):- assert not rebase_left, (- f"update succeeded but left a rebase still in progress (.git/rebase-merge); `git rebase --abort` "- f"would now reset main to {before[:12]}:\n{w.diag(cp)}")+ assert not rebase_left, (+ f"update succeeded but left a rebase still in progress (.git/rebase-merge); `git rebase --abort` "+ f"would now reset main to {before[:12]}:\n{w.diag(cp)}")diff --git a/tests/e2e/core/upgrade/git/test_local_modifications.py b/tests/e2e/core/upgrade/git/test_local_modifications.pyindex 4c2c31a2cdd..3c29ccb9bbc 100644--- a/tests/e2e/core/upgrade/git/test_local_modifications.py+++ b/tests/e2e/core/upgrade/git/test_local_modifications.py@@ -13,7 +13,6 @@ from __future__ import annotationsimport pytest-from tests.e2e.core._pending_fixes import known_failurefrom tests.e2e.core.upgrade import _install_helpers as Ifrom tests.e2e.core.upgrade.git import _git_world as G@@ -70,12 +69,9 @@ def test_conflicting_patch_is_recoverable_and_never_reported_complete(w):parked = any(USER_LINE.strip() in t for t in _stash_texts(w, "README.md"))assert in_tree or parked, f"the user's patch is neither in the tree nor in any stash:\n{w.diag(cp)}"if parked and not in_tree:- with known_failure(r"reported 'Update complete' .*while the user's patch is parked",- "gated on #122557: a conflicting autostash is parked and the update still exits 0 "- "with 'Update complete!'"):- assert not G.reported_success(cp), (- f"reported 'Update complete' (rc={cp.returncode}) while the user's patch is parked in a stash:\n"- f"{w.diag(cp)}")+ assert not G.reported_success(cp), (+ f"reported 'Update complete' (rc={cp.returncode}) while the user's patch is parked in a stash:\n"+ f"{w.diag(cp)}")def test_untracked_file_colliding_with_a_new_upstream_file_is_not_lost(w):diff --git a/tests/e2e/core/upgrade/git/test_truthful_outcome.py b/tests/e2e/core/upgrade/git/test_truthful_outcome.pyindex 02af5ed39a5..f2fbab353d2 100644--- a/tests/e2e/core/upgrade/git/test_truthful_outcome.py+++ b/tests/e2e/core/upgrade/git/test_truthful_outcome.py@@ -18,7 +18,6 @@ import timeimport pytest-from tests.e2e.core._pending_fixes import known_failurefrom tests.e2e.core.upgrade import _install_helpers as Ifrom tests.e2e.core.upgrade.git import _git_world as Gfrom tests.e2e.core.upgrade.git._smart_http import Fault@@ -68,11 +67,8 @@ def test_transport_failure_is_reported_as_failure(w, fault):w.srv.clear_faults()assert armed.fired, f"the {fault} fault never fired; the cell exercised nothing:\n{w.diag(cp, mark)}"_assert_failed_truthfully(w, cp, before, mark)- with known_failure(r"claims .*history diverged",- "gated on #124642: a ff-merge that failed for a non-divergence reason (lazy fetch cut) is "- "reported as diverged history, a rescue ref is written and `git reset --hard` is advised"):- assert "diverged" not in G.output(cp) and not w.refs("refs/hermes-update-backups"), (- f"a transport failure claims local history diverged (and writes a rescue ref):\n{w.diag(cp, mark)}")+ assert "diverged" not in G.output(cp) and not w.refs("refs/hermes-update-backups"), (+ f"a transport failure claims local history diverged (and writes a rescue ref):\n{w.diag(cp, mark)}")def test_retry_after_interrupted_fetches_heals_without_refetching_history(w):diff --git a/tests/e2e/core/upgrade/pm/test_stamps_and_doctor.py b/tests/e2e/core/upgrade/pm/test_stamps_and_doctor.pyindex bd50679d93b..74c744da01c 100644--- a/tests/e2e/core/upgrade/pm/test_stamps_and_doctor.py+++ b/tests/e2e/core/upgrade/pm/test_stamps_and_doctor.py@@ -82,11 +82,9 @@ def test_managed_env_hermes_can_check_for_updates(updated):exe = _venv_hermes(sb)assert Path(exe).is_file(), f"harness: selected generation ships no hermes console script: {exe}"cp = sb.run([exe, "update", "--check"], timeout=300)- with known_failure(r"`hermes update --check` from the managed environment: .*Not a git repository",- "gated on #122627: PROJECT_ROOT resolves to the PM workspace copy"):- assert cp.returncode == 0 and "Not a git repository" not in cp.stdout + cp.stderr, (- "`hermes update --check` from the managed environment: " + (cp.stdout + cp.stderr).strip()[-400:]- + "\n" + I.describe(cp))+ assert cp.returncode == 0 and "Not a git repository" not in cp.stdout + cp.stderr, (+ "`hermes update --check` from the managed environment: " + (cp.stdout + cp.stderr).strip()[-400:]+ + "\n" + I.describe(cp))def test_managed_env_hermes_reports_the_checkout_as_the_install(updated):