From e5799b860b057dc0b33c8125bd0592e28a9263cc Mon Sep 17 00:00:00 2001 From: naveenaechan Date: Fri, 24 Nov 2023 09:53:54 +0530 Subject: [PATCH] PLT-191: CI action --- .github/workflows/ci-backend-cql.yml | 192 ------------------------- .github/workflows/ci-backend-hbase.yml | 105 -------------- .github/workflows/ci-core.yml | 90 ------------ .github/workflows/ci-docs.yml | 91 ------------ .github/workflows/ci-index-es.yml | 94 ------------ .github/workflows/ci-index-solr.yml | 91 ------------ .github/workflows/ci-java-11.yml | 99 ------------- .github/workflows/ci-release.yml | 122 ---------------- .github/workflows/lint-proto.yml | 36 ----- 9 files changed, 920 deletions(-) delete mode 100644 .github/workflows/ci-backend-cql.yml delete mode 100644 .github/workflows/ci-backend-hbase.yml delete mode 100644 .github/workflows/ci-core.yml delete mode 100644 .github/workflows/ci-docs.yml delete mode 100644 .github/workflows/ci-index-es.yml delete mode 100644 .github/workflows/ci-index-solr.yml delete mode 100644 .github/workflows/ci-java-11.yml delete mode 100644 .github/workflows/ci-release.yml delete mode 100644 .github/workflows/lint-proto.yml diff --git a/.github/workflows/ci-backend-cql.yml b/.github/workflows/ci-backend-cql.yml deleted file mode 100644 index 80a6b458a7..0000000000 --- a/.github/workflows/ci-backend-cql.yml +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright 2020 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Backend CQL - -on: - pull_request: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - push: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - -env: - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - tests: - runs-on: ubuntu-20.04 - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: cql - args: "-Pcassandra3-byteordered -Dtest=\"**/diskstorage/cql/*\"" - name: byteordered-diskstorage - java: 8 - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/diskstorage/cql/*\"" - name: murmur-diskstorage - java: 8 - - module: cql - args: "-Pcassandra3-byteordered -Dtest=\"**/graphdb/cql/*\"" - name: byteordered-graphdb - java: 8 - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/graphdb/cql/*\"" - name: murmur-graphdb - java: 8 - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/hadoop/*\"" - name: murmur-hadoop - java: 8 - - module: cql - args: "-Pcassandra3-byteordered -Dtest=\"**/core/cql/*\"" - name: byteordered-core - java: 8 - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/core/cql/*\"" - name: murmur-core - java: 8 - - module: cql - args: "-Pcassandra3-murmur-ssl -Dtest=\"**/diskstorage/cql/CQLStoreTest.java\"" - name: murmur-ssl - java: 8 - - module: cql - args: "-Pcassandra3-murmur-client-auth -Dtest=\"**/diskstorage/cql/CQLStoreTest.java\"" - name: murmur-client-auth - java: 8 - - module: cql - install-args: "-Pjava-11" - args: "-Pcassandra3-murmur -Pjava-11 -Dtest=\"**/diskstorage/cql/*\"" - name: murmur-diskstorage-java-11 - java: 11 - - module: cql - install-args: "-Pjava-11" - args: "-Pcassandra3-murmur -Pjava-11 -Dtest=\"**/graphdb/cql/*\"" - name: murmur-graphdb-java-11 - java: 11 - - module: cql - install-args: "-Pjava-11" - args: "-Pcassandra3-murmur -Pjava-11 -Dtest=\"**/hadoop/*\"" - name: murmur-hadoop-java-11 - java: 11 - - module: cql - args: "-Pscylladb -Dtest=\"**/diskstorage/cql/*\"" - name: scylladb-diskstorage - java: 8 - - module: cql - args: "-Pscylladb -Dtest=\"**/graphdb/cql/*\"" - name: scylladb-graphdb - java: 8 - # FIXME: this takes forever to run - # - module: cql - # args: "-Pscylladb -Dtest=\"**/hadoop/*\"" - # name: scylladb-hadoop - # java: 8 - - module: cql - args: "-Pscylladb -Dtest=\"**/core/cql/*\"" - name: scylladb-core - java: 8 - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }} - - uses: actions/upload-artifact@v2 - with: - name: jacoco-reports - path: target/jacoco-combined.exec - - uses: codecov/codecov-action@v1 - with: - name: codecov-cql-${{ matrix.name }} - - full-tests: - runs-on: ubuntu-20.04 - if: "github.event_name == 'push' && contains(github.event.head_commit.message, '[cql-tests]') || github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[cql-tests]')" - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: cql - args: "-Pcassandra3-byteordered -Dtest=\"**/diskstorage/cql/*\"" - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/diskstorage/cql/*\"" - - module: cql - args: "-Pcassandra3-byteordered -Dtest=\"**/graphdb/cql/*\"" - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/graphdb/cql/*\"" - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/hadoop/*\"" - - module: cql - args: "-Pcassandra3-byteordered -Dtest=\"**/core/cql/*\"" - - module: cql - args: "-Pcassandra3-murmur -Dtest=\"**/core/cql/*\"" - - module: cql - args: "-Pcassandra3-murmur-ssl -Dtest=\"**/diskstorage/cql/CQLStoreTest.java\"" - - module: cql - args: "-Pcassandra3-murmur-client-auth -Dtest=\"**/diskstorage/cql/CQLStoreTest.java\"" - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} -Dcassandra.docker.version='3.0.18' ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }} diff --git a/.github/workflows/ci-backend-hbase.yml b/.github/workflows/ci-backend-hbase.yml deleted file mode 100644 index 8b29d3ff23..0000000000 --- a/.github/workflows/ci-backend-hbase.yml +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 2020 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Backend Hbase - -on: - pull_request: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - push: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - -env: - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - tests: - runs-on: ubuntu-20.04 - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: hbase - args: "-Dtest=\"**/diskstorage/hbase/*\"" - name: hbase1-diskstorage - - module: hbase - args: "-Dtest=\"**/graphdb/hbase/*\"" - name: hbase1-graphdb - - module: hbase - args: "-Dtest=\"**/hadoop/*\"" - name: hbase1-hadoop - - module: hbase - install-args: "-Dhbase.profile -Phbase2" - args: "-Dtest=\"**/diskstorage/hbase/*\"" - name: hbase2-diskstorage - - module: hbase - install-args: "-Dhbase.profile -Phbase2" - args: "-Dtest=\"**/graphdb/hbase/*\"" - name: hbase2-graphdb - - module: hbase - install-args: "-Dhbase.profile -Phbase2" - args: "-Dtest=\"**/hadoop/*\"" - name: hbase2-hadoop - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }} -Dhbase.docker.uid=$(id -u) -Dhbase.docker.gid=$(id -g) - - uses: actions/upload-artifact@v2 - with: - name: jacoco-reports - path: target/jacoco-combined.exec - - uses: codecov/codecov-action@v1 - with: - name: codecov-hbase-${{ matrix.name }} diff --git a/.github/workflows/ci-core.yml b/.github/workflows/ci-core.yml deleted file mode 100644 index 0625c52c0e..0000000000 --- a/.github/workflows/ci-core.yml +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 2020 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Core - -on: - pull_request: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - push: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - -env: - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - tests: - runs-on: ubuntu-20.04 - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: driver - - module: server - - module: test - - module: inmemory - args: "-Dtest.skip.tp=false" - - module: berkeleyje - - module: lucene - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }} - - uses: actions/upload-artifact@v2 - with: - name: jacoco-reports - path: target/jacoco-combined.exec - - uses: codecov/codecov-action@v1 - with: - name: codecov-core-${{ matrix.module }} diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml deleted file mode 100644 index 42768abbae..0000000000 --- a/.github/workflows/ci-docs.yml +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 2020 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Docs - -on: - pull_request: - push: - -env: - STRUCTOR_VERSION: v1.11.2 - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - build-doc: - runs-on: ubuntu-20.04 - needs: build-all - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install -pl janusgraph-doc ${{ env.BUILD_MAVEN_OPTS }} - - run: git diff --exit-code docs/configs/janusgraph-cfg.md - - run: docker build -t doc-site:mkdocs -f docs.Dockerfile . - - run: docker run --rm -v $PWD:/mkdocs doc-site:mkdocs mkdocs build - - uses: actions/upload-artifact@v2 - if: github.ref != 'refs/heads/master' - with: - name: distribution-builds - path: site - - deploy-doc: - runs-on: ubuntu-20.04 - if: github.ref == 'refs/heads/master' - needs: build-doc - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - persist-credentials: false - - run: mkdir ./bin - - run: curl -sfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | bash -s -- -b ./bin ${STRUCTOR_VERSION} - - run: sudo ./bin/structor -o janusgraph -r janusgraph - --force-edit-url - --rqts-url="https://raw.githubusercontent.com/JanusGraph/janusgraph/master/requirements.txt" - --dockerfile-url="https://raw.githubusercontent.com/JanusGraph/janusgraph/master/docs.Dockerfile" - --dockerfile-name="https://raw.githubusercontent.com/JanusGraph/janusgraph/master/docs.Dockerfile" - --menu.js-url="https://raw.githubusercontent.com/JanusGraph/janusgraph/master/docs/theme/structor-menu.js.gotmpl" - --exp-branch=master --debug - - run: sudo chown -R $(id -u):$(id -g) . - - uses: JamesIves/github-pages-deploy-action@4.0.0-beta-01 - with: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - REPOSITORY_NAME: JanusGraph/docs.janusgraph.org - BRANCH: master - FOLDER: site diff --git a/.github/workflows/ci-index-es.yml b/.github/workflows/ci-index-es.yml deleted file mode 100644 index 846a8fea33..0000000000 --- a/.github/workflows/ci-index-es.yml +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 2020 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Index ES - -on: - pull_request: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - push: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - -env: - ES_JAVA_OPTS: "-Xms256m -Xmx512m" - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - tests: - runs-on: ubuntu-20.04 - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: es - args: "-Pelasticsearch7" - name: es7 - - module: es - args: "-Pelasticsearch6" - name: es6 - - module: es - args: "-Pelasticsearch60" - name: es60 - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }} - - uses: actions/upload-artifact@v2 - with: - name: jacoco-reports - path: target/jacoco-combined.exec - - uses: codecov/codecov-action@v1 - with: - name: codecov-index-${{ matrix.name }} diff --git a/.github/workflows/ci-index-solr.yml b/.github/workflows/ci-index-solr.yml deleted file mode 100644 index 48edf9cbdc..0000000000 --- a/.github/workflows/ci-index-solr.yml +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright 2020 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Index Solr - -on: - pull_request: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - push: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - -env: - ES_JAVA_OPTS: "-Xms256m -Xmx512m" - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - tests: - runs-on: ubuntu-20.04 - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: solr - args: "-Psolr7" - name: solr7 - - module: solr - args: "-Psolr8" - name: solr8 - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }} - - uses: actions/upload-artifact@v2 - with: - name: jacoco-reports - path: target/jacoco-combined.exec - - uses: codecov/codecov-action@v1 - with: - name: codecov-index-${{ matrix.name }} diff --git a/.github/workflows/ci-java-11.yml b/.github/workflows/ci-java-11.yml deleted file mode 100644 index d76fcb8496..0000000000 --- a/.github/workflows/ci-java-11.yml +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 2021 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Java 11 - -on: - pull_request: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - push: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - -env: - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - build-java11: - needs: build-all - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 11 - - run: mvn clean install --projects janusgraph-all -Pjava-11 -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjava-11 -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - tests: - runs-on: ubuntu-20.04 - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: driver - - module: server - - module: test - - module: inmemory - args: "-Dtest.skip.tp=false" - - module: berkeleyje - - module: lucene - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 11 - - run: mvn clean install --projects janusgraph-${{ matrix.module }} -Pjava-11 ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} -Pjava-11 ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }} - - uses: codecov/codecov-action@v1 diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml deleted file mode 100644 index d914c09696..0000000000 --- a/.github/workflows/ci-release.yml +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 2020 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: CI Release - -on: - pull_request: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - push: - paths-ignore: - - 'docs/**' - - '.github/workflows/ci-docs.yml' - - '.github/ISSUE_TEMPLATE/**' - - 'requirements.txt' - - 'docs.Dockerfile' - - '*.md' - schedule: - - cron: '0 0 * * 3' - -env: - ES_JAVA_OPTS: "-Xms256m -Xmx512m" - BUILD_MAVEN_OPTS: "-DskipTests=true --batch-mode --also-make" - VERIFY_MAVEN_OPTS: "-Pcoverage" - -jobs: - build-all: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-all -Pjanusgraph-cache -Dmaven.javadoc.skip=true ${{ env.BUILD_MAVEN_OPTS }} - - run: mvn verify --projects janusgraph-all -Pjanusgraph-cache ${{ env.VERIFY_MAVEN_OPTS }} - - dist-tests: - runs-on: ubuntu-20.04 - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - args: "" - java: 8 - - args: "-Pjava-11" - java: 11 - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - run: sudo apt-get update && sudo apt-get install -y expect - - run: mvn clean install -Pjanusgraph-release ${{ env.BUILD_MAVEN_OPTS }} -Dgpg.skip=true ${{ matrix.args }} - - run: mvn verify -pl janusgraph-dist -Pjanusgraph-release -Dgpg.skip=true ${{ matrix.args }} - - uses: actions/upload-artifact@v2 - with: - name: distribution-builds - path: janusgraph-dist/target/janusgraph-*.zip - - tp-tests: - runs-on: ubuntu-20.04 - if: "github.event_name == 'push' && contains(github.event.head_commit.message, '[tp-tests]') || github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[tp-tests]') || github.event_name == 'schedule'" - needs: build-all - strategy: - fail-fast: false - matrix: - include: - - module: inmemory - args: "-Dtest.skip.tp=false -DskipTests=true" - - module: berkeleyje - args: "-Dtest.skip.tp=false -DskipTests=true" - - module: cql - args: "-Pcassandra3-byteordered -Dtest.skip.tp=false -DskipTests=true" - - module: cql - args: "-Pcassandra3-murmur -Dtest.skip.tp=false -DskipTests=true" - - module: hbase - args: "-Dtest.skip.tp=false -DskipTests=true" - - module: hbase - install-args: "-Dhbase.profile -Phbase2" - args: "-Dtest.skip.tp=false -DskipTests=true" - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }} - - run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ matrix.args }} diff --git a/.github/workflows/lint-proto.yml b/.github/workflows/lint-proto.yml deleted file mode 100644 index e01009eb3e..0000000000 --- a/.github/workflows/lint-proto.yml +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2021 JanusGraph Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: Lint proto - -on: - push: - paths: - - 'janusgraph-grpc/**' - - '.github/workflows/lint-proto.yml' - pull_request: - paths: - - 'janusgraph-grpc/**' - - '.github/workflows/lint-proto.yml' - -jobs: - lint-proto: - name: buf check lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: ory/build-buf-action@v0 - with: - bufVersion: v0.31.1 - bufArgs: check lint --config janusgraph-grpc/buf.yaml ./janusgraph-grpc/src/main/proto/