From 11cad3def2001f8493d5fac90f6fead3f66a821e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 17 Jun 2026 12:42:25 +0000 Subject: [PATCH 1/3] Cap test heap at -Xmx2g + mvn -e on Java test jobs (cross-repo diagnostics sync) Insert -Xmx2g into the surefire argLine (repo already had the -XX crash/heap-dump flags and memory before/after CI steps); add -e to the Java test mvn invocations. Implements workspace/policies/ci-test-diagnostics.md. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01JBzF5wtCjRu5t4FMzphryM --- .github/workflows/publish.yml | 10 +++++----- CLAUDE.md | 4 ++++ pom.xml | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e5d6e3e2..9b705e0b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -422,7 +422,7 @@ jobs: echo "${{ github.workspace }}/core.%e.%p" | sudo tee /proc/sys/kernel/core_pattern - name: Run tests run: | - mvn --no-transfer-progress -P jcstress test \ + mvn -e --no-transfer-progress -P jcstress test \ -Dnet.ladenthin.llama.nomic.path=models/${NOMIC_EMBED_MODEL_NAME} \ -Dnet.ladenthin.llama.vision.model=models/${VISION_MODEL_NAME} \ -Dnet.ladenthin.llama.vision.mmproj=models/${VISION_MMPROJ_NAME} \ @@ -539,7 +539,7 @@ jobs: run: ulimit -c unlimited - name: Run tests run: | - mvn --no-transfer-progress -Dnet.ladenthin.llama.test.ngl=0 test \ + mvn -e --no-transfer-progress -Dnet.ladenthin.llama.test.ngl=0 test \ -Dnet.ladenthin.llama.vision.model=models/${VISION_MODEL_NAME} \ -Dnet.ladenthin.llama.vision.mmproj=models/${VISION_MMPROJ_NAME} \ -Dnet.ladenthin.llama.vision.image=${VISION_IMAGE_PATH} @@ -603,7 +603,7 @@ jobs: run: ulimit -c unlimited - name: Run tests run: | - mvn --no-transfer-progress test \ + mvn -e --no-transfer-progress test \ -Dnet.ladenthin.llama.vision.model=models/${VISION_MODEL_NAME} \ -Dnet.ladenthin.llama.vision.mmproj=models/${VISION_MMPROJ_NAME} \ -Dnet.ladenthin.llama.vision.image=${VISION_IMAGE_PATH} @@ -667,7 +667,7 @@ jobs: run: ulimit -c unlimited - name: Run tests run: | - mvn --no-transfer-progress test \ + mvn -e --no-transfer-progress test \ -Dnet.ladenthin.llama.vision.model=models/${VISION_MODEL_NAME} \ -Dnet.ladenthin.llama.vision.mmproj=models/${VISION_MMPROJ_NAME} \ -Dnet.ladenthin.llama.vision.image=${VISION_IMAGE_PATH} @@ -750,7 +750,7 @@ jobs: Get-ItemProperty -Path $key | Format-List - name: Run tests run: | - mvn --no-transfer-progress test ` + mvn -e --no-transfer-progress test ` "-Dnet.ladenthin.llama.vision.model=models/$env:VISION_MODEL_NAME" ` "-Dnet.ladenthin.llama.vision.mmproj=models/$env:VISION_MMPROJ_NAME" ` "-Dnet.ladenthin.llama.vision.image=$env:VISION_IMAGE_PATH" diff --git a/CLAUDE.md b/CLAUDE.md index cf416af4..26c73c75 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -763,6 +763,10 @@ See [`../workspace/policies/jqwik-prompt-injection.md`](../workspace/policies/jq See [`../workspace/policies/lombok-config.md`](../workspace/policies/lombok-config.md). +## CI Test Diagnostics + +See [`../workspace/policies/ci-test-diagnostics.md`](../workspace/policies/ci-test-diagnostics.md). + ## JPMS Module Descriptor This repo ships a `module-info.java` compiled in a separate `release 9` execution. Javadoc diff --git a/pom.xml b/pom.xml index afb61c02..e04b0b74 100644 --- a/pom.xml +++ b/pom.xml @@ -587,7 +587,7 @@ SPDX-License-Identifier: MIT org.apache.maven.plugins maven-surefire-plugin - @{argLine} -XX:ErrorFile=hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=. + @{argLine} -Xmx2g -XX:ErrorFile=hs_err_pid%p.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=.