@@ -992,10 +992,6 @@ describe("scripts/test-projects changed-target routing", () => {
992992 "src/agents/embedded-agent-runner/run.before-agent-reply-cron.test.ts" ,
993993 "test/vitest/vitest.agents-embedded-agent.config.ts" ,
994994 ] ,
995- [
996- "src/agents/embedded-agent-runner/run.incomplete-turn.classification.test.ts" ,
997- "test/vitest/vitest.unit-fast-isolated.config.ts" ,
998- ] ,
999995 [
1000996 "src/agents/embedded-agent-runner/run.overflow-compaction.test.ts" ,
1001997 "test/vitest/vitest.agents-embedded-agent-overflow-compaction.config.ts" ,
@@ -1021,6 +1017,28 @@ describe("scripts/test-projects changed-target routing", () => {
10211017 ] ) ;
10221018 } ) ;
10231019
1020+ it ( "routes every split incomplete-turn test to its dedicated serial shard" , ( ) => {
1021+ const root = "src/agents/embedded-agent-runner" ;
1022+ const discovered = fs
1023+ . readdirSync ( root )
1024+ . filter ( ( name ) => name . startsWith ( "run.incomplete-turn." ) && name . endsWith ( ".test.ts" ) )
1025+ . map ( ( name ) => `${ root } /${ name } ` )
1026+ . toSorted ( ) ;
1027+ const owned = agentVitestProjectOwners . embeddedIncompleteTurn . include . toSorted ( ) ;
1028+
1029+ expect ( owned ) . toEqual ( discovered ) ;
1030+ for ( const testFile of discovered ) {
1031+ expect ( buildVitestRunPlans ( [ testFile ] ) ) . toEqual ( [
1032+ {
1033+ config : "test/vitest/vitest.agents-embedded-agent-incomplete-turn.config.ts" ,
1034+ forwardedArgs : [ ] ,
1035+ includePatterns : [ testFile ] ,
1036+ watchMode : false ,
1037+ } ,
1038+ ] ) ;
1039+ }
1040+ } ) ;
1041+
10241042 it . each ( [
10251043 [
10261044 "src/agents/embedded-agent-runner/run" ,
0 commit comments