From c33007ef5863ddeaac66d5d9e8479e1155189bb7 Mon Sep 17 00:00:00 2001 From: Vincent Koc <25068+vincentkoc@users.noreply.github.com> Date: Fri, 19 Jun 2026 10:26:00 +0800 Subject: [PATCH] fix(release): scope MiniMax live model gate --- .../openclaw-live-and-e2e-checks-reusable.yml | 3 ++- scripts/plan-release-workflow-matrix.mjs | 2 ++ .../release-workflow-matrix-plan.test.ts | 22 +++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml b/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml index 3f5120f404d..9dda4357a19 100644 --- a/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml +++ b/.github/workflows/openclaw-live-and-e2e-checks-reusable.yml @@ -1686,7 +1686,8 @@ jobs: FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }} OPENCLAW_LIVE_PROVIDERS: ${{ matrix.providers }} OPENCLAW_LIVE_IMAGE: ${{ needs.prepare_live_test_image.outputs.live_image }} - OPENCLAW_LIVE_MAX_MODELS: "6" + OPENCLAW_LIVE_MODELS: ${{ matrix.models || 'modern' }} + OPENCLAW_LIVE_MAX_MODELS: ${{ matrix.max_models || '6' }} OPENCLAW_LIVE_MODEL_TIMEOUT_MS: "45000" OPENCLAW_SKIP_DOCKER_BUILD: "1" OPENCLAW_VITEST_MAX_WORKERS: "2" diff --git a/scripts/plan-release-workflow-matrix.mjs b/scripts/plan-release-workflow-matrix.mjs index 8a573889346..b9b111a9ba7 100644 --- a/scripts/plan-release-workflow-matrix.mjs +++ b/scripts/plan-release-workflow-matrix.mjs @@ -100,6 +100,8 @@ const LIVE_MODEL_PROVIDERS = [ { provider_label: "MiniMax", providers: "minimax", + models: "minimax/MiniMax-M2.7,minimax-portal/MiniMax-M2.7", + max_models: "2", profiles: "stable full", }, { diff --git a/test/scripts/release-workflow-matrix-plan.test.ts b/test/scripts/release-workflow-matrix-plan.test.ts index 620b66e5e5a..30e027b2670 100644 --- a/test/scripts/release-workflow-matrix-plan.test.ts +++ b/test/scripts/release-workflow-matrix-plan.test.ts @@ -140,6 +140,22 @@ describe("scripts/plan-release-workflow-matrix.mjs", () => { ]); }); + 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, @@ -169,6 +185,12 @@ describe("scripts/plan-release-workflow-matrix.mjs", () => { 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", () => {