You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2026/10/11 12:46:39 UTC

(poi) branch trunk updated: Revert "Reduce the poi-integration test heap back to 2g (#1364)" (#1380)

This is an automated email from the ASF dual-hosted git repository.

pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 88731b352f Revert "Reduce the poi-integration test heap back to 2g (#1364)" (#1380)
88731b352f is described below

commit 88731b352ff41558740df13a19d1084fa37306b6
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Sun Oct 11 13:46:33 2026 +0100

    Revert "Reduce the poi-integration test heap back to 2g (#1364)" (#1380)
    
    This reverts commit d7126365c51443358b119e59f07363aca484e06d.
    
    With 2g, TestAllFiles still runs out of heap on some CI runs: the Ant job
    for #1377 logged "Retried waiting for GCLocker too often" and then the
    JUnit launcher died, and a Gradle Java 17 job for #1375 stalled in the
    build step for 40+ minutes while the same commit passed elsewhere.
    
    Co-authored-by: Claude Opus 5.5 <no...@anthropic.com>
---
 build.xml                    | 2 +-
 poi-integration/build.gradle | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/build.xml b/build.xml
index f1ddd471f8..163d3b90b7 100644
--- a/build.xml
+++ b/build.xml
@@ -1833,7 +1833,7 @@ under the License.
             <pathelement path="lib/ooxml-tests"/>
         </path>
 
-        <poiunit failureproperty="integration.test.failed" heap="2048" showoutput="true" jacocodest="build/jacoco-integration.exec"
+        <poiunit failureproperty="integration.test.failed" heap="3072" showoutput="true" jacocodest="build/jacoco-integration.exec"
                  modulepath-ref="test-integration.modules" module1="stress" outputDir="${integration.reports.test}">
             <zipfileset src="build/dist/maven/poi-integration/poi-integration-${version.id}.jar">
                 <include name="**/${testpattern}.class"/>
diff --git a/poi-integration/build.gradle b/poi-integration/build.gradle
index da365fe1f5..c9bf1b30ef 100644
--- a/poi-integration/build.gradle
+++ b/poi-integration/build.gradle
@@ -126,6 +126,13 @@ test {
 
     dependsOn { testJar }
 
+    // TestAllFiles materialises several large workbooks at once (the XSSF handlers hold every
+    // decompressed part of a stream-opened workbook on the heap, and load each file two or
+    // three times over), so it needs more heap than the 2g the root build.gradle gives the
+    // other modules: under heap pressure the JVM first stalls in "Retried waiting for GCLocker
+    // too often" and then kills the JUnit engine with an OutOfMemoryError.
+    maxHeapSize = '3g'
+
     // CI_BUILD is what the Jenkins nodes set; GitHub Actions sets CI=true.
     if (Boolean.valueOf(System.getenv("CI_BUILD")) || Boolean.valueOf(System.getenv("CI"))) {
         // On CI, also cap the parallelism: the default dynamic strategy runs one thread per


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org