diff --git a/.dockerignore b/.dockerignore index d986f37c3..af6405a34 100644 --- a/.dockerignore +++ b/.dockerignore @@ -15,10 +15,7 @@ # Version-control and local development metadata .git -.github/** -!.github/scripts/ -.github/scripts/** -!.github/scripts/verify_candidate_image_sdk.py +.github .idea .vscode .codex-task diff --git a/.gitattributes b/.gitattributes index 2638b09a5..a2b1a2dfc 100755 --- a/.gitattributes +++ b/.gitattributes @@ -8,9 +8,11 @@ apache-release.sh export-ignore .licenserc.yaml export-ignore # ignored directory -.github/workflows/ export-ignore -.github/outdated/ export-ignore +.github/ export-ignore hugegraph-dist/scripts/ export-ignore .serena/ export-ignore # only exclude the root /assembly/ export-ignore + +# Exclude documentation screenshots; keep Hubble frontend assets for builds. +/hugegraph-hubble/docs/images/ export-ignore diff --git a/.github/actions/setup-candidate-sdk/action.yml b/.github/actions/setup-candidate-sdk/action.yml index 849486966..4fabeb259 100644 --- a/.github/actions/setup-candidate-sdk/action.yml +++ b/.github/actions/setup-candidate-sdk/action.yml @@ -78,7 +78,7 @@ runs: exit 1 fi CANDIDATE_SOURCE_COMMIT="$SERVER_COMMIT" \ - python3 "$GITHUB_WORKSPACE/.github/scripts/verify_candidate_image_sdk.py" "$candidate_repo" \ + python3 "$GITHUB_WORKSPACE/hugegraph-client/assembly/travis/verify_candidate_image_sdk.py" "$candidate_repo" \ --configure-upstream-env "$GITHUB_ENV" manifest_artifact_id=$(python3 -c 'import uuid; print(uuid.uuid4().hex)') archive_sha=$(sha256sum "${archives[0]}" | cut -d ' ' -f 1) diff --git a/.github/actions/setup-hugegraph-server/action.yml b/.github/actions/setup-hugegraph-server/action.yml index 42e1a2b1d..3776afac7 100644 --- a/.github/actions/setup-hugegraph-server/action.yml +++ b/.github/actions/setup-hugegraph-server/action.yml @@ -45,7 +45,7 @@ runs: uses: actions/cache@v4 with: path: ~/hugegraph-fixture-cache - key: server-fixture-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.repository }}-${{ inputs.commit-id }}-release${{ inputs.release-version }}-jdk${{ inputs.java-version }}-${{ hashFiles('.github/actions/setup-hugegraph-server/action.yml', '.github/actions/setup-hugegraph-server/fixture.sh', '.github/actions/setup-hugegraph-server/manifest.py', '.github/actions/setup-hugegraph-server/release.py', '.github/actions/setup-java-env/action.yml', '.github/configs/settings.xml', 'hugegraph-client/assembly/travis/checkout-server.sh', 'hugegraph-client/assembly/travis/install-candidate-sdk.sh', 'hugegraph-client/assembly/travis/start-hugegraph-servers.sh', 'hugegraph-client/assembly/travis/tls-fixture.sh', 'hugegraph-*/assembly/travis/install-hugegraph-from-source.sh', 'hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh') }} + key: server-fixture-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.repository }}-${{ inputs.commit-id }}-release${{ inputs.release-version }}-jdk${{ inputs.java-version }}-${{ hashFiles('.github/actions/setup-hugegraph-server/action.yml', 'hugegraph-client/assembly/travis/fixture.sh', 'hugegraph-client/assembly/travis/manifest.py', 'hugegraph-client/assembly/travis/release.py', '.github/actions/setup-java-env/action.yml', '.github/configs/settings.xml', 'hugegraph-client/assembly/travis/checkout-server.sh', 'hugegraph-client/assembly/travis/install-candidate-sdk.sh', 'hugegraph-client/assembly/travis/start-hugegraph-servers.sh', 'hugegraph-client/assembly/travis/tls-fixture.sh', 'hugegraph-*/assembly/travis/install-hugegraph-from-source.sh', 'hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh') }} - name: Prepare fixture or start service shell: bash env: @@ -53,7 +53,7 @@ runs: FIXTURE_REPOSITORY: ${{ inputs.repository }} FIXTURE_COMMIT: ${{ inputs.commit-id }} FIXTURE_REF: ${{ inputs.fetch-ref }} - FIXTURE_BUILD_INPUTS: ${{ hashFiles('.github/actions/setup-hugegraph-server/action.yml', '.github/actions/setup-hugegraph-server/fixture.sh', '.github/actions/setup-hugegraph-server/manifest.py', '.github/actions/setup-hugegraph-server/release.py', '.github/actions/setup-java-env/action.yml', '.github/configs/settings.xml', 'hugegraph-client/assembly/travis/checkout-server.sh', 'hugegraph-client/assembly/travis/install-candidate-sdk.sh', 'hugegraph-client/assembly/travis/start-hugegraph-servers.sh', 'hugegraph-client/assembly/travis/tls-fixture.sh', 'hugegraph-*/assembly/travis/install-hugegraph-from-source.sh', 'hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh') }} + FIXTURE_BUILD_INPUTS: ${{ hashFiles('.github/actions/setup-hugegraph-server/action.yml', 'hugegraph-client/assembly/travis/fixture.sh', 'hugegraph-client/assembly/travis/manifest.py', 'hugegraph-client/assembly/travis/release.py', '.github/actions/setup-java-env/action.yml', '.github/configs/settings.xml', 'hugegraph-client/assembly/travis/checkout-server.sh', 'hugegraph-client/assembly/travis/install-candidate-sdk.sh', 'hugegraph-client/assembly/travis/start-hugegraph-servers.sh', 'hugegraph-client/assembly/travis/tls-fixture.sh', 'hugegraph-*/assembly/travis/install-hugegraph-from-source.sh', 'hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh') }} FIXTURE_PLATFORM: ${{ runner.os }}-${{ runner.arch }} FIXTURE_JAVA: ${{ inputs.java-version }} FIXTURE_RELEASE_VERSION: ${{ inputs.release-version }} @@ -63,7 +63,7 @@ runs: SERVER_REPOSITORY: ${{ inputs.repository }} SERVER_FETCH_REF: ${{ inputs.fetch-ref }} TRAVIS_DIR: ${{ inputs.travis-dir }} - FIXTURE_ACTION: ${{ github.action_path }} + FIXTURE_ACTION: ${{ github.workspace }}/hugegraph-client/assembly/travis FIXTURE_ARTIFACT: ${{ inputs.artifact-name }} run: | set -euo pipefail diff --git a/.github/actions/setup-hugegraph-server/runtime_test.py b/.github/actions/setup-hugegraph-server/runtime_test.py index 024d2b79a..7943a33c8 100644 --- a/.github/actions/setup-hugegraph-server/runtime_test.py +++ b/.github/actions/setup-hugegraph-server/runtime_test.py @@ -28,6 +28,7 @@ HERE = Path(__file__).resolve().parent ROOT = HERE.parents[2] +HELPERS = ROOT / "hugegraph-client/assembly/travis" SHA = 'b12425c2032bf0d21a97b8221f42a18055c2982f' class RuntimeTests(unittest.TestCase): @@ -39,8 +40,8 @@ def setUp(self): self.action = self.dir / 'action' self.action.mkdir() for name in ('fixture.sh', 'manifest.py', 'release.py', 'service-wait.sh'): - shutil.copyfile(HERE / name, self.action / name) - spec = importlib.util.spec_from_file_location('fixture_release', HERE / 'release.py') + shutil.copyfile(HELPERS / name, self.action / name) + spec = importlib.util.spec_from_file_location('fixture_release', HELPERS / 'release.py') self.release = importlib.util.module_from_spec(spec) spec.loader.exec_module(self.release) checksum = hashlib.sha512(b'archive').hexdigest() @@ -145,7 +146,7 @@ def test_composite_step_isolates_fixture_jdk_from_caller(self): self.assertIn('Fixture JDK mismatch', result.stderr) def test_legacy_bash_service_deadline_and_success(self): - helper = str(HERE/'service-wait.sh') + helper = str(HELPERS/'service-wait.sh') self.command('curl', 'exit 1\n') result = subprocess.run( ['bash','-c',f'source "{helper}"; fixture_wait http://localhost:1'], @@ -211,7 +212,7 @@ def log_message(self, *args): self.addCleanup(server.server_close) self.addCleanup(server.shutdown) Thread(target=server.serve_forever, daemon=True).start() - helper = str(HERE/'service-wait.sh') + helper = str(HELPERS/'service-wait.sh') result = subprocess.run(['bash','-c',f'source "{helper}"; fixture_wait http://127.0.0.1:{server.server_port}'], env=self.env, capture_output=True, timeout=5) self.assertEqual(result.returncode, 0, result.stderr) diff --git a/.github/scripts/build-java17-image.sh b/.github/scripts/build-java17-image.sh index 7e8841691..8c8fbf850 100644 --- a/.github/scripts/build-java17-image.sh +++ b/.github/scripts/build-java17-image.sh @@ -41,7 +41,7 @@ trap report_failure ERR mkdir -p "$work/builder/repository/org/apache" phase="verify candidate SDK" phase_log="$evidence/sdk-verification.log" -python3 "$root/.github/scripts/verify_candidate_image_sdk.py" "$repository" \ +python3 "$root/hugegraph-client/assembly/travis/verify_candidate_image_sdk.py" "$repository" \ > "$evidence/sdk-verification.log" 2>&1 phase="prepare candidate provenance" phase_log="$evidence/prepare.log" diff --git a/.github/scripts/java17_image.py b/.github/scripts/java17_image.py index c0762de8d..92da4bd11 100644 --- a/.github/scripts/java17_image.py +++ b/.github/scripts/java17_image.py @@ -31,10 +31,11 @@ import time import uuid -from verify_candidate_image_sdk import source_commit, validate_sdk from pathlib import Path ROOT = Path(__file__).resolve().parents[2] +sys.path.insert(0, str(ROOT / "hugegraph-client/assembly/travis")) +from verify_candidate_image_sdk import source_commit, validate_sdk HELPER = ROOT / "hugegraph-hubble/hubble-dist/assembly/travis/run_live_hubble_smoke.py" SPEC = importlib.util.spec_from_file_location("hubble_smoke", HELPER) HTTP = importlib.util.module_from_spec(SPEC) diff --git a/.github/scripts/test_candidate_sdk.py b/.github/scripts/test_candidate_sdk.py index 6ce5024d2..4f765d153 100644 --- a/.github/scripts/test_candidate_sdk.py +++ b/.github/scripts/test_candidate_sdk.py @@ -25,12 +25,14 @@ from pathlib import Path import shutil import subprocess +import sys import tempfile import textwrap import unittest import uuid import xml.etree.ElementTree as ET +sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "hugegraph-client/assembly/travis")) import verify_candidate_image_sdk as sdk @@ -605,7 +607,7 @@ def test_source_build_defaults_agree_without_changing_historical_runtime_fixture upstream = (root / ".github/workflows/upstream-compatibility.yml").read_text() self.assertIn("ref: master", upstream) self.assertNotIn("validation-mode: release", upstream) - release = (root / ".github/actions/setup-hugegraph-server/release.py").read_text() + release = (root / "hugegraph-client/assembly/travis/release.py").read_text() self.assertIn('VERSION = "1.7.0"', release) self.assertIn('apache-hugegraph-incubating-1.7.0.tar.gz', release) @@ -630,8 +632,8 @@ def run_action(self, root, revision, corrupt=None): 'cp -R "$SDK_FIXTURE/." "$3/"\n' 'mkdir -p "$2/hugegraph-server"\n' 'printf archive > "$2/hugegraph-server/apache-hugegraph-fixture.tar.gz"\n') - verifier = workspace / ".github/scripts/verify_candidate_image_sdk.py" - verifier.parent.mkdir(parents=True) + verifier = workspace / "hugegraph-client/assembly/travis/verify_candidate_image_sdk.py" + verifier.parent.mkdir(parents=True, exist_ok=True) shutil.copyfile(sdk.__file__, verifier) runner = root / "runner" runner.mkdir() diff --git a/.github/scripts/test_java17_image.py b/.github/scripts/test_java17_image.py index eb128c4b2..708506de6 100644 --- a/.github/scripts/test_java17_image.py +++ b/.github/scripts/test_java17_image.py @@ -23,12 +23,14 @@ import json import os import subprocess +import sys import tempfile import unittest from unittest.mock import patch from pathlib import Path import java17_image as images +sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "hugegraph-client/assembly/travis")) import verify_candidate_image_sdk as sdk diff --git a/.github/workflows/upstream-compatibility.yml b/.github/workflows/upstream-compatibility.yml index 19fdee8a6..3a711a486 100644 --- a/.github/workflows/upstream-compatibility.yml +++ b/.github/workflows/upstream-compatibility.yml @@ -14,7 +14,7 @@ on: - 'hugegraph-client/assembly/travis/install-candidate-sdk.sh' - 'hugegraph-client/assembly/travis/checkout-server.sh' - 'hugegraph-client/assembly/travis/start-hugegraph-servers.sh' - - '.github/scripts/verify_candidate_image_sdk.py' + - 'hugegraph-client/assembly/travis/verify_candidate_image_sdk.py' permissions: contents: read diff --git a/docs/java17-migration.md b/docs/java17-migration.md index 23eea6f95..caa8263fa 100644 --- a/docs/java17-migration.md +++ b/docs/java17-migration.md @@ -27,7 +27,7 @@ mkdir "$candidate_dir/m2" export SERVER_REPOSITORY=apache/hugegraph server_commit=$(python3 - <<'PY_COMMIT' import runpy -print(runpy.run_path(".github/scripts/verify_candidate_image_sdk.py")["COMMIT"]) +print(runpy.run_path("hugegraph-client/assembly/travis/verify_candidate_image_sdk.py")["COMMIT"]) PY_COMMIT ) diff --git a/.github/actions/setup-hugegraph-server/fixture.sh b/hugegraph-client/assembly/travis/fixture.sh similarity index 97% rename from .github/actions/setup-hugegraph-server/fixture.sh rename to hugegraph-client/assembly/travis/fixture.sh index 375045811..4de32a062 100644 --- a/.github/actions/setup-hugegraph-server/fixture.sh +++ b/hugegraph-client/assembly/travis/fixture.sh @@ -69,7 +69,7 @@ fixture_build() { # Reuse the verified SDK build's same-source distribution and isolated repository. candidate_repo=$(mktemp -d "${TMPDIR:-/tmp}/hg-fixture-sdk-m2.XXXXXX") SERVER_REPOSITORY=$FIXTURE_REPOSITORY SERVER_FETCH_REF=$FIXTURE_REF \ - bash "${FIXTURE_HELPER%/*}/../../../hugegraph-client/assembly/travis/install-candidate-sdk.sh" \ + bash "${FIXTURE_HELPER%/*}/install-candidate-sdk.sh" \ "$FIXTURE_COMMIT" "$source_dir" "$candidate_repo" archive=$(find "$source_dir/hugegraph-server" -maxdepth 1 -name 'apache-hugegraph-*.tar.gz' -print) [[ -n "$archive" && -f "$archive" ]] diff --git a/hugegraph-client/assembly/travis/install-hugegraph-from-source.sh b/hugegraph-client/assembly/travis/install-hugegraph-from-source.sh index 4f7b058da..a7ac1d4e9 100755 --- a/hugegraph-client/assembly/travis/install-hugegraph-from-source.sh +++ b/hugegraph-client/assembly/travis/install-hugegraph-from-source.sh @@ -25,8 +25,8 @@ fi if [[ "${FIXTURE_MODE:-standalone}" == start ]]; then FIXTURE_COMMIT=$1 ROOT_DIR=$(cd "$(dirname "$0")/../../.." && pwd) - source "$ROOT_DIR/.github/actions/setup-hugegraph-server/fixture.sh" - ARCHIVE=$(python3 "$ROOT_DIR/.github/actions/setup-hugegraph-server/manifest.py" name) + source "$ROOT_DIR/hugegraph-client/assembly/travis/fixture.sh" + ARCHIVE=$(python3 "$ROOT_DIR/hugegraph-client/assembly/travis/manifest.py" name) exec bash "$ROOT_DIR/hugegraph-client/assembly/travis/start-hugegraph-servers.sh" "$ARCHIVE" fi SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) diff --git a/.github/actions/setup-hugegraph-server/manifest.py b/hugegraph-client/assembly/travis/manifest.py similarity index 95% rename from .github/actions/setup-hugegraph-server/manifest.py rename to hugegraph-client/assembly/travis/manifest.py index 0b13a7514..30488ddca 100644 --- a/.github/actions/setup-hugegraph-server/manifest.py +++ b/hugegraph-client/assembly/travis/manifest.py @@ -29,9 +29,9 @@ repo = pathlib.Path(__file__).resolve().parents[3] patterns = ( '.github/actions/setup-hugegraph-server/action.yml', - '.github/actions/setup-hugegraph-server/fixture.sh', - '.github/actions/setup-hugegraph-server/manifest.py', - '.github/actions/setup-hugegraph-server/release.py', + 'hugegraph-client/assembly/travis/fixture.sh', + 'hugegraph-client/assembly/travis/manifest.py', + 'hugegraph-client/assembly/travis/release.py', '.github/actions/setup-java-env/action.yml', '.github/configs/settings.xml', 'hugegraph-client/assembly/travis/checkout-server.sh', 'hugegraph-client/assembly/travis/install-candidate-sdk.sh', diff --git a/.github/actions/setup-hugegraph-server/release.py b/hugegraph-client/assembly/travis/release.py similarity index 100% rename from .github/actions/setup-hugegraph-server/release.py rename to hugegraph-client/assembly/travis/release.py diff --git a/.github/actions/setup-hugegraph-server/service-wait.sh b/hugegraph-client/assembly/travis/service-wait.sh similarity index 100% rename from .github/actions/setup-hugegraph-server/service-wait.sh rename to hugegraph-client/assembly/travis/service-wait.sh diff --git a/hugegraph-client/assembly/travis/start-hugegraph-servers.sh b/hugegraph-client/assembly/travis/start-hugegraph-servers.sh index 27e392283..d63010946 100644 --- a/hugegraph-client/assembly/travis/start-hugegraph-servers.sh +++ b/hugegraph-client/assembly/travis/start-hugegraph-servers.sh @@ -16,7 +16,7 @@ # under the License. # set -euo pipefail -source "$(cd "$(dirname "$0")/../../.." && pwd)/.github/actions/setup-hugegraph-server/service-wait.sh" +source "$(cd "$(dirname "$0")/../../.." && pwd)/hugegraph-client/assembly/travis/service-wait.sh" if [[ $# -ne 1 || ! -f "$1" ]]; then echo "Usage: start-hugegraph-servers.sh " >&2 diff --git a/.github/scripts/verify_candidate_image_sdk.py b/hugegraph-client/assembly/travis/verify_candidate_image_sdk.py similarity index 100% rename from .github/scripts/verify_candidate_image_sdk.py rename to hugegraph-client/assembly/travis/verify_candidate_image_sdk.py diff --git a/hugegraph-dist/pom.xml b/hugegraph-dist/pom.xml index acb784ae8..e732c5740 100644 --- a/hugegraph-dist/pom.xml +++ b/hugegraph-dist/pom.xml @@ -74,7 +74,7 @@ - + @@ -86,7 +86,7 @@ - + @@ -98,7 +98,7 @@ - + diff --git a/hugegraph-hubble/Dockerfile b/hugegraph-hubble/Dockerfile index 2184b7825..1ec24c653 100644 --- a/hugegraph-hubble/Dockerfile +++ b/hugegraph-hubble/Dockerfile @@ -33,7 +33,7 @@ RUN set -x \ COPY hugegraph-client/assembly/travis/install-candidate-sdk.sh \ hugegraph-client/assembly/travis/checkout-server.sh /pkg/hugegraph-client/assembly/travis/ -COPY .github/scripts/verify_candidate_image_sdk.py /pkg/.github/scripts/ +COPY hugegraph-client/assembly/travis/verify_candidate_image_sdk.py /pkg/hugegraph-client/assembly/travis/ # Direct builds bootstrap the same locked SDK; CI can supply a verified builder. RUN mkdir -p /opt/candidate-m2 \ @@ -42,7 +42,7 @@ RUN mkdir -p /opt/candidate-m2 \ bash /pkg/hugegraph-client/assembly/travis/install-candidate-sdk.sh \ 68855199031d5801edb4fe41b2bacbacffe8fe68 /opt/candidate-source /opt/candidate-m2; \ fi \ - && python3 /pkg/.github/scripts/verify_candidate_image_sdk.py /opt/candidate-m2 + && python3 /pkg/hugegraph-client/assembly/travis/verify_candidate_image_sdk.py /opt/candidate-m2 COPY . /pkg @@ -54,7 +54,7 @@ RUN set -x \ && mvn package $MAVEN_ARGS -Dmaven.repo.local=/opt/candidate-m2 \ -Dhugegraph.version=1.8.0 -Dsdk.validation.mode=candidate \ -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true \ - && python3 /pkg/.github/scripts/verify_candidate_image_sdk.py /opt/candidate-m2 \ + && python3 /pkg/hugegraph-client/assembly/travis/verify_candidate_image_sdk.py /opt/candidate-m2 \ && set -- /pkg/hugegraph-hubble/target/apache-hugegraph-hubble-*.tar.gz \ && test "$#" -eq 1 \ && mkdir /hubble-release \ diff --git a/hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh b/hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh index 32a5b9970..e91280ab1 100755 --- a/hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh +++ b/hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh @@ -58,4 +58,4 @@ FIXTURE_JAVA=${FIXTURE_JAVA:-17} if [[ -n "${SERVER_MAVEN_REPO:-}" ]]; then export MAVEN_ARGS="${MAVEN_ARGS:-} -Dmaven.repo.local=$SERVER_MAVEN_REPO" fi -source "$REPO_ROOT/.github/actions/setup-hugegraph-server/fixture.sh" +source "$REPO_ROOT/hugegraph-client/assembly/travis/fixture.sh" diff --git a/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server1/install-hugegraph.sh b/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server1/install-hugegraph.sh index 06c7a4c36..edf9da79a 100755 --- a/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server1/install-hugegraph.sh +++ b/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server1/install-hugegraph.sh @@ -18,7 +18,7 @@ set -euo pipefail SERVER_CONFIG_DIR=$(cd "$(dirname "$0")" && pwd) -source "$(cd "$SERVER_CONFIG_DIR/../../../../.." && pwd)/.github/actions/setup-hugegraph-server/service-wait.sh" +source "$(cd "$SERVER_CONFIG_DIR/../../../../.." && pwd)/hugegraph-client/assembly/travis/service-wait.sh" SERVER_PARENT_DIR="hugegraph-server1" mkdir "${SERVER_PARENT_DIR}" diff --git a/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server2/install-hugegraph.sh b/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server2/install-hugegraph.sh index f07adf740..f1d38bed6 100755 --- a/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server2/install-hugegraph.sh +++ b/hugegraph-hubble/hubble-dist/assembly/travis/hugegraph-server2/install-hugegraph.sh @@ -18,7 +18,7 @@ set -euo pipefail SERVER_CONFIG_DIR=$(cd "$(dirname "$0")" && pwd) -source "$(cd "$SERVER_CONFIG_DIR/../../../../.." && pwd)/.github/actions/setup-hugegraph-server/service-wait.sh" +source "$(cd "$SERVER_CONFIG_DIR/../../../../.." && pwd)/hugegraph-client/assembly/travis/service-wait.sh" SERVER_PARENT_DIR="hugegraph-server2" mkdir "${SERVER_PARENT_DIR}" diff --git a/hugegraph-hubble/hubble-dist/pom.xml b/hugegraph-hubble/hubble-dist/pom.xml index 1902d606b..210d2fc2a 100644 --- a/hugegraph-hubble/hubble-dist/pom.xml +++ b/hugegraph-hubble/hubble-dist/pom.xml @@ -160,7 +160,7 @@ rm -f ${top.level.dir}/dist.sh - + diff --git a/hugegraph-loader/Dockerfile b/hugegraph-loader/Dockerfile index 04a2462a8..d1168a5c5 100644 --- a/hugegraph-loader/Dockerfile +++ b/hugegraph-loader/Dockerfile @@ -29,7 +29,7 @@ RUN apt-get -q update \ COPY hugegraph-client/assembly/travis/install-candidate-sdk.sh \ hugegraph-client/assembly/travis/checkout-server.sh /pkg/hugegraph-client/assembly/travis/ -COPY .github/scripts/verify_candidate_image_sdk.py /pkg/.github/scripts/ +COPY hugegraph-client/assembly/travis/verify_candidate_image_sdk.py /pkg/hugegraph-client/assembly/travis/ # Direct builds bootstrap the same locked SDK; CI can supply a verified builder. RUN mkdir -p /opt/candidate-m2 \ @@ -38,7 +38,7 @@ RUN mkdir -p /opt/candidate-m2 \ bash /pkg/hugegraph-client/assembly/travis/install-candidate-sdk.sh \ 68855199031d5801edb4fe41b2bacbacffe8fe68 /opt/candidate-source /opt/candidate-m2; \ fi \ - && python3 /pkg/.github/scripts/verify_candidate_image_sdk.py /opt/candidate-m2 + && python3 /pkg/hugegraph-client/assembly/travis/verify_candidate_image_sdk.py /opt/candidate-m2 COPY . /pkg @@ -47,7 +47,7 @@ RUN set -x \ -Dhugegraph.version=1.8.0 -Dsdk.validation.mode=candidate \ -pl hugegraph-client,hugegraph-loader -am \ -Dmaven.javadoc.skip=true -DskipTests -ntp \ - && python3 /pkg/.github/scripts/verify_candidate_image_sdk.py /opt/candidate-m2 + && python3 /pkg/hugegraph-client/assembly/travis/verify_candidate_image_sdk.py /opt/candidate-m2 FROM eclipse-temurin:17-jre-jammy diff --git a/hugegraph-loader/assembly/travis/install-hugegraph-from-source.sh b/hugegraph-loader/assembly/travis/install-hugegraph-from-source.sh index bc8f6bad2..aa3f9ff63 100755 --- a/hugegraph-loader/assembly/travis/install-hugegraph-from-source.sh +++ b/hugegraph-loader/assembly/travis/install-hugegraph-from-source.sh @@ -24,8 +24,8 @@ fi if [[ "${FIXTURE_MODE:-standalone}" == start ]]; then FIXTURE_COMMIT=$1 ROOT_DIR=$(cd "$(dirname "$0")/../../.." && pwd) - source "$ROOT_DIR/.github/actions/setup-hugegraph-server/fixture.sh" - ARCHIVE=$(python3 "$ROOT_DIR/.github/actions/setup-hugegraph-server/manifest.py" name) + source "$ROOT_DIR/hugegraph-client/assembly/travis/fixture.sh" + ARCHIVE=$(python3 "$ROOT_DIR/hugegraph-client/assembly/travis/manifest.py" name) exec bash "$ROOT_DIR/hugegraph-client/assembly/travis/start-hugegraph-servers.sh" "$ARCHIVE" fi COMMIT_ID=$1 diff --git a/hugegraph-loader/pom.xml b/hugegraph-loader/pom.xml index 23c9408e6..466dc38a3 100644 --- a/hugegraph-loader/pom.xml +++ b/hugegraph-loader/pom.xml @@ -769,7 +769,7 @@ - + diff --git a/hugegraph-tools/pom.xml b/hugegraph-tools/pom.xml index 101e1c22e..0e3537ad2 100644 --- a/hugegraph-tools/pom.xml +++ b/hugegraph-tools/pom.xml @@ -211,7 +211,7 @@ - +