Skip to content

Switch to Rails 5 in production

CI is close to be green with Rails 5, but it doesn't mean that GitLab is 100% working with Rails 5 - there will be probably many bugs uncovered by automated testing. We should prepare a plan how/when to switch to Rails 5 in production mode. The purpose of this issue is to discuss the switch plan and any related tasks which we should add (generic issue for Rails 5 is #14286 (closed)).

How to run tests or server with rails 5 locally: &213 (closed)

Rough timeline and TODO:

  • During 11.5 cycle:

  • During 11.6 cycle

    • at the beginning of this cycle, make Rails 5 default in master branch, all gitlabbers and developers switch to Rails 5
    • fix any additional new bugs (there might be many after making Rails 5 default)
    • if Rails 5 is stable during 11.6 cycle, release with 5, otherwise switch back to 4
    • fix deprecation warnings (if compatible with rails 4)
    • ideally run CI both against Rails 4 and 5 (concern: this would double CI runtime)
    • notify 11.6 release managers about this being part of 11.6 (sync up regarding canary deployment)
    • when deploying first RC with rails 5 to production, first deploy to canary and keep it running there for 1-2 days, after then proceed with deployment to production nodes (ping release managers about this step)
Edited by Jan Provaznik