Merge pull request #2682 from pikasTech/fix/workbench-api-idle-timeout-yaml
Pipelines as Code CI / hwlab-nc01-v03-ci-poll- Success

修复 Workbench API L2 启动缺少空闲超时配置
This commit is contained in:
Lyon
2026-07-20 02:09:42 +08:00
committed by GitHub
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, {