enso-org / enso

Hybrid visual and textual functional programming.
https://enso.org
Apache License 2.0
7.34k stars 323 forks source link

Upgrade Enso to GraalVM for JDK 21 #7851

Closed JaroslavTulach closed 10 months ago

JaroslavTulach commented 1 year ago

There is new version of GraalVM for JDK21 since yesterday. Here is some information about Truffle Unchained. The upgrade is going to be tougher this time:

### Tasks
- [x] Change the GraalVM version check to non-fatal error - **done** in #7855
- [x] Avoid `boostrap` & copy of `truffle-api`: `./bin/java -d org.graalvm.truffle` seems to `exports com.oracle.truffle.api` & co.  - **done** in #7855
- [x] Update documentation that mentiones `sbt bootstrap`
- [x] `gu` is gone! Stop calling it... https://github.com/oracle/graal/issues/6855 -  - **done** in #7855
- [x] `option -Dtruffle.class.path.append option is deprecated` - we need to build `module-info.java` for the runtime
- [x] Enable GraalPy on Windows: - https://github.com/oracle/graalpython/issues/321
- [x] Fix a lot of `Inexhaustive_Pattern_Match.Error TRegexReadOnlyIntArray` in `test/Tests`

Follow-ups

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-06):

Progress: - Introducing modules into our sbt builds

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-09):

Progress: - sbt has a bug - cannot use module-info.java in mixed projects. Luckily, we need just one module-info in pure Java project runtime-with-instruments.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new 🔴 DELAY for yesterday (2023-10-10):

Summary: There is 11 days delay in implementation of the Upgrade Enso to GraalVM for JDK 21 (#7851) task. It will cause 11 days delay for the delivery of this weekly plan.

Delay Cause: The initial estimate was too optimistic. Moreover, I worked on different issues in the meantime.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for yesterday (2023-10-10):

Progress: - Struggling with compilation of runtime.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-11):

Progress: - Removed jdk.compiler dependency #8027

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-13):

Progress: - Still fixing the compilation of runtime and runtime-with-instruments.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for yesterday (2023-10-16):

Progress: - Book club, mails, chat, ...

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-17):

Progress: - Seems like we will have to ditch fat jars

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for yesterday (2023-10-19):

Progress: - Tweaking sbt to provide two fat Jars - runtime.jar and runner.jar. Those fat jars should be almost exactly the same as are now.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-20):

Progress: - Investigating how to assembly runner.jar fat jar that has exclusive packages to runtime.jar fat jar. It should be finished by 2023-10-20.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new 🔴 DELAY for today (2023-10-23):

Summary: There is 7 days delay in implementation of the Upgrade Enso to GraalVM for JDK 21 (#7851) task. It will cause 7 days delay for the delivery of this weekly plan.

Delay Cause: A lot of struggling with assembling fat jars and running them.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-23):

Progress: - Consultation with Jaroslav: Unblocked the problem with runner.jar as fat jar.

JaroslavTulach commented 11 months ago

A lot of struggling with assembling fat jars and running them.

Yes, the problems with fat JARs were hard to solve. Their occurrence was a kind of unknown unknown to me. I apologize for not being around sooner to help overcome the problems with more advanced ClassLoader usage. I hope you are unblocked now.

will cause 7 days delay

Go for it! Still there is still going to be quite a few know unknowns, so the deadline is tough. Good luck.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-24):

Progress: - Book club.

enso-bot[bot] commented 11 months ago

Pavel Marek reports a new STANDUP for today (2023-10-25):

Progress: - Filter away all the graal-related JAR modules from withing our generated polyglot directories in std libs

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-10-26):

Progress: - Trying to fix class loading issues in runtime / test.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-10-27):

Progress: - Reviews

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new 🔴 DELAY for today (2023-10-30):

Summary: There is 7 days delay in implementation of the Upgrade Enso to GraalVM for JDK 21 (#7851) task. It will cause 7 days delay for the delivery of this weekly plan.

Unit tests almost work, locally. We need to fix Rust build scripts, and native image builds, and then check that everything works. Let's hope that one more week is sufficient.

Delay Cause: Let's delay the task for one more week, as discussed

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-10-30):

Progress: - Fixing native-image build - struggling with sbt task definitions and their dependencies

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-10-31):

Progress: - Native image build fixes

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-01):

Progress: - Another PR for private module checking disabling fix - #8140

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-02):

Progress: - Fixing language server launch from project-manager, dealing with various class loading issues.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-03):

Progress: - language server can be launched from project-manager

JaroslavTulach commented 10 months ago
* In 15 seconds generates 5 GB of logs - the configuration is in `runner.jar` and not in `runtime.jar`.
* Now fixing the configuration - runtime module sees different configuration, e.g., for logging, than `runner.jar`.

Pavel, @hubertp shall know what resources need to be read to configure SLF4J in the runtime.jar properly. The IsolatedClassLoader shall:

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new 🔴 DELAY for today (2023-11-06):

Summary: There is 7 days delay in implementation of the Upgrade Enso to GraalVM for JDK 21 (#7851) task. It will cause 7 days delay for the delivery of this weekly plan.

Fixing language-server invocation from project-manager was more difficult than expected.

Delay Cause: The agreed upon delay for additional week.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-06):

Progress: - Still fixing log configuration

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-07):

Progress: - It seems that the log configuration on my branch was correct for some time, the weird behavior (generation of 5GB of output) can be reproduced on develop.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for yesterday (2023-11-07):

Progress: - Fixed native image of engine-runner.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-09):

Progress: - Fixed absolute paths to LanguageHome in some language-server tests.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-10):

Progress: - Fixed all project-manager tests.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new 🔴 DELAY for today (2023-11-13):

Summary: There is 7 days delay in implementation of the Upgrade Enso to GraalVM for JDK 21 (#7851) task. It will cause 7 days delay for the delivery of this weekly plan.

I hope this is the very last delay report for this issue, let's merge it ASAP.

Delay Cause: Tests in project-manager and co. were more difficult to fix than expected, they contained hacks that allowed them to launch the whole language-server. A week delay is a pessimistic estimation, if there are no blockers, it should be merged sooner.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-13):

Progress: - Fixing test in runtime-version-manager-test, project-manager, etc.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-14):

Progress: - Fixed bug in sbt-assembly - now we can use the newest sbt-assembly plugin version and no IOException will be thrown when assembling.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-15):

Progress: - Fixed bug in Regex - graalvm.regex changed its regex polyglot object representation (groups).

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-16):

Progress: - Fixing std-benchmarks annotation processor.

enso-bot[bot] commented 10 months ago

Pavel Marek reports a new STANDUP for today (2023-11-17):

Progress: - Fixed rest of the problems, should be able to merge in the evening.