@@ -332,17 +332,29 @@ describe("Mantis Telegram Desktop proof workflow", () => {
332332 ) ;
333333 } ) ;
334334
335- it ( "passes AWS capacity regions to Crabbox warmup " , ( ) => {
335+ it ( "pins AWS Crabbox proof runs to the working region " , ( ) => {
336336 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 ;
338338
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" ) ;
340343
341344 const agent = workflowStep ( "Run Codex Mantis Telegram agent" ) ;
345+ expect ( agent . env ?. CRABBOX_AWS_REGION ) . toBe ( "${{ env.CRABBOX_AWS_REGION }}" ) ;
342346 expect ( agent . env ?. CRABBOX_CAPACITY_REGIONS ) . toBe ( "${{ env.CRABBOX_CAPACITY_REGIONS }}" ) ;
343347
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+
344356 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" ) ;
346358 } ) ;
347359
348360 it ( "runs the Mantis Codex agent in fast medium-effort mode" , ( ) => {
@@ -453,7 +465,7 @@ describe("Mantis Telegram Desktop proof workflow", () => {
453465 expect ( proofScript ) . toContain ( 'run_setup_step "tdlib clone" "$tdlib_clone_timeout"' ) ;
454466 expect ( proofScript ) . toContain ( 'run_setup_step "tdlib build" "$tdlib_build_timeout"' ) ;
455467 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' ) ;
457469 } ) ;
458470
459471 it ( "does not pass the full workflow environment into the local Telegram SUT" , ( ) => {
0 commit comments