From a9cc1cc2c8d83636f6e947f38f8c4a9f11002af9 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 19 Jul 2026 20:08:46 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E9=BD=90=20Workbench=20API=20?= =?UTF-8?q?=E7=A9=BA=E9=97=B2=E8=B6=85=E6=97=B6=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/deploy.yaml | 1 + scripts/gitops-render.test.ts | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml index eae21d95..4cd9a355 100644 --- a/deploy/deploy.yaml +++ b/deploy/deploy.yaml @@ -1135,6 +1135,7 @@ lanes: env: WORKBENCH_MODE: temporal WORKBENCH_API_PORT: "6677" + WORKBENCH_API_IDLE_TIMEOUT_SECONDS: "60" WORKBENCH_CLOUD_API_URL: http://hwlab-cloud-api.hwlab-v03.svc.cluster.local:6667 WORKBENCH_CLOUD_API_AUTHORIZATION: secretRef:hwlab-v03-master-server-admin-api-key/api-key WORKBENCH_API_AUTHORIZATION: secretRef:hwlab-v03-master-server-admin-api-key/api-key diff --git a/scripts/gitops-render.test.ts b/scripts/gitops-render.test.ts index a8d71c70..78e6148c 100644 --- a/scripts/gitops-render.test.ts +++ b/scripts/gitops-render.test.ts @@ -12,6 +12,13 @@ import { externalPostgresConfigForLane, externalPostgresManifest, opencodeEgress import { CLOUD_CORE_MIGRATIONS, CLOUD_TRANSACTIONAL_REALTIME_MIGRATION_ID } from "../internal/db/schema.ts"; +test("v03 Workbench API declares its required Bun idle timeout in owning YAML", async () => { + const deploy = parseYaml(await readFile("deploy/deploy.yaml", "utf8")); + const service = deploy.lanes.v03.services.find((item: { serviceId?: string }) => item.serviceId === "hwlab-workbench-api"); + assert.ok(service, "missing v03 hwlab-workbench-api service declaration"); + assert.equal(service.env?.WORKBENCH_API_IDLE_TIMEOUT_SECONDS, "60"); +}); + test("production migration uses its YAML-declared database Secret key", async () => { const deploy = parseYaml(await readFile("deploy/deploy.yaml", "utf8")); assert.deepEqual(deploy.lanes.production.workbench.rawHwlabEventWindow, {