Vendor OpenClaw source as Adolf fork baseline
Some checks failed
ClawSweeper Dispatch / dispatch (push) Has been cancelled
CodeQL / Security High (actions) (push) Has been cancelled
CodeQL / Security High (channel-runtime-boundary) (push) Has been cancelled
CodeQL / Security High (core-auth-secrets) (push) Has been cancelled
CodeQL / Security High (mcp-process-tool-boundary) (push) Has been cancelled
CodeQL / Security High (network-ssrf-boundary) (push) Has been cancelled
CodeQL / Security High (plugin-trust-boundary) (push) Has been cancelled
CodeQL / Security High (process-exec-boundary) (push) Has been cancelled
Docs Sync Publish Repo / sync-publish-repo (push) Has been cancelled
Docs / docs (push) Has been cancelled
OpenClaw Stable Main Closeout / Resolve stable release closeout inputs (push) Has been cancelled
OpenClaw Stable Main Closeout / Verify stable main closeout (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
Workflow Sanity / generated-doc-baselines (push) Has been cancelled
CI / runner-admission (push) Has been cancelled
CI / preflight (push) Has been cancelled
CI / security-fast (push) Has been cancelled
CI / pnpm-store-warmup (push) Has been cancelled
CI / build-artifacts (push) Has been cancelled
CI / native-i18n (push) Has been cancelled
CI / ${{ matrix.check_name }} (push) Has been cancelled
CI / ${{ matrix.checkName }} (push) Has been cancelled
CI / checks-node-compat-node22 (push) Has been cancelled
CI / check-bundled-channel-config-metadata (push) Has been cancelled
CI / check-dependencies (push) Has been cancelled
CI / check-guards (push) Has been cancelled
CI / check-lint (push) Has been cancelled
CI / check-prod-types (push) Has been cancelled
CI / check-shrinkwrap (push) Has been cancelled
CI / check-test-types (push) Has been cancelled
CI / check-additional-boundaries-a (push) Has been cancelled
CI / check-additional-boundaries-bcd (push) Has been cancelled
CI / check-additional-extension-bundled (push) Has been cancelled
CI / check-additional-extension-channels (push) Has been cancelled
CI / check-additional-extension-package-boundary (push) Has been cancelled
CI / check-additional-runtime-topology-architecture (push) Has been cancelled
CI / check-session-accessor-boundary (push) Has been cancelled
CI / check-session-transcript-reader-boundary (push) Has been cancelled
CI / check-docs (push) Has been cancelled
CI / skills-python (push) Has been cancelled
CI / macos-swift (push) Has been cancelled
CI / ios-build (push) Has been cancelled
CI / ci-timings-summary (push) Has been cancelled
Native App Locale Refresh / Refresh native fa (push) Has been cancelled
Native App Locale Refresh / Refresh native fr (push) Has been cancelled
Native App Locale Refresh / Refresh native hi (push) Has been cancelled
Native App Locale Refresh / Refresh native id (push) Has been cancelled
Native App Locale Refresh / Refresh native it (push) Has been cancelled
Native App Locale Refresh / Refresh native ja-JP (push) Has been cancelled
Control UI Locale Refresh / plan (push) Has been cancelled
Control UI Locale Refresh / Refresh ${{ matrix.locale }} (push) Has been cancelled
Control UI Locale Refresh / Commit control UI locale refresh (push) Has been cancelled
Live Media Runner Image / Build live media runner image (push) Has been cancelled
Native App Locale Refresh / Refresh native ar (push) Has been cancelled
Native App Locale Refresh / Refresh native de (push) Has been cancelled
Native App Locale Refresh / Refresh native es (push) Has been cancelled
Native App Locale Refresh / Refresh native ko (push) Has been cancelled
Native App Locale Refresh / Refresh native nl (push) Has been cancelled
Native App Locale Refresh / Refresh native pl (push) Has been cancelled
Native App Locale Refresh / Refresh native pt-BR (push) Has been cancelled
Native App Locale Refresh / Refresh native ru (push) Has been cancelled
Native App Locale Refresh / Refresh native sv (push) Has been cancelled
Native App Locale Refresh / Refresh native th (push) Has been cancelled
Native App Locale Refresh / Refresh native tr (push) Has been cancelled
Native App Locale Refresh / Refresh native uk (push) Has been cancelled
Native App Locale Refresh / Refresh native vi (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-CN (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-TW (push) Has been cancelled
Native App Locale Refresh / Commit native locale refresh (push) Has been cancelled
Plugin Init Scaffold Validation / Validate provider scaffold (push) Has been cancelled
Plugin NPM Release / preview_plugins_npm (push) Has been cancelled
Plugin NPM Release / Validate release publish approval (push) Has been cancelled
Plugin NPM Release / preview_plugin_pack (push) Has been cancelled
Plugin NPM Release / publish_plugins_npm (push) Has been cancelled
Sandbox Common Smoke / sandbox-common-smoke (push) Has been cancelled
Website Installer Sync / static (push) Has been cancelled
Website Installer Sync / linux-docker (push) Has been cancelled
Website Installer Sync / macos-installer (push) Has been cancelled
Website Installer Sync / windows-installer (push) Has been cancelled
Website Installer Sync / sync-website (push) Has been cancelled
Some checks failed
ClawSweeper Dispatch / dispatch (push) Has been cancelled
CodeQL / Security High (actions) (push) Has been cancelled
CodeQL / Security High (channel-runtime-boundary) (push) Has been cancelled
CodeQL / Security High (core-auth-secrets) (push) Has been cancelled
CodeQL / Security High (mcp-process-tool-boundary) (push) Has been cancelled
CodeQL / Security High (network-ssrf-boundary) (push) Has been cancelled
CodeQL / Security High (plugin-trust-boundary) (push) Has been cancelled
CodeQL / Security High (process-exec-boundary) (push) Has been cancelled
Docs Sync Publish Repo / sync-publish-repo (push) Has been cancelled
Docs / docs (push) Has been cancelled
OpenClaw Stable Main Closeout / Resolve stable release closeout inputs (push) Has been cancelled
OpenClaw Stable Main Closeout / Verify stable main closeout (push) Has been cancelled
Workflow Sanity / no-tabs (push) Has been cancelled
Workflow Sanity / actionlint (push) Has been cancelled
Workflow Sanity / generated-doc-baselines (push) Has been cancelled
CI / runner-admission (push) Has been cancelled
CI / preflight (push) Has been cancelled
CI / security-fast (push) Has been cancelled
CI / pnpm-store-warmup (push) Has been cancelled
CI / build-artifacts (push) Has been cancelled
CI / native-i18n (push) Has been cancelled
CI / ${{ matrix.check_name }} (push) Has been cancelled
CI / ${{ matrix.checkName }} (push) Has been cancelled
CI / checks-node-compat-node22 (push) Has been cancelled
CI / check-bundled-channel-config-metadata (push) Has been cancelled
CI / check-dependencies (push) Has been cancelled
CI / check-guards (push) Has been cancelled
CI / check-lint (push) Has been cancelled
CI / check-prod-types (push) Has been cancelled
CI / check-shrinkwrap (push) Has been cancelled
CI / check-test-types (push) Has been cancelled
CI / check-additional-boundaries-a (push) Has been cancelled
CI / check-additional-boundaries-bcd (push) Has been cancelled
CI / check-additional-extension-bundled (push) Has been cancelled
CI / check-additional-extension-channels (push) Has been cancelled
CI / check-additional-extension-package-boundary (push) Has been cancelled
CI / check-additional-runtime-topology-architecture (push) Has been cancelled
CI / check-session-accessor-boundary (push) Has been cancelled
CI / check-session-transcript-reader-boundary (push) Has been cancelled
CI / check-docs (push) Has been cancelled
CI / skills-python (push) Has been cancelled
CI / macos-swift (push) Has been cancelled
CI / ios-build (push) Has been cancelled
CI / ci-timings-summary (push) Has been cancelled
Native App Locale Refresh / Refresh native fa (push) Has been cancelled
Native App Locale Refresh / Refresh native fr (push) Has been cancelled
Native App Locale Refresh / Refresh native hi (push) Has been cancelled
Native App Locale Refresh / Refresh native id (push) Has been cancelled
Native App Locale Refresh / Refresh native it (push) Has been cancelled
Native App Locale Refresh / Refresh native ja-JP (push) Has been cancelled
Control UI Locale Refresh / plan (push) Has been cancelled
Control UI Locale Refresh / Refresh ${{ matrix.locale }} (push) Has been cancelled
Control UI Locale Refresh / Commit control UI locale refresh (push) Has been cancelled
Live Media Runner Image / Build live media runner image (push) Has been cancelled
Native App Locale Refresh / Refresh native ar (push) Has been cancelled
Native App Locale Refresh / Refresh native de (push) Has been cancelled
Native App Locale Refresh / Refresh native es (push) Has been cancelled
Native App Locale Refresh / Refresh native ko (push) Has been cancelled
Native App Locale Refresh / Refresh native nl (push) Has been cancelled
Native App Locale Refresh / Refresh native pl (push) Has been cancelled
Native App Locale Refresh / Refresh native pt-BR (push) Has been cancelled
Native App Locale Refresh / Refresh native ru (push) Has been cancelled
Native App Locale Refresh / Refresh native sv (push) Has been cancelled
Native App Locale Refresh / Refresh native th (push) Has been cancelled
Native App Locale Refresh / Refresh native tr (push) Has been cancelled
Native App Locale Refresh / Refresh native uk (push) Has been cancelled
Native App Locale Refresh / Refresh native vi (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-CN (push) Has been cancelled
Native App Locale Refresh / Refresh native zh-TW (push) Has been cancelled
Native App Locale Refresh / Commit native locale refresh (push) Has been cancelled
Plugin Init Scaffold Validation / Validate provider scaffold (push) Has been cancelled
Plugin NPM Release / preview_plugins_npm (push) Has been cancelled
Plugin NPM Release / Validate release publish approval (push) Has been cancelled
Plugin NPM Release / preview_plugin_pack (push) Has been cancelled
Plugin NPM Release / publish_plugins_npm (push) Has been cancelled
Sandbox Common Smoke / sandbox-common-smoke (push) Has been cancelled
Website Installer Sync / static (push) Has been cancelled
Website Installer Sync / linux-docker (push) Has been cancelled
Website Installer Sync / macos-installer (push) Has been cancelled
Website Installer Sync / windows-installer (push) Has been cancelled
Website Installer Sync / sync-website (push) Has been cancelled
Adolf is a fork/vendored clone of github.com/openclaw/openclaw (v2026.6.11), free to diverge. Tree copied sans upstream .git; upstream remote added for future syncs. Node pinned to 24 (.nvmrc); engines already require >=22.19. Preserves docs/ARCHITECTURE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LeqyaxJF2nbRXJtae2kNB2
This commit is contained in:
199
test/scripts/release-workflow-matrix-plan.test.ts
Normal file
199
test/scripts/release-workflow-matrix-plan.test.ts
Normal file
@@ -0,0 +1,199 @@
|
||||
// Release Workflow Matrix Plan tests cover release workflow matrix plan script behavior.
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parse } from "yaml";
|
||||
import { createReleaseWorkflowMatrixPlan } from "../../scripts/plan-release-workflow-matrix.mjs";
|
||||
|
||||
function workflow() {
|
||||
return parse(readFileSync(".github/workflows/openclaw-live-and-e2e-checks-reusable.yml", "utf8"));
|
||||
}
|
||||
|
||||
const PROFILE_GATED_STATIC_MATRIX_ALLOWLIST = [
|
||||
"validate_live_provider_suites",
|
||||
"validate_live_docker_provider_suites",
|
||||
"validate_live_media_provider_suites",
|
||||
];
|
||||
|
||||
const PROFILE_EXPECTATIONS = [
|
||||
{
|
||||
profile: "minimum",
|
||||
dockerE2eChunks: ["package-update-openai", "package-update-anthropic", "package-update-core"],
|
||||
liveModelProviders: ["openai"],
|
||||
},
|
||||
{
|
||||
profile: "beta",
|
||||
dockerE2eChunks: ["package-update-openai", "package-update-anthropic", "package-update-core"],
|
||||
liveModelProviders: ["openai"],
|
||||
},
|
||||
{
|
||||
profile: "stable",
|
||||
dockerE2eChunks: [
|
||||
"core",
|
||||
"package-update-openai",
|
||||
"package-update-anthropic",
|
||||
"package-update-core",
|
||||
"plugins-runtime-plugins",
|
||||
"plugins-runtime-services",
|
||||
"plugins-runtime-install-a",
|
||||
"plugins-runtime-install-b",
|
||||
"plugins-runtime-install-c",
|
||||
"plugins-runtime-install-d",
|
||||
"plugins-runtime-install-e",
|
||||
"plugins-runtime-install-f",
|
||||
"plugins-runtime-install-g",
|
||||
"plugins-runtime-install-h",
|
||||
],
|
||||
liveModelProviders: ["anthropic", "google", "minimax", "openai"],
|
||||
},
|
||||
{
|
||||
profile: "full",
|
||||
dockerE2eChunks: [
|
||||
"core",
|
||||
"package-update-openai",
|
||||
"package-update-anthropic",
|
||||
"package-update-core",
|
||||
"plugins-runtime-plugins",
|
||||
"plugins-runtime-services",
|
||||
"plugins-runtime-install-a",
|
||||
"plugins-runtime-install-b",
|
||||
"plugins-runtime-install-c",
|
||||
"plugins-runtime-install-d",
|
||||
"plugins-runtime-install-e",
|
||||
"plugins-runtime-install-f",
|
||||
"plugins-runtime-install-g",
|
||||
"plugins-runtime-install-h",
|
||||
],
|
||||
liveModelProviders: [
|
||||
"anthropic",
|
||||
"google",
|
||||
"minimax",
|
||||
"moonshot",
|
||||
"openai",
|
||||
"opencode-go",
|
||||
"openrouter",
|
||||
"xai",
|
||||
"zai",
|
||||
"fireworks",
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
function staticProfileMatrixJobs() {
|
||||
return Object.entries(workflow().jobs)
|
||||
.filter(([, job]) => {
|
||||
const entries = job.strategy?.matrix?.include;
|
||||
return Array.isArray(entries) && entries.some((entry) => "profiles" in entry);
|
||||
})
|
||||
.map(([jobName]) => jobName)
|
||||
.toSorted((left, right) => left.localeCompare(right));
|
||||
}
|
||||
|
||||
describe("scripts/plan-release-workflow-matrix.mjs", () => {
|
||||
it.each(PROFILE_EXPECTATIONS)(
|
||||
"keeps $profile release jobs to profile-enabled Docker E2E chunks and live model providers",
|
||||
({ profile, dockerE2eChunks, liveModelProviders }) => {
|
||||
const plan = createReleaseWorkflowMatrixPlan({
|
||||
includeLiveSuites: true,
|
||||
includeReleasePathSuites: true,
|
||||
releaseProfile: profile,
|
||||
});
|
||||
|
||||
expect(plan.dockerE2e.matrix.include.map((entry) => entry.chunk_id)).toEqual(dockerE2eChunks);
|
||||
expect(plan.liveModels.matrix.include.map((entry) => entry.providers)).toEqual(
|
||||
liveModelProviders,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
it("reports omitted lanes for release jobs excluded by the selected profile", () => {
|
||||
const plan = createReleaseWorkflowMatrixPlan({
|
||||
includeLiveSuites: true,
|
||||
includeReleasePathSuites: true,
|
||||
releaseProfile: "beta",
|
||||
});
|
||||
|
||||
expect(plan.dockerE2e.omitted.map((entry) => entry.id)).toContain("core");
|
||||
expect(plan.liveModels.omitted.map((entry) => entry.id)).toContain("anthropic");
|
||||
});
|
||||
|
||||
it("keeps stable release jobs broad enough for stable-required lanes", () => {
|
||||
const plan = createReleaseWorkflowMatrixPlan({
|
||||
includeLiveSuites: true,
|
||||
includeReleasePathSuites: true,
|
||||
releaseProfile: "stable",
|
||||
});
|
||||
|
||||
expect(plan.dockerE2e.count).toBe(14);
|
||||
expect(plan.liveModels.matrix.include.map((entry) => entry.providers)).toEqual([
|
||||
"anthropic",
|
||||
"google",
|
||||
"minimax",
|
||||
"openai",
|
||||
]);
|
||||
expect(plan.liveModels.omitted.map((entry) => entry.id)).toEqual([
|
||||
"moonshot",
|
||||
"opencode-go",
|
||||
"openrouter",
|
||||
"xai",
|
||||
"zai",
|
||||
"fireworks",
|
||||
]);
|
||||
});
|
||||
|
||||
it("limits MiniMax Docker live-model coverage to the stable M2.7 pair", () => {
|
||||
const plan = createReleaseWorkflowMatrixPlan({
|
||||
includeLiveSuites: true,
|
||||
includeReleasePathSuites: true,
|
||||
releaseProfile: "stable",
|
||||
});
|
||||
|
||||
expect(plan.liveModels.matrix.include).toContainEqual({
|
||||
provider_label: "MiniMax",
|
||||
providers: "minimax",
|
||||
models: "minimax/MiniMax-M2.7,minimax-portal/MiniMax-M2.7",
|
||||
max_models: "2",
|
||||
profiles: "stable full",
|
||||
});
|
||||
});
|
||||
|
||||
it("disables live model planning when focused recovery targets another live suite", () => {
|
||||
const plan = createReleaseWorkflowMatrixPlan({
|
||||
includeLiveSuites: true,
|
||||
includeReleasePathSuites: true,
|
||||
liveSuiteFilter: "live-cache",
|
||||
releaseProfile: "full",
|
||||
});
|
||||
|
||||
expect(plan.liveModels.count).toBe(0);
|
||||
expect(plan.liveModels.omitted).toHaveLength(10);
|
||||
expect(plan.liveModels.omitted[0]?.reason).toBe(
|
||||
"Docker live model matrix disabled by input selection",
|
||||
);
|
||||
});
|
||||
|
||||
it("wires filtered matrices into the reusable live and E2E workflow", () => {
|
||||
const jobs = workflow().jobs;
|
||||
const planner = jobs.plan_release_workflow_matrices;
|
||||
|
||||
expect(planner.outputs.docker_e2e_matrix).toBe("${{ steps.plan.outputs.docker_e2e_matrix }}");
|
||||
expect(planner.outputs.live_models_matrix).toBe("${{ steps.plan.outputs.live_models_matrix }}");
|
||||
expect(jobs.validate_docker_e2e.needs).toContain("plan_release_workflow_matrices");
|
||||
expect(jobs.validate_live_models_docker.needs).toContain("plan_release_workflow_matrices");
|
||||
expect(jobs.validate_docker_e2e.strategy.matrix).toBe(
|
||||
"${{ fromJson(needs.plan_release_workflow_matrices.outputs.docker_e2e_matrix) }}",
|
||||
);
|
||||
expect(jobs.validate_live_models_docker.strategy.matrix).toBe(
|
||||
"${{ fromJson(needs.plan_release_workflow_matrices.outputs.live_models_matrix) }}",
|
||||
);
|
||||
expect(jobs.validate_live_models_docker.env.OPENCLAW_LIVE_MODELS).toBe(
|
||||
"${{ matrix.models || 'modern' }}",
|
||||
);
|
||||
expect(jobs.validate_live_models_docker.env.OPENCLAW_LIVE_MAX_MODELS).toBe(
|
||||
"${{ matrix.max_models || '6' }}",
|
||||
);
|
||||
});
|
||||
|
||||
it("requires new release-profile matrices to use a planner or an explicit allowlist", () => {
|
||||
expect(staticProfileMatrixJobs()).toEqual(PROFILE_GATED_STATIC_MATRIX_ALLOWLIST.toSorted());
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user