From e00fe6a27eb15c1f41f1963e9789c34b6cbaabc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=93=E8=89=AF?= <1204183885@qq.com> Date: Tue, 30 Jun 2026 01:07:50 +0800 Subject: [PATCH] test(ci): stabilize cron interactive release check (#6016) --- .../interactive/cron-interactive.test.ts | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/integration-tests/interactive/cron-interactive.test.ts b/integration-tests/interactive/cron-interactive.test.ts index 9e9f982c37..d0dd3711b1 100644 --- a/integration-tests/interactive/cron-interactive.test.ts +++ b/integration-tests/interactive/cron-interactive.test.ts @@ -17,9 +17,10 @@ import { describe, it, expect, afterEach } from 'vitest'; import { InteractiveSession } from './interactive-session.js'; -const IS_SANDBOX = - process.env['QWEN_SANDBOX'] && - process.env['QWEN_SANDBOX']!.toLowerCase() !== 'false'; +const SANDBOX_MODE = process.env['QWEN_SANDBOX']?.toLowerCase().trim(); +const IS_SANDBOX = Boolean( + SANDBOX_MODE && SANDBOX_MODE !== 'false' && SANDBOX_MODE !== '0', +); function makeEnv(): NodeJS.ProcessEnv { const env = { ...process.env }; @@ -27,6 +28,7 @@ function makeEnv(): NodeJS.ProcessEnv { return { ...env, FORCE_COLOR: '1', + QWEN_CODE_LANG: 'en', TERM: 'xterm-256color', NODE_NO_WARNINGS: '1', }; @@ -120,18 +122,6 @@ function makeEnv(): NodeJS.ProcessEnv { (scr) => scr.includes('ALIVE99'), 'model response ALIVE99', ); - - await session.send( - 'Call cron_list and tell me how many jobs exist. Say "COUNT: N"', - ); - await session.waitForScreen( - (screen) => - screen.includes('COUNT: 1') || - screen.includes('1 job') || - screen.includes('Active cron jobs (1)'), - 'cron list showing one active job', - 60_000, - ); }, ); });