Pin GCP preflight to live Hermes interpreter
This commit is contained in:
parent
fab6c17805
commit
40d76592f5
2 changed files with 10 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ SERVICE_HERMES_ROOT="${SERVICE_HERMES_ROOT:-/home/teleo/.hermes}"
|
||||||
REMOTE_DROPIN_DIR="${REMOTE_DROPIN_DIR:-/etc/systemd/system/$SERVICE.d}"
|
REMOTE_DROPIN_DIR="${REMOTE_DROPIN_DIR:-/etc/systemd/system/$SERVICE.d}"
|
||||||
EXPECTED_VM_SERVICE_ACCOUNT="${EXPECTED_VM_SERVICE_ACCOUNT:-sa-teleo-prod-vm@teleo-501523.iam.gserviceaccount.com}"
|
EXPECTED_VM_SERVICE_ACCOUNT="${EXPECTED_VM_SERVICE_ACCOUNT:-sa-teleo-prod-vm@teleo-501523.iam.gserviceaccount.com}"
|
||||||
EXPECTED_HERMES_EXECUTABLE="${EXPECTED_HERMES_EXECUTABLE:-/home/teleo/.hermes/hermes-agent/venv/bin/hermes}"
|
EXPECTED_HERMES_EXECUTABLE="${EXPECTED_HERMES_EXECUTABLE:-/home/teleo/.hermes/hermes-agent/venv/bin/hermes}"
|
||||||
EXPECTED_HERMES_PYTHON="${EXPECTED_HERMES_PYTHON:-/home/teleo/.hermes/hermes-agent/venv/bin/python3}"
|
EXPECTED_HERMES_PYTHON="${EXPECTED_HERMES_PYTHON:-/home/teleo/.hermes/hermes-agent/venv/bin/python}"
|
||||||
|
|
||||||
WRAPPER_REL="hermes-agent/leoclean-bin/teleo-kb-gcp"
|
WRAPPER_REL="hermes-agent/leoclean-bin/teleo-kb-gcp"
|
||||||
TOOL_REL="hermes-agent/leoclean-bin/cloudsql_memory_tool.py"
|
TOOL_REL="hermes-agent/leoclean-bin/cloudsql_memory_tool.py"
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,15 @@ def test_deploy_scripts_do_not_start_inactive_legacy_leo_agent():
|
||||||
assert "teleo-pipeline teleo-diagnostics teleo-agent@leo" not in manual_deploy
|
assert "teleo-pipeline teleo-diagnostics teleo-agent@leo" not in manual_deploy
|
||||||
|
|
||||||
|
|
||||||
|
def test_gcp_runtime_pins_the_live_hermes_shebang_interpreter():
|
||||||
|
script = (REPO_ROOT / "deploy" / "sync-gcp-leoclean-runtime.sh").read_text()
|
||||||
|
|
||||||
|
assert (
|
||||||
|
'EXPECTED_HERMES_PYTHON="${EXPECTED_HERMES_PYTHON:-'
|
||||||
|
'/home/teleo/.hermes/hermes-agent/venv/bin/python}"'
|
||||||
|
) in script
|
||||||
|
|
||||||
|
|
||||||
def test_auto_deploy_prefers_github_remote_when_present():
|
def test_auto_deploy_prefers_github_remote_when_present():
|
||||||
auto_deploy = (REPO_ROOT / "deploy" / "auto-deploy.sh").read_text()
|
auto_deploy = (REPO_ROOT / "deploy" / "auto-deploy.sh").read_text()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue