-
Notifications
You must be signed in to change notification settings - Fork 627
feat(server): support build & use(RocksDB) on RISC-V #3102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
imbajin
merged 10 commits into
apache:master
from
Seanium:feature/riscv64-rocksdb-support
Jul 25, 2026
+933
−51
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b9d9d8c
feat(server): support RocksDB on RISC-V
5972a6f
fix(server): stabilize RISC-V validation
3e6f4d8
fix(server): propagate shutdown failures
e2189b3
fix(server): preserve default test coverage
6227b2b
fix(ci): isolate RISC-V server validation
e8986dc
fix(ci): invoke RISC-V validation from server CI
bd69efb
fix(ci): reap RISC-V server processes
fff97cf
refactor(server): preserve default reactor layout
1c30c1c
fix(server): cover RISC-V store dumper
87ec351
fix(server): clarify RISC-V glibc validation
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You 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: "RISC-V Server CI" | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| env: | ||
| BINFMT_IMAGE: >- | ||
| tonistiigi/binfmt@sha256:400a4873b838d1b89194d982c45e5fb3cda4593fbfd7e08a02e76b03b21166f0 | ||
| RISCV64_BASE_IMAGE: >- | ||
| ubuntu@sha256:4edded5722eb644868b7b976033d241d2ab3fff0a170924df69b200a59a2b994 | ||
| DRAGONWELL_RISCV64_ARCHIVE: >- | ||
| Alibaba_Dragonwell_Extended_11.0.31.28.11_riscv64_linux.tar.gz | ||
| DRAGONWELL_RISCV64_SHA256: >- | ||
| 7df2d308f0dca7a779d2854e6da19214f99cd77aa6d4982c3bf981a77266a79b | ||
| DRAGONWELL_RISCV64_URL: >- | ||
| https://github.com/dragonwell-project/dragonwell11/releases/download/dragonwell-extended-11.0.31.28_jdk-11.0.31-ga/Alibaba_Dragonwell_Extended_11.0.31.28.11_riscv64_linux.tar.gz | ||
| RISCV64_CONTAINER: >- | ||
| hugegraph-riscv64-ci-${{ github.run_id }}-${{ github.run_attempt }} | ||
|
|
||
| jobs: | ||
| build-server-riscv64: | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 90 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Start isolated RISC-V environment | ||
| run: | | ||
| docker run --privileged --rm "$BINFMT_IMAGE" --install riscv64 | ||
| docker run --detach --init --platform linux/riscv64 \ | ||
| --name "$RISCV64_CONTAINER" "$RISCV64_BASE_IMAGE" sleep infinity | ||
| test "$(docker exec "$RISCV64_CONTAINER" uname -m)" = riscv64 | ||
|
|
||
| - name: Prepare source and Java 11 | ||
| run: | | ||
| ARCHIVE_PATH="$RUNNER_TEMP/$DRAGONWELL_RISCV64_ARCHIVE" | ||
| curl --fail --location --retry 3 --show-error \ | ||
| "$DRAGONWELL_RISCV64_URL" --output "$ARCHIVE_PATH" | ||
| echo "$DRAGONWELL_RISCV64_SHA256 $ARCHIVE_PATH" | sha256sum -c - | ||
|
|
||
| docker exec "$RISCV64_CONTAINER" mkdir -p /workspace /opt/dragonwell | ||
| git ls-files -z | tar --null --files-from=- -cf - | \ | ||
| docker exec -i "$RISCV64_CONTAINER" tar -xf - -C /workspace | ||
| docker cp "$ARCHIVE_PATH" \ | ||
| "$RISCV64_CONTAINER:/tmp/$DRAGONWELL_RISCV64_ARCHIVE" | ||
|
|
||
| - name: Build and smoke test on RISC-V | ||
| run: | | ||
| docker exec \ | ||
| --env DRAGONWELL_RISCV64_ARCHIVE="$DRAGONWELL_RISCV64_ARCHIVE" \ | ||
| --env DRAGONWELL_RISCV64_SHA256="$DRAGONWELL_RISCV64_SHA256" \ | ||
| "$RISCV64_CONTAINER" bash -euo pipefail -c ' | ||
| test "$(uname -m)" = riscv64 | ||
| apt-get -q update | ||
| apt-get -q install -y --no-install-recommends \ | ||
| ca-certificates curl jq libatomic1 libgcc-s1 libstdc++6 \ | ||
| lsof maven procps \ | ||
| protobuf-compiler protobuf-compiler-grpc-java-plugin | ||
|
|
||
| ARCHIVE_PATH="/tmp/$DRAGONWELL_RISCV64_ARCHIVE" | ||
| echo "$DRAGONWELL_RISCV64_SHA256 $ARCHIVE_PATH" | sha256sum -c - | ||
| tar -xzf "$ARCHIVE_PATH" --strip-components=1 -C /opt/dragonwell | ||
| rm "$ARCHIVE_PATH" | ||
| export JAVA_HOME=/opt/dragonwell | ||
| export PATH="$JAVA_HOME/bin:$PATH" | ||
|
|
||
| java -XshowSettings:vm -version | ||
| test -x /usr/bin/protoc | ||
| test -x /usr/bin/grpc_java_plugin | ||
|
|
||
| cd /workspace | ||
| MAVEN_OPTS="-XX:TieredStopAtLevel=1 -XX:ActiveProcessorCount=2" \ | ||
| mvn clean package -B -ntp -Drocksdb-only \ | ||
| -P riscv64-protobuf-tools \ | ||
| -pl hugegraph-server/hugegraph-dist -am \ | ||
| -Dmaven.test.skip=true -Dmaven.javadoc.skip=true | ||
| hugegraph-server/hugegraph-dist/src/assembly/travis/check-rocksdb-only-dist.sh \ | ||
| hugegraph-server/apache-hugegraph-server-*/ | ||
| hugegraph-server/hugegraph-dist/src/assembly/travis/run-native-runtime-smoke-test.sh \ | ||
| hugegraph-server/apache-hugegraph-server-*/ | ||
| ' | ||
|
|
||
| - name: Show server log on failure | ||
| if: failure() | ||
| run: | | ||
| if docker container inspect "$RISCV64_CONTAINER" >/dev/null 2>&1; then | ||
| docker exec "$RISCV64_CONTAINER" bash -c ' | ||
| find /workspace -path "*/logs/hugegraph-server.log" \ | ||
| -exec tail -n 200 {} \; | ||
| ' || true | ||
| fi | ||
|
|
||
| - name: Clean up RISC-V environment | ||
| if: always() | ||
| run: | | ||
| if docker container inspect "$RISCV64_CONTAINER" >/dev/null 2>&1; then | ||
| docker rm --force --volumes "$RISCV64_CONTAINER" | ||
| fi | ||
| if docker container inspect "$RISCV64_CONTAINER" >/dev/null 2>&1; then | ||
| echo "RISC-V CI container still exists: $RISCV64_CONTAINER" >&2 | ||
| exit 1 | ||
| fi |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in
87ec3519. The README now identifies Ubuntu 24.04 with glibc 2.39 as the end-to-end validated environment and explicitly limitsGLIBC_2.30to an inferred requirement of the packagedrocksdbjni:8.10.2RISC-V ELF, not a validated compatibility floor for the complete HugeGraph, Dragonwell, and system-library runtime.Current-head org Server CI, including the native RISC-V build and runtime smoke, passed: https://github.com/hugegraph/hugegraph/actions/runs/30093815746/job/89482983932. Apache exact-head workflows are awaiting maintainer approval.