From fba3bbd894244ab30219ec7a02a3f177d895ea2e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Jul 2026 23:19:27 +0200 Subject: [PATCH] fix: allow cloud web runtime build to finish --- deploy/deploy.yaml | 5 +++++ scripts/gitops-render.test.ts | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml index 0cfc852c..ce61e371 100644 --- a/deploy/deploy.yaml +++ b/deploy/deploy.yaml @@ -749,6 +749,11 @@ lanes: artifactKind: cloud-web healthPath: /health/live healthPort: 8080 + healthProbe: + startup: + periodSeconds: 10 + timeoutSeconds: 3 + failureThreshold: 90 componentPaths: - web/hwlab-cloud-web/ - internal/dev-entrypoint/cloud-web-runtime.mjs diff --git a/scripts/gitops-render.test.ts b/scripts/gitops-render.test.ts index 2ca752d1..033f5e18 100644 --- a/scripts/gitops-render.test.ts +++ b/scripts/gitops-render.test.ts @@ -743,6 +743,13 @@ test("v03 render keeps node identity as data instead of generated structure", as assert.equal(cloudApiEnv.has("HWLAB_SESSION_COOKIE_DOMAIN"), false); const cloudWeb = (workloadsJson.items ?? []).find((item) => item.kind === "Deployment" && item.metadata?.name === "hwlab-cloud-web"); const cloudWebContainer = collectContainersFromItem(cloudWeb).find((container) => container.name === "hwlab-cloud-web"); + assert.deepEqual(cloudWebContainer?.startupProbe, { + httpGet: { path: "/health/live", port: "http" }, + periodSeconds: 10, + timeoutSeconds: 3, + failureThreshold: 90, + successThreshold: 1 + }); const cloudWebEnv = new Map((cloudWebContainer?.env ?? []).map((entry) => [entry.name, entry.value])); assert.equal(cloudWebEnv.get("HWLAB_WORKBENCH_LIVE_KAFKA_SSE_ENABLED"), "true"); assert.equal(cloudWebEnv.get("HWLAB_WORKBENCH_KAFKA_REFRESH_REPLAY_ENABLED"), "true");