Update acceptance tests build arguments to capture JVM crash logs (#1327)

Update acceptance tests build arguments to capture JVM crash logs in CircleCI

Signed-off-by: Usman Saleem <usman@usmans.info>
pull/1341/head
Usman Saleem 4 years ago committed by GitHub
parent b66d2e67bf
commit 47777e2049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .circleci/config.yml
  2. 6
      acceptance-tests/tests/build.gradle

@ -63,8 +63,7 @@ commands:
path: acceptance-tests/tests/build/acceptanceTestLogs path: acceptance-tests/tests/build/acceptanceTestLogs
destination: acceptance-tests-logs destination: acceptance-tests-logs
- store_artifacts: - store_artifacts:
path: /home/circleci/project/acceptance-tests/tests/hs_err_pid* path: acceptance-tests/tests/build/jvmErrorLogs
destination: acceptance-tests-logs
jobs: jobs:
assemble: assemble:

@ -66,6 +66,8 @@ task acceptanceTest(type: Test) {
description = 'Runs Besu acceptance tests.' description = 'Runs Besu acceptance tests.'
group = 'verification' group = 'verification'
jvmArgs "-XX:ErrorFile=${buildDir}/jvmErrorLogs/java_err_pid%p.log"
testLogging { testLogging {
exceptionFormat = 'full' exceptionFormat = 'full'
showStackTraces = true showStackTraces = true
@ -73,4 +75,8 @@ task acceptanceTest(type: Test) {
showExceptions = true showExceptions = true
showCauses = true showCauses = true
} }
doFirst {
mkdir "${buildDir}/jvmErrorLogs"
}
} }

Loading…
Cancel
Save