gitlab-qa 15.7.1 → 15.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 283e2b2d77e4f2a18d03c454e268b88d4bcaba6662086efe37f2045fd5a2efca
4
- data.tar.gz: a7ca80f1ba2e9244c7b6046d47e5b154278fe062774583e8874f1da6956890e7
3
+ metadata.gz: e2f5e12b0e4b1d6949c3bf2ac7b988ab0f4b42a1c9e039828da20d0611f0e284
4
+ data.tar.gz: c41f28650cf5a9da55dbe1e97b6c9d4d04f08457e8d19f57982ecf193879603a
5
5
  SHA512:
6
- metadata.gz: 77c08d80779857be0baf10a0e1690d8c96e6c107a467f7005ec1f4714ffda321e54a1bab4713a79e52570d9403e8bde33ba7b9b74c135d009a2df590cc904322
7
- data.tar.gz: b70bc89223d607c828ecacc91b3d433f9a38a420929ca95a97d0a6574618c921e457ca58164353b30574e3a6eb7165cc3a4a6623e45d6672ef178b0a0bc795e6
6
+ metadata.gz: afdb8a6544dd8aa320f1b076d16ce0aa6dc453e014f3bf8b7b30fd1b29a2abd0d1d99df34755ae4812e9bc1c83da7d154a7bfdc7a68894a1d2ef71b8bfacc17a
7
+ data.tar.gz: 6ddd0641fe2d3cf5e5f63915854bea06b4fac93ec18d2f6651f85dbd581621aa952741d35575f4ee56b91709c383c2c12318825e8250345857ff16c4930f086a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (15.7.1)
4
+ gitlab-qa (15.7.2)
5
5
  activesupport (>= 6.1, < 8)
6
6
  ffi (~> 1.17)
7
7
  gitlab (~> 4.19)
@@ -36,6 +36,10 @@ module Gitlab
36
36
  @network_aliases.push(name)
37
37
  end
38
38
 
39
+ def add_exec_commands(*commands)
40
+ @exec_commands.concat(commands.flatten)
41
+ end
42
+
39
43
  def name
40
44
  raise NotImplementedError, "#{self.class.name} must specify a default name"
41
45
  end
@@ -154,6 +154,9 @@ module Gitlab
154
154
  # Case 2: Auto-deploy packages from dev.gitlab.org (e.g., 12.1.201906121026-325a6632895.b340d0bd35d)
155
155
  elsif match_data = tag.match(DEV_TAG_REGEX)
156
156
  match_data[:gitlab_ref]
157
+ # Case 3: Internal release packages (e.g., 18.7.1-internal2-0)
158
+ elsif tag.match?(/\d+\.\d+\.\d+-internal\d+-0\z/)
159
+ tag.delete_suffix('-0')
157
160
  else
158
161
  tag.sub(/[-.]([ce]e)(\.(\d+))?\z/, '-\1')
159
162
  end
@@ -42,6 +42,7 @@ module Gitlab
42
42
  secondary.release = release
43
43
  secondary.name = 'gitlab-secondary'
44
44
  secondary.network = 'geo'
45
+ secondary.seed_admin_token = false
45
46
  secondary.omnibus_configuration << <<~OMNIBUS
46
47
  geo_secondary['db_fdw'] = true;
47
48
  geo_secondary_role['enable'] = true;
@@ -57,7 +58,8 @@ module Gitlab
57
58
  sidekiq['concurrency'] = 2;
58
59
  puma['worker_processes'] = 2;
59
60
  OMNIBUS
60
- secondary.exec_commands += fast_ssh_key_lookup_commands + QA::Scenario::CLICommands.git_lfs_install_commands
61
+ secondary.add_exec_commands(fast_ssh_key_lookup_commands)
62
+ secondary.add_exec_commands(QA::Scenario::CLICommands.git_lfs_install_commands)
61
63
 
62
64
  secondary.act do
63
65
  # TODO, we do not wait for secondary to start because of
@@ -206,15 +206,32 @@ module Gitlab
206
206
  .map { |version| Gem::Version.new("#{version[:major]}.#{version[:minor]}") }
207
207
  end
208
208
 
209
+ UPGRADE_PATH_URL = "https://gitlab.com/gitlab-org/gitlab/-/raw/master/config/upgrade_path.yml"
210
+ UPGRADE_PATH_RETRIES = 3
211
+ UPGRADE_PATH_RETRY_DELAY = 5
212
+
209
213
  # Upgrade path yml
210
214
  #
211
215
  # @return [String]
212
216
  def upgrade_path_yml
213
- @upgrade_path_yml ||= begin
214
- logger.info("Fetching gitlab upgrade path from 'gitlab.com/gitlab-org/gitlab' project")
215
- HttpRequest.make_http_request(
216
- url: "https://gitlab.com/gitlab-org/gitlab/-/raw/master/config/upgrade_path.yml"
217
- ).body
217
+ @upgrade_path_yml ||= fetch_upgrade_path_with_retry
218
+ end
219
+
220
+ def fetch_upgrade_path_with_retry
221
+ retries = 0
222
+
223
+ logger.info("Fetching gitlab upgrade path from 'gitlab.com/gitlab-org/gitlab' project")
224
+ begin
225
+ HttpRequest.make_http_request(url: UPGRADE_PATH_URL).body
226
+ rescue StandardError => e
227
+ retries += 1
228
+ if retries <= UPGRADE_PATH_RETRIES
229
+ logger.warn("Failed to fetch upgrade path (attempt #{retries}/#{UPGRADE_PATH_RETRIES}): #{e.message}")
230
+ sleep UPGRADE_PATH_RETRY_DELAY
231
+ retry
232
+ end
233
+
234
+ raise "Failed to fetch gitlab upgrade path after #{UPGRADE_PATH_RETRIES} retries: #{e.message}"
218
235
  end
219
236
  end
220
237
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '15.7.1'
5
+ VERSION = '15.7.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-qa
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.7.1
4
+ version: 15.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitLab Quality
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-20 00:00:00.000000000 Z
11
+ date: 2026-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control