2026-01-22: Rollout Ruby 3.3 to Production
Production Change
Change Summary
Note
This is the second attempt, after the first one was aborted #20969 (closed)
Following up from the test rollout in staging environments, the plan is to rollout Ruby 3.3 to production.
During the change duration, auto-deploys will need to be paused.
Change Details
- Services Impacted - GitLab Rails, Sidekiq, and any other service that uses Ruby
- Change Technician -
@jennykim-gitlab@dat.tang.gitlab - Change Reviewer -
@skarbek - Scheduled Date and Time (UTC in format YYYY-MM-DD HH:MM) - 2026-01-22 12:00
- Time tracking - 480 minutes
- Downtime Component - none
Set Maintenance Mode in GitLab
No need for setting Maintenance mode.
Preparation
Note
The following checklists must be done in advance, before setting the label changescheduled
Change Reviewer checklist
- Check if the following applies:
- The scheduled day and time of execution of the change is appropriate.
- The change plan is technically accurate.
- The change plan includes estimated timing values based on previous testing.
- The change plan includes a viable rollback plan.
- The specified metrics/monitoring dashboards provide sufficient visibility for the change.
- Check if the following applies:
- The complexity of the plan is appropriate for the corresponding risk of the change. (i.e. the plan contains clear details).
- The change plan includes success measures for all steps/milestones during the execution.
- The change adequately minimizes risk within the environment/service.
- The performance implications of executing the change are well-understood and documented.
- The specified metrics/monitoring dashboards provide sufficient visibility for the change.
- If not, is it possible (or necessary) to make changes to observability platforms for added visibility?
- The change has a primary and secondary SRE with knowledge of the details available during the change window.
- The change window has been agreed with Release Managers in advance of the change. If the change is planned for APAC hours, this issue has an agreed pre-change approval.
- The labels blocks deployments and/or blocks feature-flags are applied as necessary.
Change Technician checklist
- The Change Criticality has been set appropriately and requirements have been reviewed.
- The change plan is technically accurate.
- The rollback plan is technically accurate and detailed enough to be executed by anyone with access.
- This Change Issue is linked to the appropriate Issue and/or Epic
- Change has been tested in staging and results noted in a comment on this issue.
- A Test rollout to Canary was done #20918 (closed)
-
A dry-run has been conducted and results noted in a comment on this issue. - The change execution window respects the Production Change Lock periods.
- Once all boxes above are checked, mark the change request as scheduled:
/label ~"change::scheduled" - For C1 and C2 change issues, the change event is added to the GitLab Production calendar by the change-scheduler bot. It is schedule to run every 2 hours.
- ~~For C1 change issues, a Senior Infrastructure Manager has provided approval with the manager_approved label on the issue.~~
- For C2 change issues, an Infrastructure Manager provided approval with the manager_approved label on the issue.
- For C1 and C2 changes, mention
@gitlab-org/saas-platforms/inframanagersin this issue to provide visibility to all infrastructure managers. - For C1, C2, or blocks deployments change issues, confirm with Release managers that the change does not overlap or hinder any release process (In
#productionchannel, mention@release-managersand this issue and await their acknowledgment.)- Mention that no PDM should be run on the day of the CR
Detailed steps for the change
Pre-execution steps
Note
The following steps should be done right at the scheduled time of the change request. The preparation steps are listed below.
- Make sure all tasks in Change Technician checklist are done
- For C1 and C2 change issues, the SRE on-call has been informed prior to change being rolled out.
- The SRE on-call provided approval with the eoc_approved label on the issue.
- For C1, C2, or blocks deployments change issues, Release managers have been informed prior to change being rolled out. (In
#productionchannel, mention@release-managersand this issue and await their acknowledgment.)- Mention that no PDM should be run on the day of the CR
- There are currently no active incidents that are severity1 or severity2
- If the change involves doing maintenance on a database host, an appropriate silence targeting the host(s) should be added for the duration of the change.
Change Steps - steps to take to execute the change
- No PDM should be run on the day of the CR
- Note the last deployment package that was successfully deployed to production in the Rollback section.
- Open a MR to update README with the new ruby version: gitlab-org/gitlab!218245 (merged)
Estimated Time to Complete (mins) - 480 minutes (8 hours)
- Set label changein-progress
/label ~change::in-progress
Pause auto deploys
- Pause auto deploys:
/chatops run auto_deploy pause - Pause auto build:
/chatops run auto_build pause
Prepare a Ruby 3.3 package
-
Inform the
@sre-on-calland@release-managerin#production, and the engineers in the#f_ruby3channel in Slack that we are starting building a Ruby 3.3 package to deploy to production. -
Inform
#engineering-fyi:We are about to roll out Ruby 3.3 to Production (GitLab.com). You can follow the progress in the Change Request <link> -
Set
USE_NEXT_RUBY_VERSION_IN_AUTODEPLOYtotruein the following projects: -
Merge MR to update README with the new ruby version: gitlab-org/gitlab!218245 (merged)
Start a deployment pipeline
- Trigger a build pipeline by running the "auto_build: Create new package" inactive manual scheduled pipeline: https://ops.gitlab.net/gitlab-org/release/tools/-/pipeline_schedules/
- Make sure new build pipelines have started.
- Omnibus Pipeline URL: https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines/420528
- CNG Pipeline URL: https://dev.gitlab.org/gitlab/charts/components/images/-/pipelines/420529
- Verify that the Omnibus package contains Ruby 3.3.
-
Find out the image reference of the
Dockerjob in the Omnibus packager pipeline. You can search for the stringCopying imagein the logs for that (under the collapsible sectiondocker-push-staging) -docker run -it dev.gitlab.org:5005/gitlab/omnibus-gitlab/gitlab-ee:<image-tag> ruby --version╰─ docker run -it dev.gitlab.org:5005/gitlab/omnibus-gitlab/gitlab-ee:18.9.202601221307-3640a66f21b.6453831a365-arm64 ruby --version Trying to pull dev.gitlab.org:5005/gitlab/omnibus-gitlab/gitlab-ee:18.9.202601221307-3640a66f21b.6453831a365-arm64... Getting image source signatures ... Writing manifest to image destination ruby 3.3.10 (2025-10-23 revision 343ea05002) [aarch64-linux]
-
- Verify that the CNG image contains Ruby 3.3.
-
Run the following command locally to know the bundled Ruby version -
docker run -it dev.gitlab.org:5005/gitlab/charts/components/images/gitlab-webservice-ee:<IMAGE_REFERENCE> -- ruby --version╰─ docker run -it dev.gitlab.org:5005/gitlab/charts/components/images/gitlab-webservice-ee:18-9-202601221307-3640a66f21b -- ruby --version ... Writing manifest to image destination WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64) Begin parsing .erb templates from /srv/gitlab/config Begin parsing .tpl templates from /srv/gitlab/config ruby 3.3.10 (2025-10-23 revision 343ea05002) [x86_64-linux]
-
Deploy the Ruby 3.3 Package
- Start a new deployment pipeline for the above package with
/chatops run auto_deploy pipeline 18.9.202601221307-3640a66f21b.6453831a365- Deployment pipeline URL: https://ops.gitlab.net/gitlab-org/release/tools/-/pipelines/5411920
- Ping monitoring engineers and
@release-managerson#f_ruby3channel in Slack when package is deployed togstg-cny.- Check monitoring
- Make sure Quality smoke and reliable pipelines on gstg-cny have passed. If there are failures, ask the Quality on-call to have a look to determine if the failures are related to the Ruby 3.3 rollout.
- Let deployment continue upto
gprd-cny. - Ping monitoring engineers and
@release-managerson#f_ruby3channel in Slack when package is deployed togprd-cny.- Check monitoring
- Make sure Quality smoke and reliable pipelines on gprd-cny have passed. If there are failures, ask the Quality on-call to have a look to determine if the failures are related to the Ruby 3.3 rollout.
- Promote the package to
gstgonce the monitoring engineers give green light. - Keep an eye for any
gprddeployment jobs and cancel them. - Ping monitoring engineers and
@release-managerson#f_ruby3channel in Slack when package is deployed togstg.- Check monitoring
Deploy to Production
We will manually deploy to the zonal clusters manually, then the regional cluster. Bake to account for monitoring time in-between each cluster.
- Set
MANUAL_GPRD_DEPLOYtotruein https://ops.gitlab.net/gitlab-com/gl-infra/k8s-workloads/gitlab-com/-/settings/ci_cd - Cancel
notify_success:gprdjob to not accidentally announce a successful deploy during baking time of manual jobs - Restart the previously cancelled
gprddeployment job(s) to start deployment to production
Zonal cluster b
- Manually run
gprd-us-east1-b:auto-deploy - Ping monitoring engineers and
@release-managerson#f_ruby3channel in Slack when package is deployed to the zonal clustergprd-us-east1-b.- Check monitoring. Remember to set the zone to
b
- Check monitoring. Remember to set the zone to
- Bake for 30 minutes, or until engineers give green light.
Zonal cluster c
- Manually run
gprd-us-east1-c:auto-deploy - Ping monitoring engineers and
@release-managerson#f_ruby3channel in Slack when package is deployed to the zonal clustergprd-us-east1-c.- Check monitoring. Remember to set the zone to
c
- Check monitoring. Remember to set the zone to
- Bake for 30 minutes, or until engineers give green light.
Zonal cluster d
- Manually run
gprd-us-east1-d:auto-deploy - Ping monitoring engineers
#f_ruby3channel in Slack when package is deployed to the zonal clustergprd-us-east1-d.- Check monitoring. Remember to set the zone to
d
- Check monitoring. Remember to set the zone to
- Bake for 15 minutes, or until engineers give green light.
Regional cluster
- Manually run
gprd:auto-deploy - Inform the
@sre-on-calland@release-managersin#productionon Slack and the monitoring engineers in the#f_ruby3channel in Slack when the package is deployed togprd.- Check monitoring
Post-deploy
- Restart the previously cancelled
notify_success:gprdjob to notify the successful deployment togprdon Slack#announcementschannel - Remove
MANUAL_GPRD_DEPLOYin https://ops.gitlab.net/gitlab-com/gl-infra/k8s-workloads/gitlab-com/-/settings/ci_cd - Do not execute post-deploy migrations for the rest of the day (EMEA and AMER) beyond this point.
Unpause auto deploys
-
/chatops run auto_deploy unpause -
/chatops run auto_build unpause - Set label changecomplete
/label ~change::complete
Rollback
Last Ruby 3.2 package that was successfully deployed to production
18.9.202601220506-8c59070ce5b.927dc39fcfc
Rollback steps - steps to be taken in the event of a need to rollback this change
Estimated Time to Complete (mins) - 60 minutes
-
Inform
#engineering-fyi:The Ruby 3.3 rollout was aborted due to <reason>. It will be rescheduled for the near future.
Rollback production-canary only
If you have not promoted to production and need to rollback production-canary, follow the following steps:
- Notify
@sre-on-call,@release-managersin#productionthat Production Canary will be drained. -
/chatops run canary --disable --production - Follow the steps in Make sure that the next auto deploy package will be built with Ruby 3.2
Rollback production and staging
If we need to rollback production and staging, follow the steps in https://gitlab.com/gitlab-org/release/docs/-/blob/master/runbooks/rollback-a-deployment.md to rollback to a Ruby 3.2 package. The steps are reproduced here as well:
-
/chatops run rollback check gprd - Notify
@sre-on-call,@release-managersin#productionthat a rollback is about to be started. Make sure they know that Canary will also be drained. -
/chatops run canary --disable --production -
/chatops run deploy <PACKAGE NAME> gprd --rollback -
/chatops run rollback check gstg - Notify
@sre-on-call,@release-managersin#stagingthat a rollback is about to be started. Make sure they know that Canary will also be drained. -
/chatops run canary --disable --staging -
/chatops run deploy <PACKAGE NAME> gstg --rollback
Make sure that the next auto deploy package will be built with Ruby 3.2
- Set
USE_NEXT_RUBY_VERSION_IN_AUTODEPLOYtofalsein https://dev.gitlab.org/gitlab/omnibus-gitlab/-/settings/ci_cd. - Set
USE_NEXT_RUBY_VERSION_IN_AUTODEPLOYtofalsein https://dev.gitlab.org/gitlab/charts/components/images/-/settings/ci_cd. - If you had already unpaused auto-deploys, cancel any auto-deploy pipelines whose packages were built before you changed the
USE_NEXT_RUBY_VERSION_IN_AUTODEPLOYvariable tofalse. - Revert MR to update README
- Set label changeaborted
/label ~change::aborted
Monitoring
Key metrics to observe
- Dashboards/metrics:
- Monitor the following dashboards for unhealthy dip in service health for the environment/cluster that is being rolled out.
- Deployment health, configurable with environment, stage, and type/service
- Kubernetes compute resource/cluster health, configurable with clusters
- Kubernetes compute resource/pods health, configurable with clusters and namespace
- Kubernetes networking, configurable with clusters
- Per-service dashboards (change
envandstageto toggle betweengstg/gprdandmain/cny):api(overview, containers)web(overview, containers)websockets(overview, containers)git(overview, containers)sidekiq(overview, containers)
- Kibana - Puma (edit
json.typeto filter by service,json.stageforcnyvsmain) - Kibana - Sidekiq (edit
json.shardto switch between job types) - Sentry
- QA runs can be observed via Slack:
#announcements- Besides QA messages, multiple messages are sent to this channel to account for the different deployments.- QA slack channels - There is a channel per environment, for example, a failure on gstg and gstg-cny will be posted in
#qa-staging, a failure on gprd-cny and gprd will be posted in#qa-production, etc.
- Dealing with deploy failures: https://gitlab.com/gitlab-org/release/docs/-/blob/master/general/deploy/failures.md