Skip to content

Commit e97707f

Browse files
committed
[GR-50666] Use exclusively standalones and no longer legacy GraalVM layout
PullRequest: truffleruby/4173
2 parents f6ffeb3 + 44dfc56 commit e97707f

File tree

22 files changed

+36
-102
lines changed

22 files changed

+36
-102
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ jobs:
7171

7272
- name: Create archive
7373
run: |
74-
cd $(dirname $(jt graalvm-home))
75-
mv $(basename $(jt graalvm-home)) truffleruby-jvm
74+
cd $(dirname $(jt ruby-home))
75+
mv $(basename $(jt ruby-home)) truffleruby-jvm
7676
tar cf ${{ github.workspace }}/truffleruby-jvm.tar truffleruby-jvm
7777
- uses: actions/upload-artifact@v2
7878
with:
@@ -114,7 +114,7 @@ jobs:
114114
- name: Create archive
115115
run: |
116116
df -h
117-
mv "$(jt -u native graalvm-home)" "${{ github.workspace }}/truffleruby-native"
117+
mv "$(jt -u native ruby-home)" "${{ github.workspace }}/truffleruby-native"
118118
rm -r mxbuild ../graal/sdk/mxbuild
119119
df -h
120120
cd ${{ github.workspace }}

ci.jsonnet

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,6 @@ local part_definitions = {
368368
jt(["test", "bundle"]),
369369
},
370370

371-
test_cexts_sulong: {
372-
mx_env:: "toolchain",
373-
environment+: {
374-
TRUFFLERUBYOPT: "--experimental-options --cexts-sulong",
375-
},
376-
run+: jt(["test", "specs", ":cext"]),
377-
},
378-
379371
testdownstream_aot: { run+: [["mx", "ruby_testdownstream_aot", "$RUBY_BIN"]] },
380372

381373
test_make_standalone_distribution: {
@@ -536,12 +528,10 @@ local composition_environment = utils.add_inclusion_tracking(part_definitions, "
536528
"ruby-test-cexts-linux-aarch64": $.platform.linux_aarch64 + $.jdk.stable + $.env.jvm + gate + $.use.gem_test_pack + $.use.sqlite331 + $.run.test_cexts,
537529
"ruby-test-cexts-darwin-amd64": $.platform.darwin_amd64 + $.jdk.stable + $.env.jvm + gate + $.use.gem_test_pack + $.run.test_cexts + { timelimit: "01:30:00" },
538530
"ruby-test-cexts-darwin-aarch64": $.platform.darwin_aarch64 + $.jdk.stable + $.env.jvm + gate + $.use.gem_test_pack + $.run.test_cexts + { timelimit: "00:40:00" },
539-
"ruby-test-cexts-sulong": $.platform.linux + $.jdk.stable + $.env.jvm + gate + $.run.test_cexts_sulong + { timelimit: "20:00" },
540531
"ruby-test-gems-linux-amd64": $.platform.linux + $.jdk.stable + $.env.jvm + gate + $.use.gem_test_pack + $.run.test_gems,
541532
"ruby-test-gems-darwin-amd64": $.platform.darwin_amd64 + $.jdk.stable + $.env.jvm + gate + $.use.gem_test_pack + $.run.test_gems,
542533
"ruby-test-gems-darwin-aarch64": $.platform.darwin_aarch64 + $.jdk.stable + $.env.jvm + gate + $.use.gem_test_pack + $.run.test_gems,
543534
"ruby-test-ecosystem-linux-amd64": $.platform.linux + $.jdk.stable + $.env.jvm + gate + $.use.node + $.use.sqlite331 + $.use.gem_test_pack + $.run.test_ecosystem,
544-
"ruby-test-standalone-linux-amd64": $.platform.linux + $.jdk.stable+ gate_no_build + $.run.test_make_standalone_distribution,
545535

546536
"ruby-test-compiler-ce-stable": $.platform.linux + $.jdk.stable + $.env.jvm_ce + gate + $.use.truffleruby + $.run.test_compiler,
547537
"ruby-test-compiler-ce-latest": $.platform.linux + $.jdk.latest + $.env.jvm_ce + gate + $.use.truffleruby + $.run.test_compiler,

doc/contributor/launchers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This file explains the requirements and architecture of the second category of t
1010

1111
## Requirements
1212

13-
1. When TruffleRuby tar (GraalVM) is downloaded and unpacked, all files in `bin` and
14-
`languages/ruby/bin` has to always run the TruffleRuby provided by the tar.
13+
1. When TruffleRuby tar (GraalVM) is downloaded and unpacked, all files in `bin`
14+
have to always run the TruffleRuby provided by the tar.
1515
- Therefore `PATH` is not involved (`/usr/bin/env` cannot be used in shebang).
1616
- Therefore there are no absolute paths in `bin` executables.
1717
- Therefore all scripts in `bin` are always resolved to `truffleruby` in the same dir.

mx.truffleruby/jvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ DYNAMIC_IMPORTS=/tools
33
COMPONENTS=TruffleRuby,suite:tools
44
# To also create the standalone
55
INSTALLABLES=TruffleRuby
6-
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES
6+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.truffleruby/jvm-ce

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ DYNAMIC_IMPORTS=/tools,/compiler
33
COMPONENTS=TruffleRuby,suite:tools,GraalVM compiler
44
# To also create the standalone
55
INSTALLABLES=TruffleRuby
6-
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES
6+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.truffleruby/jvm-ce-libgraal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ COMPONENTS=TruffleRuby,suite:tools,GraalVM compiler,SubstrateVM,LibGraal
44
NATIVE_IMAGES=lib:jvmcicompiler
55
# To also create the standalone
66
INSTALLABLES=TruffleRuby
7-
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES
7+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.truffleruby/jvm-ee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ COMPONENTS=TruffleRuby,suite:tools,GraalVM enterprise compiler,Truffle enterpris
44
NATIVE_IMAGES=false
55
# To also create the standalone
66
INSTALLABLES=TruffleRuby
7-
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES
7+
BUILD_TARGETS=GRAALVM_STANDALONES
88
# NOTE: SVM EE is added as a workaround to tell the JVM standalone to be EE

mx.truffleruby/jvm-ee-libgraal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ COMPONENTS=TruffleRuby,suite:tools,GraalVM enterprise compiler,Truffle enterpris
44
NATIVE_IMAGES=lib:jvmcicompiler
55
# To also create the standalone
66
INSTALLABLES=TruffleRuby
7-
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES
7+
BUILD_TARGETS=GRAALVM_STANDALONES

mx.truffleruby/mx_truffleruby.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import mx_gate
1919
import mx_sdk
2020
import mx_sdk_vm
21+
import mx_sdk_vm_impl
2122
import mx_subst
2223
import mx_spotbugs
2324

@@ -190,9 +191,9 @@ def ruby_check_heap_dump(input_args, out=None):
190191
raise Exception("heap dump check failed")
191192

192193
def ruby_run_ruby(args):
193-
"""run TruffleRuby in $(mx graalvm-home), use bin/jt for more control and shortcuts"""
194-
graalvm_home = mx_sdk_vm.graalvm_home(fatalIfMissing=True)
195-
ruby = join(graalvm_home, 'languages/ruby/bin/ruby')
194+
"""run TruffleRuby in $(mx standalone-home --type=jvm ruby), needs an env including a ruby standalone. Use bin/jt for more control and shortcuts"""
195+
standalone_home = mx_sdk_vm_impl.standalone_home('ruby', is_jvm=True)
196+
ruby = join(standalone_home, 'bin/ruby')
196197
os.execlp(ruby, ruby, *args)
197198

198199
def ruby_run_specs(ruby, args):
@@ -223,7 +224,9 @@ def ruby_testdownstream_aot(args):
223224

224225
def ruby_spotbugs(args):
225226
"""Run SpotBugs with custom options to detect more issues"""
226-
mx.command_function('build')(['--no-native']) # SpotBugs needs all Java projects to be built
227+
# SpotBugs needs all Java projects to be built
228+
# GR-52408: mx.command_function('build')(['--no-native']) should be enough but it fails
229+
mx.command_function('build')([])
227230

228231
filters = join(root, 'mx.truffleruby', 'spotbugs-filters.xml')
229232
spotbugsArgs = ['-textui', '-low', '-longBugCodes', '-include', filters]

mx.truffleruby/native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ EXTRA_IMAGE_BUILDER_ARGUMENTS=rubyvm:-H:+UnlockExperimentalVMOptions rubyvm:-H:B
66
GENERATE_DEBUGINFO=false
77
# To also create the standalone
88
INSTALLABLES=TruffleRuby
9-
BUILD_TARGETS=GRAALVM,GRAALVM_STANDALONES
9+
BUILD_TARGETS=GRAALVM_STANDALONES

0 commit comments

Comments
 (0)