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

Upgrade to Ruby 2.4 for development #14446

Closed
54 tasks done
jrafanie opened this issue Mar 21, 2017 · 13 comments
Closed
54 tasks done

Upgrade to Ruby 2.4 for development #14446

jrafanie opened this issue Mar 21, 2017 · 13 comments
Assignees
Labels

Comments

@jrafanie
Copy link
Member

jrafanie commented Mar 21, 2017

I would suggest high level steps as:

The following can be started now and be done in parallel:

After the above is done:

@abonas
Copy link
Member

abonas commented Apr 2, 2017

@jrafanie why isn't hawkular-ruby-client on the list of gems that need update?
if I understand correctly the required changes, hawkular ruby client needs bumping travis.yml (and also gemspec iiic) as well as upgrading webmock - like other gems (kubeclient, for instance)
@cfcosta @Jiri-Kremser @pilhuhn fyi ^^

@jrafanie
Copy link
Member Author

jrafanie commented Apr 2, 2017

@abonas I go through my Gemfile.lock and add ones we own or partially own to this list as I get a chance to try them. If you have others we should add, please add them or mention them here and I'll add them. Thanks!

@jrafanie
Copy link
Member Author

jrafanie commented Apr 2, 2017

I believe at least a few of our gems depend on webmock for testing. Hopefully, we can upgrade webmock and be able to use the same cassettes from webmock in 2.4 and earier rubies.

@abonas
Copy link
Member

abonas commented Apr 2, 2017

indeed @jrafanie
https://github.com/ManageIQ/manageiq-gems-pending/blob/master/manageiq-gems-pending.gemspec#L37
https://github.com/hawkular/hawkular-client-ruby/blob/master/hawkularclient.gemspec#L33
What concerns me is that changes like this upgrade are not known well by the broader miq community, I learned about it by chance from an issue in kubeclient

@jrafanie
Copy link
Member Author

jrafanie commented Apr 3, 2017

@abonas So, it wasn't announced to the larger miq community yet for a few reasons:

  • we need to get the core miq repo 2.4 compatible first, many gems clone miq for their own tests
  • I need to provide examples of what needs to be done and any known issues
  • I really want to understand the webmock upgrade fix on at least a single gem repo before I ask others to do it. Unfortunately, I don't have any of the environments to re-record the vcr cassettes on any of these gems to see if the newer webmock produces 2.3/2.4 compatible cassettes.

So, yes, you were a pilot user/developer. I will announce something once we get the above bullet points completed.

@d-m-u
Copy link
Contributor

d-m-u commented May 9, 2017

Does this also require an update to puma (3.7.1ish) sometime so as to avoid puma/puma#1220?

@jrafanie
Copy link
Member Author

jrafanie commented May 9, 2017

@d-m-u thanks for the headsup... I haven't seen this problem on ruby 2.4.1... Maybe it's only on 2.4.0?

@d-m-u
Copy link
Contributor

d-m-u commented May 9, 2017

Whoops, sorry, yeah, you're right.

@Fryguy
Copy link
Member

Fryguy commented Jun 14, 2017

@jrafanie Can we update the OP note on manageiq-gems-pending now and check it off as done?

@cben
Copy link
Contributor

cben commented Aug 8, 2017

I propose waiting for next Ruby release before using it in production builds. Not a problem on Travis and not a blocker to dropping 2.2 IMHO.

@chrisarcand
Copy link
Member

@jrafanie I just ran the full test suite with Ruby 2.4 with no issues or deprecations, etc. I did not go through every single dependency as seems to be a huge time suck for the vast majority of gems to not be affected in any way; I think we've already got all the essential ones.

Tomorrow (Tuesday) we should open all pull requests across all ManageIQ repos to drop 2.2 and add 2.4 to test matrices, etc, to let CI run everything and make sure everything's green. Then we rebase it all and merge on Wednesday morning.

@chrisarcand chrisarcand changed the title Upgrade to ruby 2.4 for all the things! Upgrade to Ruby 2.4 for ~~all the things!~~ development Oct 4, 2017
@chrisarcand chrisarcand changed the title Upgrade to Ruby 2.4 for ~~all the things!~~ development Upgrade to Ruby 2.4 for development Oct 4, 2017
@chrisarcand
Copy link
Member

chrisarcand commented Oct 4, 2017

As discussed, plans have changed slightly and a more official process has been agreed to. We're dropping Ruby 2.2 today, updating @miq-bot, etc, but will be continuing to run appliances on 2.3.1, as dictated by the supported version in Red Hat Software Collections. We'll also add a 2.4.2 Travis build, which will conclude supporting 2.4 and then this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants