@@ -8,7 +8,7 @@ API, and shut downs the rails server. It requires Redis as a database to be
8
8
running in its default configuration on ` localhost:6379 ` .
9
9
10
10
The ` jt test ecosystem rails-app ` should be executed in TruffleRuby's home. The
11
- output will be similar to following:
11
+ output will be similar to following:
12
12
13
13
``` txt
14
14
jt test ecosystem rails-app
@@ -88,7 +88,7 @@ Use `bundle show [gemname]` to see where a bundled gem is installed.
88
88
+ path/to/truffleruby/bin/truffleruby path/to/truffleruby/test/truffleruby-tool/bin/truffleruby-tool run --offline -- -S bundle exec bin/rails server
89
89
....jtt: loading YAML configuration path/to/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool.yaml
90
90
jtt: executing "run" command
91
- jtt: $ TRUFFLERUBY_RESILIENT_GEM_HOME="" GEM_HOME="path/to/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH="path/to/truffleruby/truffleruby-gem-test-pack-5/gems" PATH="path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK="true" path/to/truffleruby/bin/truffleruby -J-Xmx2G -J-ea -J-esa -Xcore.load_path\=path/to/truffleruby/src/main/ruby -I path/to/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -r openssl-stubs -r stubs - S bundle exec bin/rails server
91
+ jtt: $ TRUFFLERUBY_RESILIENT_GEM_HOME="" GEM_HOME="path/to/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH="path/to/truffleruby/truffleruby-gem-test-pack-5/gems" PATH="path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK="true" path/to/truffleruby/bin/truffleruby -J-Xmx2G -J-ea -J-esa -Xcore.load_path\=path/to/truffleruby/src/main/ruby -I path/to/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -S bundle exec bin/rails server
92
92
....[ruby] WARNING rubygems.rb:11 Could not find 'did_you_mean' (>= 0) among 148 total gem(s)
93
93
Checked in 'GEM_PATH=path/to/truffleruby/truffleruby-gem-test-pack-5/gems', execute `gem env` for more information
94
94
.HTML sanitization stubbed
@@ -151,29 +151,29 @@ true+ kill %1
151
151
+ kill 9617
152
152
```
153
153
154
- There are several levels of indirection but it always prints what command is actually
154
+ There are several levels of indirection but it always prints what command is actually
155
155
executed. It's prefixed with ` + ` if it's executed by bash or by ` $ ` if it's our tool.
156
156
157
157
If the test finishes without problem then the rails server can be executed from
158
158
the ` path/to/truffleruby/test/truffle/ecosystem/rails-app ` directory for further investigation.
159
159
The server can be started with following command which can be copied out from the output.
160
160
161
161
``` bash
162
- TRUFFLERUBY_RESILIENT_GEM_HOME=" " GEM_HOME=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems" PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK=" true" path/to/truffleruby/bin/truffleruby -J-Xmx2G -J-ea -J-esa -Xcore.load_path\= path/to/truffleruby/src/main/ruby -I path/to/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -r openssl-stubs -r stubs - S bundle exec bin/rails server
162
+ TRUFFLERUBY_RESILIENT_GEM_HOME=" " GEM_HOME=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems" PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK=" true" path/to/truffleruby/bin/truffleruby -J-Xmx2G -J-ea -J-esa -Xcore.load_path\= path/to/truffleruby/src/main/ruby -I path/to/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -S bundle exec bin/rails server
163
163
```
164
164
165
165
The command can be further modified for inspection.
166
- First it's useful to use jt not to run TruffleRuby directly.
166
+ First it's useful to use jt not to run TruffleRuby directly.
167
167
(` -Xcore.load_path ` option can be then omitted.)
168
168
169
169
``` bash
170
- env TRUFFLERUBY_RESILIENT_GEM_HOME=" " GEM_HOME=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK=" true" ../../../../tool/jt.rb ruby -J-Xmx2G -J-ea -J-esa -I /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -r openssl-stubs -r stubs - S bundle exec ./bin/rails server
170
+ env TRUFFLERUBY_RESILIENT_GEM_HOME=" " GEM_HOME=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK=" true" ../../../../tool/jt.rb ruby -J-Xmx2G -J-ea -J-esa -I /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -S bundle exec ./bin/rails server
171
171
```
172
172
173
173
To run on Graal pass ` --graal ` to ` jt ruby ` .
174
174
175
175
``` bash
176
- env TRUFFLERUBY_RESILIENT_GEM_HOME=" " GEM_HOME=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK=" true" ../../../../tool/jt.rb ruby --graal -J-Xmx2G -J-ea -J-esa -I /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -r openssl-stubs -r stubs - S bundle exec ./bin/rails server
176
+ env TRUFFLERUBY_RESILIENT_GEM_HOME=" " GEM_HOME=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" GEM_PATH=" /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/truffleruby-gem-test-pack-5/gems" PATH=" path/to/truffleruby/truffleruby-gem-test-pack-5/gems/bin:<snipped>" NO_FORK=" true" ../../../../tool/jt.rb ruby --graal -J-Xmx2G -J-ea -J-esa -I /Users/pitr/Workspace/labs/truffleruby-ws/truffleruby/test/truffle/ecosystem/rails-app/.truffleruby-tool_bundle/mocks -S bundle exec ./bin/rails server
177
177
```
178
-
178
+
179
179
The command can be further modified as needed to investigate.
0 commit comments