Fix E2E caused by Terminal Bench test (#529)

* fix e2e

* fix lint
This commit is contained in:
Yiheng Xu
2025-09-08 10:51:14 +08:00
committed by GitHub
parent 57c6b25e61
commit 17fd843af6
4 changed files with 26 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ on:
push:
branches:
- 'main'
- 'feat/e2e/**'
merge_group:
jobs:

View File

@@ -15,6 +15,7 @@ export default defineConfig({
globalSetup: './globalSetup.ts',
reporters: ['default'],
include: ['**/*.test.ts'],
exclude: ['**/terminal-bench/*.test.ts', '**/node_modules/**'],
retry: 2,
fileParallelism: false,
},

View File

@@ -0,0 +1,21 @@
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { defineConfig } from 'vitest/config';
const timeoutMinutes = Number(process.env.TB_TIMEOUT_MINUTES || '30');
const testTimeoutMs = timeoutMinutes * 60 * 1000;
export default defineConfig({
test: {
testTimeout: testTimeoutMs,
globalSetup: './globalSetup.ts',
reporters: ['default'],
include: ['**/terminal-bench/*.test.ts'],
retry: 2,
fileParallelism: false,
},
});

View File

@@ -37,9 +37,9 @@
"test:integration:sandbox:none": "GEMINI_SANDBOX=false vitest run --root ./integration-tests",
"test:integration:sandbox:docker": "GEMINI_SANDBOX=docker npm run build:sandbox && GEMINI_SANDBOX=docker vitest run --root ./integration-tests",
"test:integration:sandbox:podman": "GEMINI_SANDBOX=podman vitest run --root ./integration-tests",
"test:terminal-bench": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --root ./integration-tests terminal-bench.test.ts",
"test:terminal-bench:oracle": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --root ./integration-tests terminal-bench.test.ts -t 'oracle'",
"test:terminal-bench:qwen": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --root ./integration-tests terminal-bench.test.ts -t 'qwen'",
"test:terminal-bench": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests",
"test:terminal-bench:oracle": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests -t 'oracle'",
"test:terminal-bench:qwen": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests -t 'qwen'",
"lint": "eslint . --ext .ts,.tsx && eslint integration-tests",
"lint:fix": "eslint . --fix && eslint integration-tests --fix",
"lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0",