gitlab-qa 5.8.1 → 5.9.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 +4 -4
- data/lib/gitlab/qa/report/results_in_issues.rb +14 -3
- 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: 9dd97ce9a6062883099379592097771554a0d5d832cf4a3a120e73ef5808a31d
|
4
|
+
data.tar.gz: 171854be80b7576152c6d5324eb404e17ee825b7f58fe01e3f2790cd0208efab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514c8f72a97243719ebd46cf586076f1c996c45de222f6e7ce9690270b8a7c6e16785f81e82a74b2b208571edae8b5dcf7fd79ab0047ccb43938849ad3d81ae8
|
7
|
+
data.tar.gz: 8bf6ec756fcd9f9d4175b6887db7fb962242bb5c77bd949028a62844fd7e41f2f4320055fb54d9a87a4334a2d4095a17516e9f75d2e2d52f7938ee7399f8dcbc
|
@@ -101,7 +101,7 @@ module Gitlab
|
|
101
101
|
def report_test(test)
|
102
102
|
return if test.search('skipped').any?
|
103
103
|
|
104
|
-
puts "Reporting test
|
104
|
+
puts "Reporting test: #{test['file']} | #{test['name']}"
|
105
105
|
|
106
106
|
issue = find_issue(test)
|
107
107
|
if issue
|
@@ -118,7 +118,7 @@ module Gitlab
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def create_issue(test)
|
121
|
-
puts "Creating issue
|
121
|
+
puts "Creating issue..."
|
122
122
|
|
123
123
|
handle_gitlab_client_exceptions do
|
124
124
|
Gitlab.create_issue(
|
@@ -146,13 +146,17 @@ module Gitlab
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def title_from_test(test)
|
149
|
-
title = "
|
149
|
+
title = "#{partial_file_path(test['file'])} | #{search_safe(test['name'])}".strip
|
150
150
|
|
151
151
|
return title unless title.length > MAX_TITLE_LENGTH
|
152
152
|
|
153
153
|
"#{title[0...MAX_TITLE_LENGTH - 3]}..."
|
154
154
|
end
|
155
155
|
|
156
|
+
def partial_file_path(path)
|
157
|
+
path.match(/((api|browser_ui).*)/i)[1]
|
158
|
+
end
|
159
|
+
|
156
160
|
def search_safe(value)
|
157
161
|
value.delete('"')
|
158
162
|
end
|
@@ -223,16 +227,23 @@ module Gitlab
|
|
223
227
|
end
|
224
228
|
end
|
225
229
|
|
230
|
+
# rubocop:disable Metrics/AbcSize
|
226
231
|
def update_labels(issue, test)
|
227
232
|
labels = issue.labels
|
228
233
|
labels.delete_if { |label| label.start_with?("#{pipeline}::") }
|
229
234
|
labels << (failures(test).empty? ? "#{pipeline}::passed" : "#{pipeline}::failed")
|
235
|
+
labels << "Enterprise Edition" if ee_test?(test)
|
230
236
|
quarantine_job? ? labels << "quarantine" : labels.delete("quarantine")
|
231
237
|
|
232
238
|
handle_gitlab_client_exceptions do
|
233
239
|
Gitlab.edit_issue(project, issue.iid, labels: labels)
|
234
240
|
end
|
235
241
|
end
|
242
|
+
# rubocop:enable Metrics/AbcSize
|
243
|
+
|
244
|
+
def ee_test?(test)
|
245
|
+
test['file'] =~ %r{features/ee/(api|browser_ui)}
|
246
|
+
end
|
236
247
|
|
237
248
|
def failures(test)
|
238
249
|
test.search('failure')
|
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: 5.
|
4
|
+
version: 5.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grzegorz Bizon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|