gitlab-qa 8.3.1 → 8.3.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab/qa/release.rb +19 -10
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa9e003021256eefe3a65e372d66dbaa1f93f03f1414c7d5dbf26d0c8426ae1d
|
|
4
|
+
data.tar.gz: 73bdb9ee88fae3344272a4093ffb44bcc5e856208e69d4b736db13e11cb47464
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b64d8409adeced189d03087cc52e89a4b7336f6292c12302e90374d70c1e1b1e7945315a56d079ae6aa7c3dbb6226093b69eea83ee39f4847bb8f07da744c39
|
|
7
|
+
data.tar.gz: c6865b83358739d867f33c1f3961a52e3f2c7710ccc0854f83107b96719618f3517ea7229543d5c315798852ee23313a67394806bf3eb0bd8c82f7038b8cd727
|
data/Gemfile.lock
CHANGED
data/lib/gitlab/qa/release.rb
CHANGED
|
@@ -9,19 +9,19 @@ module Gitlab
|
|
|
9
9
|
(-qa)?
|
|
10
10
|
(:(?<tag>.+))?
|
|
11
11
|
\z
|
|
12
|
-
/xi
|
|
12
|
+
/xi.freeze
|
|
13
13
|
CUSTOM_GITLAB_IMAGE_REGEX = %r{
|
|
14
14
|
\A
|
|
15
15
|
(?<image_without_tag>
|
|
16
|
-
(?<registry>[
|
|
17
|
-
|
|
16
|
+
(?<registry>[^/:]+(:(?<port>\d+))?)
|
|
17
|
+
(?<project>.+)
|
|
18
18
|
gitlab-
|
|
19
19
|
(?<edition>ce|ee)
|
|
20
20
|
)
|
|
21
21
|
(-qa)?
|
|
22
22
|
(:(?<tag>.+))?
|
|
23
23
|
\z
|
|
24
|
-
}xi
|
|
24
|
+
}xi.freeze
|
|
25
25
|
|
|
26
26
|
# Official dev tag example:
|
|
27
27
|
# 12.5.4(-rc42)-ee
|
|
@@ -35,7 +35,7 @@ module Gitlab
|
|
|
35
35
|
\A
|
|
36
36
|
(?<version>\d+\.\d+.\d+(?:-rc\d+)?)-(?<edition>ce|ee)
|
|
37
37
|
\z
|
|
38
|
-
/xi
|
|
38
|
+
/xi.freeze
|
|
39
39
|
|
|
40
40
|
# Dev tag example:
|
|
41
41
|
# 12.1.201906121026-325a6632895.b340d0bd35d
|
|
@@ -47,9 +47,9 @@ module Gitlab
|
|
|
47
47
|
# version
|
|
48
48
|
DEV_TAG_REGEX = /
|
|
49
49
|
\A
|
|
50
|
-
(?<version>\d+\.\d+(.\d+)?)\.(?<timestamp>\d+)
|
|
50
|
+
(?<version>\d+\.\d+(.\d+)?)\.(?<timestamp>\d+)-(?<gitlab_ref>[A-Za-z0-9]+)\.(?<omnibus_ref>[A-Za-z0-9]+)
|
|
51
51
|
\z
|
|
52
|
-
/xi
|
|
52
|
+
/xi.freeze
|
|
53
53
|
|
|
54
54
|
DEFAULT_TAG = 'latest'
|
|
55
55
|
DEFAULT_CANONICAL_TAG = 'nightly'
|
|
@@ -63,8 +63,9 @@ module Gitlab
|
|
|
63
63
|
|
|
64
64
|
def initialize(release)
|
|
65
65
|
@release = release.to_s.downcase
|
|
66
|
+
return if valid?
|
|
66
67
|
|
|
67
|
-
raise InvalidImageNameError, "The release image name '#{@release}' does not have the expected format."
|
|
68
|
+
raise InvalidImageNameError, "The release image name '#{@release}' does not have the expected format."
|
|
68
69
|
end
|
|
69
70
|
|
|
70
71
|
def to_s
|
|
@@ -106,7 +107,14 @@ module Gitlab
|
|
|
106
107
|
end
|
|
107
108
|
|
|
108
109
|
def qa_image
|
|
109
|
-
|
|
110
|
+
@qa_image ||= if omnibus_mirror?
|
|
111
|
+
omnibus_project = image.match(CUSTOM_GITLAB_IMAGE_REGEX)[:project]
|
|
112
|
+
gitlab_project = "/gitlab-org/gitlab/"
|
|
113
|
+
|
|
114
|
+
"#{image.gsub(omnibus_project, gitlab_project)}-qa"
|
|
115
|
+
else
|
|
116
|
+
"#{image}-qa"
|
|
117
|
+
end
|
|
110
118
|
end
|
|
111
119
|
|
|
112
120
|
def project_name
|
|
@@ -133,7 +141,7 @@ module Gitlab
|
|
|
133
141
|
if dev_gitlab_org? && (match_data = tag.match(DEV_TAG_REGEX))
|
|
134
142
|
"#{match_data[:version]}-#{match_data[:gitlab_ref]}"
|
|
135
143
|
else
|
|
136
|
-
tag.sub(/[
|
|
144
|
+
tag.sub(/[-.]([ce]e)(\.(\d+))?\z/, '-\1')
|
|
137
145
|
end
|
|
138
146
|
end
|
|
139
147
|
|
|
@@ -158,6 +166,7 @@ module Gitlab
|
|
|
158
166
|
|
|
159
167
|
[Runtime::Env.gitlab_username, Runtime::Env.qa_access_token]
|
|
160
168
|
end
|
|
169
|
+
|
|
161
170
|
{
|
|
162
171
|
username: username,
|
|
163
172
|
password: password,
|
data/lib/gitlab/qa/version.rb
CHANGED
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: 8.3.
|
|
4
|
+
version: 8.3.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: 2022-08-
|
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|