gitlab_quality-test_tooling 1.37.0 → 1.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab_quality/test_tooling/report/failed_test_issue.rb +1 -1
- data/lib/gitlab_quality/test_tooling/report/health_problem_reporter.rb +6 -1
- data/lib/gitlab_quality/test_tooling/test_meta/test_meta_updater.rb +8 -1
- 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: 3637a075d6d648d02c32ba655c94a1fcbe7eb4d6aa1c4cabf3387ea5b00b8af3
|
4
|
+
data.tar.gz: ba6326ac31d8e7a558069ac6e195841e572ad9f8de772fa3281fd3c7f5c2bc3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bed8063e6e2e5504edcf23c88b05390c5ee2ed81651bc108ef28df1d1e70f4ab214fbdb84c0f8e645aaee36f36cfe181ae101a8a5bd9d8063e75bd9ae01e38e
|
7
|
+
data.tar.gz: ebfadcceffe6327444fd2f614a29fc31c5116902c0113416ba3d40e3f750381cc5263c6b8a399b5eaaa1c3b96b12853e6467989d48c05116fabdd454db590d11
|
data/Gemfile.lock
CHANGED
@@ -58,7 +58,7 @@ module GitlabQuality
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def health_problem_status_label_quick_action(reports_list)
|
61
|
-
'/label ~"severity::1"' if reports_list.spiked_in_short_period?
|
61
|
+
'/label ~"priority::1" ~"severity::1"' if reports_list.spiked_in_short_period?
|
62
62
|
end
|
63
63
|
|
64
64
|
def up_to_date_labels(test:, issue: nil, new_labels: Set.new)
|
@@ -100,13 +100,15 @@ module GitlabQuality
|
|
100
100
|
puts "Reporting tests in `#{files.join(',')}` as issues in project `#{project}` via the API at `#{Runtime::Env.gitlab_api_base}`."
|
101
101
|
|
102
102
|
TestResults::Builder.new(file_glob: files, token: token, project: project).test_results_per_file do |test_results|
|
103
|
-
puts "=>
|
103
|
+
puts "=> Processing #{test_results.count} tests in #{test_results.path}"
|
104
104
|
|
105
105
|
process_test_results(test_results)
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
109
|
def process_test_results(test_results)
|
110
|
+
reported_test_count = 0
|
111
|
+
|
110
112
|
test_results.each do |test|
|
111
113
|
next unless test_is_applicable?(test)
|
112
114
|
|
@@ -123,7 +125,10 @@ module GitlabQuality
|
|
123
125
|
|
124
126
|
update_reports(issues, test)
|
125
127
|
collect_issues(test, issues)
|
128
|
+
reported_test_count += 1
|
126
129
|
end
|
130
|
+
|
131
|
+
puts " => Reported #{reported_test_count} #{problem_type} tests."
|
127
132
|
end
|
128
133
|
|
129
134
|
def update_reports(issues, test)
|
@@ -28,7 +28,7 @@ module GitlabQuality
|
|
28
28
|
|
29
29
|
contents['specs'].each do |spec|
|
30
30
|
processor.create_commit(spec, self)
|
31
|
-
break if processed_commits.keys.count >=
|
31
|
+
break if processed_commits.keys.count >= batch_limit
|
32
32
|
end
|
33
33
|
|
34
34
|
processor.create_merge_requests(self)
|
@@ -37,6 +37,13 @@ module GitlabQuality
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
# Returns the number of records to process
|
41
|
+
#
|
42
|
+
# @return [Integer]
|
43
|
+
def batch_limit
|
44
|
+
ENV.fetch('BATCH_LIMIT', 10).to_i
|
45
|
+
end
|
46
|
+
|
40
47
|
# Add processed commits.
|
41
48
|
#
|
42
49
|
# processed_commits has the following form. Note that each key in the :commits hash
|
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.38.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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|