@@ -332,17 +332,29 @@ describe("Mantis Telegram Desktop proof workflow", () => {
|
332 | 332 | ); |
333 | 333 | }); |
334 | 334 | |
335 | | -it("passes AWS capacity regions to Crabbox warmup", () => { |
| 335 | +it("pins AWS Crabbox proof runs to the working region", () => { |
336 | 336 | const workflow = parse(readFileSync(WORKFLOW, "utf8")) as Workflow; |
337 | | -const regions = "eu-west-1,eu-west-2,eu-central-1,us-east-1,us-west-2"; |
| 337 | +const liveWorkflow = parse(readFileSync(LIVE_WORKFLOW, "utf8")) as Workflow; |
338 | 338 | |
339 | | -expect(workflow.env?.CRABBOX_CAPACITY_REGIONS).toBe(regions); |
| 339 | +expect(workflow.env?.CRABBOX_AWS_REGION).toBe("us-east-1"); |
| 340 | +expect(workflow.env?.CRABBOX_CAPACITY_REGIONS).toBe("us-east-1"); |
| 341 | +expect(liveWorkflow.env?.CRABBOX_AWS_REGION).toBe("us-east-1"); |
| 342 | +expect(liveWorkflow.env?.CRABBOX_CAPACITY_REGIONS).toBe("us-east-1"); |
340 | 343 | |
341 | 344 | const agent = workflowStep("Run Codex Mantis Telegram agent"); |
| 345 | +expect(agent.env?.CRABBOX_AWS_REGION).toBe("${{ env.CRABBOX_AWS_REGION }}"); |
342 | 346 | expect(agent.env?.CRABBOX_CAPACITY_REGIONS).toBe("${{ env.CRABBOX_CAPACITY_REGIONS }}"); |
343 | 347 | |
| 348 | +const liveRun = jobStep( |
| 349 | +LIVE_WORKFLOW, |
| 350 | +"run_telegram_live", |
| 351 | +"Run Telegram live scenario and capture desktop evidence", |
| 352 | +); |
| 353 | +expect(liveRun.env?.CRABBOX_AWS_REGION).toBe("${{ env.CRABBOX_AWS_REGION }}"); |
| 354 | +expect(liveRun.env?.CRABBOX_CAPACITY_REGIONS).toBe("${{ env.CRABBOX_CAPACITY_REGIONS }}"); |
| 355 | + |
344 | 356 | const prepare = workflowStep("Prepare Codex user"); |
345 | | -expect(prepare.run).toContain("CRABBOX_PROVIDER CRABBOX_CAPACITY_REGIONS"); |
| 357 | +expect(prepare.run).toContain("CRABBOX_AWS_REGION CRABBOX_CAPACITY_REGIONS"); |
346 | 358 | }); |
347 | 359 | |
348 | 360 | it("runs the Mantis Codex agent in fast medium-effort mode", () => { |
@@ -453,7 +465,7 @@ describe("Mantis Telegram Desktop proof workflow", () => {
|
453 | 465 | expect(proofScript).toContain('run_setup_step "tdlib clone" "$tdlib_clone_timeout"'); |
454 | 466 | expect(proofScript).toContain('run_setup_step "tdlib build" "$tdlib_build_timeout"'); |
455 | 467 | expect(proofScript).not.toContain("curl -fL https://telegram.org/dl/desktop/linux -o"); |
456 | | -expect(proofScript).not.toContain("curl -fL \"$tdlib_url\" -o"); |
| 468 | +expect(proofScript).not.toContain('curl -fL "$tdlib_url" -o'); |
457 | 469 | }); |
458 | 470 | |
459 | 471 | it("does not pass the full workflow environment into the local Telegram SUT", () => { |
|