Skip to content

Unify `RUBY_MAJOR_VERSION`/`RUBY_MINOR_VERSION` usage to allow Ruby 3 transition

Aleksei Lipniagov requested to merge ruby-3-squashed into master

Context

The initial intent was to point to this branch from the main repo's Ruby 3 branch: gitlab-org/gitlab!70798 (closed) to run QA + review app.

The current state

Instead of keeping this in its own branch, we could unify the usage of RUBY_MAJOR_VERSION/RUBY_MINOR_VERSION

As suggested by Remy:

Based on https://docs.gitlab.com/ee/ci/variables/index.html#cicd-variable-precedence, if we pass the RUBY_VERSION variable when triggering the downstream CNG-mirror pipeline from GitLab, it should take precedence over the default set here.

The next steps

  1. (This MR) We unify the usage of RUBY_MAJOR_VERSION/RUBY_MINOR_VERSION, in this MR, but keep Ruby 2.7 in CNG master. This will allow CNG builds for Ruby 3 and will keep CNG master green for 2.7.
  2. We set RUBY_VERSION from the GitLab Ruby 3 MR to 3.0.3. We no longer use the CNG_BRANCH there.
  3. After the complete transition to Ruby 3, we replace the RUBY_VERSION value in this repository.
Edited by Aleksei Lipniagov

Merge request reports