From e6daf96ad4ee29ad9963babbeea201542129de6a Mon Sep 17 00:00:00 2001 From: Ben Hook <5009589+benhook1013@users.noreply.github.com> Date: Thu, 29 Oct 2026 21:22:19 +1300 Subject: [PATCH] build(account): run Linux integration suites in two isolated forks --- services/account-service/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/account-service/build.gradle.kts b/services/account-service/build.gradle.kts index 6c4b196df1..e088cffbae 100644 --- a/services/account-service/build.gradle.kts +++ b/services/account-service/build.gradle.kts @@ -130,6 +130,11 @@ tasks.named("test") { } tasks.named("integrationTest") { + // Isolate fixture statics in separate JVMs; JUnit methods remain serial within each suite. + // Keep other platforms' existing single-fork behavior and respect a one-worker invocation. + if (System.getProperty("os.name").lowercase().startsWith("linux")) { + maxParallelForks = minOf(2, gradle.startParameter.maxWorkerCount) + } // Composition fixtures load Game Session and Common Saga migrations directly from the filesystem. inputs.dir(project(":game-session-service").file("src/main/resources/db/migration")) .withPathSensitivity(PathSensitivity.RELATIVE)