From 994c7a9131b4d018442fe11ff856beb509b4f5e0 Mon Sep 17 00:00:00 2001 From: Mirko Alicastro Date: Thu, 21 May 2026 11:23:51 +0200 Subject: [PATCH] Fix flaky P2 test failures caused by parallel fork lock contention --- lib-extra/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib-extra/build.gradle b/lib-extra/build.gradle index 2dee9a849b..99e8b233b2 100644 --- a/lib-extra/build.gradle +++ b/lib-extra/build.gradle @@ -70,6 +70,9 @@ def jar = tasks.named('jar', Jar) { tasks.withType(Test).configureEach { dependsOn jar classpath += jar.get().outputs.files + // P2 tests use a process-level file lock; parallel forks race for it. + // In-JVM synchronization in TestP2Provisioner is enough, so one fork is sufficient. + maxParallelForks = 1 } apply plugin: 'dev.equo.p2deps'