fix: 补齐 Workbench API 空闲超时配置

This commit is contained in:
root
2026-07-19 20:08:46 +02:00
parent 88822bdfe1
commit a9cc1cc2c8
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -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
+7
View File
@@ -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, {