fix(hermes): retire legacy Herdr coordinators
Some checks failed
Tests / Declarative: Post Actions failed: 2, passed: 204
Some checks failed
Tests / Declarative: Post Actions failed: 2, passed: 204
This commit is contained in:
parent
8ae7105ea0
commit
ce96717b25
@ -515,6 +515,19 @@ spec:
|
||||
if herdr status server >/dev/null 2>&1; then break; fi
|
||||
sleep 1
|
||||
done
|
||||
legacy_hermes_panes="$(/opt/data/tools/bin/herdr agent list | \
|
||||
/opt/hermes/.venv/bin/python -c '
|
||||
import json
|
||||
import sys
|
||||
|
||||
payload = json.load(sys.stdin)
|
||||
for agent in payload.get("result", {}).get("agents", []):
|
||||
if agent.get("agent") == "hermes" and agent.get("pane_id"):
|
||||
print(agent["pane_id"])
|
||||
')"
|
||||
for pane in ${legacy_hermes_panes}; do
|
||||
/opt/data/tools/bin/herdr pane close "${pane}" >/dev/null 2>&1 || true
|
||||
done
|
||||
wait "${server_pid}"
|
||||
env:
|
||||
- {name: HERMES_HOME, value: /opt/data}
|
||||
|
||||
@ -581,6 +581,8 @@ def test_agent_installs_hermes_integration_before_startup():
|
||||
|
||||
server_command = containers["herdr-server"]["command"][-1]
|
||||
assert "herdr server" in server_command
|
||||
assert 'agent.get("agent") == "hermes"' in server_command
|
||||
assert 'herdr pane close "${pane}"' in server_command
|
||||
assert "herdr agent start coordinator" not in server_command
|
||||
assert "/opt/coordinator/herdr_tab_router.py" not in server_command
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user