Unexpected error happened when overriding

On my local machine i can run my tests with this command
./gradlew -Dorg.gradle.jvmargs="-ea -noverify" testDevDebugUnitTest --stacktrace

I have tried to add this command on the circle.yml file as an override like this:

test:
override:
- ./gradlew -Dorg.gradle.jvmargs="-ea -noverify" testDevDebugUnitTest --stacktrace

Everything seems fine, but at the end i get that tests has failed unexpectedly…

I dont see anything strange when i do SSH to the machine.

Can you provide the project name so we can take a look?

1 Like

Hi Drazisil,

The project is https://circleci.com/gh/dubizzle/shedd-app-android-rest

Thanks!
David.

It looks like you currently have a missing colon:

# In this file we can config Circle CI
test:
  override:
    - ./gradlew -Dorg.gradle.jvmargs="-ea -noverify" testDevDebugUnitTest: # see the added colon here
        timeout: 1800

Even increasing the timeout i am having the same error than before. Note that on my local machine it takes 2min. So with the default 10min should be fine.

Building 98% > :app:testDevDebugUnitTest> Building 98% > :app:testDevDebugUnitTest > 0 tests completed> Building 98% > :app:testDevDebugUnitTest > 1 test completed> Building 98% > :app:testDevDebugUnitTest > 3 tests completed> Building 98% > :app:testDevDebugUnitTest > 7 tests completed> Building 98% > :app:testDevDebugUnitTest > 8 tests completed> Building 98% > :app:testDevDebugUnitTest > 9 tests completed> Building 98% > :app:testDevDebugUnitTest > 10 tests completed> Building 98% > :app:testDevDebugUnitTest > 12 tests completed> Building 98% > :app:testDevDebugUnitTest > 13 tests completed> Building 98% > :app:testDevDebugUnitTest > 14 tests completed> Building 98% > :app:testDevDebugUnitTest > 15 tests completed> Building 98% > :app:testDevDebugUnitTest > 16 tests completed> Building 98% > :app:testDevDebugUnitTest > 17 tests completed> Building 98% > :app:testDevDebugUnitTest > 18 tests completed> Building 98% > :app:testDevDebugUnitTest > 19 tests completed> Building 98% > :app:testDevDebugUnitTest > 20 tests completed> Building 98% > :app:testDevDebugUnitTest > 21 tests completed> Building 98% > :app:testDevDebugUnitTest > 22 tests completed> Building 98% > :app:testDevDebugUnitTest > 23 tests completed> Building 98% > :app:testDevDebugUnitTest > 24 tests completed> Building 98% > :app:testDevDebugUnitTest > 25 tests completed> Building 98% > :app:testDevDebugUnitTest > 26 tests completed
./gradlew -Dorg.gradle.jvmargs=“-ea -noverify” testDevDebugUnitTest died unexpectedly

Thanks for the support @drazisil

I’m sorry, I’m not seeing it. Can you give me an exact build url please?

Sure,

https://circleci.com/gh/dubizzle/shedd-app-android-rest/57

Your build has exceeded the memory limit of 4G on 1 container. The results of this build are likely invalid. We have taken a snapshot of the memory usage at the time, which you can find in a build artifact named `memory-usage.txt`. The RSS column in this file shows the amount of memory used by each process, measured in kilobytes.

We have some troubleshooting tips here https://circleci.com/docs/1.0/oom/

@drazisil i added some limitations for memory usage and the problem persists…

Hello @dayerdl,

Could you please share your config including the memory limitations?

Best,
Zak

Hi Zzak, here you have:

Thanks!

machine:
environment:
GRADLE_OPTS: ‘-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"’

test:
override:
- ./gradlew -Dorg.gradle.jvmargs="-ea -noverify" testDevDebugUnitTest:
timeout: 1800