From c3ada85ac0137a775f92abdc36893c6cce30868c Mon Sep 17 00:00:00 2001
From: Heinrich Lee Yu <heinrich@gitlab.com>
Date: Thu, 29 Jun 2023 14:21:20 +0800
Subject: [PATCH] Upgrade ActiveSupport in QA to match Rails version

Upgrades ActiveSupport to 7.0.5.1 to match the version we use in the
main Rails app
---
 Gemfile                    |  2 ++
 doc/development/gemfile.md |  1 +
 qa/Gemfile                 |  2 +-
 qa/Gemfile.lock            | 11 +++++------
 4 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/Gemfile b/Gemfile
index 3f5faba5ad171..6e24999b3a3aa 100644
--- a/Gemfile
+++ b/Gemfile
@@ -13,6 +13,8 @@ gem 'bundler-checksum', '~> 0.1.0', path: 'vendor/gems/bundler-checksum', requir
 # NOTE: When incrementing the major or minor version here, also increment activerecord_version
 # in vendor/gems/attr_encrypted/attr_encrypted.gemspec until we resolve
 # https://gitlab.com/gitlab-org/gitlab/-/issues/375713
+#
+# See https://docs.gitlab.com/ee/development/gemfile.html#upgrade-rails for guidelines when upgrading Rails
 gem 'rails', '~> 7.0.5.1'
 
 gem 'activerecord-gitlab', path: 'gems/activerecord-gitlab'
diff --git a/doc/development/gemfile.md b/doc/development/gemfile.md
index e6275068ea87d..3971a66f796f6 100644
--- a/doc/development/gemfile.md
+++ b/doc/development/gemfile.md
@@ -118,6 +118,7 @@ Read more about [Gems development guidelines](gems.md).
 
 When upgrading the Rails gem and its dependencies, you also should update the following:
 
+- The [`activerecord_version` in the vendored `attr_encrypted` gemspec](https://gitlab.com/gitlab-org/gitlab/-/blob/master/vendor/gems/attr_encrypted/attr_encrypted.gemspec).
 - The [`Gemfile` in the `qa` directory](https://gitlab.com/gitlab-org/gitlab/-/blob/master/qa/Gemfile).
 - The [`Gemfile` in Gitaly Ruby](https://gitlab.com/gitlab-org/gitaly/-/blob/master/ruby/Gemfile),
   to ensure that we ship only one version of these gems.
diff --git a/qa/Gemfile b/qa/Gemfile
index a0136c5dd975a..2599d79cb6464 100644
--- a/qa/Gemfile
+++ b/qa/Gemfile
@@ -5,7 +5,7 @@ source 'https://rubygems.org'
 gem 'gitlab-qa', '~> 12', require: 'gitlab/qa'
 gem 'gitlab_quality-test_tooling', '~> 0.8.2', require: false
 gem 'gitlab-utils', path: '../gems/gitlab-utils'
-gem 'activesupport', '~> 6.1.7.2' # This should stay in sync with the root's Gemfile
+gem 'activesupport', '~> 7.0.5.1' # This should stay in sync with the root's Gemfile
 gem 'allure-rspec', '~> 2.20.0'
 gem 'capybara', '~> 3.39.2'
 gem 'capybara-screenshot', '~> 1.0.26'
diff --git a/qa/Gemfile.lock b/qa/Gemfile.lock
index b84b51ad83b37..b5422ca7458f1 100644
--- a/qa/Gemfile.lock
+++ b/qa/Gemfile.lock
@@ -11,18 +11,17 @@ PATH
 GEM
   remote: https://rubygems.org/
   specs:
-    actionview (6.1.7.2)
-      activesupport (= 6.1.7.2)
+    actionview (7.0.5.1)
+      activesupport (= 7.0.5.1)
       builder (~> 3.1)
       erubi (~> 1.4)
       rails-dom-testing (~> 2.0)
       rails-html-sanitizer (~> 1.1, >= 1.2.0)
-    activesupport (6.1.7.2)
+    activesupport (7.0.5.1)
       concurrent-ruby (~> 1.0, >= 1.0.2)
       i18n (>= 1.6, < 2)
       minitest (>= 5.1)
       tzinfo (~> 2.0)
-      zeitwerk (~> 2.3)
     addressable (2.8.1)
       public_suffix (>= 2.0.2, < 6.0)
     airborne (0.3.7)
@@ -207,7 +206,7 @@ GEM
     mime-types-data (3.2023.0218.1)
     mini_mime (1.1.0)
     mini_portile2 (2.8.2)
-    minitest (5.18.0)
+    minitest (5.18.1)
     multi_json (1.15.0)
     multi_xml (0.6.0)
     netrc (0.11.0)
@@ -336,7 +335,7 @@ PLATFORMS
   ruby
 
 DEPENDENCIES
-  activesupport (~> 6.1.7.2)
+  activesupport (~> 7.0.5.1)
   airborne (~> 0.3.7)
   allure-rspec (~> 2.20.0)
   capybara (~> 3.39.2)
-- 
GitLab