This is an automated email from the ASF dual-hosted git repository.
Baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new f18b23af75 [MINOR][TEST-ONLY] Add a test timeout to kill before
GitActions
f18b23af75 is described below
commit f18b23af75c4961c3a1accfdf81e30c37aba25e3
Author: Sebastian Baunsgaard <[email protected]>
AuthorDate: Wed May 20 17:44:14 2026 +0200
[MINOR][TEST-ONLY] Add a test timeout to kill before GitActions
This commit adds a timeout to surefire to allow the tests to timeout,
with a log message and stack trace rather than allowing github Actions
to kill the CI job.
When Actions kill the job, we do not know which tests are running or
blocking, while if we kill surefire we will.
---
pom.xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pom.xml b/pom.xml
index a70d89501c..c4206532a6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,6 +76,8 @@
<test-parallel>classes</test-parallel>
<test-threadCount>2</test-threadCount>
<test-forkCount>1C</test-forkCount>
+ <!-- Per-fork timeout in seconds; kills hung forks before the
30 min CI cap. -->
+ <test-forkedProcessTimeout>1380</test-forkedProcessTimeout>
<rerun.failing.tests.count>2</rerun.failing.tests.count>
<jacoco.skip>false</jacoco.skip>
<checkstyle.skip>true</checkstyle.skip>
@@ -406,6 +408,8 @@
<!-- 1C means the number of threads
times 1 possible maximum forks for testing-->
<forkCount>${test-forkCount}</forkCount>
<reuseForks>false</reuseForks>
+ <!-- Kill hung test forks before CI
cancels the whole job. -->
+
<forkedProcessTimeoutInSeconds>${test-forkedProcessTimeout}</forkedProcessTimeoutInSeconds>
<!-- <reportFormat>brief</reportFormat>
-->
<trimStackTrace>true</trimStackTrace>
<rerunFailingTestsCount>${rerun.failing.tests.count}</rerunFailingTestsCount>