> Task :compileTestJava
Note: /home/ec2-user/app/step1/HearAndThere_Server/src/test/java/team_mic/here_and_there/backend/search/SearchKeywordTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :test
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 10153984 bytes for committing reserved memory.
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ebb08000, 10153984, 0) failed; error='Cannot allocate memory' (errno=12)
# An error report file with more information is saved as:
# /home/ec2-user/app/step1/HearAndThere_Server/hs_err_pid5296.log
> Task :test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> Process 'Gradle Test Executor 1' finished with non-zero exit value 1
This problem might be caused by incorrect test process configuration.
Please refer to the test execution section in the User Manual at https://docs.gradle.org/5.2.1/userguide/java_testing.html#sec:test_execution
배포 스크립트 실행 중 빌드 시 테스트 코드 실행 때문에 빌드 시간이 오래걸리고, 모든 테스트코드를 실행하다가 결국 JRE 메모리가 부족해지는 에러가 있었음.
배포 스크립트 실행 중 빌드 시 테스트 코드 실행 때문에 빌드 시간이 오래걸리고, 모든 테스트코드를 실행하다가 결국 JRE 메모리가 부족해지는 에러가 있었음.
해결
builde.gradle
하단에 추가완료 조건
Related issue
93
Reference
Check List