gitlab-qa 15.4.0 → 15.5.0

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: 8f1e475ea2c0271c08caf2de2d91881fb387148ee9a0686922e5c13905dfbae9
4
- data.tar.gz: aecf00278bb4ae18d9a4b0b3e1d42d80f3a9b5482a38d755c83a2fa0fc3046ef
3
+ metadata.gz: 560a6652160efd3d50f067a9025aabe2a50444e2c3a8109793abbb329812bb02
4
+ data.tar.gz: 1a99c243bd9f380dbcd68138c787dc1603424da7fa9e35ee8183820501926a30
5
5
  SHA512:
6
- metadata.gz: 164f25be24c4f6800d9dbb150776876a38e85c5bebcac4a72f449a0ed8e6ac2b65b89502cff82c588f101b6a9b299f3fbc2735f99d4a829990e85cdf5fc5674d
7
- data.tar.gz: f1bbdd00cb493f5f6cb0a4f48af319503e3526515f12edceb631868194183e0910b08cedbdbf9e92f59177a7632a63b459bef681555b806eecf72bd6def571a7
6
+ metadata.gz: ebd9339eab6959505dd2bfd60512b4053a0705952e5285ba13c8d8fe6735731600b3d6bf1614f43202b5a852baf51845405d5adb9f9a10641827c218a602b0f8
7
+ data.tar.gz: 662a700afcf694d62ab07a7f49454bb0d580a3108b1ff35556bc7f4b84965878b5eae3e4eded2d97cc56c02272d0b527e59725bdc8f401e6070f663b97793361
@@ -0,0 +1,15 @@
1
+ include:
2
+ - project: gitlab-org/gitlab
3
+ ref: master
4
+ file: .gitlab/ci/test-on-omnibus/main.gitlab-ci.yml
5
+
6
+ # Override git strategy because pipeline template is designed to install 'gitlab-qa' from rubygems and thus does not require
7
+ # cloning the project, yet here we need to clone repo to run 'gitlab-qa' with all local changes
8
+
9
+ cache-gitlab-qa:
10
+ variables:
11
+ GIT_STRATEGY: clone
12
+
13
+ .omnibus-e2e:
14
+ variables:
15
+ GIT_STRATEGY: clone
@@ -0,0 +1,6 @@
1
+ variables:
2
+ DEBIAN_VERSION: bookworm
3
+ DOCKER_VERSION: "24.0.5"
4
+ RUBY_VERSION: "3.3.7"
5
+ RUBYGEMS_VERSION: "3.6"
6
+ GIT_VERSION: "2.49"
data/.gitlab-ci.yml CHANGED
@@ -8,9 +8,10 @@
8
8
  - vendor/ruby
9
9
 
10
10
  include:
11
+ - local: .gitlab/ci/versions.yml
11
12
  - component: ${CI_SERVER_FQDN}/gitlab-org/components/danger-review/danger-review@1.4.0
12
13
  inputs:
13
- job_image: "${CI_REGISTRY}/gitlab-org/gitlab-build-images/debian-${DEBIAN_VERSION}-ruby-${RUBY_VERSION}"
14
+ job_image: "${CI_REGISTRY}/gitlab-org/gitlab-build-images/ci/debian-${DEBIAN_VERSION}-slim-ruby-${RUBY_VERSION}:rubygems-${RUBYGEMS_VERSION}-git-${GIT_VERSION}"
14
15
  job_stage: "check"
15
16
  - component: gitlab.com/gitlab-org/components/gem-release/gem-release@~latest
16
17
 
@@ -21,7 +22,7 @@ stages:
21
22
  - deploy
22
23
 
23
24
  default:
24
- image: ${CI_REGISTRY}/gitlab-org/gitlab-build-images/debian-${DEBIAN_VERSION}-ruby-${RUBY_VERSION}
25
+ image: ${CI_REGISTRY}/gitlab-org/gitlab-build-images/ci/debian-${DEBIAN_VERSION}-slim-ruby-${RUBY_VERSION}:rubygems-${RUBYGEMS_VERSION}-git-${GIT_VERSION}
25
26
  tags:
26
27
  - gitlab-org
27
28
  cache:
@@ -42,9 +43,6 @@ workflow:
42
43
  - if: '$CI_PIPELINE_SOURCE == "web"'
43
44
 
44
45
  variables:
45
- DEBIAN_VERSION: bookworm
46
- DOCKER_VERSION: "24.0.5"
47
- RUBY_VERSION: "3.1.5"
48
46
  BUNDLE_PATH: vendor
49
47
  BUNDLE_SILENCE_ROOT_WARNING: "true"
50
48
  BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES: "true"
@@ -55,7 +53,7 @@ variables:
55
53
  - if: '$CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable$/)'
56
54
  changes: ["lib/**/version.rb"]
57
55
 
58
- package-and-test-env:
56
+ test-on-omnibus-env:
59
57
  image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/alpine:latest
60
58
  stage: .pre
61
59
  variables:
@@ -71,11 +69,13 @@ package-and-test-env:
71
69
  - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
72
70
  changes:
73
71
  - Gemfile.lock
72
+ - .gitlab/ci/versions.yml
74
73
  variables:
75
74
  UPDATE_QA_CACHE: "true"
76
75
  - if: '$CI_MERGE_REQUEST_IID'
77
76
  changes:
78
77
  - Gemfile.lock
78
+ - .gitlab/ci/versions.yml
79
79
  variables:
80
80
  UPDATE_QA_CACHE: "true"
81
81
  - when: always
@@ -94,9 +94,11 @@ cache-gems:
94
94
  - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
95
95
  changes:
96
96
  - Gemfile.lock
97
+ - .gitlab/ci/versions.yml
97
98
  - if: '$CI_MERGE_REQUEST_IID'
98
99
  changes:
99
100
  - Gemfile.lock
101
+ - .gitlab/ci/versions.yml
100
102
 
101
103
  danger-review:
102
104
  needs:
@@ -125,10 +127,10 @@ rspec:
125
127
  coverage_format: cobertura
126
128
  path: coverage/coverage.xml
127
129
 
128
- package-and-test:
130
+ test-on-omnibus:
129
131
  stage: qa
130
132
  needs:
131
- - package-and-test-env
133
+ - test-on-omnibus-env
132
134
  variables:
133
135
  RELEASE: EE
134
136
  RUN_WITH_BUNDLE: "true"
@@ -136,25 +138,23 @@ package-and-test:
136
138
  SKIP_REPORT_IN_ISSUES: "true"
137
139
  UPDATE_QA_CACHE: $UPDATE_QA_CACHE
138
140
  GITLAB_QA_CACHE_KEY: $GITLAB_QA_CACHE_KEY
139
- QA_RETRY_FAILED_SPECS: "true"
141
+ RUN_ALL_TESTS: "true"
142
+ QA_PATH: "."
143
+ QA_RETRY_FAILED_SPECS: "false" # do not retry test failures as gitlab-qa mostly affect deploy part only
140
144
  QA_RUN_TYPE: gitlab-qa
141
145
  QA_EXPORT_TEST_METRICS: "false" # skip metrics export as this pipeline is only used to validate gitlab-qa changes
142
146
  inherit:
143
147
  variables:
144
148
  - RUBY_VERSION
145
149
  - DEBIAN_VERSION
146
- - DOCKER_VERSION
147
150
  trigger:
151
+ include: .gitlab/ci/omnibus.gitlab-ci.yml
148
152
  strategy: depend
149
153
  forward:
150
154
  yaml_variables: true
151
155
  pipeline_variables: true
152
- include:
153
- - project: gitlab-org/gitlab
154
- ref: master
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
159
159
  allow_failure: true
160
- - when: always
160
+ - if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable$/'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-qa (15.4.0)
4
+ gitlab-qa (15.5.0)
5
5
  activesupport (>= 6.1, < 7.2)
6
6
  ffi (~> 1.17)
7
7
  gitlab (~> 4.19)
@@ -68,15 +68,16 @@ module Gitlab
68
68
  'listen_addr': '0.0.0.0:#{gitaly_port}',
69
69
  'prometheus_listen_addr': '0.0.0.0:9236',
70
70
  'auth_token': 'PRAEFECT_INTERNAL_TOKEN',
71
- 'transactions': {'enabled': #{Runtime::Env.qa_gitaly_transactions_enabled?}}
71
+ 'transactions': {'enabled': #{Runtime::Env.qa_gitaly_transactions_enabled?}},
72
+ storage: [
73
+ {
74
+ name: '#{name}',
75
+ path: '/var/opt/gitlab/git-data/repositories',
76
+ },
77
+ ]
72
78
  }
73
79
  gitlab_shell['secret_token'] = 'GITLAB_SHELL_SECRET_TOKEN';
74
80
  gitlab_rails['internal_api_url'] = 'http://#{cluster_config.gitlab_name}.#{cluster_config.network}';
75
- git_data_dirs({
76
- '#{name}' => {
77
- 'path' => '/var/opt/gitlab/git-data'
78
- }
79
- });
80
81
  OMNIBUS
81
82
  end
82
83
  end
@@ -102,12 +102,12 @@ module Gitlab
102
102
  <<~OMNIBUS
103
103
  external_url 'http://#{config.gitlab_name}.#{iptables_restricted_network}';
104
104
 
105
- git_data_dirs({
105
+ gitlab_rails['repositories_storages'] = {
106
106
  'default' => {
107
- 'gitaly_address' => 'tcp://#{config.praefect_addr}:#{config.praefect_port}',
107
+ 'gitaly_address' => "tcp://#{config.praefect_addr}:#{config.praefect_port}",
108
108
  'gitaly_token' => 'PRAEFECT_EXTERNAL_TOKEN'
109
109
  }
110
- });
110
+ };
111
111
  gitaly['enable'] = false;
112
112
  gitlab_shell['secret_token'] = 'GITLAB_SHELL_SECRET_TOKEN';
113
113
  prometheus['scrape_configs'] = [
@@ -47,20 +47,19 @@ module Gitlab
47
47
  <<~OMNIBUS
48
48
  external_url 'http://gitlab.test';
49
49
 
50
- git_data_dirs({
51
- 'default' => {
52
- 'gitaly_address' => 'tcp://praefect.test:2305',
53
- 'gitaly_token' => 'PRAEFECT_EXTERNAL_TOKEN'
50
+ gitlab_rails['repositories_storages'] = {
51
+ "default" => {
52
+ "gitaly_address" => "tcp://praefect.test:2305",
53
+ "gitaly_token" => "PRAEFECT_EXTERNAL_TOKEN"
54
54
  },
55
- 'gitaly' => {
56
- 'gitaly_address' => 'tcp://gitlab.test:8075',
57
- 'path' => '/var/opt/gitlab/git-data/gitaly'
55
+ "gitaly" => {
56
+ "gitaly_address" => "tcp://gitlab.test:8075"
58
57
  },
59
- 'secondary' => {
60
- 'gitaly_address' => 'tcp://gitlab.test:8075',
61
- 'path' => '/var/opt/gitlab/git-data/secondary'
58
+ "secondary" => {
59
+ "gitaly_address" => "tcp://gitlab.test:8075"
62
60
  }
63
- });
61
+ };
62
+
64
63
  gitaly['enable'] = true;
65
64
  gitaly['configuration'] = {
66
65
  auth: {
@@ -70,11 +69,11 @@ module Gitlab
70
69
  storage: [
71
70
  {
72
71
  name: 'gitaly',
73
- path: '/var/opt/gitlab/git-data/gitaly',
72
+ path: '/var/opt/gitlab/git-data/gitaly/repositories',
74
73
  },
75
74
  {
76
75
  name: 'secondary',
77
- path: '/var/opt/gitlab/git-data/secondary',
76
+ path: '/var/opt/gitlab/git-data/secondary/repositories',
78
77
  },
79
78
  ],
80
79
  };
@@ -51,12 +51,12 @@ module Gitlab
51
51
  <<~OMNIBUS
52
52
  external_url 'http://#{config.gitlab_name}.#{config.network}';
53
53
 
54
- git_data_dirs({
54
+ gitlab_rails['repositories_storages'] = {
55
55
  'default' => {
56
- 'gitaly_address' => 'tcp://#{config.praefect_addr}:#{config.praefect_port}',
56
+ 'gitaly_address' => "tcp://#{config.praefect_addr}:#{config.praefect_port}",
57
57
  'gitaly_token' => 'PRAEFECT_EXTERNAL_TOKEN'
58
58
  }
59
- });
59
+ };
60
60
  gitaly['enable'] = false;
61
61
  gitlab_shell['secret_token'] = 'GITLAB_SHELL_SECRET_TOKEN';
62
62
  prometheus['scrape_configs'] = [
@@ -73,10 +73,14 @@ module Gitlab
73
73
  gitlab_rails['gitaly_token'] = 'abc123secret';
74
74
  gitlab_shell['secret_token'] = 'shellsecret';
75
75
 
76
- git_data_dirs({
77
- 'default' => { 'gitaly_address' => 'tls://#{@gitaly_name}.#{@network}:9999' },
78
- 'storage1' => { 'gitaly_address' => 'tls://#{@gitaly_name}.#{@network}:9999' },
79
- });
76
+ gitlab_rails['repositories_storages'] = {
77
+ 'default' => {
78
+ 'gitaly_address' => "tls://#{@gitaly_name}.#{@network}:9999"
79
+ },
80
+ 'storage1' => {
81
+ 'gitaly_address' => "tls://#{@gitaly_name}.#{@network}:9999"
82
+ }
83
+ }
80
84
  OMNIBUS
81
85
  end
82
86
 
@@ -118,11 +122,6 @@ module Gitlab
118
122
  gitlab_shell['secret_token'] = 'shellsecret';
119
123
 
120
124
  gitlab_rails['internal_api_url'] = 'https://#{@gitlab_name}.#{@network}';
121
-
122
- git_data_dirs({
123
- 'default' => { 'path' => '/var/opt/gitlab/git-data' },
124
- 'storage1' => { 'path' => '/mnt/gitlab/git-data' },
125
- })
126
125
  OMNIBUS
127
126
  end
128
127
  end
@@ -19,16 +19,16 @@ module Gitlab
19
19
  <<~OMNIBUS
20
20
  external_url 'http://#{config.gitlab_name}.#{config.network}';
21
21
 
22
- git_data_dirs({
22
+ gitlab_rails['repositories_storages'] = {
23
23
  'default' => {
24
- 'gitaly_address' => 'tcp://#{config.praefect_addr}:#{config.praefect_port}',
24
+ 'gitaly_address' => "tcp://#{config.praefect_addr}:#{config.praefect_port}",
25
25
  'gitaly_token' => 'PRAEFECT_EXTERNAL_TOKEN'
26
26
  },
27
27
  'gitaly' => {
28
- 'gitaly_address' => 'tcp://#{config.gitlab_name}.#{config.network}:8075',
29
- 'path' => '/var/opt/gitlab/git-data'
28
+ 'gitaly_address' => "tcp://#{config.gitlab_name}.#{config.network}:8075"
30
29
  }
31
- });
30
+ }
31
+
32
32
  gitaly['enable'] = true;
33
33
  gitaly['configuration'] = {
34
34
  auth: {
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Gitlab
4
4
  module QA
5
- VERSION = '15.4.0'
5
+ VERSION = '15.5.0'
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.4.0
4
+ version: 15.5.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: 2025-04-16 00:00:00.000000000 Z
11
+ date: 2025-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -354,6 +354,8 @@ files:
354
354
  - ".gitignore"
355
355
  - ".gitlab-ci.yml"
356
356
  - ".gitlab/changelog_config.yml"
357
+ - ".gitlab/ci/omnibus.gitlab-ci.yml"
358
+ - ".gitlab/ci/versions.yml"
357
359
  - ".gitlab/issue_templates/Default.md"
358
360
  - ".gitlab/merge_request_templates/Default.md"
359
361
  - ".gitlab/merge_request_templates/Release.md"