diff --git a/services/hermes/kustomization.yaml b/services/hermes/kustomization.yaml index ba0ad12c..1933d26a 100644 --- a/services/hermes/kustomization.yaml +++ b/services/hermes/kustomization.yaml @@ -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 diff --git a/testing/tests/test_hermes_execution_pool_worker_go.py b/testing/tests/test_hermes_execution_pool_worker_go.py index 4acd8255..1460eb81 100644 --- a/testing/tests/test_hermes_execution_pool_worker_go.py +++ b/testing/tests/test_hermes_execution_pool_worker_go.py @@ -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