The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(e2e): assert the dashboard handoff cells the respawn fixes turned green
teknium19b02a977bd67
diff --git a/tests/e2e/core/upgrade/handoff/_handoff.py b/tests/e2e/core/upgrade/handoff/_handoff.pyindex c347359abd5..ff02988187c 100644--- a/tests/e2e/core/upgrade/handoff/_handoff.py+++ b/tests/e2e/core/upgrade/handoff/_handoff.py@@ -429,10 +429,6 @@ RELAUNCH_GATES = {"head": (r"no relaunch: the update did not recognise gateway PID \d+ and stopped it as an unsupervised","gated on #124029: a pm-runtime-launched gateway is invisible to the updater's process scan"),}-# A gateway started through the bootstrap launcher is misclassified and its gateway.pid is deleted-# under it by the next status probe.-PID_FILE_GATE = (r"gateway\.pid was deleted under the live gateway",- "gated on #123109: status probes delete a bootstrap-launched gateway's gateway.pid")_UNSUPERVISED_STOP = re.compile(r"Stopped \d+ manual gateway process\(es\) that had no supervisor")diff --git a/tests/e2e/core/upgrade/handoff/_scenario.py b/tests/e2e/core/upgrade/handoff/_scenario.pyindex b13ec9c2c31..0e35533dcef 100644--- a/tests/e2e/core/upgrade/handoff/_scenario.py+++ b/tests/e2e/core/upgrade/handoff/_scenario.py@@ -47,15 +47,7 @@ _IMPORT_ERR = re.compile(r"ModuleNotFoundError|ImportError|No module named|canno_FOREIGN_UNIT_GATE = (r"the update restarted the systemd unit \S+ the dashboard was started under","gated on #124938: the update restarts the systemd unit whose cgroup a manual dashboard ""was started in instead of respawning the dashboard")-DASHBOARD_GATES = {- "n1": [(r"the respawned dashboard died parsing its launcher",- "gated on #124778: the update respawns a manual dashboard on a launcher the PM takeover made a shell "- "shim"), _FOREIGN_UNIT_GATE],-}-# The respawned dashboard can die after the updater already booked it "restarted": the receipt says-# success and the update exits 0 with the dashboard dark (racy: an earlier death is "unaccounted", exit 1).-FALSE_SUCCESS_GATE = (r"the update exited 0 though the dashboard did not come back",- "gated on #109290: a respawned dashboard that dies is booked as restarted and the update exits 0")+DASHBOARD_GATES = {"n1": [_FOREIGN_UNIT_GATE]}CRON_GATES = {"n1": (r"fired into the update swap window and failed importing","gated on #113293: a cron job due during an update fires into the swap window, fails, and loses its slot"),@@ -429,8 +421,7 @@ class HandoffProperties:assert X.TRACEBACK not in out, f"the update crashed\n{o.diag}"down = [name for name, ok in (("the gateway", o.ident), ("the dashboard", o.dash_new)) if not ok]if o.up.returncode == 0:- with known_failure(*FALSE_SUCCESS_GATE):- assert not down, f"the update exited 0 though {' and '.join(down)} did not come back\n{o.diag}"+ assert not down, f"the update exited 0 though {' and '.join(down)} did not come back\n{o.diag}"else:assert down, (f"the update exited {o.up.returncode} though the gateway and the dashboard came back"f"\n{o.diag}")@@ -438,8 +429,7 @@ class HandoffProperties:def test_gateway_pid_file_and_status_find_the_relaunched_gateway(self, fleet):o = fleetself._relaunched(o)- with known_failure(*X.PID_FILE_GATE):- assert not o.pid_file, f"{o.pid_file}\n{o.diag}"+ assert not o.pid_file, f"{o.pid_file}\n{o.diag}"assert f"Gateway is running (PID: {o.ident['pid']})" in o.status.stdout, (f"`hermes gateway status` cannot find the relaunched gateway:\n{H.describe(o.status)}\n{o.diag}")