gitlab_quality-test_tooling 2.13.0 → 2.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 886a32709ca918a9c86d8a770239f809fa51dce3392891b7712f2b085b52a409
4
- data.tar.gz: 1ee8b80242894a606e11c395b23f498d9a5f8d5fcf65447b93ce21006ecb1aaa
3
+ metadata.gz: 8f16f6945bb8f9bdc978fbc2a3b3592974a5d51e17492a280276cbf85a2f2ac4
4
+ data.tar.gz: 17728849b7246c5cdc1e8b146224f8229f6fe1cfd84ae7c3f283db48dd26bbfa
5
5
  SHA512:
6
- metadata.gz: 5a23f34a8668c4a4d863aa2cfb16fbc1505c4534f2c06f2df43e257b71704f706e9977efa3c18a8dc81d9d2bb6dfa7c09dc65a5a993a50b79468e683022214d7
7
- data.tar.gz: 4685c3fd432a26940b23a69d48e9214aa33950697f91ed43d0b9fa6ecd113f25dd68ab5d95a7cbbcdd129ebff3801cd83c8dcd0a52cabaf860bc332cb1f7f13d
6
+ metadata.gz: 33df5f745b4d9626d5b721ece310076383679cc4551d63e64cc16cab8dd86f4ba2753de5fd23d1a7764419fcaeafac8da5658d7f9034453ab03572cc9516a381
7
+ data.tar.gz: b7d7b5225aa28ec47867163aecdb633f7056a419241c79b305ffe4c750737d7896aefcf1045e50704c1a223a61309ec8d1a7b837e10f7da051a636770aff6a1d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab_quality-test_tooling (2.13.0)
4
+ gitlab_quality-test_tooling (2.14.0)
5
5
  activesupport (>= 7.0, < 7.3)
6
6
  amatch (~> 0.4.1)
7
7
  fog-google (~> 1.24, >= 1.24.1)
@@ -175,7 +175,7 @@ module GitlabQuality
175
175
  def find_commit_parent(project, sha)
176
176
  handle_gitlab_client_exceptions do
177
177
  # In a merged results commit, the first parent is the one from
178
- # the main branch, and the second parent is from the branch
178
+ # the default branch, and the second parent is from the branch
179
179
  # itself (more likely to have caused the issue)
180
180
  client.commit(project, sha).parent_ids.last
181
181
  end
@@ -36,7 +36,7 @@ module GitlabQuality
36
36
  end
37
37
 
38
38
  def new_issue_labels(_test)
39
- %w[Quality status::automated]
39
+ %w[E2E status::automated]
40
40
  end
41
41
 
42
42
  def up_to_date_labels(test:, issue: nil, new_labels: Set.new)
@@ -43,9 +43,9 @@ module GitlabQuality
43
43
  # Some of those run in their own project, so CI_PROJECT_NAME is the name we need. Those are:
44
44
  # nightly, staging, canary, production, and preprod
45
45
  #
46
- # MR, master/main, and gitlab tests run in gitlab-qa, but we only want to report tests run on
47
- # master/main because the other pipelines will be monitored by the author of the MR that triggered them.
48
- # So we assume that we're reporting a master/main pipeline if the project name is 'gitlab'.
46
+ # MR, master, and gitlab tests run in gitlab-qa, but we only want to report tests run on
47
+ # master because the other pipelines will be monitored by the author of the MR that triggered them.
48
+ # So we assume that we're reporting a master pipeline if the project name is 'gitlab'.
49
49
 
50
50
  @pipeline ||= Runtime::Env.pipeline_from_project_name
51
51
  end
@@ -33,7 +33,7 @@ module GitlabQuality
33
33
  issue = gitlab.create_issue(
34
34
  title: "#{Time.now.strftime('%Y-%m-%d')} Test session report | #{Runtime::Env.qa_run_type}",
35
35
  description: generate_description(tests),
36
- labels: ['automation:bot-authored', 'Quality', 'QA', 'triage report', pipeline_name_label],
36
+ labels: ['automation:bot-authored', 'E2E', 'triage report', pipeline_name_label],
37
37
  confidential: confidential
38
38
  )
39
39
 
@@ -544,6 +544,8 @@ module GitlabQuality
544
544
  end
545
545
 
546
546
  def screenshot_artifact_url(test)
547
+ return "" unless test.screenshot_image
548
+
547
549
  ci_job_url = test.ci_job_url
548
550
  screenshot_path = test.screenshot_image[%r{qa/.*$}]
549
551
 
@@ -46,7 +46,7 @@ module GitlabQuality
46
46
  end
47
47
 
48
48
  def default_branch
49
- env_var_value_if_defined('QA_DEFAULT_BRANCH') || 'main'
49
+ 'master'
50
50
  end
51
51
 
52
52
  def ci_api_v4_url
@@ -97,7 +97,7 @@ module GitlabQuality
97
97
 
98
98
  This MR was created based on data from reliable e2e test report: #{context.report_issue}
99
99
 
100
- /label ~"Quality" ~"QA" ~"type::maintenance"
100
+ /label ~"E2E" ~"type::maintenance"
101
101
  /label ~"devops::#{devops_stage}"
102
102
  #{context.label_from_product_group(product_group)}
103
103
 
@@ -137,7 +137,7 @@ module GitlabQuality
137
137
  - [ ] To ensure a faster turnaround, ask in the `#quality_maintainers` Slack channel for someone to review and merge the merge request, rather than assigning it directly.
138
138
 
139
139
  <!-- Base labels. -->
140
- /label ~"Quality" ~"QA" ~"type::maintenance" ~"maintenance::pipelines"
140
+ /label ~"E2E" ~"type::maintenance" ~"maintenance::pipelines"
141
141
 
142
142
  <!--
143
143
  Choose the stage that appears in the test path, e.g. ~"devops::create" for
@@ -14,7 +14,8 @@ module GitlabQuality
14
14
  "Error reference number: 502",
15
15
  "(502): `GitLab is not responding`",
16
16
  "<head><title>502 Bad Gateway</title></head>",
17
- "14:connections to all backends failing"
17
+ "14:connections to all backends failing",
18
+ "gitlab_canary=true cookie was set in browser but 'Next' badge was not shown on UI"
18
19
  ].freeze
19
20
 
20
21
  SHARED_EXAMPLES_CALLERS = %w[include_examples it_behaves_like].freeze
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GitlabQuality
4
4
  module TestTooling
5
- VERSION = "2.13.0"
5
+ VERSION = "2.14.0"
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.13.0
4
+ version: 2.14.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: 2025-05-23 00:00:00.000000000 Z
11
+ date: 2025-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control