Maven build killed problems

cci-20

#1

Hello after the migration to 2 my maven builds are being killed, not in the same test, with this message:

Running br.com.caelum.gnarus.dao.LoginTokenDAOTest
Killed

Results :

Tests run: 1008, Failures: 0, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:12 min
[INFO] Finished at: 2017-08-25T15:54:30Z
[INFO] Final Memory: 51M/873M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project gnarus: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/circleci/gnarus && /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/circleci/gnarus/target/surefire/surefirebooter5258221567799400362.jar /home/circleci/gnarus/target/surefire/surefire8316230146188958929tmp /home/circleci/gnarus/target/surefire/surefire_01914207925341795612tmp
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Exited with code 1

and here is my config.yml :

version: 2.0
jobs:
build:
working_directory: ~/gnarus

docker:
  - image: maven:3.3.9-jdk-8
    environment:
     - cmd=/bin/bash
  - image: circleci/mysql:5.6
    environment:
      - MYSQL_DATABASE=gnarus_test
      - MYSQL_ALLOW_EMPTY_PASSWORD=yes
      - MYSQL_USER=root
      - MYSQL_ROOT_HOST=%
    command:
      mysqld --sql-mode=IGNORE_SPACE,NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
steps:
  - checkout
  - restore_cache:
     key: gnarus-{{ checksum "pom.xml" }}
  - run: mvn dependency:go-offline
  - save_cache:
      paths:
       - ~/.m2
      key: gnarus-{{ checksum "pom.xml" }}
  - run:
      name: install dockerize
      command:  wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz &&  rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
      environment:
        DOCKERIZE_VERSION: v0.3.0
  - run:
      name: Wait for db
      command: dockerize -wait tcp://localhost:3306 -timeout 1m
  - run:
      name: Criando pasta do log
      command:  mkdir -p /aluralogs/ &&  chmod 777 /aluralogs/
  - run:
      name: Run tests
      no_output_timeout: 30m
      environment:
        MAVEN_OPTS: -showversion -Xms256m -Xmx4096m
      command: mvn clean test -Dmaven.javadoc.skip=true --debug

build-wars:

working_directory: ~/gnarus
docker:
  - image: circleci/openjdk:8-jdk-browsers
steps:
  - checkout
  - restore_cache:
     key: gnarus-{{ checksum "pom.xml" }}
     paths:
      - ~/.m2
  - run: mvn dependency:go-offline
  - save_cache:
      paths:
       - ~/.m2
      key: gnarus-{{ checksum "pom.xml" }}
  - restore_cache:
     key: node_modules-{{ checksum "package.json" }}
     paths:
        - ~/gnarus/node_modules
  - run:
      name: Install node and dependencies(package.json)
      command: wget https://nodejs.org/dist/v0.12.2/node-v0.12.2-linux-x64.tar.gz && mkdir -p ~/node &&tar -C ~/ -xzf node-v0.12.2-linux-x64.tar.gz && export PATH="$PATH:$HOME/node-v0.12.2-linux-x64/bin" && cd ~/gnarus && npm install
  - save_cache:
      paths:
       - ~/gnarus/node_modules
      key: node_modules-{{ checksum "package.json" }}
  - run:
      name: Run grunt
      command: |
              export PATH="$PATH:$HOME/node-v0.12.2-linux-x64/bin" &&
              mkdir -p src/main/assets &&
              cp -R src/main/webapp/script src/main/assets/ &&
              rm -r src/main/webapp/script &&
              cp -R src/main/webapp/style src/main/assets/ &&
              rm -r src/main/webapp/style &&
              node_modules/grunt-cli/bin/grunt build
  - run:
      name: Build Alura
      command: mvn clean package -Dmaven.test.skip=true -Palura
  - store_artifacts:
      path: ~/gnarus/target/gnarus.war
      destination: alura.war
  - run:
      name: Build Musicdot
      command: mvn clean package -Dmaven.test.skip=true -Pmusicdot
  - store_artifacts:
      path: ~/gnarus/target/gnarus.war
      destination: musicdot.war
  - run:
      name: Build Alura Lingua
      command: mvn clean package -Dmaven.test.skip=true -Paluralingua
  - store_artifacts:
      path: ~/gnarus/target/gnarus.war
      destination: alura-lingua.war
  - run:
      name: Build Alura Start
      command: mvn clean package -Dmaven.test.skip=true -Palurastart
  - store_artifacts:
      path: ~/gnarus/target/gnarus.war
      destination: alura-start.war

workflows:
version: 2

build_and_test:
jobs:
- build
- build-wars:
requires:
- build
filters:
branches:
only:
- deploy


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.