@@ -140,6 +140,22 @@ describe("scripts/plan-release-workflow-matrix.mjs", () => {
|
140 | 140 | ]); |
141 | 141 | }); |
142 | 142 | |
| 143 | +it("limits MiniMax Docker live-model coverage to the stable M2.7 pair", () => { |
| 144 | +const plan = createReleaseWorkflowMatrixPlan({ |
| 145 | +includeLiveSuites: true, |
| 146 | +includeReleasePathSuites: true, |
| 147 | +releaseProfile: "stable", |
| 148 | +}); |
| 149 | + |
| 150 | +expect(plan.liveModels.matrix.include).toContainEqual({ |
| 151 | +provider_label: "MiniMax", |
| 152 | +providers: "minimax", |
| 153 | +models: "minimax/MiniMax-M2.7,minimax-portal/MiniMax-M2.7", |
| 154 | +max_models: "2", |
| 155 | +profiles: "stable full", |
| 156 | +}); |
| 157 | +}); |
| 158 | + |
143 | 159 | it("disables live model planning when focused recovery targets another live suite", () => { |
144 | 160 | const plan = createReleaseWorkflowMatrixPlan({ |
145 | 161 | includeLiveSuites: true, |
@@ -169,6 +185,12 @@ describe("scripts/plan-release-workflow-matrix.mjs", () => {
|
169 | 185 | expect(jobs.validate_live_models_docker.strategy.matrix).toBe( |
170 | 186 | "${{ fromJson(needs.plan_release_workflow_matrices.outputs.live_models_matrix) }}", |
171 | 187 | ); |
| 188 | +expect(jobs.validate_live_models_docker.env.OPENCLAW_LIVE_MODELS).toBe( |
| 189 | +"${{ matrix.models || 'modern' }}", |
| 190 | +); |
| 191 | +expect(jobs.validate_live_models_docker.env.OPENCLAW_LIVE_MAX_MODELS).toBe( |
| 192 | +"${{ matrix.max_models || '6' }}", |
| 193 | +); |
172 | 194 | }); |
173 | 195 | |
174 | 196 | it("requires new release-profile matrices to use a planner or an explicit allowlist", () => { |
|