Skip to content

chore(ci): add Gremlin Console smoke test#3040

Open
contrueCT wants to merge 1 commit into
apache:masterfrom
contrueCT:task/issue-3015-gremlin-console-smoke
Open

chore(ci): add Gremlin Console smoke test#3040
contrueCT wants to merge 1 commit into
apache:masterfrom
contrueCT:task/issue-3015-gremlin-console-smoke

Conversation

@contrueCT
Copy link
Copy Markdown
Contributor

Purpose of the PR

Add a focused Gremlin Console smoke test for the server distribution entry point.

This follows up on #3015 and the review note from #3010. The existing macOS RocksDB CI covers server compile, core tests, startup, and API tests, but it does not directly exercise bin/gremlin-console.sh. This PR adds a lightweight non-interactive smoke test for that path on macOS and Linux.

Related context: #3006 reported user-facing build/startup issues and mentioned Gremlin Console behavior on Apple Silicon, but this PR only adds CI validation and does not assume a specific Jansi or Java compatibility root cause.

Main Changes

  • Add run-gremlin-console-smoke-test.sh
    • Generates a tiny Groovy script
    • Runs bin/gremlin-console.sh -- -e <script>
    • Verifies the expected gremlin-console-smoke-ok marker
    • Cleans temporary script/log files with trap
  • Run the smoke test in Linux Server CI only for the RocksDB matrix entry
  • Run the same smoke test in macOS RocksDB CI on both Intel and Apple Silicon runners

Verifying these changes

  • Trivial rework / code cleanup without any test coverage. (No Need)
  • Already covered by existing tests, such as (please modify tests here).
  • Need tests and can be verified as follows:
    • Ran bash -n hugegraph-server/hugegraph-dist/src/assembly/travis/run-gremlin-console-smoke-test.sh
    • Ran git diff --check

Does this PR potentially affect the following parts?

Documentation Status

  • Doc - TODO
  • Doc - Done
  • Doc - No Need

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. ci-cd Build or deploy gremlin TinkerPop gremlin tests Add or improve test cases labels May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd Build or deploy gremlin TinkerPop gremlin size:M This PR changes 30-99 lines, ignoring generated files. tests Add or improve test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improve] add macOS Apple Silicon smoke test for Gremlin Console

1 participant