diff --git a/.circleci/config.yml b/.circleci/config.yml index 283c0be9a..34b664523 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -69,6 +69,11 @@ commands: STARTER_DOCKER_IMAGE: 'docker.io/arangodb/arangodb-starter:0.18.5' SSL: <> COMPRESSION: <> + install: + steps: + - run: + name: mvn install + command: mvn install -Dmaven.test.skip -Dgpg.skip -Dmaven.javadoc.skip report: parameters: working_directory: @@ -139,9 +144,6 @@ jobs: args: type: 'string' default: '' - shaded: - type: 'string' - default: 'false' ssl: type: 'string' default: 'false' @@ -176,7 +178,6 @@ jobs: name: mvn dependency:tree command: | mvn dependency:tree -am -pl test-functional \ - -Dshaded=<> \ -Dssl=<> \ -Dnative=<> \ <> @@ -184,7 +185,6 @@ jobs: name: Test command: | mvn verify -am -pl test-functional -Dgpg.skip -Dmaven.javadoc.skip \ - -Dshaded=<> \ -Dssl=<> \ -Dnative=<> \ <> @@ -192,11 +192,77 @@ jobs: working_directory: test-functional - store_cache - test-non-func: + # DE-847 + # https://issues.apache.org/jira/browse/MSHADE-206 + # https://issues.apache.org/jira/browse/MNG-5899 + test-shaded: parameters: - shaded: + docker-img: + type: 'string' + default: <> + topology: + type: 'string' + default: 'single' + jdk: + type: 'string' + default: 'j21' + args: + type: 'string' + default: '' + ssl: type: 'string' default: 'false' + native: + type: 'string' + default: 'false' + graalvm-version: + type: 'string' + default: '21.0.2-graalce' + resource_class: + type: 'string' + default: 'medium' + executor: <> + resource_class: <> + steps: + - timeout + - checkout + - setup_remote_docker + - when: + condition: + equal: [ 'true', <> ] + steps: + - install-sdk: + sdk: 'java' + version: <> + - start-db: + docker-img: <> + topology: <> + ssl: <> + - load_cache + - install + - run: + name: mvn dependency:tree + working_directory: test-functional + command: | + mvn dependency:tree \ + -Dshaded \ + -Dssl=<> \ + -Dnative=<> \ + <> + - run: + name: Test + working_directory: test-functional + command: | + mvn verify -Dgpg.skip \ + -Dshaded \ + -Dssl=<> \ + -Dnative=<> \ + <> + - report: + working_directory: test-functional + - store_cache + + test-non-func: executor: 'j21' steps: - timeout @@ -209,12 +275,39 @@ jobs: - load_cache - run: name: mvn dependency:tree - command: mvn dependency:tree -am -pl test-non-functional -Dshaded=<> + command: mvn dependency:tree -am -pl test-non-functional - run: name: Test - command: mvn verify -am -pl test-non-functional -Dgpg.skip -Dmaven.javadoc.skip -Dshaded=<> + command: mvn verify -am -pl test-non-functional -Dgpg.skip -Dmaven.javadoc.skip - report: - working_directory: test-functional + working_directory: test-non-functional + - store_cache + + # DE-847 + # https://issues.apache.org/jira/browse/MSHADE-206 + # https://issues.apache.org/jira/browse/MNG-5899 + test-non-func-shaded: + executor: 'j21' + steps: + - timeout + - checkout + - setup_remote_docker + - install-sdk: + sdk: 'java' + version: '21.0.2-graalce' + - start-db + - load_cache + - install + - run: + name: mvn dependency:tree + working_directory: test-non-functional + command: mvn dependency:tree -Dshaded + - run: + name: Test + working_directory: test-non-functional + command: mvn verify -Dgpg.skip -Dmaven.javadoc.skip -Dshaded + - report: + working_directory: test-non-functional - store_cache sonar: @@ -266,10 +359,6 @@ jobs: resilience-test: executor: 'j21' resource_class: 'large' - parameters: - shaded: - type: 'string' - default: 'false' steps: - timeout - checkout @@ -287,10 +376,42 @@ jobs: TOXIPROXY_VERSION: v2.9.0 - run: name: mvn dependency:tree - command: mvn dependency:tree -am -pl test-resilience -Dshaded=<> + command: mvn dependency:tree -am -pl test-resilience - run: name: Test - command: mvn verify -am -pl test-resilience -Dgpg.skip -Dmaven.javadoc.skip -Dshaded=<> + command: mvn verify -am -pl test-resilience -Dgpg.skip -Dmaven.javadoc.skip + - store_cache + + # DE-847 + # https://issues.apache.org/jira/browse/MSHADE-206 + # https://issues.apache.org/jira/browse/MNG-5899 + resilience-test-shaded: + executor: 'j21' + resource_class: 'large' + steps: + - timeout + - checkout + - setup_remote_docker + - start-db: + topology: 'cluster' + compression: 'true' + - load_cache + - install + - run: + name: Start Toxiproxy + command: ./bin/startProxy.sh + working_directory: test-resilience + background: true + environment: + TOXIPROXY_VERSION: v2.9.0 + - run: + name: mvn dependency:tree + working_directory: test-resilience + command: mvn dependency:tree -Dshaded + - run: + name: Test + working_directory: test-resilience + command: mvn verify -Dgpg.skip -Dmaven.javadoc.skip -Dshaded - store_cache deploy: @@ -366,12 +487,16 @@ workflows: not: <> jobs: - test: - name: test-shaded=<>-ssl=<> + name: test-ssl=<> matrix: parameters: - shaded: + ssl: - 'true' - 'false' + - test-shaded: + name: test-shaded-ssl=<> + matrix: + parameters: ssl: - 'true' - 'false' @@ -409,16 +534,33 @@ workflows: only: - main - test: - name: test-native-shaded=<>-ssl=<> + name: test-native-ssl=<> matrix: parameters: native: - 'true' resource_class: - '2xlarge' - shaded: + ssl: - 'true' - 'false' + graalvm-version: + - '22.0.1-graalce' + - '21.0.2-graalce' + filters: + tags: + only: /^v.*/ + branches: + only: + - main + - test-shaded: + name: test-native-shaded-ssl=<> + matrix: + parameters: + native: + - 'true' + resource_class: + - '2xlarge' ssl: - 'true' - 'false' @@ -450,12 +592,9 @@ workflows: test-non-func: jobs: - test-non-func: - name: test-non-func-shaded=<> - matrix: - parameters: - shaded: - - 'true' - - 'false' + name: test-non-func + - test-non-func-shaded: + name: test-non-func-shaded sonar: when: @@ -473,12 +612,9 @@ workflows: resilience-test: jobs: - resilience-test: - name: resilience-test-shaded=<> - matrix: - parameters: - shaded: - - 'true' - - 'false' + name: resilience-test + - resilience-test-shaded: + name: resilience-test-shaded deploy: jobs: