gitlab-qa 10.1.0 → 10.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/docs/what_tests_can_be_run.md +5 -1
- data/lib/gitlab/qa/release.rb +22 -10
- data/lib/gitlab/qa/runtime/env.rb +5 -1
- data/lib/gitlab/qa/scenario/test/omnibus/update_from_previous.rb +7 -0
- 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: 6a87ce2862d1a1e65107ce6b34b35e9ffdea5dacd3ac8d193d0193ccd70955f2
|
4
|
+
data.tar.gz: 6b5e54d9aff03e63831b2874076ade24540c164e5391e628c0ab7b6a2a0f19b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 617455a03eba3c3e7fb55eed317084851160409105c356d76cfb7c449daa383985a62ae7a4ccac64e2804511aed8a7fe826a4bf3effac7210150c5359fa209d7
|
7
|
+
data.tar.gz: 9947e70d1176453db67c99223ed72c9f8be9764ffb80985fd94666d758ef5abca7b3d67b294f24988d5d089a6b1f1afc9e30ca2eed9134c944c8ccec2a1216b6
|
data/Gemfile.lock
CHANGED
@@ -108,6 +108,10 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
|
|
108
108
|
| `QA_1P_PASSWORD` | - | Password for authenticating into 1Password. | No |
|
109
109
|
| `QA_1P_SECRET` | - | Secret for authenticating into 1Password. | No |
|
110
110
|
| `QA_1P_GITHUB_UUID` | - | UUID for GitHub item in GitLab-QA 1Password vault. | No |
|
111
|
+
| `RELEASE` | - | The release image to use for an orchestrated GitLab instance. | No |
|
112
|
+
| `RELEASE_REGISTRY_URL` | - | The registry url to fetch the release image for an orchestrated GitLab. | No |
|
113
|
+
| `RELEASE_REGISTRY_USERNAME` | - | The username to log in to the registry for pulling the release image for orchestrated GitLab. | No |
|
114
|
+
| `RELEASE_REGISTRY_PASSWORD` | - | The password to log in to the registry for pulling the release image for orchestrated GitLab. | No |
|
111
115
|
|
112
116
|
## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
|
113
117
|
|
@@ -311,7 +315,7 @@ $ gitlab-qa Test::Omnibus::Upgrade CE
|
|
311
315
|
$ gitlab-qa Test::Omnibus::Upgrade gitlab/gitlab-ce:my-custom-tag
|
312
316
|
```
|
313
317
|
|
314
|
-
### `Test::Omnibus::UpdateFromPrevious <full image address> <current_version> <major|minor>`
|
318
|
+
### `Test::Omnibus::UpdateFromPrevious <full image address> <current_version> <major|minor> <from_edition>`
|
315
319
|
|
316
320
|
Scenario verifies upgrade from previous (major|minor) version to current release.
|
317
321
|
|
data/lib/gitlab/qa/release.rb
CHANGED
@@ -152,17 +152,29 @@ module Gitlab
|
|
152
152
|
def login_params
|
153
153
|
return if Runtime::Env.skip_pull?
|
154
154
|
|
155
|
-
if dev_gitlab_org?
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
155
|
+
params = if dev_gitlab_org?
|
156
|
+
Runtime::Env.require_qa_dev_access_token!
|
157
|
+
|
158
|
+
{
|
159
|
+
username: Runtime::Env.gitlab_dev_username,
|
160
|
+
password: Runtime::Env.dev_access_token_variable,
|
161
|
+
registry: DEV_REGISTRY
|
162
|
+
}
|
163
|
+
elsif omnibus_mirror? || omnibus_security?
|
164
|
+
omnibus_login_params
|
165
|
+
end
|
166
|
+
|
167
|
+
populate_registry_env_vars(params)
|
168
|
+
end
|
169
|
+
|
170
|
+
def populate_registry_env_vars(params)
|
171
|
+
if params
|
172
|
+
Runtime::Env.release_registry_url = params[:registry]
|
173
|
+
Runtime::Env.release_registry_username = params[:username]
|
174
|
+
Runtime::Env.release_registry_password = params[:password]
|
165
175
|
end
|
176
|
+
|
177
|
+
params
|
166
178
|
end
|
167
179
|
|
168
180
|
def omnibus_login_params
|
@@ -144,7 +144,11 @@ module Gitlab
|
|
144
144
|
'QA_1P_EMAIL' => :qa_1p_email,
|
145
145
|
'QA_1P_PASSWORD' => :qa_1p_password,
|
146
146
|
'QA_1P_SECRET' => :qa_1p_secret,
|
147
|
-
'QA_1P_GITHUB_UUID' => :qa_1p_github_uuid
|
147
|
+
'QA_1P_GITHUB_UUID' => :qa_1p_github_uuid,
|
148
|
+
'RELEASE' => :release,
|
149
|
+
'RELEASE_REGISTRY_URL' => :release_registry_url,
|
150
|
+
'RELEASE_REGISTRY_USERNAME' => :release_registry_username,
|
151
|
+
'RELEASE_REGISTRY_PASSWORD' => :release_registry_password
|
148
152
|
}.freeze
|
149
153
|
|
150
154
|
ENV_VARIABLES.each do |env_name, method_name|
|
@@ -22,6 +22,13 @@ module Gitlab
|
|
22
22
|
# @param [Array] *rspec_args rspec arguments
|
23
23
|
# @return [void]
|
24
24
|
def perform(release, current_version, semver_component, from_edition = nil, *rspec_args)
|
25
|
+
# When from_edition isn't actually passed but RSpec args arg passed with `-- rspec_args...`,
|
26
|
+
# from_edition is wrongly set to `--`, so we fix that here.
|
27
|
+
if from_edition == "--"
|
28
|
+
rspec_args.prepend('--')
|
29
|
+
from_edition = nil
|
30
|
+
end
|
31
|
+
|
25
32
|
@current_release = QA::Release.new(release)
|
26
33
|
@upgrade_path = Support::GitlabUpgradePath.new(
|
27
34
|
current_version,
|
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: 10.1
|
4
|
+
version: 10.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab Quality
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|