Skip to content

Upgrade to Ruby 2.6.3

Ruby 2.6.1 should be faster and use less memory than Ruby 2.5.3 (https://meta.discourse.org/t/ruby-2-6-1-will-speed-discourse-up/108281), thanks to a lot of great optimizations mentioned in https://youtu.be/ZfgxvNUfQdU.

Now that Ruby 2.6.1 fixes a show-stopper bug (https://www.ruby-lang.org/en/news/2019/01/30/ruby-2-6-1-released/), let's get our tests passing and be prepared to upgrade.

Note that last time we upgraded from 2.4 to 2.5, we did have some issues having a no-downtime deploy because the 2.4 Gem files were removed before the Unicorn workers were HUP'ed. I think the way to solve this is to take nodes out of the load balancer before installing GitLab.

To do:

https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9449 shows that most of our code is now Ruby 2.6-compliant.

Edited by Stan Hu