Skip to content

Commit b4a62b9

Browse files
committed
fix(ci): validate frozen release candidates faithfully
1 parent 8a3f5c8 commit b4a62b9

10 files changed

Lines changed: 85 additions & 61 deletions

‎.github/workflows/openclaw-release-checks.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,9 +1270,10 @@ jobs:
12701270
if pnpm openclaw qa suite --help | grep -Fq -- "--runtime-pair-lane"; then
12711271
runtime_pair_args+=(--runtime-pair-lane "$RUNTIME_PAIR_LANE")
12721272
elif [[ "$RUNTIME_PAIR_LANE" == "core" ]]; then
1273-
# Before runtime-pair lanes, the frozen candidate's standard and
1274-
# live-only tiers together defined the current core lane.
1275-
runtime_pair_args+=(--runtime-parity-tier standard,live-only)
1273+
# Legacy explicit-tier selection bypasses its provider eligibility
1274+
# filter. live-only scenarios require a live provider, so the mock
1275+
# core lane must select only the eligible standard tier.
1276+
runtime_pair_args+=(--runtime-parity-tier standard)
12761277
elif [[ "$RUNTIME_PAIR_LANE" == "soak" ]]; then
12771278
runtime_pair_args+=(--runtime-parity-tier soak)
12781279
else

‎scripts/check-docker-e2e-boundaries.mjs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import fs from "node:fs";
66
import path from "node:path";
77
import { fileURLToPath } from "node:url";
88
import { laneResources, laneWeight } from "./lib/docker-e2e-plan.mjs";
9-
import { allReleasePathLanes, mainLanes, tailLanes } from "./lib/docker-e2e-scenarios.mjs";
9+
import {
10+
allReleasePathLanes,
11+
mainLanes,
12+
publicInstallerLanes,
13+
tailLanes,
14+
} from "./lib/docker-e2e-scenarios.mjs";
1015

1116
const ROOT_DIR = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
1217
const errors = [];
@@ -151,6 +156,7 @@ function validateLane(label, lane) {
151156
const releasePathLanes = allReleasePathLanes({ includeOpenWebUI: true });
152157
for (const [label, lanes] of [
153158
["release-path", releasePathLanes],
159+
["public-installer", publicInstallerLanes],
154160
["main", mainLanes],
155161
["tail", tailLanes],
156162
]) {

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
allReleasePathLanes,
1212
mainLanes,
1313
normalizeReleaseProfile,
14+
publicInstallerLanes,
1415
releasePathChunkLanes,
1516
tailLanes,
1617
} from "./docker-e2e-scenarios.mjs";
@@ -528,7 +529,12 @@ export function lanesNeedOpenClawPackage(poolLanes) {
528529
export function findLaneByName(name) {
529530
return dedupeLanes(
530531
expandUpgradeSurvivorBaselineLanes(
531-
[...allReleasePathLanes({ includeOpenWebUI: true }), ...mainLanes, ...tailLanes],
532+
[
533+
...allReleasePathLanes({ includeOpenWebUI: true }),
534+
...publicInstallerLanes,
535+
...mainLanes,
536+
...tailLanes,
537+
],
532538
process.env.OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPECS,
533539
undefined,
534540
process.env.OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS,
@@ -624,6 +630,7 @@ export function resolveDockerE2ePlan(options) {
624630
includeOpenWebUI: options.includeOpenWebUI,
625631
releaseProfile: "full",
626632
}),
633+
...publicInstallerLanes,
627634
...retriedMainLanes,
628635
...retriedTailLanes,
629636
]);

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

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,9 @@ const releasePathBundledChannelLanes = [
781781
}),
782782
];
783783

784-
const releasePathPackageInstallOpenAiLanes = [
784+
// Public installer smoke needs a published, immutable package version. Keep it
785+
// selectable for post-publish verification, but out of frozen-candidate CI.
786+
export const publicInstallerLanes = [
785787
liveLane(
786788
"install-e2e-openai",
787789
liveDockerScriptCommand(
@@ -798,18 +800,6 @@ const releasePathPackageInstallOpenAiLanes = [
798800
weight: 3,
799801
},
800802
),
801-
liveOpenAiChatToolsLane(),
802-
liveCodexNpmPluginLane(),
803-
npmLane("codex-on-demand", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:codex-on-demand", {
804-
resources: ["service"],
805-
stateScenario: "empty",
806-
timeoutMs: 30 * 60 * 1000,
807-
weight: 3,
808-
}),
809-
releaseTypedOnboardingLane(),
810-
];
811-
812-
const releasePathPackageInstallAnthropicLanes = [
813803
liveLane(
814804
"install-e2e-anthropic",
815805
liveDockerScriptCommand(
@@ -827,6 +817,18 @@ const releasePathPackageInstallAnthropicLanes = [
827817
),
828818
];
829819

820+
const releasePathPackageUpdateOpenAiLanes = [
821+
liveOpenAiChatToolsLane(),
822+
liveCodexNpmPluginLane(),
823+
npmLane("codex-on-demand", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:codex-on-demand", {
824+
resources: ["service"],
825+
stateScenario: "empty",
826+
timeoutMs: 30 * 60 * 1000,
827+
weight: 3,
828+
}),
829+
releaseTypedOnboardingLane(),
830+
];
831+
830832
const releasePathPackageUpdateCoreLanes = [
831833
npmLane(
832834
"npm-onboard-channel-agent",
@@ -885,8 +887,7 @@ const primaryReleasePathChunks = {
885887
}),
886888
mcpCodeModeGatewayLane(),
887889
],
888-
"package-update-openai": releasePathPackageInstallOpenAiLanes,
889-
"package-update-anthropic": releasePathPackageInstallAnthropicLanes,
890+
"package-update-openai": releasePathPackageUpdateOpenAiLanes,
890891
"package-update-core": releasePathPackageUpdateCoreLanes,
891892
"plugins-runtime-plugins": releasePathPluginRuntimePluginLanes,
892893
"plugins-runtime-services": releasePathPluginRuntimeServiceLanes,
@@ -904,7 +905,6 @@ const primaryReleasePathChunks = {
904905
const primaryReleasePathChunkProfiles = {
905906
core: ["stable", "full"],
906907
"package-update-openai": ["beta", "stable", "full"],
907-
"package-update-anthropic": ["beta", "stable", "full"],
908908
"package-update-core": ["beta", "stable", "full"],
909909
"plugins-runtime-plugins": ["stable", "full"],
910910
"plugins-runtime-services": ["stable", "full"],
@@ -921,8 +921,7 @@ const primaryReleasePathChunkProfiles = {
921921

922922
const legacyReleasePathChunks = {
923923
"package-update": [
924-
...releasePathPackageInstallOpenAiLanes,
925-
...releasePathPackageInstallAnthropicLanes,
924+
...releasePathPackageUpdateOpenAiLanes,
926925
...releasePathPackageUpdateCoreLanes,
927926
],
928927
"plugins-runtime-core": releasePathPluginRuntimeCoreLanes,

‎scripts/plan-release-workflow-matrix.mjs‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@ const DOCKER_E2E_CHUNKS = [
88
},
99
{
1010
chunk_id: "package-update-openai",
11-
label: "package/update OpenAI install",
11+
label: "package/update OpenAI",
1212
timeout_minutes: 45,
1313
profiles: "beta minimum stable full",
1414
},
15-
{
16-
chunk_id: "package-update-anthropic",
17-
label: "package/update Anthropic install",
18-
timeout_minutes: 60,
19-
profiles: "beta minimum stable full",
20-
},
2115
{
2216
chunk_id: "package-update-core",
2317
label: "package/update core",

‎scripts/validate-qa-runtime-pair-summary.mjs‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ function projectedReportCellStatus(cell) {
9797
return cell.runtimeErrorClass || cell.transportErrorClass ? "fail" : "pass";
9898
}
9999

100+
function hasPassingRuntimeCellStatus(cell) {
101+
// Early frozen candidates did not serialize the derived cell status. Accept
102+
// only that absent legacy field when the same runtime evidence projects pass.
103+
return (
104+
cell.status === "pass" ||
105+
(!Object.hasOwn(cell, "status") && projectedReportCellStatus(cell) === "pass")
106+
);
107+
}
108+
100109
function requireRuntimePairScenario(scenario, index) {
101110
if (!isRecord(scenario)) {
102111
throw new Error(`scenario ${index + 1} is not an object`);
@@ -116,9 +125,12 @@ function requireRuntimePairScenario(scenario, index) {
116125
}
117126

118127
if (scenario.status === "pass") {
119-
const hasTwoPassingCells = openclaw.status === "pass" && codex.status === "pass";
128+
const hasTwoPassingCells =
129+
hasPassingRuntimeCellStatus(openclaw) && hasPassingRuntimeCellStatus(codex);
120130
const hasAdvisoryCodexGap =
121-
parity.drift === "structural" && openclaw.status === "pass" && isExplicitCodexGap(codex);
131+
parity.drift === "structural" &&
132+
hasPassingRuntimeCellStatus(openclaw) &&
133+
isExplicitCodexGap(codex);
122134
if (
123135
parity.drift === "failure-mode" ||
124136
(!hasTwoPassingCells && !hasAdvisoryCodexGap) ||

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

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ describe("scripts/lib/docker-e2e-plan", () => {
247247
liveImage: true,
248248
package: true,
249249
});
250-
expect(plan.credentials).toEqual(["anthropic", "openai"]);
251-
expect(plan.lanes.map((lane) => lane.name)).toContain("install-e2e-openai");
250+
expect(plan.credentials).toEqual(["openai"]);
251+
expect(plan.lanes.map((lane) => lane.name)).not.toContain("install-e2e-openai");
252252
expect(plan.lanes.map((lane) => lane.name)).toContain("openai-chat-tools");
253253
expect(plan.lanes.map((lane) => lane.name)).toContain("live-codex-npm-plugin");
254254
expect(plan.lanes.map((lane) => lane.name)).toContain("codex-on-demand");
255-
expect(plan.lanes.map((lane) => lane.name)).toContain("install-e2e-anthropic");
255+
expect(plan.lanes.map((lane) => lane.name)).not.toContain("install-e2e-anthropic");
256256
expect(plan.lanes.map((lane) => lane.name)).toContain("mcp-channels");
257257
expect(plan.lanes.map((lane) => lane.name)).toContain("plugin-binding-command-escape");
258258
expect(plan.lanes.map((lane) => lane.name)).toContain("live-plugin-tool");
@@ -261,7 +261,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
261261
expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-plugin-install-uninstall-23");
262262
const countLane = (name: string) =>
263263
plan.lanes.reduce((count, lane) => count + (lane.name === name ? 1 : 0), 0);
264-
expect(countLane("install-e2e-openai")).toBe(1);
264+
expect(countLane("install-e2e-openai")).toBe(0);
265265
expect(countLane("bundled-plugin-install-uninstall-0")).toBe(1);
266266
expect(plan.lanes.map((lane) => lane.name)).not.toContain("bundled-plugin-install-uninstall");
267267
expect(plan.lanes.map((lane) => lane.name)).not.toContain("bundled-channel-deps");
@@ -316,11 +316,11 @@ describe("scripts/lib/docker-e2e-plan", () => {
316316

317317
const laneNames = plan.lanes.map((lane) => lane.name);
318318
expect(plan.releaseProfile).toBe("beta");
319-
expect(laneNames).toContain("install-e2e-openai");
319+
expect(laneNames).not.toContain("install-e2e-openai");
320320
expect(laneNames).toContain("openai-chat-tools");
321321
expect(laneNames).toContain("live-codex-npm-plugin");
322322
expect(laneNames).toContain("release-typed-onboarding");
323-
expect(laneNames).toContain("install-e2e-anthropic");
323+
expect(laneNames).not.toContain("install-e2e-anthropic");
324324
expect(laneNames).toContain("update-channel-switch");
325325
expect(laneNames).not.toContain("plugins");
326326
expect(laneNames).not.toContain("live-plugin-tool");
@@ -368,11 +368,6 @@ describe("scripts/lib/docker-e2e-plan", () => {
368368
profile: RELEASE_PATH_PROFILE,
369369
releaseChunk: "package-update-openai",
370370
});
371-
const packageInstallAnthropic = planFor({
372-
includeOpenWebUI: true,
373-
profile: RELEASE_PATH_PROFILE,
374-
releaseChunk: "package-update-anthropic",
375-
});
376371
const packageUpdateCore = planFor({
377372
includeOpenWebUI: true,
378373
profile: RELEASE_PATH_PROFILE,
@@ -436,7 +431,6 @@ describe("scripts/lib/docker-e2e-plan", () => {
436431

437432
expect(core.lanes.map((lane) => lane.name)).toContain("plugin-binding-command-escape");
438433
expect(packageInstallOpenAi.lanes.map((lane) => lane.name)).toEqual([
439-
"install-e2e-openai",
440434
"openai-chat-tools",
441435
"live-codex-npm-plugin",
442436
"codex-on-demand",
@@ -458,9 +452,6 @@ describe("scripts/lib/docker-e2e-plan", () => {
458452
weight: 3,
459453
},
460454
]);
461-
expect(packageInstallAnthropic.lanes.map((lane) => lane.name)).toEqual([
462-
"install-e2e-anthropic",
463-
]);
464455
expect(packageUpdateCore.lanes.map(summarizeLane)).toEqual([
465456
{
466457
command: "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:npm-onboard-channel-agent",
@@ -713,12 +704,10 @@ describe("scripts/lib/docker-e2e-plan", () => {
713704
);
714705

715706
expect(packageUpdate.lanes.map((lane) => lane.name)).toEqual([
716-
"install-e2e-openai",
717707
"openai-chat-tools",
718708
"live-codex-npm-plugin",
719709
"codex-on-demand",
720710
"release-typed-onboarding",
721-
"install-e2e-anthropic",
722711
"npm-onboard-channel-agent",
723712
"npm-onboard-discord-channel-agent",
724713
"npm-onboard-slack-channel-agent",
@@ -1497,10 +1486,17 @@ describe("scripts/lib/docker-e2e-plan", () => {
14971486
const plan = planFor({ selectedLaneNames });
14981487

14991488
expect(selectedLaneNames).toEqual(["install-e2e-openai", "install-e2e-anthropic"]);
1500-
expect(plan.lanes.map(summarizeLane)).toEqual([
1489+
expect(
1490+
plan.lanes.map((lane) => ({
1491+
imageKind: lane.imageKind,
1492+
live: lane.live,
1493+
name: lane.name,
1494+
resources: lane.resources,
1495+
timeoutMs: lane.timeoutMs,
1496+
weight: lane.weight,
1497+
})),
1498+
).toEqual([
15011499
{
1502-
command:
1503-
'OPENCLAW_INSTALL_TAG=beta OPENCLAW_E2E_MODELS=openai OPENCLAW_INSTALL_E2E_IMAGE=openclaw-install-e2e-openai:local OPENCLAW_INSTALL_E2E_AGENT_TOOL_SMOKE=0 OPENCLAW_INSTALL_E2E_OPENAI_MODEL=openai/gpt-5.4-mini OPENCLAW_INSTALL_E2E_AGENT_TURN_TIMEOUT_SECONDS=120 OPENCLAW_INSTALL_E2E_OPENAI_PROVIDER_TIMEOUT_SECONDS=120 bash -c \'harness="${OPENCLAW_DOCKER_E2E_TRUSTED_HARNESS_DIR:-.}"; OPENCLAW_LIVE_DOCKER_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" bash "$harness/scripts/test-install-sh-e2e-docker.sh"\'',
15041500
imageKind: "bare",
15051501
live: true,
15061502
name: "install-e2e-openai",
@@ -1509,8 +1505,6 @@ describe("scripts/lib/docker-e2e-plan", () => {
15091505
weight: 3,
15101506
},
15111507
{
1512-
command:
1513-
'OPENCLAW_INSTALL_TAG=beta OPENCLAW_E2E_MODELS=anthropic OPENCLAW_INSTALL_E2E_IMAGE=openclaw-install-e2e-anthropic:local bash -c \'harness="${OPENCLAW_DOCKER_E2E_TRUSTED_HARNESS_DIR:-.}"; OPENCLAW_LIVE_DOCKER_REPO_ROOT="${OPENCLAW_DOCKER_E2E_REPO_ROOT:-$PWD}" bash "$harness/scripts/test-install-sh-e2e-docker.sh"\'',
15141508
imageKind: "bare",
15151509
live: true,
15161510
name: "install-e2e-anthropic",

‎test/scripts/package-acceptance-workflow.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,7 @@ describe("package artifact reuse", () => {
27452745
expect(laneJob.strategy?.matrix?.lane).toContain('["core"]');
27462746
const runtimePairRun = workflowStep(laneJob, "Run runtime-pair lane").run;
27472747
expect(runtimePairRun).toContain('--runtime-pair-lane "$RUNTIME_PAIR_LANE"');
2748-
expect(runtimePairRun).toContain("--runtime-parity-tier standard,live-only");
2748+
expect(runtimePairRun).toContain("--runtime-parity-tier standard");
27492749
expect(runtimePairRun).toContain("--runtime-parity-tier soak");
27502750
expect(runtimePairRun).toContain("Frozen candidate cannot select runtime-pair lane");
27512751
expect(workflowStep(laneJob, "Run runtime-pair lane")["continue-on-error"]).toBe(true);

‎test/scripts/release-workflow-matrix-plan.test.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,19 @@ const WORKFLOW_CALL_ONLY_INPUTS = new Set([
7979
const PROFILE_EXPECTATIONS = [
8080
{
8181
profile: "minimum",
82-
dockerE2eChunks: ["package-update-openai", "package-update-anthropic", "package-update-core"],
82+
dockerE2eChunks: ["package-update-openai", "package-update-core"],
8383
liveModelProviders: ["openai"],
8484
},
8585
{
8686
profile: "beta",
87-
dockerE2eChunks: ["package-update-openai", "package-update-anthropic", "package-update-core"],
87+
dockerE2eChunks: ["package-update-openai", "package-update-core"],
8888
liveModelProviders: ["openai"],
8989
},
9090
{
9191
profile: "stable",
9292
dockerE2eChunks: [
9393
"core",
9494
"package-update-openai",
95-
"package-update-anthropic",
9695
"package-update-core",
9796
"plugins-runtime-plugins",
9897
"plugins-runtime-services",
@@ -112,7 +111,6 @@ const PROFILE_EXPECTATIONS = [
112111
dockerE2eChunks: [
113112
"core",
114113
"package-update-openai",
115-
"package-update-anthropic",
116114
"package-update-core",
117115
"plugins-runtime-plugins",
118116
"plugins-runtime-services",
@@ -238,7 +236,7 @@ describe("scripts/plan-release-workflow-matrix.mjs", () => {
238236
releaseProfile: "stable",
239237
});
240238

241-
expect(plan.dockerE2e.count).toBe(14);
239+
expect(plan.dockerE2e.count).toBe(13);
242240
expect(plan.liveModels.matrix.include.map((entry: MatrixEntry) => entry.providers)).toEqual([
243241
"anthropic",
244242
"google",

‎test/scripts/validate-qa-runtime-pair-summary.test.ts‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type CellStatus = "pass" | "fail" | "skip";
99

1010
type RuntimeCell = {
1111
runtime: "openclaw" | "codex";
12-
status: CellStatus;
12+
status?: CellStatus;
1313
details?: string;
1414
runtimeErrorClass?: string;
1515
toolCalls: Array<{ errorClass?: string }>;
@@ -149,6 +149,19 @@ describe("frozen QA runtime-pair summary validation", () => {
149149
});
150150
});
151151

152+
it("accepts statusless passing cells from an older frozen candidate", () => {
153+
const legacyScenario = scenario({ name: "legacy passing", status: "pass" });
154+
delete legacyScenario.runtimeParity.cells.openclaw.status;
155+
delete legacyScenario.runtimeParity.cells.codex.status;
156+
157+
expect(validateQaRuntimePairSummary(summary([legacyScenario]))).toEqual({
158+
total: 1,
159+
passed: 1,
160+
failed: 0,
161+
skipped: 0,
162+
});
163+
});
164+
152165
it("accepts a tracked Codex harness gap kept advisory by the current classifier", () => {
153166
const advisoryGap = scenario({
154167
name: "tracked advisory gap",

0 commit comments

Comments
 (0)