Skip to content

Commit b066b80

Browse files
authored
chore(client): increase the api num as the latest server commit + 10 (#546)
* fix: the api version is outdated * fix dockerfile to aviod hubble use client:1.0.0 * Update hugegraph-client/src/main/java/org/apache/hugegraph/driver/HugeClient.java * fix: increase the depth for git clone * Update hugegraph-client/src/main/java/org/apache/hugegraph/driver/HugeClient.java
1 parent 75147b8 commit b066b80

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.github/workflows/client-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ jobs:
6969
mvn test -Dtest=FuncTestSuite
7070
7171
- name: Upload coverage to Codecov
72-
uses: codecov/codecov-action@v3.0.0
72+
uses: codecov/codecov-action@v3
7373
with:
7474
file: target/jacoco.xml

hugegraph-client/assembly/travis/install-hugegraph-from-source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ HUGEGRAPH_GIT_URL="https://github.com/apache/hugegraph.git"
2626
GIT_DIR=hugegraph
2727

2828
# download code and compile
29-
git clone --depth 100 ${HUGEGRAPH_GIT_URL} $GIT_DIR
29+
git clone --depth 150 ${HUGEGRAPH_GIT_URL} $GIT_DIR
3030
cd "${GIT_DIR}"
3131
git checkout "${COMMIT_ID}"
3232
mvn package -DskipTests -Dmaven.javadoc.skip=true -ntp

hugegraph-client/src/main/java/org/apache/hugegraph/driver/HugeClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ private void initManagers(RestClient client, String graph) {
109109

110110
private void checkServerApiVersion() {
111111
VersionUtil.Version apiVersion = VersionUtil.Version.of(this.version.getApiVersion());
112-
VersionUtil.check(apiVersion, "0.38", "0.70", "hugegraph-api in server");
112+
// TODO: find a way to keep the range of api version correct automatically
113+
// 0.81 equals to the {latest_api_version} +10
114+
VersionUtil.check(apiVersion, "0.38", "0.81", "hugegraph-api in server");
113115
this.client.apiVersion(apiVersion);
114116
}
115117

hugegraph-hubble/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ RUN set -x \
2626
COPY . /pkg
2727
WORKDIR /pkg
2828

29+
RUN set -x \
30+
&& mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp
31+
2932
RUN set -x \
3033
&& cd /pkg/hugegraph-hubble/ \
3134
&& mvn package -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true

hugegraph-hubble/hubble-dist/assembly/travis/download-hugegraph.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ HUGEGRAPH_GIT_URL="https://github.com/apache/hugegraph.git"
2626
GIT_DIR=hugegraph
2727

2828
# download code and compile
29-
git clone --depth 100 $HUGEGRAPH_GIT_URL $GIT_DIR
29+
git clone --depth 150 $HUGEGRAPH_GIT_URL $GIT_DIR
3030
cd "${GIT_DIR}"
3131
git checkout "${COMMIT_ID}"
3232
mvn package -DskipTests -Dmaven.javadoc.skip=true -ntp

hugegraph-loader/assembly/travis/install-hugegraph-from-source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fi
2424
COMMIT_ID=$1
2525
HUGEGRAPH_GIT_URL="https://github.com/apache/hugegraph.git"
2626

27-
git clone --depth 100 ${HUGEGRAPH_GIT_URL} hugegraph
27+
git clone --depth 150 ${HUGEGRAPH_GIT_URL} hugegraph
2828
cd hugegraph
2929
git checkout "${COMMIT_ID}"
3030
mvn package -DskipTests -Dmaven.javadoc.skip=true -ntp

hugegraph-tools/assembly/travis/install-hugegraph-from-source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ HUGEGRAPH_GIT_URL="https://github.com/apache/hugegraph.git"
2525
GIT_DIR=hugegraph
2626

2727
# download code and compile
28-
git clone --depth 100 $HUGEGRAPH_GIT_URL $GIT_DIR
28+
git clone --depth 150 $HUGEGRAPH_GIT_URL $GIT_DIR
2929
cd "${GIT_DIR}"
3030
git checkout "${COMMIT_ID}"
3131
mvn package -DskipTests -Dmaven.javadoc.skip=true -ntp

0 commit comments

Comments
 (0)