hermes: mount the Go installer into execution worker init

This commit is contained in:
jenkins 2026-09-13 19:19:34 -05:00
parent 0a51ffe4a7
commit 18f5cfdbb5
2 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,7 @@ configMapGenerator:
- execution_pool_worker.py=scripts/execution_pool_worker.py
- execution_pool_resume.py=scripts/execution_pool_resume.py
- execution_pool_scm.py=scripts/execution_pool_scm.py
- install_worker_go.sh=scripts/install_worker_go.sh
- supervisor_lineage.py=scripts/supervisor_lineage.py
- supervisor_state.py=scripts/supervisor_state.py
- publication_retry.py=scripts/publication_retry.py

View File

@ -93,6 +93,12 @@ def test_worker_manifest_installs_only_pinned_go_on_writable_tools_claim():
assert {mount["name"] for mount in init["volumeMounts"]} == {"tools", "coordinator"}
assert not next(mount for mount in init["volumeMounts"] if mount["name"] == "tools").get("readOnly", False)
assert next(mount for mount in init["volumeMounts"] if mount["name"] == "coordinator")["readOnly"] is True
kustomization = yaml.safe_load(HERMES.joinpath("kustomization.yaml").read_text())
pool = next(
item for item in kustomization["configMapGenerator"]
if item["name"] == "hermes-execution-pool"
)
assert "install_worker_go.sh=scripts/install_worker_go.sh" in pool["files"]
script = INSTALLER.read_text()
assert "sha256sum -c -" in script and "go${version}.linux-${dl_arch}.tar.gz" in script
assert "version=1.26.5" in script