@@ -4645,6 +4645,7 @@ describe("scripts/test-projects full-suite sharding", () => {
46454645 it ( "keeps CI=1 full-suite runs on aggregate shard configs" , ( ) => {
46464646 vi . stubEnv ( "CI" , "1" ) ;
46474647 vi . stubEnv ( "GITHUB_ACTIONS" , "" ) ;
4648+ vi . stubEnv ( "OPENCLAW_TESTBOX_REMOTE_RUN" , "" ) ;
46484649 vi . stubEnv ( "OPENCLAW_TEST_PROJECTS_LEAF_SHARDS" , "" ) ;
46494650 vi . stubEnv ( "OPENCLAW_TEST_PROJECTS_PARALLEL" , "" ) ;
46504651 try {
@@ -4710,6 +4711,24 @@ describe("scripts/test-projects full-suite sharding", () => {
47104711 expect ( specs [ 0 ] ?. env . NODE_OPTIONS ) . toBe ( "--max-old-space-size=12288 --max_old_space_size=8192" ) ;
47114712 } ) ;
47124713
4714+ it ( "splits the Testbox agentic and extension shards into bounded processes" , ( ) => {
4715+ vi . stubEnv ( "CI" , "1" ) ;
4716+ vi . stubEnv ( "GITHUB_ACTIONS" , "" ) ;
4717+ vi . stubEnv ( "OPENCLAW_TESTBOX_REMOTE_RUN" , "1" ) ;
4718+ vi . stubEnv ( "OPENCLAW_TEST_PROJECTS_LEAF_SHARDS" , "" ) ;
4719+ vi . stubEnv ( "OPENCLAW_TEST_PROJECTS_PARALLEL" , "" ) ;
4720+ try {
4721+ const configs = buildFullSuiteVitestRunPlans ( [ ] , process . cwd ( ) ) . map ( ( plan ) => plan . config ) ;
4722+
4723+ expect ( configs ) . not . toContain ( "test/vitest/vitest.full-agentic.config.ts" ) ;
4724+ expect ( configs ) . not . toContain ( "test/vitest/vitest.full-extensions.config.ts" ) ;
4725+ expect ( configs ) . toContain ( "test/vitest/vitest.agents-core.config.ts" ) ;
4726+ expect ( configs ) . toContain ( "test/vitest/vitest.extension-telegram.config.ts" ) ;
4727+ } finally {
4728+ vi . unstubAllEnvs ( ) ;
4729+ }
4730+ } ) ;
4731+
47134732 it ( "keeps explicit parallel overrides ahead of the host-aware profile" , ( ) => {
47144733 expect (
47154734 resolveParallelFullSuiteConcurrency (
0 commit comments