Project

General

Profile

Actions

Idea #14946

closed

Update to Ruby 2.5 - 2.3 is going EOL

Added by Tom Morris about 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
1.0
Release relationship:
Auto

Subtasks 1 (0 open1 closed)

Task #14963: Review 14946-ruby-2.5ResolvedLucas Di Pentima05/31/2019Actions

Related issues

Related to Arvados - Bug #14967: [SSO] fails to start with Ruby 2.4 (future of the SSO server)ClosedActions
Related to Arvados - Idea #14989: [SSO] Upgrade to Rails 5RejectedActions
Blocked by Arvados - Idea #14988: [Workbench] Upgrade to Rails 5ResolvedLucas Di Pentima05/14/2019Actions
Blocked by Arvados - Idea #14873: [API] Update to Rails 5ResolvedLucas Di Pentima03/20/2019Actions
Actions #1

Updated by Lucas Di Pentima about 5 years ago

  • Assigned To set to Lucas Di Pentima
Actions #2

Updated by Peter Amstutz about 5 years ago

I have a branch of arvbox, I just tried upgrading ruby to 2.4. We might have a problem with the SSO server:

2019-03-13_18:21:07.25233 Bundler::GemRequireError: There was an error while trying to load the gem 'devise'.
2019-03-13_18:21:07.25233 Gem Load Error is: ActiveSupport::Duration can't be coerced into Integer
2019-03-13_18:21:07.25233 Backtrace for gem load error is:
2019-03-13_18:21:07.25233 /var/lib/gems/ruby/2.4.0/gems/activesupport-3.2.22.5/lib/active_support/core_ext/numeric/time.rb:50:in `*'
2019-03-13_18:21:07.25233 /var/lib/gems/ruby/2.4.0/gems/activesupport-3.2.22.5/lib/active_support/core_ext/numeric/time.rb:50:in `days'
2019-03-13_18:21:07.25234 /var/lib/gems/ruby/2.4.0/gems/activesupport-3.2.22.5/lib/active_support/core_ext/numeric/time.rb:55:in `weeks'
2019-03-13_18:21:07.25234 /var/lib/gems/ruby/2.4.0/gems/devise-2.2.8/lib/devise.rb:102:in `<module:Devise>'
2019-03-13_18:21:07.25234 /var/lib/gems/ruby/2.4.0/gems/devise-2.2.8/lib/devise.rb:8:in `<top (required)>'
2019-03-13_18:21:07.25234 /var/lib/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:81:in `require'
2019-03-13_18:21:07.25234 /var/lib/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
2019-03-13_18:21:07.25234 /var/lib/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:76:in `each'
2019-03-13_18:21:07.25235 /var/lib/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:76:in `block in require'
2019-03-13_18:21:07.25235 /var/lib/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:65:in `each'
2019-03-13_18:21:07.25235 /var/lib/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:65:in `require'
2019-03-13_18:21:07.25235 /var/lib/gems/gems/bundler-1.16.1/lib/bundler.rb:114:in `require'
2019-03-13_18:21:07.25236 /usr/src/sso/config/application.rb:7:in `<top (required)>'
2019-03-13_18:21:07.25236 /usr/src/sso/Rakefile:4:in `require'
2019-03-13_18:21:07.25236 /usr/src/sso/Rakefile:4:in `<top (required)>'
Actions #3

Updated by Peter Amstutz about 5 years ago

  • Related to Bug #14967: [SSO] fails to start with Ruby 2.4 (future of the SSO server) added
Actions #4

Updated by Fernando Monserrat about 5 years ago

@lucas @Peter we were talking on our kanban about the ruby update, why don't we try to go to version 2.5 instead of 2.4 . For Debian (buster)and Ubuntu (bionic) default is 2.5.1 and we think stretch will move to this version also now taht 2.3 is in EOL .

Actions #5

Updated by Lucas Di Pentima about 5 years ago

  • Status changed from New to In Progress
Actions #6

Updated by Lucas Di Pentima about 5 years ago

Fernando: Rails 4.2 doesn't support ruby 2.5, BUT rails 4.2 will be completely unsupported near April 30th when rails 6 is released, so I think it's maybe worth to try to upgrade rails & ruby on the same go.

Actions #7

Updated by Lucas Di Pentima about 5 years ago

  • Blocked by Idea #14987: [API] Upgrade to Rails 5 added
Actions #8

Updated by Lucas Di Pentima about 5 years ago

  • Blocked by Idea #14988: [Workbench] Upgrade to Rails 5 added
Actions #9

Updated by Lucas Di Pentima about 5 years ago

  • Blocked by Idea #14989: [SSO] Upgrade to Rails 5 added
Actions #10

Updated by Lucas Di Pentima about 5 years ago

  • Blocked by Idea #14873: [API] Update to Rails 5 added
Actions #11

Updated by Lucas Di Pentima about 5 years ago

  • Blocked by deleted (Idea #14987: [API] Upgrade to Rails 5)
Actions #12

Updated by Lucas Di Pentima about 5 years ago

  • Target version changed from 2019-03-27 Sprint to 2019-04-10 Sprint
Actions #13

Updated by Tom Morris about 5 years ago

  • Subject changed from Update to Ruby 2.4 - 2.3 is going EOL to Update to Ruby 2.5 - 2.3 is going EOL
Actions #14

Updated by Lucas Di Pentima about 5 years ago

  • Target version changed from 2019-04-10 Sprint to 2019-04-24 Sprint
Actions #15

Updated by Lucas Di Pentima almost 5 years ago

  • Target version changed from 2019-04-24 Sprint to 2019-05-08 Sprint
Actions #18

Updated by Lucas Di Pentima almost 5 years ago

  • Target version changed from 2019-05-08 Sprint to 2019-05-22 Sprint
Actions #19

Updated by Lucas Di Pentima almost 5 years ago

  • Target version changed from 2019-05-22 Sprint to 2019-06-05 Sprint
Actions #20

Updated by Lucas Di Pentima almost 5 years ago

  • Story points set to 1.0
Actions #21

Updated by Lucas Di Pentima almost 5 years ago

Status update: 0a80a91b9 - branch 14946-ruby-2.5

Actions #22

Updated by Lucas Di Pentima almost 5 years ago

Fernando just launched a full test run (https://ci.curoverse.com/view/Developer/job/ruby25-run-tests-services-api/9) after confirming WB unit test success.

Actions #23

Updated by Lucas Di Pentima almost 5 years ago

Updated SSO's installation documentation to ask for ruby 2.3, while the rest asks for 2.5 - c4107b1da

Actions #24

Updated by Lucas Di Pentima almost 5 years ago

Updates at 618643017
Test run: https://ci.curoverse.com/view/Developer/job/ruby25-run-tests-services-api/12

Fixed several warnings regarding un-initialized variables, deprecated Fixnum usage, unused variables, etc.

Actions #25

Updated by Lucas Di Pentima almost 5 years ago

Updates at ebce50053
Test run: https://ci.curoverse.com/view/Developer/job/ruby25-run-tests-services-api/14/console

Further ruby warning fixes were made.
There are warnings coming from various gems that we use on workbench, some of them don't have newer versions (for example andand), should we invest time on trying to fix them?

Fernando tells me that we shouldn't merge this without confirming with him first, as he's doing some work on Jenkins to be able to support the newer ruby.

Actions #26

Updated by Tom Clegg almost 5 years ago

Lucas Di Pentima wrote:

Updates at ebce50053

LGTM

There are warnings coming from various gems that we use on workbench, some of them don't have newer versions (for example andand), should we invest time on trying to fix them?

I don't think so. The warnings only show up in dev/test mode, not in production, right?

Fernando tells me that we shouldn't merge this without confirming with him first, as he's doing some work on Jenkins to be able to support the newer ruby.

It doesn't seem like this depends on 2.5 so it should work anyway -- but whatever is easier for Fernando sounds good to me.

Actions #27

Updated by Lucas Di Pentima almost 5 years ago

  • Target version changed from 2019-06-05 Sprint to 2019-06-19 Sprint
Actions #28

Updated by Ward Vandewege almost 5 years ago

  • Release set to 22
Actions #29

Updated by Lucas Di Pentima almost 5 years ago

  • Blocked by deleted (Idea #14989: [SSO] Upgrade to Rails 5)
Actions #30

Updated by Lucas Di Pentima almost 5 years ago

  • Related to Idea #14989: [SSO] Upgrade to Rails 5 added
Actions #31

Updated by Lucas Di Pentima almost 5 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF