From ac9c93df99655f2643c4464013d5cdeaa5af936d Mon Sep 17 00:00:00 2001 From: Trevor Walker Date: Thu, 24 Sep 2026 23:10:06 -0600 Subject: [PATCH 1/2] test(server): allow realistic socket cleanup before post-kill assertion --- .../server/src/provider/prime/PrimeAgentDaemonManager.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/provider/prime/PrimeAgentDaemonManager.test.ts b/apps/server/src/provider/prime/PrimeAgentDaemonManager.test.ts index aecfc5082..ee2f0c00d 100644 --- a/apps/server/src/provider/prime/PrimeAgentDaemonManager.test.ts +++ b/apps/server/src/provider/prime/PrimeAgentDaemonManager.test.ts @@ -944,7 +944,9 @@ describe("PrimeAgentDaemonManager lifecycle", () => { shutdownRejects: true, shutdownDoesNotExit: true, postKillExitHangs: true, - shutdownTimeout: Duration.millis(5), + // This timeout also covers real private-socket cleanup before the exit wait. + // Leave room for filesystem scheduling under parallel CI load. + shutdownTimeout: Duration.millis(250), }); return closeFixtureLive(fixture).pipe( Effect.andThen( From a1ab9331f58082e1f4835cefce74078c8cf1d0ad Mon Sep 17 00:00:00 2001 From: Trevor Walker Date: Thu, 24 Sep 2026 23:20:12 -0600 Subject: [PATCH 2/2] test(server): disable background Git GC in PR template fixture --- apps/server/src/sourceControl/PrTemplateDetection.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/server/src/sourceControl/PrTemplateDetection.test.ts b/apps/server/src/sourceControl/PrTemplateDetection.test.ts index 5b91e6311..410981603 100644 --- a/apps/server/src/sourceControl/PrTemplateDetection.test.ts +++ b/apps/server/src/sourceControl/PrTemplateDetection.test.ts @@ -55,6 +55,9 @@ const runWithTempDirectory = ( const fileSystem = yield* FileSystem.FileSystem; const cwd = yield* fileSystem.makeTempDirectoryScoped({ prefix: "t3-pr-template-" }); yield* runGit(cwd, ["init", "--initial-branch=main"]); + // Auto maintenance may still write object packs after the scoped fixture + // starts removing this temporary repository under parallel CI load. + yield* runGit(cwd, ["config", "gc.auto", "0"]); yield* runGit(cwd, ["config", "user.email", "test@example.com"]); yield* runGit(cwd, ["config", "user.name", "Test User"]); return yield* test(cwd);