Skip to content

The agent that grows with you

test: follow the fleet-verify split and the root-home hand-off in pinned tests

Teknium004edff4563a
diff --git a/tests/fixtures/resolution_allowlist.json b/tests/fixtures/resolution_allowlist.json
index 41f37f2824f..30a0d3d4616 100644
--- a/tests/fixtures/resolution_allowlist.json
+++ b/tests/fixtures/resolution_allowlist.json
@@ -356,7 +356,7 @@
},
{
"path": "hermes_cli/source_build.py",
- "symbol": "build_update_products",
+ "symbol": "_build_desktop_product",
"kind": "bare_which"
},
{
diff --git a/tests/hermes_cli/test_old_updater_takeover.py b/tests/hermes_cli/test_old_updater_takeover.py
index 465e5ec5c14..32870b23557 100644
--- a/tests/hermes_cli/test_old_updater_takeover.py
+++ b/tests/hermes_cli/test_old_updater_takeover.py
@@ -54,10 +54,12 @@ def test_historical_payload_maps_to_takeover_request_schema(tmp_path, desktop, r
# checkout is the whole tree the child sees (CI has no editable finder for the source).
shutil.copy2(source / "hermes_cli/update_handoff.py", package / "update_handoff.py")
# write_handoff resolves the home through hermes_constants; the child tree is the whole
- # sys.path (CI has no editable finder), so give it the one name the hand-off reads.
+ # sys.path (CI has no editable finder), so give it the names the hand-off reads (the
+ # payload lands beside the receipts in the ROOT home, which is HERMES_HOME here).
(root / "hermes_constants.py").write_text(
"import os\nfrom pathlib import Path\n"
- "def get_hermes_home():\n return Path(os.environ['HERMES_HOME'])\n", encoding="utf-8",
+ "def get_hermes_home():\n return Path(os.environ['HERMES_HOME'])\n"
+ "get_default_hermes_root = get_hermes_home\n", encoding="utf-8",
)
program = root / "historical.py"
program.write_text(
diff --git a/tests/hermes_cli/test_restart_plan_reconciliation.py b/tests/hermes_cli/test_restart_plan_reconciliation.py
index b74d533df87..f69a5eb7707 100644
--- a/tests/hermes_cli/test_restart_plan_reconciliation.py
+++ b/tests/hermes_cli/test_restart_plan_reconciliation.py
@@ -494,7 +494,7 @@ def test_live_gateway_pids_from_fleet_skips_down_and_unusable_rows():
PRE-restart PID (nothing replaced it) so it must never count as a successor;
rows without a usable profile/PID are skipped; a ``stale`` row is a live
successor (the fleet matrix escalates staleness on its own)."""
- from hermes_cli.update_cmd_fleet import _live_gateway_pids_from_fleet
+ from hermes_cli.update_cmd_fleet_verify import _live_gateway_pids_from_fleet
rows = [
{"profile": "coder", "pid": 76796, "state": "current"},