Skip to content
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

Build GraalVM Native Image nightly for ShardingSphere Proxy #21051

Closed
linghengqian opened this issue Sep 18, 2022 · 7 comments · Fixed by #21341
Closed

Build GraalVM Native Image nightly for ShardingSphere Proxy #21051

linghengqian opened this issue Sep 18, 2022 · 7 comments · Fixed by #21341
Assignees

Comments

@linghengqian
Copy link
Member

linghengqian commented Sep 18, 2022

Feature Request

For English only, other languages will not accept.

Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot make decision by current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Is your feature request related to a problem?

Describe the feature you would like.

@linghengqian
Copy link
Member Author

linghengqian commented Sep 18, 2022

@TeslaCN
Copy link
Member

TeslaCN commented Sep 20, 2022

I remember that building GraalVM Native Image consumes a lot of memory (I used GraalVM Native image in 2020, it took 20~30 GB to compile a not complicate project to Native Image). Machine of GitHub Actions only have 7 GB RAM.

@linghengqian
Copy link
Member Author

linghengqian commented Sep 20, 2022

@TeslaCN
Copy link
Member

TeslaCN commented Sep 20, 2022

Could ShardingSphere-Proxy be compiled to Native Image at present?

@linghengqian
Copy link
Member Author

linghengqian commented Sep 20, 2022

  • The answer is no, the build for ShardingSphere Proxy is almost certain to fail, which is influenced by many factors.

  • But once we have such a CI task to provide continuous tracking of build errors, we can submit Graal reachability metadata related to third-party libraries or ShardingSphere itself to https://github.com/oracle/graalvm-reachability-metadata , which will help the construction of ShardingSphere JDBC and ShardingSphere Proxy in GraalVM Native Image at the same time, and finally achieve the purpose of successful construction at a certain point in the future.

  • Considering that running Mockito in Native Image must rely on the integration of JUnit 5 Platform, it is impossible for such a test to work on the master branch of ShardingSphere, and the Graal metadata test corresponding to ShardingSphere needs to be placed at https://github.com/oracle/graalvm-reachability-metadata to handle.

@linghengqian
Copy link
Member Author

  • Since the nightly docker image has not been generated yet, when the nightly docker image is generated, I will add the image information to the documentation and add the documentation on observability to close this issue.

  • Although Native Image is currently completely unavailable, I will open a new issue tracking GraalVM Native Image usability issues after this issue is closed.

@linghengqian
Copy link
Member Author

Not sure what happened to the Github Package, I opened https://github.com/orgs/community/discussions/35042.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants