gitlab-qa 8.11.0 → 8.12.0
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/omnibus_configurations/license_mode.md +11 -0
- data/lib/gitlab/qa/runtime/omnibus_configurations/decomposition_multiple_db.rb +14 -4
- data/lib/gitlab/qa/runtime/omnibus_configurations/license_mode.rb +8 -1
- data/lib/gitlab/qa/scenario/test/integration/import.rb +8 -3
- data/lib/gitlab/qa/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bee7c1ce41e9ceeeb14546a8983a5c3f90b3da4f6a3f32505bc77c08f0e484a9
|
4
|
+
data.tar.gz: dd74a1afa61040fc2110c0f3f63a381f8b1da4f07fb82b4629cdc979378ec67d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d22ff4d7fa0452bac353fcd80a68f8c2bd1598f0515483c4f0a749c6ab3f225bd4d763cf17ce21f7c1a446530d254ace11a2a5c5d6a581e985572c58ce07da80
|
7
|
+
data.tar.gz: b0fe8a3cfbefcd39f971eab382171df61691d920303f8f89ab4b3a04bcb5b7ac4ff4586bb08196dbe7f1ba2f0e98ea8ce1deca4822407d22b80891e6dc306eaf
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
# License Mode Omnibus Configuration
|
2
|
+
|
3
|
+
This configuration is used to set the License Mode in GitLab to test.
|
4
|
+
|
5
|
+
When GitLab's License Mode is set to test, GitLab will not enforce License Key encryption to activate an instance
|
6
|
+
with an Enterprise License
|
7
|
+
|
8
|
+
## What happens?
|
9
|
+
|
10
|
+
GitLab-QA will set the environment variable `GITLAB_LICENSE_MODE=test` and set the `CUSTOMER_PORTAL_URL=<URL>` where URL
|
11
|
+
is `ENV['CUSTOMER_PORTAL_URL']` or CDot Staging (`https://customers.staging.gitlab.com`).
|
@@ -5,6 +5,14 @@ module Gitlab
|
|
5
5
|
module Runtime
|
6
6
|
module OmnibusConfigurations
|
7
7
|
class DecompositionMultipleDb < Default
|
8
|
+
DATABASE_EXISTENCE_CHECK_COMMAND = <<~CMD.chomp
|
9
|
+
gitlab-psql -d gitlabhq_production_ci -c 'select 1' 2>1 > /dev/null
|
10
|
+
CMD
|
11
|
+
|
12
|
+
SCHEMA_EXISTENCE_CHECK_COMMAND = <<~CMD.chomp
|
13
|
+
gitlab-psql -d gitlabhq_production_ci -c "select schema_name from information_schema.schemata where schema_name = 'gitlab_partitions_dynamic'" | grep -q gitlab_partitions_dynamic
|
14
|
+
CMD
|
15
|
+
|
8
16
|
def configuration
|
9
17
|
# HACK: commenting commands out as these commands should be run *after* the first
|
10
18
|
# reconfiguration (see first command in #exec_commands)
|
@@ -19,10 +27,12 @@ module Gitlab
|
|
19
27
|
[
|
20
28
|
"sed -i 's/#gitlab_rails/gitlab_rails/g' /etc/gitlab/gitlab.rb",
|
21
29
|
"gitlab-ctl reconfigure",
|
22
|
-
|
23
|
-
"gitlab-psql -
|
24
|
-
"gitlab-psql -d gitlabhq_production_ci -c 'create extension
|
25
|
-
"gitlab-
|
30
|
+
# Create database only if it does not exist.
|
31
|
+
"#{DATABASE_EXISTENCE_CHECK_COMMAND} || gitlab-psql -c 'create database gitlabhq_production_ci owner gitlab'",
|
32
|
+
"gitlab-psql -d gitlabhq_production_ci -c 'create extension if not exists btree_gist'",
|
33
|
+
"gitlab-psql -d gitlabhq_production_ci -c 'create extension if not exists pg_trgm'",
|
34
|
+
# Load schema only if it does not exist.
|
35
|
+
"#{SCHEMA_EXISTENCE_CHECK_COMMAND} || gitlab-rake db:structure:load:ci",
|
26
36
|
"gitlab-ctl restart"
|
27
37
|
].freeze
|
28
38
|
end
|
@@ -7,9 +7,16 @@ module Gitlab
|
|
7
7
|
class LicenseMode < Default
|
8
8
|
def configuration
|
9
9
|
<<~OMNIBUS
|
10
|
-
gitlab_rails['env'] = { 'GITLAB_LICENSE_MODE' => 'test', 'CUSTOMER_PORTAL_URL' => '
|
10
|
+
gitlab_rails['env'] = { 'GITLAB_LICENSE_MODE' => 'test', 'CUSTOMER_PORTAL_URL' => '#{customer_portal_url}' }
|
11
11
|
OMNIBUS
|
12
12
|
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
# Customer Portal URL that is targeted
|
17
|
+
def customer_portal_url
|
18
|
+
ENV.fetch('CUSTOMER_PORTAL_URL', 'https://customers.staging.gitlab.com')
|
19
|
+
end
|
13
20
|
end
|
14
21
|
end
|
15
22
|
end
|
@@ -51,8 +51,13 @@ module Gitlab
|
|
51
51
|
# @param [Gitlab::QA::Release] release
|
52
52
|
# @return [void]
|
53
53
|
def start_gitlab_instances(release)
|
54
|
-
|
55
|
-
|
54
|
+
instances = [
|
55
|
+
{ instance: source_gitlab, name: "import-source" },
|
56
|
+
{ instance: target_gitlab, name: "import-target" }
|
57
|
+
]
|
58
|
+
::Parallel.each(instances, in_threads: 2) do |gitlab_instance|
|
59
|
+
gitlab_instance[:instance].tap do |gitlab|
|
60
|
+
gitlab.name = gitlab_instance[:name]
|
56
61
|
gitlab.network = network
|
57
62
|
gitlab.release = release
|
58
63
|
gitlab.seed_admin_token = true
|
@@ -71,7 +76,7 @@ module Gitlab
|
|
71
76
|
specs.suite = "Test::Integration::Import"
|
72
77
|
specs.release = target_gitlab.release
|
73
78
|
specs.network = network
|
74
|
-
specs.env = { "QA_IMPORT_SOURCE_URL" => source_gitlab.address }
|
79
|
+
specs.env = { "QA_IMPORT_SOURCE_URL" => source_gitlab.address, "QA_ALLOW_LOCAL_REQUESTS" => "true" }
|
75
80
|
specs.args = [target_gitlab.address, *rspec_args]
|
76
81
|
end
|
77
82
|
end
|
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.
|
4
|
+
version: 8.12.0
|
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-11-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|
@@ -310,6 +310,7 @@ files:
|
|
310
310
|
- docs/architecture.md
|
311
311
|
- docs/configuring_omnibus.md
|
312
312
|
- docs/how_it_works.md
|
313
|
+
- docs/omnibus_configurations/license_mode.md
|
313
314
|
- docs/release_process.md
|
314
315
|
- docs/run_qa_against_gdk.md
|
315
316
|
- docs/running_against_remote_grid.md
|