You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "vaijosh (via GitHub)" <gi...@apache.org> on 2026/06/04 19:02:12 UTC
[PR] fix [Bug]: gremlin-console.sh fails on Mac M4 (Apple Silicon)#3031 [hugegraph]
vaijosh opened a new pull request, #3050:
URL: https://github.com/apache/hugegraph/pull/3050
### What I changed
- Added runtime dependency `org.fusesource.jansi:jansi:2.4.0` in `hugegraph-server/hugegraph-dist/pom.xml`.
- Updated release docs:
- `install-dist/release-docs/LICENSE`
- `install-dist/release-docs/NOTICE`
- `install-dist/release-docs/licenses/LICENSE-jansi-2.4.0.txt`
### Validation performed
```bash
✘ vjoshi@DNWW7WJ4LJ ~/SourceCode/HUGEGRAPH/hugegraph 3031-AppleSiliconFix export RUNNER_TEMP="$(mktemp -d)"
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
SERVER_DIR="hugegraph-server/apache-hugegraph-server-${VERSION}"
printf "println \"gremlin-console-smoke-ok\"\n" > "$RUNNER_TEMP/gremlin-console-smoke.groovy"
"${SERVER_DIR}/bin/gremlin-console.sh" -- -e "$RUNNER_TEMP/gremlin-console-smoke.groovy"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/vjoshi/SourceCode/HUGEGRAPH/hugegraph/hugegraph-server/apache-hugegraph-server-1.7.0/lib/groovy-2.5.14-indy.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
gremlin-console-smoke-ok
Manually checked if we can launch gremlin console.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] fix [Bug]: gremlin-console.sh fails on Mac M4 (Apple Silicon)#3031 [hugegraph]
Posted by "vaijosh (via GitHub)" <gi...@apache.org>.
vaijosh commented on code in PR #3050:
URL: https://github.com/apache/hugegraph/pull/3050#discussion_r3371082343
##########
hugegraph-server/hugegraph-dist/pom.xml:
##########
@@ -123,6 +124,15 @@
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
+
+ <!-- Added updated jar to avoid java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiConsole when launching
+ gremlin console on arm64 -->
+ <dependency>
Review Comment:
Done. Thanks @imbajin.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] fix [Bug]: gremlin-console.sh fails on Mac M4 (Apple Silicon)#3031 [hugegraph]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on code in PR #3050:
URL: https://github.com/apache/hugegraph/pull/3050#discussion_r3360277066
##########
hugegraph-server/hugegraph-dist/pom.xml:
##########
@@ -123,6 +124,15 @@
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
+
+ <!-- Added updated jar to avoid java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiConsole when launching
+ gremlin console on arm64 -->
+ <dependency>
Review Comment:
⚠️ **Add a distro regression check**
Evidence: the fix is purely in distro packaging, so the normal unit/core/api suites do not exercise the `gremlin-console.sh` classpath. I could not find an automated check that launches the packaged console or at least asserts the tarball contains `lib/jansi-*.jar`.
Impact: this exact classpath regression can silently return after a dependency or assembly change and only be caught by users starting the packaged console.
Requested fix: add a distro-level smoke check, for example launching `bin/gremlin-console.sh -- -e <script>` from the assembled server, or at minimum asserting the packaged archive contains the Jansi jar.
##########
install-dist/release-docs/licenses/LICENSE-jansi-2.4.0.txt:
##########
@@ -0,0 +1,16 @@
+Copyright (c) 2007-2021, the original author(s)
Review Comment:
‼️ **Vendor the full license text**
Evidence: this new file is a 16-line summary with URLs, but the surrounding `install-dist/release-docs/licenses/LICENSE-*.txt` files vendor complete upstream license texts. The new `LICENSE` entry also points readers here for license details, which this summary does not provide.
Impact: the release docs for the newly bundled jar are incomplete, which is an ASF release/legal risk even if the runtime dependency is correct.
Requested fix: replace this file with the full upstream license text for the license option HugeGraph is relying on for distribution, and align the `LICENSE`/`NOTICE` wording with that choice.
##########
hugegraph-server/hugegraph-dist/pom.xml:
##########
@@ -123,6 +124,15 @@
<artifactId>grpc-stub</artifactId>
<version>${grpc.version}</version>
</dependency>
+
+ <!-- Added updated jar to avoid java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiConsole when launching
+ gremlin console on arm64 -->
+ <dependency>
Review Comment:
‼️ **Update the known dependency inventory**
Evidence: this PR adds `org.fusesource.jansi:jansi:2.4.0`, and the dependency-check job diffs the generated inventory with `install-dist/scripts/dependency/known-dependencies.txt`; the failed job shows `+jansi-2.4.0.jar`, while the tracked file has no such entry.
Impact: the release dependency gate will keep failing for this PR, and the newly bundled jar is not recorded in the deterministic dependency inventory.
Requested fix: regenerate and commit `install-dist/scripts/dependency/known-dependencies.txt`, or add the missing `jansi-2.4.0.jar` entry in the correct sorted position.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] fix: gremlin-console.sh fails on Mac M/ARM CPU #3050 [hugegraph]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin merged PR #3050:
URL: https://github.com/apache/hugegraph/pull/3050
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] fix [Bug]: gremlin-console.sh fails on Mac M4 (Apple Silicon)#3031 [hugegraph]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #3050:
URL: https://github.com/apache/hugegraph/pull/3050#issuecomment-4645825426
## [Codecov](https://app.codecov.io/gh/apache/hugegraph/pull/3050?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 32.51%. Comparing base ([`7f0a44a`](https://app.codecov.io/gh/apache/hugegraph/commit/7f0a44adc0bd8f7445a4ac357633e967955c845c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`9098c3b`](https://app.codecov.io/gh/apache/hugegraph/commit/9098c3b5e4410988f081ecf410c6937c72cd67ce?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 5 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #3050 +/- ##
============================================
- Coverage 36.08% 32.51% -3.57%
- Complexity 338 499 +161
============================================
Files 803 803
Lines 68227 68241 +14
Branches 8963 8965 +2
============================================
- Hits 24617 22190 -2427
- Misses 40963 43545 +2582
+ Partials 2647 2506 -141
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/hugegraph/pull/3050?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [PR] fix: gremlin-console.sh fails on Mac M/ARM CPU #3050 [hugegraph]
Posted by "vaijosh (via GitHub)" <gi...@apache.org>.
vaijosh commented on PR #3050:
URL: https://github.com/apache/hugegraph/pull/3050#issuecomment-4645989671
Many thanks @imbajin for reviewing the PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org