gitlab-qa 6.14.0 → 6.15.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 +4 -4
- data/.gitlab-ci.yml +5 -16
- data/.gitlab/merge_request_templates/Release.md +1 -1
- data/docs/release_process.md +7 -6
- data/lib/gitlab/qa/report/generate_test_session.rb +4 -3
- data/lib/gitlab/qa/report/relate_failure_issue.rb +1 -1
- data/lib/gitlab/qa/report/report_as_issue.rb +5 -7
- data/lib/gitlab/qa/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: a196452581ca78bf81e38487d2563675d1f1afce26754e6ae14f754c9386bac8
|
|
4
|
+
data.tar.gz: 3e6f876da229512eb72d93a98e5affc28c809c4e01b0fadf2dcd13a1e743ba12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b87108ae34a262954ea9ce8ef0129383c76a9e73812819286aa35e5ff8200a7763fb048144c7ce316a4c45f7d5d11ffb1349864f3d493e588fde1fbfbaa6516
|
|
7
|
+
data.tar.gz: e37a184f29e23f5b02c58365f5628066cbac40158cbd764dfc118bf62176a1cd7690835ede80e8e9a0a5ab8d230dc1e5b509d35d7bb77626fd3b31bc779ed3b7
|
data/.gitlab-ci.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
stages:
|
|
2
2
|
- check
|
|
3
|
-
- release
|
|
4
3
|
- test
|
|
5
4
|
- report
|
|
5
|
+
- deploy
|
|
6
6
|
- notify
|
|
7
7
|
|
|
8
8
|
default:
|
|
@@ -65,21 +65,6 @@ rubocop:
|
|
|
65
65
|
rspec:
|
|
66
66
|
extends: .check-base
|
|
67
67
|
|
|
68
|
-
release:
|
|
69
|
-
stage: release
|
|
70
|
-
rules:
|
|
71
|
-
- if: '$CI_COMMIT_TAG'
|
|
72
|
-
script:
|
|
73
|
-
- gem update --system
|
|
74
|
-
- ruby --version
|
|
75
|
-
- gem env version
|
|
76
|
-
- gem build gitlab-qa.gemspec
|
|
77
|
-
- gem push gitlab-qa*.gem
|
|
78
|
-
artifacts:
|
|
79
|
-
paths:
|
|
80
|
-
- gitlab-qa*.gem
|
|
81
|
-
expire_in: 30 days
|
|
82
|
-
|
|
83
68
|
.test:
|
|
84
69
|
stage: test
|
|
85
70
|
services:
|
|
@@ -1012,3 +997,7 @@ notify_slack:
|
|
|
1012
997
|
- echo "CI_PIPELINE_URL is $CI_PIPELINE_URL"
|
|
1013
998
|
- echo "TOP_UPSTREAM_SOURCE_JOB is $TOP_UPSTREAM_SOURCE_JOB"
|
|
1014
999
|
- 'bin/slack $NOTIFY_CHANNEL "☠️ QA against $RELEASE failed! ☠️ See the test session report: $(cat REPORT_ISSUE_URL), and pipeline: $CI_PIPELINE_URL (triggered from $TOP_UPSTREAM_SOURCE_JOB)" ci_failing'
|
|
1000
|
+
|
|
1001
|
+
include:
|
|
1002
|
+
- project: 'gitlab-org/quality/pipeline-common'
|
|
1003
|
+
file: '/ci/gem-release.yml'
|
|
@@ -30,6 +30,6 @@ with the latest commit from https://gitlab.com/gitlab-org/gitlab-qa/commits/mast
|
|
|
30
30
|
- [ ] Release notes are accurate.
|
|
31
31
|
|
|
32
32
|
- Checklist after merging:
|
|
33
|
-
- [ ] [
|
|
33
|
+
- [ ] [Update the release notes for the newly created tag](docs/release_process.md#how-to).
|
|
34
34
|
|
|
35
35
|
/label ~Quality ~"feature::maintenance"
|
data/docs/release_process.md
CHANGED
|
@@ -24,12 +24,13 @@ when we make a change - no matter the size of the change.
|
|
|
24
24
|
- If not, update [`lib/gitlab/qa/version.rb`] to an appropriate [semantic version](https://semver.org) in a new merge request using the [release template](https://gitlab.com/gitlab-org/gitlab-qa/blob/master/.gitlab/merge_request_templates/Release.md)
|
|
25
25
|
and title the MR like `"Bump version to <version>"`.
|
|
26
26
|
- Merge the merge request.
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
* **Message**: Set it to "Version x.y.z", e.g. if the version is `4.7.1`, the message would be "Version 4.7.1".
|
|
27
|
+
- The new version should automatically be tagged and pushed to Rubygems by the `gem-release` job in the merge commit pipeline.
|
|
28
|
+
- Update the release notes for the newly created tag (https://gitlab.com/gitlab-org/gitlab-qa/-/tags):
|
|
30
29
|
* **Release notes**: Copy the release notes from the merge request.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
|
|
31
|
+
Note: The `gem-release` job uses:
|
|
32
|
+
|
|
33
|
+
- the `GITLAB_API_TOKEN` environment variable to authenticate against GitLab.com's API in order to create the tag
|
|
34
|
+
- the `GEM_HOST_API_KEY` environment variable to authenticate against Rubygems.org's API in order to release the gem
|
|
34
35
|
|
|
35
36
|
[`lib/gitlab/qa/version.rb`]: https://gitlab.com/gitlab-org/gitlab-qa/blob/master/lib/gitlab/qa/version.rb#L3
|
|
@@ -17,9 +17,9 @@ module Gitlab
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
issue = gitlab.create_issue(
|
|
20
|
-
title: "Test session report | #{
|
|
20
|
+
title: "Test session report | #{pipeline}",
|
|
21
21
|
description: generate_description(tests),
|
|
22
|
-
labels: ['Quality', 'QA', 'triage report',
|
|
22
|
+
labels: ['Quality', 'QA', 'triage report', pipeline_name_label]
|
|
23
23
|
)
|
|
24
24
|
|
|
25
25
|
File.write('REPORT_ISSUE_URL', issue.web_url)
|
|
@@ -31,7 +31,8 @@ module Gitlab
|
|
|
31
31
|
## Session summary
|
|
32
32
|
|
|
33
33
|
* Deploy version: #{Runtime::Env.deploy_version}
|
|
34
|
-
*
|
|
34
|
+
* Deploy environment: #{Runtime::Env.deploy_environment}
|
|
35
|
+
* Pipeline: #{Runtime::Env.pipeline_from_project_name} [#{Runtime::Env.ci_pipeline_id}](#{Runtime::Env.ci_pipeline_url})
|
|
35
36
|
#{generate_summary(tests: tests)}
|
|
36
37
|
|
|
37
38
|
#{generate_failed_jobs_listing}
|
|
@@ -104,20 +104,18 @@ module Gitlab
|
|
|
104
104
|
labels
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
def
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
case environment
|
|
107
|
+
def pipeline_name_label
|
|
108
|
+
case pipeline
|
|
111
109
|
when 'production'
|
|
112
110
|
'found:gitlab.com'
|
|
113
111
|
when 'canary', 'staging'
|
|
114
|
-
"found:#{
|
|
112
|
+
"found:#{pipeline}.gitlab.com"
|
|
115
113
|
when 'preprod'
|
|
116
114
|
'found:pre.gitlab.com'
|
|
117
115
|
when 'staging-orchestrated', 'nightly', 'master'
|
|
118
|
-
"found:#{
|
|
116
|
+
"found:#{pipeline}"
|
|
119
117
|
else
|
|
120
|
-
raise "No `found:*` label for the `#{
|
|
118
|
+
raise "No `found:*` label for the `#{pipeline}` pipeline!"
|
|
121
119
|
end
|
|
122
120
|
end
|
|
123
121
|
|
data/lib/gitlab/qa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab-qa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.15.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Grzegorz Bizon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|