gitlab_quality-test_tooling 2.15.2 → 2.15.3
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 +2 -2
- data/lib/gitlab_quality/test_tooling/gitlab_client/issues_dry_client.rb +1 -1
- data/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb +10 -2
- data/lib/gitlab_quality/test_tooling/test_result/base_test_result.rb +10 -2
- data/lib/gitlab_quality/test_tooling/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: 699557a2175d1f39cb2f4c786b42b0ee286cbf55d6e26ebe7b46e9a6335af56b
|
4
|
+
data.tar.gz: d32b217fe2e6dc6c0d9c0382b9e0eb91a59467908f5dbfa1115e9079bffb52d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a79d49a6389fcf4c1e87fd1679bea287c9e641b5b7ec8fde047c932a5e74b89446becdaa26be92273fe985876358b1b1656e847f37bde813c1c752c31150b42
|
7
|
+
data.tar.gz: a8d34a50788287842fd7df3e4eee0f66e3e2e5f994d45ca41eb18336ba1087d3dbaa3537dbc7f03198e6e1ed663269986cfd9f3292d5a9d9e7289473f8db02ea
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gitlab_quality-test_tooling (2.15.
|
4
|
+
gitlab_quality-test_tooling (2.15.3)
|
5
5
|
activesupport (>= 7.0, < 7.3)
|
6
6
|
amatch (~> 0.4.1)
|
7
7
|
fog-google (~> 1.24, >= 1.24.1)
|
@@ -11,7 +11,7 @@ PATH
|
|
11
11
|
nokogiri (~> 1.10)
|
12
12
|
parallel (>= 1, < 2)
|
13
13
|
rainbow (>= 3, < 4)
|
14
|
-
rspec-parameterized (>= 1.0
|
14
|
+
rspec-parameterized (>= 1.0, < 3.0)
|
15
15
|
table_print (= 1.5.7)
|
16
16
|
zeitwerk (>= 2, < 3)
|
17
17
|
|
@@ -4,7 +4,7 @@ module GitlabQuality
|
|
4
4
|
module TestTooling
|
5
5
|
module GitlabClient
|
6
6
|
class IssuesDryClient < IssuesClient
|
7
|
-
def create_issue(title:, description:, labels:, issue_type: 'issue', confidential: false)
|
7
|
+
def create_issue(title:, description:, labels:, issue_type: 'issue', _assignee_id: nil, _due_date: nil, confidential: false)
|
8
8
|
attrs = { description: description, labels: labels, confidential: confidential }
|
9
9
|
|
10
10
|
puts "The following #{issue_type} would have been created:"
|
@@ -35,6 +35,11 @@ module GitlabQuality
|
|
35
35
|
'gitlab-org/customers-gitlab-com' => 'gitlab-org/customers-gitlab-com'
|
36
36
|
}.freeze
|
37
37
|
|
38
|
+
# Don't use the E2E test issues project for commit parent
|
39
|
+
COMMIT_PROJECT_MAPPINGS = {
|
40
|
+
'gitlab-org/quality/e2e-test-issues' => 'gitlab-org/gitlab'
|
41
|
+
}.freeze
|
42
|
+
|
38
43
|
# The project contains record of the deployments we use to determine the commit diff
|
39
44
|
OPS_RELEASES_METADATA_PROJECT = 'gitlab-org/release/metadata'
|
40
45
|
|
@@ -181,7 +186,9 @@ module GitlabQuality
|
|
181
186
|
end
|
182
187
|
|
183
188
|
created_issue = super
|
184
|
-
|
189
|
+
|
190
|
+
# On a dry run, created_issue may not be populated
|
191
|
+
test.failure_issue ||= created_issue&.web_url
|
185
192
|
|
186
193
|
created_issue
|
187
194
|
end
|
@@ -431,7 +438,8 @@ module GitlabQuality
|
|
431
438
|
|
432
439
|
def generate_gitlab_diff(pipeline)
|
433
440
|
pipeline_sha = pipeline.sha
|
434
|
-
|
441
|
+
commit_project = COMMIT_PROJECT_MAPPINGS.fetch(project, project)
|
442
|
+
parent_sha = gitlab.find_commit_parent(commit_project, pipeline_sha)
|
435
443
|
diff_project = if DIFF_PROJECT_MAPPINGS.key?(project)
|
436
444
|
DIFF_PROJECT_MAPPINGS[project]
|
437
445
|
else
|
@@ -144,15 +144,23 @@ module GitlabQuality
|
|
144
144
|
def files_client
|
145
145
|
@files_client ||= GitlabClient::RepositoryFilesClient.new(
|
146
146
|
token: token,
|
147
|
-
project:
|
147
|
+
project: mapped_project,
|
148
148
|
file_path: file,
|
149
|
-
ref: ref)
|
149
|
+
ref: ref.nil? || ref.empty? ? 'master' : ref)
|
150
150
|
end
|
151
151
|
|
152
152
|
private
|
153
153
|
|
154
154
|
attr_reader :token, :project, :ref
|
155
155
|
|
156
|
+
def mapped_project
|
157
|
+
if project == 'gitlab-org/quality/e2e-test-issues'
|
158
|
+
'gitlab-org/gitlab'
|
159
|
+
else
|
160
|
+
project
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
156
164
|
def screenshot
|
157
165
|
report.fetch('screenshot', nil)
|
158
166
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_quality-test_tooling
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.15.
|
4
|
+
version: 2.15.3
|
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-07-
|
11
|
+
date: 2025-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|