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

Switch from Nashorn to GraalVM JS engine; support Java 15+ #15708

Merged
merged 3 commits into from
Apr 21, 2021

Conversation

camsaul
Copy link
Member

@camsaul camsaul commented Apr 21, 2021

I figured out we can use the GraalVM JavaScript engine for our JavaScript execution needs, allowing us to finally remove our Nashorn dep and support Java 15 and 16.

I added tests against Java 16 (current latest) to CI and added Java 8 back which was accidentally changed in #15201.

Fixes #13881
Fixes #15707

@camsaul camsaul changed the title No more nashorn Switch from Nashorn to GraalVM JS engine; support Java 15+ Apr 21, 2021
@codecov
Copy link

codecov bot commented Apr 21, 2021

Codecov Report

Merging #15708 (0b6ca74) into master (390a085) will decrease coverage by 0.01%.
The diff coverage is 92.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15708      +/-   ##
==========================================
- Coverage   84.42%   84.40%   -0.02%     
==========================================
  Files         401      402       +1     
  Lines       31299    31307       +8     
  Branches     2259     2260       +1     
==========================================
+ Hits        26424    26426       +2     
- Misses       2616     2621       +5     
- Partials     2259     2260       +1     
Impacted Files Coverage Δ
src/metabase/pulse/render/table.clj 87.34% <ø> (ø)
src/metabase/pulse/render/js_engine.clj 91.66% <91.66%> (ø)
src/metabase/pulse/render/color.clj 91.30% <93.33%> (+2.41%) ⬆️
src/metabase/task/sync_databases.clj 74.10% <0.00%> (-3.60%) ⬇️
src/metabase/search/scoring.clj 96.17% <0.00%> (-0.55%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 785060d...0b6ca74. Read the comment docs.

@dpsutton
Copy link
Contributor

I had no idea that the js engine from graal was able to be used from other jdks. That is awesome.

@camsaul camsaul merged commit 43eff56 into master Apr 21, 2021
@camsaul camsaul deleted the no-more-nashorn branch April 21, 2021 20:40
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 this pull request may close these issues.

CI no longer runs tests on Java 8 Java error when starting Metabase with Java 15 or 16
2 participants