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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9587ce85da22ee8e77100c3f46e7d46e9bdfe82f129b8de757af427073b51f2
4
- data.tar.gz: 38318dc4c100c8bd8ba2bbbaa66e1551ce99b12214566d667e822d99eee667ca
3
+ metadata.gz: b19963b797f614b40b30f5df3ed6bc75e4b5d8396e9affe95566c0980f6433d5
4
+ data.tar.gz: e5ff4fe4f7c0a0ca1f97beceda5832641c39ea5a920d63b9f8e195db85ea931d
5
5
  SHA512:
6
- metadata.gz: bb75f7abc4c94f6e21d58f4af282763dfe5f671e4f94dae194d99f616a276d5958e6c9ffc3af04d92bc4146cbac02194e9444af9205d213a817a035d90b07c8e
7
- data.tar.gz: '036382fbbdd1f85e5f01528b8c74214b2eab236519d8b174a7c71b53662896f996a3a0d7a91e21b5afe46494823aa17379a9c2044e769a0413d93626082cdc5c'
6
+ metadata.gz: e4bbfcb079935a0f77525c862cb00346be21052c2a799c93f0b2516ebdacd90ede3fb66994feec42a91cc685892a5a64d333af374ba0121386fe18d5ca4f4cbc
7
+ data.tar.gz: fcee8ac94fff1b1a12b13a735a26333fd3ab6caa257315853de89554bedb7b4c400e1f2eb8a2e9fc570b0e2d2c630378bf24b23c9f6efda7a360dcbfad522cb4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (2.20.1)
4
+ gitlab_quality-test_tooling (2.20.2)
5
5
  activesupport (>= 7.0, < 7.3)
6
6
  amatch (~> 0.4.1)
7
7
  fog-google (~> 1.24, >= 1.24.1)
@@ -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 = case pipeline
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 = ENV.fetch('SLACK_ALERTS_CHANNEL', nil) || TEST_TOOLING_ALERTS_SLACK_CHANNEL_ID
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,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "2.20.1"
5
+ VERSION = "2.20.2"
6
6
  end
7
7
  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.20.1
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-25 00:00:00.000000000 Z
11
+ date: 2025-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control