fix(hubble): validate new FE/BE runtime and enable executable backend #1178
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "loader-ci" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| - /^release-.*$/ | |
| paths: | |
| - hugegraph-loader/** | |
| - hugegraph-dist/** | |
| - .github/workflows/** | |
| - pom.xml | |
| pull_request: | |
| paths: | |
| - hugegraph-loader/** | |
| - hugegraph-dist/** | |
| - hugegraph-client/** | |
| - .github/workflows/** | |
| - pom.xml | |
| jobs: | |
| loader-ci: | |
| runs-on: ubuntu-latest | |
| env: | |
| USE_STAGE: 'true' # Whether to include the stage repository. | |
| TRAVIS_DIR: hugegraph-loader/assembly/travis | |
| STATIC_DIR: hugegraph-loader/assembly/static | |
| # TODO: replace it with the (latest - n) commit id (n >= 15) | |
| # hugegraph commit date: 2025-10-30 | |
| COMMIT_ID: 5b3d295 | |
| DB_USER: root | |
| DB_PASS: root | |
| DB_DATABASE: load_test | |
| strategy: | |
| matrix: | |
| JAVA_VERSION: ['11', '17'] | |
| steps: | |
| - name: Fetch Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Install JDK ${{ matrix.JAVA_VERSION }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.JAVA_VERSION }} | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: use staged maven repo settings | |
| if: ${{ env.USE_STAGE == 'true' }} | |
| run: | | |
| mkdir -p $HOME/.m2 | |
| if [ -f $HOME/.m2/settings.xml ]; then cp $HOME/.m2/settings.xml /tmp/settings.xml; fi | |
| mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml | |
| - name: Compile | |
| run: | | |
| export MAVEN_OPTS="-XX:+IgnoreUnrecognizedVMOptions --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED" | |
| mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp | |
| - name: Prepare env and service | |
| run: | | |
| $TRAVIS_DIR/install-hadoop.sh | |
| $TRAVIS_DIR/install-mysql.sh ${{ env.DB_DATABASE }} ${{ env.DB_PASS }} | |
| $TRAVIS_DIR/install-hugegraph-from-source.sh $COMMIT_ID | |
| - name: Run test | |
| run: | | |
| export MAVEN_OPTS="-XX:+IgnoreUnrecognizedVMOptions --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED" | |
| cd hugegraph-loader | |
| mvn test -P unit -ntp || exit 1 | |
| mvn test -P file -ntp || exit 1 | |
| mvn test -P hdfs -ntp || exit 1 | |
| mvn test -P jdbc -ntp || exit 1 | |
| mvn test -P kafka -ntp || exit 1 | |
| continue-on-error: false | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| if: always() && matrix.JAVA_VERSION == '11' | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: hugegraph-loader/target/jacoco.xml | |
| fail_ci_if_error: false |