-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
project-manager can start without prior GraalVM installation (#8410)
This is a follow-up of #7991. #7991 broken `runtime-version-manager`. This is mostly reverts. ### Important Notes Launcher now correctly recognizes that the newest engine needs some runtime: ```sh > java -jar launcher.jar list Enso 2023.2.1-nightly.2023.10.31 -> GraalVM 23.0.0-java17.0.7 Enso 0.0.0-dev -> GraalVM 23.1.0-java21.0.1 ``` (this has not worked before)
- Loading branch information
Showing
20 changed files
with
217 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...c/test/scala/org/enso/projectmanager/protocol/ProjectCreateHandleMissingRuntimeSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.enso.projectmanager.protocol | ||
|
||
import org.enso.projectmanager.TestDistributionConfiguration | ||
import org.enso.runtimeversionmanager.runner.JVMSettings | ||
import org.enso.runtimeversionmanager.test.FakeReleases | ||
|
||
class ProjectCreateHandleMissingRuntimeSpec extends ProjectCreateSpecBase { | ||
override val distributionConfiguration = | ||
new TestDistributionConfiguration( | ||
distributionRoot = testDistributionRoot.toPath, | ||
engineReleaseProvider = FakeReleases.engineReleaseProvider, | ||
runtimeReleaseProvider = FakeReleases.runtimeReleaseProvider, | ||
discardChildOutput = !debugChildLogs | ||
) { | ||
override def defaultJVMSettings: JVMSettings = JVMSettings( | ||
javaCommandOverride = None, | ||
jvmOptions = Seq() | ||
) | ||
} | ||
|
||
override val engineToInstall = Some(defaultVersion) | ||
|
||
"project/create" should { | ||
behave like correctlyHandleMissingRuntimeInPresenceOfEngine() | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...src/test/scala/org/enso/projectmanager/protocol/ProjectOpenHandleMissingRuntimeSpec.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.enso.projectmanager.protocol | ||
|
||
import nl.gn0s1s.bump.SemVer | ||
import org.enso.runtimeversionmanager.test.OverrideTestVersionSuite | ||
|
||
class ProjectOpenHandleMissingRuntimeSpec | ||
extends ProjectOpenSpecBase | ||
with OverrideTestVersionSuite { | ||
|
||
override def testVersion: SemVer = SemVer(0, 0, 1) | ||
|
||
"project/open" should { | ||
behave like correctlyHandleMissingRuntimeInPresenceOfEngine() | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...resources/org/enso/runtimeversionmanager/test/fake-releases/enso/enso-0.0.1/manifest.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
minimum-launcher-version: 0.0.0-dev | ||
minimum-project-manager-version: 0.0.0-dev | ||
graal-vm-version: 23.2.0 | ||
graal-java-version: 21 | ||
graal-java-version: 21.0.0 | ||
jvm-options: | ||
- value: "-Denso.version.override=0.0.1" |
2 changes: 1 addition & 1 deletion
2
...resources/org/enso/runtimeversionmanager/test/fake-releases/enso/enso-0.1.0/manifest.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
minimum-launcher-version: 0.0.0-dev | ||
minimum-project-manager-version: 9999.0.0 | ||
graal-vm-version: 23.2.0 | ||
graal-java-version: 21 | ||
graal-java-version: 21.0.0 | ||
jvm-options: | ||
- value: "-Dpolyglot.compiler.IterativePartialEscape=true" | ||
- value: "-Denso.version.override=0.1.0" |
2 changes: 2 additions & 0 deletions
2
...alvm-community-jdk-21.0.0_linux-x64_bin.tar.gz/graalvm-community-openjdk-21+35.1/bin/java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
echo "Fake JVM executable has been executed" |
2 changes: 2 additions & 0 deletions
2
...-21.0.0_macos-aarch64_bin.tar.gz/graalvm-community-openjdk-21+35.1/Contents/Home/bin/java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
echo "Fake JVM executable has been executed" |
2 changes: 2 additions & 0 deletions
2
...-jdk-21.0.0_macos-x64_bin.tar.gz/graalvm-community-openjdk-21+35.1/Contents/Home/bin/java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
echo "Fake JVM executable has been executed" |
1 change: 1 addition & 0 deletions
1
...m-community-jdk-21.0.0_windows-x64_bin.zip/graalvm-community-openjdk-21+35.1/bin/java.exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
placeholder |
7 changes: 6 additions & 1 deletion
7
...ger/components/NoopComponentUpdater.scala → ...onmanager/test/NoopComponentUpdater.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.