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

WIP: Support for JRuby-9000 #3792

Closed
wants to merge 8 commits into from

Conversation

kennethkalmer
Copy link
Contributor

Will bring in the combined efforts of previous attempts to get activeadmin running on jruby-9000, slated to be the next major JRuby release.

  • Get dependencies installed
  • Get the tests running
  • Fix any test failures
  • Hook up to CI
  • Prosper

Also increase allowed memory usage
gem 'redcarpet' # Markdown implementation (for yard)
gem 'yard' # Documentation generator
gem 'redcarpet', platforms: :mri # Markdown implementation (for yard)
gem 'kramdown', platforms: :jruby # Markdown implementation (for yard)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please bring all comments of all blocks into one line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

across the entire Gemfile? Just making sure before I do

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think across the entire Gemfile is a good idea

@brennovich
Copy link
Contributor

I'll try to help with this issue :)

Although I have a concern: will Rails 3.2.X be supported? If so, I don't think we'll be able to accomplish that.

Besides that I'll start with Rails 4.2.0.

@brennovich
Copy link
Contributor

Well, well all unit specs seems to be passing, I needed to increase heap size though

screenshot 2015-02-15 19 47 44

@kennethkalmer
Copy link
Contributor Author

@brennovich thanks! I bumped the heap to 1024 and it all passed, but on Travis it timed out after 50 mins :(

I guess we need to find the source of Test::Unit's AutoRunner kicking in next.

There are also some specs using ObjectSpace which I expected to fail off the bat, but either they work or they simply haven't run yet.

@timoschilling
Copy link
Member

can you please move jruby from the allow_failures list to the normal list. So that this PR is listet as failing in GH until you are done.

@kennethkalmer
Copy link
Contributor Author

@timoschilling not yet, I've been soliciting feedback to help see this through. That said, let me put in some time today to merge in the mainline branches and run tests again. Thanks for the push to get his merged!

@timoschilling
Copy link
Member

It's ok that you still need time for this PR. I only want to see the true CI status in the PR List like it is on #3742
pull_requests_ _activeadmin_activeadmin

@@ -107,6 +107,9 @@ def with_translation(translation)

require 'rspec/rails'

# prevent Test::Unit's AutoRunner from executing during RSpec's rake task on JRuby

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [82/80]

@deivid-rodriguez
Copy link
Member

I tried activeadmin with JRuby today. It's working.

I rebased this PR and got only a couple of test failures:

Failing Scenarios:
cucumber features/index/batch_actions.feature:3 # Scenario: Use default (destroy) batch action
cucumber features/index/batch_actions.feature:40 # Scenario: Use default (destroy) batch action on a nested resource

The functionality they test actually works, so it seems like a bug / misuse of capybara / poltergeist.

@deivid-rodriguez
Copy link
Member

If I add the @javascript tag on top of those scenarios, those assertions pass, but I get other failures because the assertions are not supported by the poltergeist driver.

@timoschilling
Copy link
Member

@deivid-rodriguez 👍 can you continue the work on that?

@deivid-rodriguez
Copy link
Member

I'm on it, I'll open a PR superseding this one. Is that ok?

@brennovich
Copy link
Contributor

@deivid-rodriguez even the memory leak specs are passing?

Can you keep with this PR? I think the history here may be important in the future ;)

@deivid-rodriguez
Copy link
Member

Everything is passing. But I haven't tried jruby-head, only jruby.9.0.0.0.rc2. I'll let travis do that.

You mean opening a PR at kennethkalmer/activeadmin?

@deivid-rodriguez
Copy link
Member

@brennovich Note that I am keeping history, I'm just doing it in a new branch in my own fork.

@brennovich
Copy link
Contributor

Awesome!

Humm not sure, I think you're right, is better to open up a new one, just make sure to comment the new PR number here in the comments :)

Thanks o/

@deivid-rodriguez
Copy link
Member

Opening a sub-PR is good because commit authors are kept, but just rebasing my work on top of a copy of @kennethkalmer's branch seems easier (and already done).

@brennovich
Copy link
Contributor

👍

@deivid-rodriguez deivid-rodriguez mentioned this pull request Jul 17, 2015
@deivid-rodriguez
Copy link
Member

Done! And the commit authors are preserved... I love git. 😄

Let's see how the build goes.

@timoschilling
Copy link
Member

closed #4032

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

Successfully merging this pull request may close these issues.

None yet

5 participants