gitlab_quality-test_tooling 2.20.1 → 2.20.2
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 +1 -1
- data/lib/gitlab_quality/test_tooling/gitlab_client/gitlab_client.rb +2 -9
- data/lib/gitlab_quality/test_tooling/gitlab_client/issues_client.rb +1 -1
- data/lib/gitlab_quality/test_tooling/runtime/env.rb +5 -2
- data/lib/gitlab_quality/test_tooling/test_meta/test_meta_updater.rb +1 -3
- 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: b19963b797f614b40b30f5df3ed6bc75e4b5d8396e9affe95566c0980f6433d5
|
4
|
+
data.tar.gz: e5ff4fe4f7c0a0ca1f97beceda5832641c39ea5a920d63b9f8e195db85ea931d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4bbfcb079935a0f77525c862cb00346be21052c2a799c93f0b2516ebdacd90ede3fb66994feec42a91cc685892a5a64d333af374ba0121386fe18d5ca4f4cbc
|
7
|
+
data.tar.gz: fcee8ac94fff1b1a12b13a735a26333fd3ab6caa257315853de89554bedb7b4c400e1f2eb8a2e9fc570b0e2d2c630378bf24b23c9f6efda7a360dcbfad522cb4
|
data/Gemfile.lock
CHANGED
@@ -43,14 +43,7 @@ module GitlabQuality
|
|
43
43
|
return unless ENV['CI_SLACK_WEBHOOK_URL']
|
44
44
|
|
45
45
|
pipeline = Runtime::Env.pipeline_from_project_name
|
46
|
-
channel =
|
47
|
-
when "canary"
|
48
|
-
"e2e-run-production"
|
49
|
-
when "staging", "staging-canary"
|
50
|
-
"e2e-run-staging"
|
51
|
-
else
|
52
|
-
"e2e-run-#{pipeline}"
|
53
|
-
end
|
46
|
+
channel = Runtime::Env.slack_alerts_channel
|
54
47
|
|
55
48
|
slack_options = {
|
56
49
|
slack_webhook_url: ENV.fetch('CI_SLACK_WEBHOOK_URL', nil),
|
@@ -58,7 +51,7 @@ module GitlabQuality
|
|
58
51
|
username: "GitLab Quality Test Tooling",
|
59
52
|
icon_emoji: ':ci_failing:',
|
60
53
|
message: <<~MSG
|
61
|
-
An unexpected error occurred while reporting test results in issues.
|
54
|
+
Env: #{pipeline}. An unexpected error occurred while reporting test results in issues.
|
62
55
|
The error occurred in job: #{Runtime::Env.ci_job_url}
|
63
56
|
`#{error.class.name} #{error.message}`
|
64
57
|
MSG
|
@@ -68,7 +68,7 @@ module GitlabQuality
|
|
68
68
|
|
69
69
|
def find_issue_notes(iid:)
|
70
70
|
handle_gitlab_client_exceptions do
|
71
|
-
client.issue_notes(project, iid, order_by: 'created_at', sort: 'asc').auto_paginate
|
71
|
+
client.issue_notes(project, iid, order_by: 'created_at', sort: 'asc', activity_filter: 'only_comments').auto_paginate
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
@@ -25,8 +25,7 @@ module GitlabQuality
|
|
25
25
|
'CI_PIPELINE_CREATED_AT' => :ci_pipeline_created_at,
|
26
26
|
'DEPLOY_VERSION' => :deploy_version,
|
27
27
|
'GITLAB_QA_ISSUE_URL' => :qa_issue_url,
|
28
|
-
'QA_GITLAB_CI_TOKEN' => :gitlab_ci_token
|
29
|
-
'SLACK_ALERTS_CHANNEL' => :slack_alerts_channel
|
28
|
+
'QA_GITLAB_CI_TOKEN' => :gitlab_ci_token
|
30
29
|
}.freeze
|
31
30
|
|
32
31
|
ENV_VARIABLES.each do |env_name, method_name|
|
@@ -63,6 +62,10 @@ module GitlabQuality
|
|
63
62
|
env_var_value_if_defined('GITLAB_GRAPHQL_API_BASE')
|
64
63
|
end
|
65
64
|
|
65
|
+
def slack_alerts_channel
|
66
|
+
env_var_value_if_defined('SLACK_ALERTS_CHANNEL') || 'C09HQ5BN07J' # test-tooling-alerts channel ID
|
67
|
+
end
|
68
|
+
|
66
69
|
def pipeline_from_project_name
|
67
70
|
%w[gitlab gitaly].any? { |str| ci_project_name.to_s.start_with?(str) } ? default_branch : ci_project_name
|
68
71
|
end
|
@@ -10,8 +10,6 @@ module GitlabQuality
|
|
10
10
|
|
11
11
|
attr_reader :project, :ref, :report_issue, :processed_commits, :token, :specs_file, :dry_run, :processor
|
12
12
|
|
13
|
-
TEST_TOOLING_ALERTS_SLACK_CHANNEL_ID = 'C09HQ5BN07J' # test-tooling-alerts
|
14
|
-
|
15
13
|
def initialize(token:, project:, specs_file:, processor:, ref: 'master', dry_run: false)
|
16
14
|
@specs_file = specs_file
|
17
15
|
@token = token
|
@@ -294,7 +292,7 @@ module GitlabQuality
|
|
294
292
|
# @param [String] message the message to post
|
295
293
|
# @return [HTTP::Response]
|
296
294
|
def post_message_on_slack(message)
|
297
|
-
channel =
|
295
|
+
channel = Runtime::Env.slack_alerts_channel
|
298
296
|
slack_options = {
|
299
297
|
slack_webhook_url: ENV.fetch('CI_SLACK_WEBHOOK_URL', nil),
|
300
298
|
channel: channel,
|
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.20.
|
4
|
+
version: 2.20.2
|
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-09-
|
11
|
+
date: 2025-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: climate_control
|