From 2ad9d23ad9e4b384fe085122ca69ee5d5e023410 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 15 Jun 2026 16:38:31 +0200 Subject: [PATCH] fix(ci): give the backend test fork 120s to shut down MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All 2327 tests pass, but the build went red: after the suite finishes, Surefire calls System.exit(0) and the single reused fork then closes ~32 cached Spring contexts at once — each tearing down a Testcontainers Postgres + HikariCP pool — which overruns Surefire's 30s default post-exit grace. Surefire force-kills the fork and reports a fork timeout (BUILD FAILURE with 0 failures). The session-cleanup InterruptedException and Testcontainers reaper NotFoundException in the log are symptoms of that contended teardown. Set the previously-unset forkedProcessExitTimeoutInSeconds to 120s. This is a different knob from forkedProcessTimeoutInSeconds (total/inactivity), already 600s, which is why the earlier ceiling bumps never addressed this failure. Phase B of #848; the durable fix (singleton Testcontainers Postgres + disabling the Spring Session JDBC cleanup scheduler in tests) follows. Co-Authored-By: Claude Opus 4.8 --- backend/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/pom.xml b/backend/pom.xml index b01f2362..20e34b91 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -369,6 +369,12 @@ maven-surefire-plugin 600 + + 120 90 s