Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/check-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
java-version: '17'
distribution: 'temurin'

- name: use staged maven repo settings
if: ${{ env.USE_STAGE == 'true' }}
Expand Down
27 changes: 23 additions & 4 deletions .github/workflows/cluster-test-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
USE_STAGE: 'false' # Whether to include the stage repository.

steps:
- name: Install JDK 11
- name: Install JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- name: Cache Maven packages
Expand All @@ -45,8 +45,27 @@ jobs:

- name: Run simple cluster test
run: |
mvn test -pl hugegraph-cluster-test/hugegraph-clustertest-test -am -P simple-cluster-test
timeout 45m mvn test -pl hugegraph-cluster-test/hugegraph-clustertest-test \
-am -P simple-cluster-test

- name: Run multi cluster test
run: |
mvn test -pl hugegraph-cluster-test/hugegraph-clustertest-test -am -P multi-cluster-test
timeout 45m mvn test -pl hugegraph-cluster-test/hugegraph-clustertest-test \
-am -P multi-cluster-test

- name: Show cluster diagnostics on failure
if: failure()
run: |
echo "[ci] java processes:"
ps -ef | grep -E "HugeGraph|hg-|java" | grep -v grep || true
echo "[ci] listening tcp ports:"
(ss -ltnp || netstat -ltnp || true) 2>&1
find hugegraph-cluster-test -path '*/logs/*' -type f | sort | while read -r log; do
echo "--- tail -n 200 $log ---"
tail -n 200 "$log" || true
done
find . -path '*/surefire-reports/*' -type f \
\( -name '*.txt' -o -name '*.xml' \) | sort | while read -r report; do
echo "--- tail -n 120 $report ---"
tail -n 120 "$report" || true
done
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
java-version: '17'

- name: use staged maven repo settings
if: ${{ env.USE_STAGE == 'true' }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/commons-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
push:
branches:
- master
- /^release-.*$/
- /^test-.*$/
- 'release-*'
- 'test-*'
pull_request:

jobs:
Expand All @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
JAVA_VERSION: ['11']
JAVA_VERSION: ['17']

steps:
- name: Install JDK ${{ matrix.JAVA_VERSION }}
Expand Down Expand Up @@ -51,11 +51,13 @@ jobs:

- name: Run common test
run: |
mvn test -pl hugegraph-commons/hugegraph-common -Dtest=UnitTestSuite -DskipCommonsTests=false
mvn test -pl hugegraph-commons/hugegraph-common -Dtest=UnitTestSuite \
-DskipCommonsTests=false -Dsurefire.failIfNoSpecifiedTests=true

- name: Run rpc test
run: |
mvn test -pl hugegraph-commons/hugegraph-rpc -Dtest=UnitTestSuite -DskipCommonsTests=false
mvn test -pl hugegraph-commons/hugegraph-rpc -Dtest=UnitTestSuite \
-DskipCommonsTests=false -Dsurefire.failIfNoSpecifiedTests=true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.0.0
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/docker-build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ on:
paths:
- '**/Dockerfile*'
- '.dockerignore'
- '.github/workflows/docker-build-ci.yml'
- 'hugegraph-server/hugegraph-dist/docker/**'
- 'hugegraph-server/hugegraph-dist/src/assembly/static/bin/util.sh'
- 'hugegraph-server/hugegraph-dist/src/assembly/static/bin/**'
- 'hugegraph-server/hugegraph-dist/src/assembly/static/conf/**'
- 'pom.xml'
- 'hugegraph-server/**'
- 'hugegraph-pd/**'
- 'hugegraph-store/**'
- 'hugegraph-commons/**'
- 'hugegraph-struct/**'

jobs:
docker-build:
Expand All @@ -54,6 +62,15 @@ jobs:
echo "Healthcheck: $HC"
[[ "$HC" != "null" ]] || { echo "ERROR: HEALTHCHECK missing in ${{ matrix.dockerfile }}"; exit 1; }

- name: Verify Java 17 runtime in ${{ matrix.dockerfile }}
run: |
JAVA_VERSION=$(docker run --rm --entrypoint java "$IMAGE_ID" -version 2>&1)
echo "$JAVA_VERSION"
grep -Eq 'version "17\.' <<< "$JAVA_VERSION" || {
echo "ERROR: expected a Java 17 runtime in ${{ matrix.dockerfile }}"
exit 1
}

- name: Test server entrypoint property mapping
if: matrix.dockerfile == 'hugegraph-server/Dockerfile'
run: bash hugegraph-server/hugegraph-dist/docker/test/test-docker-entrypoint.sh
Expand Down
Loading
Loading