Skip to content

Commit 1b9ddeb

Browse files
committed
[ci] Remove Java Flight Recorder from CI and Maven Surefire target, as it seems to corrupt the std/in stream, see: https://maven.apache.org/surefire/maven-surefire-plugin/faq.html#corruptedstream
1 parent e0e2844 commit 1b9ddeb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/ci-test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, pull_request]
33
permissions:
44
contents: read
55
env:
6-
MAVEN_OPTS: -XX:StartFlightRecording=maxsize=5g,disk=true,dumponexit=true,settings=default,filename=./ -DtrimStackTrace=false -D'maven.resolver.transport=wagon'
6+
MAVEN_OPTS: -DtrimStackTrace=false -D'maven.resolver.transport=wagon'
77
DEV_JDK: '8'
88
jobs:
99
license:
@@ -81,6 +81,5 @@ jobs:
8181
name: ${{ runner.os }}-build-logs
8282
retention-days: 5
8383
path: |
84-
**/*.jfr
8584
**/hs_err_pid*.log
8685
**/target/surefire-reports/*

exist-parent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@
778778
However it can make it hard to diagnose problems if tests leak state; If you experience
779779
such a problem you may want to set it to `false` whilst debugging -->
780780
<reuseForks>true</reuseForks>
781-
<argLine>@{jacocoArgLine} -XX:+IgnoreUnrecognizedVMOptions --illegal-access=debug --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED -XX:StartFlightRecording=maxsize=5g,disk=true,dumponexit=true,settings=default,filename=${project.build.directory}/ -Dfile.encoding=${project.build.sourceEncoding}</argLine>
781+
<argLine>@{jacocoArgLine} -XX:+IgnoreUnrecognizedVMOptions --illegal-access=debug --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED -Dfile.encoding=${project.build.sourceEncoding}</argLine>
782782
<systemPropertyVariables>
783783
<user.country>UK</user.country>
784784
<user.language>en</user.language>

0 commit comments

Comments
 (0)