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
Getting testSuite to run on JRuby #11700
Comments
|
|
RubyMine has some sort of features for debugging Ruby applications. |
|
@arunagw had pushed |
|
Yep there is branch called jruby-tests which is running only JRuby tests on travis, It's will be great if we can get Rails tests passes under JRuby. I would love to help in that. If you have added patch in Rails which makes any test green with JRuby and also works on MRI then you can open a PR and happy to review that, it's like one by one step. thanks |
|
Can you open a PR for your first [x]? This issue is kind of a weird one, where it's not exactly a bug but not exactly not a bug. I don't mind leaving it open as long as some kind of progress is being made through PRs and such, to let people know what they can do to help. But it should be in small chunks, not just one big 'make JRuby work'. |
|
|
|
|
|
@anildigital to be clear: we consider any bugs on JRuby to be real bugs that need fixed, we just don't actively run the test suite against JRuby. |
|
@steveklabnik So do you mean we will continue to not run the test suite against JRuby and do fixes only by PR to Rails? I think what @gaurish is trying to say that we should run the test suite again JRuby. Am I right @gaurish? /cc @headius |
|
On
thoughts? @anildigital @arunagw @steveklabnik |
|
@gaurish what I'm saying is feel free to submit partial pull requests, the entire thing doesn't have to be green before we can introduce some fixes. Big PRs are harder to review. @anildigital we can't even consider running the tests on JRuby until they are all green and work. Once they do, we'll have the discussion; I think previously we said we'd like to if Travis gives the okay, which they since have, but that we'd make an actual decision about this once it was even possible. All of this goes equally for Rubinius as well. |
|
Lets do some things here.
A long living issue/pull request is not good for the Rails project. That said I'll closed this issue but please lets address these two points above. |
|
agree with @rafaelfranca a big PR for this can't be a good idea |
|
Enabled jruby on master a840e5f I'll see how travis will behaves and apply on others branch if everything is fine |
|
@rafaelfranca can/should we do Rubinius too? I know that there has been a little bit of work towards it too. |
|
and then this can be closed #6264 |
|
@steveklabnik I think we should. I'm waiting to see the build time with jruby and will enable rbx too. |
|
@steveklabnik I think we need to ask to TravisCI guys if the servers can support the load of another additional ruby |
|
@guilleiguaran, @joshk said travis is ready. #6264 (comment) |
|
rbx enabled on 1dcd187 |
|
@steveklabnik |
Hopefully the first of many related to rails#11700. With these changes the railties tests wont 100% pass but at least they will run and show the errors. The first problem was the @method_name variable was never set. This was causing ENV["ISOLATION_TEST"] to always be nil which would cause the test output to never be written to the tempfile. The second problem was that an invalid -t option was being passed to minitest and minitest was erroring out. The third problem was the run method needs to always return an instance of the test class it is trying to isolate. We were returning a ProxyTestResult instead.
|
Hey guys, I will take a look on failures at railties on jruby ;) |
|
Hi @sobrinho, thanks a lot for your help but I plan to work on getting the test suite to run on JRuby and Rubinius as part of my GSoC this year. :-) |
|
@robin850 good to know that, go for it! |
|
@robin850 Great. this would give a major push to an effort we started 9months ago as you will be able to work full time on this. Glad to head this |
|
Found a bunch more failures, some are bugs in JRuby. Not sure what to do with them, so made a gist https://gist.github.com/bf4/bfb08415fde03f46601f |
As lots of people use JRuby in Production, it might be a good idea if Rails testsuite gets run on JRUBY after every commit to ensure reliability & feature parity with MRI. But we far away from there because currently the testsuite doesn't run at all on JRuby.
so, opening this issue to track/collaborate with others on getting testsuite running on JRuby.
The text was updated successfully, but these errors were encountered: