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

Support for rails 6 #673

Open
stepozer opened this issue Jan 22, 2020 · 5 comments
Open

Support for rails 6 #673

stepozer opened this issue Jan 22, 2020 · 5 comments

Comments

@stepozer
Copy link

stepozer commented Jan 22, 2020

I successfully use your gem for our legacy project in previous year. It speed up my specs loading. Thank you! But right now we updated ruby on rails from 5 to 6 version and Zeus crashed. I also tested with new rails 6 application, and it also did not working.

Do you have any chance watch the problem?

Thank you again.

@maslenkov
Copy link

It'd be great to have a dummy app with an example.
At least you may have a problem with bootsnap - #617 (comment)
Please, let us know if it fixes your problem.

@stepozer
Copy link
Author

@maslenkov My boot.rb does not contain bootsnap:

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

When I try start zeus I see this error:

image

In logs:

2020/01/24 09:49:57.254502 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:149] development_environment/(no PID) entering state SUnbooted
2020/01/24 09:49:57.254565 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:149] default_bundle/(no PID) entering state SUnbooted
2020/01/24 09:49:57.254555 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:149] test_helper/(no PID) entering state SUnbooted
2020/01/24 09:49:57.254525 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:149] test_environment/(no PID) entering state SUnbooted
2020/01/24 09:49:57.254542 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:149] prerake/(no PID) entering state SUnbooted
2020/01/24 09:49:57.254549 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:149] boot/(no PID) entering state SUnbooted
2020/01/24 09:49:57.254657 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:391] boot/(no PID) running the root command now
2020/01/24 09:49:57.708604 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:135] boot/(23211) initialized slave boot with pid 23211 from parent 0
2020/01/24 09:49:57.708648 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:152] boot/(23211) entering state SBooting
2020/01/24 09:49:58.979527 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:231] boot/(23211) received action message
2020/01/24 09:49:58.979558 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:155] boot/(23211) entering state SReady
2020/01/24 09:49:58.979572 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:339] boot/(23211) now sending slave boot request for default_bundle
2020/01/24 09:49:58.981015 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:135] default_bundle/(23232) initialized slave default_bundle with pid 23232 from parent 23211
2020/01/24 09:49:58.981042 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:152] default_bundle/(23232) entering state SBooting
2020/01/24 09:50:00.338224 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:231] default_bundle/(23232) received action message
2020/01/24 09:50:00.338255 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:155] default_bundle/(23232) entering state SReady
2020/01/24 09:50:00.338286 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:339] default_bundle/(23232) now sending slave boot request for development_environment
2020/01/24 09:50:00.338298 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:339] default_bundle/(23232) now sending slave boot request for test_environment
2020/01/24 09:50:00.340683 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:135] development_environment/(23241) initialized slave development_environment with pid 23241 from parent 23232
2020/01/24 09:50:00.340732 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:152] development_environment/(23241) entering state SBooting
2020/01/24 09:50:00.342589 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:135] test_environment/(23244) initialized slave test_environment with pid 23244 from parent 23232
2020/01/24 09:50:00.342625 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:152] test_environment/(23244) entering state SBooting
2020/01/24 09:50:01.325824 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:231] test_environment/(23244) received action message
2020/01/24 09:50:01.325858 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:158] test_environment/(no PID) entering state SCrashed
2020/01/24 09:50:01.325870 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:158] test_helper/(no PID) entering state SCrashed
2020/01/24 09:50:01.372784 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:231] development_environment/(23241) received action message
2020/01/24 09:50:01.372836 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:158] development_environment/(no PID) entering state SCrashed
2020/01/24 09:50:01.372848 [/Users/phil/Source/go/src/github.com/burke/zeus/go/processtree/slavenode.go:158] prerake/(no PID) entering state SCrashed

I will try create sample project when have time

@maslenkov
Copy link

What is the output of commands like zeus server?
As you can see on your own screenshot - zeus server (alias: s) [run to see backtrace] - zeus suggests running zeus server to see backtrace.
(BTW: it'd be nice to compare output right after zeus start and on the second run, some times it can be different).

@jeantristan
Copy link

Hello,
I have the same issue.

➜  monbelappart-rails git:(feat-297-zeus) ✗ rails -v  
Rails 6.0.3.4

And I have the following output:

➜  monbelappart-rails git:(feat-297-zeus) ✗ zeus start
Starting Zeus server v0.15.14
[ready] [crashed] [running] [connecting] [waiting]
boot
└── default_bundle
    ├── development_environment
    │   └── prerake
    └── test_environment
        └── test_helper

Available Commands: [waiting] [crashed] [ready]
zeus dbconsole
zeus rake
zeus runner (alias: r)
zeus console (alias: c)
zeus server (alias: s)
zeus generate (alias: g)
zeus destroy (alias: d)
zeus test (alias: rspec, testrb)
exit status 1

@taras2358
Copy link

DISABLE_BOOTSNAP=true zeus start works for me

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

No branches or pull requests

4 participants