gitlab-qa 14.12.0 → 14.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +1 -1
- data/Gemfile.lock +1 -1
- data/docs/run_qa_against_gdk.md +6 -0
- data/docs/what_tests_can_be_run.md +1 -1
- data/lib/gitlab/qa/component/ai_gateway.rb +8 -0
- data/lib/gitlab/qa/component/base.rb +4 -2
- data/lib/gitlab/qa/component/gitlab.rb +1 -3
- data/lib/gitlab/qa/support/gitlab_version_info.rb +4 -1
- data/lib/gitlab/qa/version.rb +1 -1
- data/support/data/admin_access_token_seed.rb +1 -0
- 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: d73b967d2138dc5d4937126e2eed2a7bf79869c7dbba222bb2288eeb5579b7fa
|
4
|
+
data.tar.gz: c8c5ddbff3b831889fc0f670c00538e936a5528bb2ffc775f5db30abf93366a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c16e9f78c27107f1b512eff6101eb04c7ca39d6b8dd0cdd55cc08b3c07c5d4884a66ce378b61c5526983df982083b7b81e86d0cc3c87913e4050a4ea29ae9fea
|
7
|
+
data.tar.gz: 55af607f3fa32af6494800b66c3bf1614426fe02191a21894e2553361b2979421912dcbef0b488f9021c5d6f281965019fc82f245e09a84db8049a6edd18cb18
|
data/.gitlab-ci.yml
CHANGED
@@ -152,7 +152,7 @@ package-and-test:
|
|
152
152
|
include:
|
153
153
|
- project: gitlab-org/gitlab
|
154
154
|
ref: master
|
155
|
-
file: .gitlab/ci/
|
155
|
+
file: .gitlab/ci/test-on-omnibus/main.gitlab-ci.yml
|
156
156
|
rules:
|
157
157
|
- if: '$CI_MERGE_REQUEST_IID'
|
158
158
|
when: manual
|
data/Gemfile.lock
CHANGED
data/docs/run_qa_against_gdk.md
CHANGED
@@ -59,6 +59,12 @@ variable.
|
|
59
59
|
export GITLAB_INITIAL_ROOT_PASSWORD="<GDK root password>"
|
60
60
|
```
|
61
61
|
|
62
|
+
**Note**: If you encounter the following error, you can resolve it by unsetting the Docker host environment variable using the command `unset DOCKER_HOST`:
|
63
|
+
|
64
|
+
```
|
65
|
+
ERROR: error during connect: get "http://docker.local:2375/v1.24/images/json": dial tcp: lookup docker.local: no such host
|
66
|
+
```
|
67
|
+
|
62
68
|
### Running EE tests
|
63
69
|
|
64
70
|
When running EE tests you'll need to have a license available. GitLab engineers can [request a license](https://about.gitlab.com/handbook/developer-onboarding/#working-on-gitlab-ee).
|
@@ -1166,7 +1166,7 @@ Testing import [by direct transfer](https://docs.gitlab.com/ee/user/group/import
|
|
1166
1166
|
|
1167
1167
|
### `AiGateway` Scenarios
|
1168
1168
|
|
1169
|
-
The following `AiGateway` scenarios spin up a GitLab Omnibus instance integrated with a test AI Gateway using [
|
1169
|
+
The following `AiGateway` scenarios spin up a GitLab Omnibus instance integrated with a test AI Gateway using [mocked models](https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist#mocking-ai-model-responses). These scenarios help to verify various configurations of cloud licensing and seat assignment work as expected when authenticating for AI features on self-managed instances.
|
1170
1170
|
|
1171
1171
|
**Required environment variables:**
|
1172
1172
|
|
@@ -76,6 +76,14 @@ module Gitlab
|
|
76
76
|
-----END PRIVATE KEY-----
|
77
77
|
VALIDATION_KEY
|
78
78
|
|
79
|
+
def initialize
|
80
|
+
super
|
81
|
+
|
82
|
+
# These keys are test keys and are safe to be shared, but masking them in logs so they do not raise concern
|
83
|
+
@secrets << TEST_SIGNING_KEY
|
84
|
+
@secrets << TEST_VALIDATION_KEY
|
85
|
+
end
|
86
|
+
|
79
87
|
def name
|
80
88
|
@name ||= 'ai-gateway'
|
81
89
|
end
|
@@ -17,7 +17,8 @@ module Gitlab
|
|
17
17
|
:environment,
|
18
18
|
:runner_network,
|
19
19
|
:airgapped_network,
|
20
|
-
:additional_hosts
|
20
|
+
:additional_hosts,
|
21
|
+
:secrets
|
21
22
|
|
22
23
|
def initialize
|
23
24
|
@docker = Docker::Engine.new
|
@@ -28,6 +29,7 @@ module Gitlab
|
|
28
29
|
@network_aliases = []
|
29
30
|
@exec_commands = []
|
30
31
|
@additional_hosts = []
|
32
|
+
@secrets = []
|
31
33
|
end
|
32
34
|
|
33
35
|
def add_network_alias(name)
|
@@ -109,7 +111,7 @@ module Gitlab
|
|
109
111
|
end
|
110
112
|
|
111
113
|
def start # rubocop:disable Metrics/AbcSize
|
112
|
-
docker.run(image: image, tag: tag) do |command|
|
114
|
+
docker.run(image: image, tag: tag, mask_secrets: secrets) do |command|
|
113
115
|
command << "-d"
|
114
116
|
command << "--name #{name}"
|
115
117
|
command << "--net #{network}"
|
@@ -29,8 +29,7 @@ module Gitlab
|
|
29
29
|
:seed_admin_token,
|
30
30
|
:seed_db,
|
31
31
|
:skip_server_hooks,
|
32
|
-
:gitaly_tls
|
33
|
-
:secrets
|
32
|
+
:gitaly_tls
|
34
33
|
|
35
34
|
attr_writer :name, :relative_path
|
36
35
|
|
@@ -52,7 +51,6 @@ module Gitlab
|
|
52
51
|
@seed_admin_token = Runtime::Scenario.seed_admin_token
|
53
52
|
@seed_db = Runtime::Scenario.seed_db
|
54
53
|
@skip_server_hooks = Runtime::Scenario.skip_server_hooks
|
55
|
-
@secrets = []
|
56
54
|
|
57
55
|
self.release = 'CE'
|
58
56
|
end
|
@@ -7,6 +7,8 @@ module Gitlab
|
|
7
7
|
VERSION_PATTERN = /^(?<version>\d+\.\d+\.\d+)/
|
8
8
|
COMPONENT_PATTERN = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/
|
9
9
|
|
10
|
+
VersionNotFoundError = Class.new(RuntimeError)
|
11
|
+
|
10
12
|
# Get previous gitlab version
|
11
13
|
#
|
12
14
|
# @param [String] current_version
|
@@ -101,7 +103,8 @@ module Gitlab
|
|
101
103
|
return fallback_minor unless tags
|
102
104
|
return previous_major if current_minor.zero?
|
103
105
|
|
104
|
-
versions.find { |version| version.to_s.match?(/^#{current_major}\.#{current_minor - 1}/) }
|
106
|
+
versions.find { |version| version.to_s.match?(/^#{current_major}\.#{current_minor - 1}/) } ||
|
107
|
+
raise(VersionNotFoundError, "Previous minor version for current version #{current_version} not available on Dockerhub (yet)")
|
105
108
|
end
|
106
109
|
|
107
110
|
# Previous first minor 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: 14.
|
4
|
+
version: 14.14.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: 2024-
|
11
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|