gitlab_quality-test_tooling 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +2 -2
- data/exe/update-screenshot-paths +1 -1
- data/lib/gitlab_quality/test_tooling/report/flaky_test_issue.rb +7 -7
- data/lib/gitlab_quality/test_tooling/report/update_screenshot_path.rb +2 -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: 4d9ffa0b968a30865f566b0e0605f0f1f3e86ada066e5d9f556cf5fc841158a2
|
4
|
+
data.tar.gz: 86ff9419e5023c229f7e0dfbb98d9afae4370f62e98e0742a0050d314839d9a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1a1d48ad6f07f3861d2c20cac6c24623b709664b80f796b42972238e0c378c22a97f9374bb29546c5f9a3012d22b523d84b3e178d413040fe4d8e40a14e3827
|
7
|
+
data.tar.gz: 6ec38fbbba05b00c978a3f0a48994217257aca572ec8081b1764d950c47175e91bd0cdc3dbd944c730c184ea76e856bd0e46691c7323f16c5acc0b7fe1d5cab1
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.3
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gitlab_quality-test_tooling (1.
|
4
|
+
gitlab_quality-test_tooling (1.25.0)
|
5
5
|
activesupport (>= 6.1, < 7.2)
|
6
6
|
amatch (~> 0.4.1)
|
7
7
|
gitlab (~> 4.19)
|
@@ -331,4 +331,4 @@ DEPENDENCIES
|
|
331
331
|
webmock (= 3.7.0)
|
332
332
|
|
333
333
|
BUNDLED WITH
|
334
|
-
2.5.
|
334
|
+
2.5.4
|
data/exe/update-screenshot-paths
CHANGED
@@ -11,7 +11,7 @@ params = {}
|
|
11
11
|
options = OptionParser.new do |opts|
|
12
12
|
opts.banner = "Usage: #{$PROGRAM_NAME} [options]"
|
13
13
|
|
14
|
-
opts.on('-i', '--input-files INPUT_FILES', String, 'RSpec report files (JSON or JUnit XML)') do |input_files|
|
14
|
+
opts.on('-i', '--input-files INPUT_FILES', String, 'Glob pattern for RSpec report files (JSON or JUnit XML)') do |input_files|
|
15
15
|
params[:input_files] = input_files
|
16
16
|
end
|
17
17
|
|
@@ -133,17 +133,17 @@ module GitlabQuality
|
|
133
133
|
# See https://gitlab.com/gitlab-org/quality/engineering-productivity/team/-/blob/main/scripts/unhealthy_test_issues_statistics.rb
|
134
134
|
# to gather these statistics.
|
135
135
|
#
|
136
|
-
#
|
137
|
-
# P90
|
138
|
-
# P95
|
139
|
-
#
|
136
|
+
# x <= P90 => flakiness::4
|
137
|
+
# P90 < x <= P95 => flakiness::3
|
138
|
+
# P95 < x <= P99 => flakiness::2
|
139
|
+
# > P99 => flakiness::1
|
140
140
|
def flakiness_status_labels_quick_action(reports_count)
|
141
141
|
case reports_count
|
142
|
-
when
|
142
|
+
when 399..Float::INFINITY
|
143
143
|
'/label ~"flakiness::1"'
|
144
|
-
when
|
144
|
+
when 37..398
|
145
145
|
'/label ~"flakiness::2"'
|
146
|
-
when
|
146
|
+
when 13..36
|
147
147
|
'/label ~"flakiness::3"'
|
148
148
|
else
|
149
149
|
'/label ~"flakiness::4"'
|
@@ -16,8 +16,8 @@ module GitlabQuality
|
|
16
16
|
|
17
17
|
def invoke!
|
18
18
|
Dir.glob(input_files).each do |input_file|
|
19
|
-
rewrite_screenshot_paths_in_junit_file(input_file)
|
20
|
-
rewrite_screenshot_paths_in_json_file(input_file.
|
19
|
+
rewrite_screenshot_paths_in_junit_file(input_file) if input_file.end_with?('.xml')
|
20
|
+
rewrite_screenshot_paths_in_json_file(input_file) if input_file.end_with?('.json')
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
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: 1.
|
4
|
+
version: 1.25.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-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|