The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(e2e): drop the #124049, #124418 and #124635 gates
teknium1de7ed4cc3bbc
diff --git a/tests/e2e/core/upgrade/hosts/test_permissions.py b/tests/e2e/core/upgrade/hosts/test_permissions.pyindex bd053ac224c..7a337d2ca11 100644--- a/tests/e2e/core/upgrade/hosts/test_permissions.py+++ b/tests/e2e/core/upgrade/hosts/test_permissions.py@@ -6,8 +6,8 @@ the code and PM state (checkout, tool store, ``installs/``) readable but not wriwho runs Hermes, while their own data under HERMES_HOME stays writable. On such a tree:* a turn must work: deciding that an install is current is a read, and nothing on the launch- path may need write access to the install (gated on #124635 while every launch opens PM- lock files for writing);+ path may need write access to the install, or the launch fails once saying the install is not+ writable by this user, never pointing at a remedy that needs the same access;* ``hermes update`` must exit non-zero with a message that names the permission problem, neverreport success, never crash with a traceback, and leave the install on its old commit;* once the tree is writable again, the same ``hermes update`` succeeds: the refused attempt left@@ -26,7 +26,6 @@ import subprocessimport pytest-from tests.e2e.core._pending_fixes import known_failurefrom tests.e2e.core.upgrade import _helpers as Hfrom tests.e2e.core.upgrade import _install_helpers as Ifrom tests.e2e.core.upgrade.hosts import _hosts as X@@ -76,7 +75,7 @@ def world(tmp_path_factory, provider):out["ro_turn_requests"] = len(provider.main_requests()) - nfinally:_chmod_code(sb, writable=True)- # Only the checkout read-only: the launch path works (#124635 needs installs/ too), so+ # Only the checkout read-only: the launch path works (a read-only installs/ refuses it), so# this reaches `hermes update`'s own handling of a tree it cannot write.subprocess.run(["chmod", "-R", "a-w", str(sb.checkout)], check=True)try:@@ -96,16 +95,13 @@ def test_read_only_install_tree_still_runs_a_turn(world, provider):cp = world["ro_turn"]err = cp.stdout + cp.stderrassert I.TRACEBACK not in err, "a turn crashed on a read-only install tree:\n" + I.describe(cp)- with known_failure(r"read-only install tree: the turn failed .*Permission denied: .*/installs/.*\.lock",- "gated on #124635: every launch opens PM lock files under installs/ for writing, so a "- "uid without write access to the install cannot start Hermes"):- # Either it works, or it says the install is not writable by this user without sending them- # to a remedy that needs the same write access (`hermes pm repair`, "finish the update").- if cp.returncode != 0:- misleading = re.findall(r"run `hermes (?:pm repair|update)`[^\n]*", err)- assert ACTIONABLE.search(err) and not misleading, (- f"read-only install tree: the turn failed (rc={cp.returncode}) and pointed at remedies that need the "- f"same write access {misleading}: {cp.stderr.strip()[-800:].replace(chr(10), ' | ')}\n" + I.describe(cp))+ # Either it works, or it says the install is not writable by this user without sending them+ # to a remedy that needs the same write access (`hermes pm repair`, "finish the update").+ if cp.returncode != 0:+ misleading = re.findall(r"run `hermes (?:pm repair|update)`[^\n]*", err)+ assert ACTIONABLE.search(err) and not misleading, (+ f"read-only install tree: the turn failed (rc={cp.returncode}) and pointed at remedies that need the "+ f"same write access {misleading}: {cp.stderr.strip()[-800:].replace(chr(10), ' | ')}\n" + I.describe(cp))if cp.returncode == 0:assert provider.default_text in cp.stdout, "the reply never reached stdout:\n" + I.describe(cp)assert world["ro_turn_requests"] == 1, f"the turn reached the provider {world['ro_turn_requests']} times (want 1)"diff --git a/tests/e2e/core/upgrade/network/test_mirrors.py b/tests/e2e/core/upgrade/network/test_mirrors.pyindex cbed5513348..1218887e563 100644--- a/tests/e2e/core/upgrade/network/test_mirrors.py+++ b/tests/e2e/core/upgrade/network/test_mirrors.py@@ -70,12 +70,7 @@ def test_pip_mirror_update_restages_pm_runtime_through_the_mirror(inst):edge.close()pip_conf.unlink()public = _public_index_hits(edge)- with known_failure(- r"needs to be updated, but `--locked` was provided",- "gated on #124418: with a pip index mirror bridged into uv, `uv sync --locked` rejects the "- "committed pm/uv.lock (registry URL mismatch) and the update fails restaging the PM runtime",- ):- assert r.rc == 0 and inst.head() == new, "update with a pip mirror configured failed\n" + r.report(inst)+ assert r.rc == 0 and inst.head() == new, "update with a pip mirror configured failed\n" + r.report(inst)after = inst.state()assert after["pm_runtime"] != before["pm_runtime"], "the PM runtime was not restaged for its new inputs\n" + r.report(inst)assert not public, f"a public index was contacted despite the mirror: {public}\n" + r.report(inst)diff --git a/tests/e2e/core/upgrade/pm/test_interpreter_hygiene.py b/tests/e2e/core/upgrade/pm/test_interpreter_hygiene.pyindex a2c8f65148b..975b0a6e78c 100644--- a/tests/e2e/core/upgrade/pm/test_interpreter_hygiene.py+++ b/tests/e2e/core/upgrade/pm/test_interpreter_hygiene.py@@ -30,7 +30,6 @@ from pathlib import Pathimport pytest-from tests.e2e.core._pending_fixes import known_failurefrom tests.e2e.core.upgrade import _helpers as Hfrom tests.e2e.core.upgrade import _install_helpers as Ifrom tests.e2e.core.upgrade.pm import _pm as P@@ -163,11 +162,8 @@ def test_execute_code_after_update_imports_third_party_deps(updated, provider):result, transcript = _turn_with_tool(sb, provider, "run the dependency probe",ToolCall("execute_code", {"code": code}))assert result, "harness: the execute_code tool never returned a result to the model\n" + transcript- with known_failure(r"execute_code on a PM install cannot import third-party deps: "- r".*No module named '(ruamel|httpx|openai|pydantic)",- "gated on #124049: the kernel loses the runtime site-packages"):- assert "EXEC-DEPS-OK" in result, (- f"execute_code on a PM install cannot import third-party deps: {result[-1500:]}\n" + transcript)+ assert "EXEC-DEPS-OK" in result, (+ f"execute_code on a PM install cannot import third-party deps: {result[-1500:]}\n" + transcript)hits = _stray_hits(updated["logs"], mark)assert not hits, f"execute_code loaded a stray venv: {hits}"