Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,31 @@ jobs:
java-version: '21'
distribution: temurin
cache: maven
- name: Memory before tests
run: free -h
- name: Test
run: mvn --batch-mode --no-transfer-progress -P jcstress verify
run: mvn -e --batch-mode --no-transfer-progress -P jcstress verify
- uses: actions/upload-artifact@v7
with:
name: jacoco-report
path: target/site/jacoco/jacoco.xml
if-no-files-found: ignore
- name: Memory after tests
if: always()
run: free -h
- name: Upload crash & surefire dumps
if: failure()
uses: actions/upload-artifact@v7
with:
name: crash-dumps-test
path: |
${{ github.workspace }}/hs_err_pid*.log
${{ github.workspace }}/*.hprof
${{ github.workspace }}/target/surefire-reports/*.dump
${{ github.workspace }}/target/surefire-reports/*.dumpstream
${{ github.workspace }}/target/surefire-reports/*.txt
${{ github.workspace }}/target/surefire-reports/TEST-*.xml
if-no-files-found: ignore
- name: Run PIT mutation tests
run: mvn --batch-mode --no-transfer-progress test-compile org.pitest:pitest-maven:mutationCoverage
- name: Extract PIT survivors
Expand Down
4 changes: 4 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ Run `mvn spotless:apply` before every commit that touches `.java` files.

See [`../workspace/policies/jqwik-prompt-injection.md`](../workspace/policies/jqwik-prompt-injection.md).

## CI Test Diagnostics

See [`../workspace/policies/ci-test-diagnostics.md`](../workspace/policies/ci-test-diagnostics.md).

## Lombok Config

See [`../workspace/policies/lombok-config.md`](../workspace/policies/lombok-config.md).
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,15 @@ SPDX-License-Identifier: Apache-2.0
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
<configuration>
<!--
argLine starts with @{argLine} so the JaCoCo agent (placed into the
argLine property by jacoco:prepare-agent) survives via late property
replacement; dropping it would detach the agent and break coverage.
The remaining flags add cross-repo-standard test JVM diagnostics:
a 2 GB heap cap, a heap dump on OutOfMemoryError into the working
directory, and a JVM fatal-error log named per crashing PID.
-->
<argLine>@{argLine} -Xmx2g -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=. -XX:ErrorFile=hs_err_pid%p.log</argLine>
<!--
The vmlens interleaving smoke test is meaningful only when run
under the vmlens agent (the `vmlens` profile / CI job). Without the
Expand Down
Loading