fix(test): bound Testbox agentic and extension suites (#115696)

* fix(test): split Testbox extension processes

* fix(test): split Testbox agentic processes
This commit is contained in:
Vincent Koc
2026-07-30 19:26:47 +08:00
committed by GitHub
parent 7a9d2c3e72
commit dac0ef6f0e
4 changed files with 30 additions and 3 deletions

View File

@@ -193,7 +193,7 @@ run_remote_testbox_full_test_gate() {
--ttl 240m \
--timing-json \
--label "$lease_label" \
-- env CI=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=install corepack pnpm test
-- env CI=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=install corepack pnpm test
}
read_remote_testbox_gate_stamp() {

View File

@@ -171,6 +171,7 @@ const EXTENSION_VOICE_CALL_VITEST_CONFIG = "test/vitest/vitest.extension-voice-c
const EXTENSION_WHATSAPP_VITEST_CONFIG = "test/vitest/vitest.extension-whatsapp.config.ts";
const EXTENSION_ZALO_VITEST_CONFIG = "test/vitest/vitest.extension-zalo.config.ts";
const EXTENSIONS_VITEST_CONFIG = "test/vitest/vitest.extensions.config.ts";
const FULL_AGENTIC_VITEST_CONFIG = "test/vitest/vitest.full-agentic.config.ts";
const FULL_EXTENSIONS_VITEST_CONFIG = "test/vitest/vitest.full-extensions.config.ts";
const GATEWAY_CLIENT_VITEST_CONFIG = "test/vitest/vitest.gateway-client.config.ts";
const GATEWAY_CORE_VITEST_CONFIG = "test/vitest/vitest.gateway-core.config.ts";
@@ -4758,7 +4759,13 @@ export function buildFullSuiteVitestRunPlans(args, cwd = process.cwd()) {
) {
return [];
}
const expandShard = expandToProjectConfigs;
// The remote Testbox full gate runs every agentic and extension project in one process tree.
// Bound project and worker lifetimes before either aggregate reaches V8's heap limit.
const expandShard =
expandToProjectConfigs ||
(process.env.OPENCLAW_TESTBOX_REMOTE_RUN === "1" &&
(shard.config === FULL_AGENTIC_VITEST_CONFIG ||
shard.config === FULL_EXTENSIONS_VITEST_CONFIG));
const configs = expandShard ? shard.projects : [shard.config];
return configs.flatMap((config) => {
if (expandShard && targetArgs.length === 0) {