Skip to content

Commit 65ab315

Browse files
committed
fix(qa): satisfy update lane execution contracts
1 parent fb9c8e7 commit 65ab315

6 files changed

Lines changed: 15 additions & 2 deletions

File tree

‎.github/workflows/qa-profile-evidence.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ jobs:
293293
OPENCLAW_QA_CREDENTIAL_ACQUIRE_TIMEOUT_MS: "120000"
294294
OPENCLAW_QA_CREDENTIAL_ROLE: ci
295295
OPENCLAW_QA_CREDENTIAL_SOURCE: convex
296+
OPENCLAW_QA_ALLOW_UPDATE_RUN_SELF: "1"
296297
shell: bash
297298
run: |
298299
set -euo pipefail

‎scripts/lib/docker-e2e-scenarios.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const rootManagedVpsUpgradeCommand =
2121
"OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:root-managed-vps-upgrade";
2222
const updateRestartAuthCommand = liveDockerScriptCommand(
2323
"e2e/upgrade-survivor-docker.sh",
24-
'OPENCLAW_DOCKER_E2E_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE=1 OPENCLAW_UPGRADE_SURVIVOR_UPDATE_RESTART_MODE=auto-auth OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT=${OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT:-1500s}',
24+
'OPENCLAW_DOCKER_E2E_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC=${OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC:-openclaw@latest} OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE=1 OPENCLAW_UPGRADE_SURVIVOR_UPDATE_RESTART_MODE=auto-auth OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT=${OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT:-1500s}',
2525
);
2626
const updateRunPackageSelfUpgradeCommand =
2727
"OPENCLAW_QA_ALLOW_UPDATE_RUN_SELF=1 OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:update-run-package-self-upgrade";

‎test/e2e/qa-lab/runtime/docker-e2e-lane.fixture.test.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,16 @@ describe("QA Docker E2E lane fixture", () => {
6060
expect(updateMigration.env.OPENCLAW_UPGRADE_SURVIVOR_SCENARIO).toBe("custom-scenario");
6161

6262
const updateRestartAuth = resolveQaDockerE2eLane("update-restart-auth", {});
63+
expect(updateRestartAuth.env.OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC).toBe("openclaw@latest");
64+
expect(updateRestartAuth.env.OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE).toBe("1");
6365
expect(updateRestartAuth.env.OPENCLAW_UPGRADE_SURVIVOR_UPDATE_RESTART_MODE).toBe("auto-auth");
6466
expect(updateRestartAuth.env.OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT).toBe("1500s");
67+
68+
expect(
69+
resolveQaDockerE2eLane("update-restart-auth", {
70+
OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC: "openclaw@custom",
71+
}).env.OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC,
72+
).toBe("openclaw@custom");
6573
});
6674

6775
it("dispatches through bash without running Docker in fixture tests", () => {

‎test/e2e/qa-lab/runtime/docker-e2e-lane.fixture.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ const QA_DOCKER_E2E_LANES = {
7979
},
8080
"update-restart-auth": {
8181
env: (env) => ({
82+
OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC:
83+
env.OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC ?? "openclaw@latest",
8284
OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT:
8385
env.OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT ?? "1500s",
86+
OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE: "1",
8487
OPENCLAW_UPGRADE_SURVIVOR_UPDATE_RESTART_MODE: "auto-auth",
8588
}),
8689
script: "scripts/e2e/upgrade-survivor-docker.sh",

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4951,6 +4951,7 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
49514951
const runProfileStep = qaRunJob.steps.find(
49524952
(step: WorkflowStep) => step.name === "Run QA profile",
49534953
);
4954+
expect(runProfileStep.env?.OPENCLAW_QA_ALLOW_UPDATE_RUN_SELF).toBe("1");
49544955
expect(runProfileStep.env?.OPENCLAW_QA_CREDENTIAL_ACQUIRE_TIMEOUT_MS).toBe("120000");
49554956
expect(runProfileStep.run).toContain("--concurrency 3");
49564957
expect(runProfileStep.run).toContain("--fast");

‎test/scripts/docker-e2e-plan.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
590590
},
591591
{
592592
command:
593-
'OPENCLAW_DOCKER_E2E_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE=1 OPENCLAW_UPGRADE_SURVIVOR_UPDATE_RESTART_MODE=auto-auth OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT=${OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT:-1500s} OPENCLAW_SKIP_DOCKER_BUILD=1 bash -c \'harness="${OPENCLAW_DOCKER_E2E_TRUSTED_HARNESS_DIR:-.}"; OPENCLAW_LIVE_DOCKER_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" bash "$harness/scripts/e2e/upgrade-survivor-docker.sh"\'',
593+
'OPENCLAW_DOCKER_E2E_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC=${OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC:-openclaw@latest} OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE=1 OPENCLAW_UPGRADE_SURVIVOR_UPDATE_RESTART_MODE=auto-auth OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT=${OPENCLAW_UPGRADE_SURVIVOR_DOCKER_RUN_TIMEOUT:-1500s} OPENCLAW_SKIP_DOCKER_BUILD=1 bash -c \'harness="${OPENCLAW_DOCKER_E2E_TRUSTED_HARNESS_DIR:-.}"; OPENCLAW_LIVE_DOCKER_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" bash "$harness/scripts/e2e/upgrade-survivor-docker.sh"\'',
594594
imageKind: "bare",
595595
live: false,
596596
name: "update-restart-auth",

0 commit comments

Comments
 (0)