gitlab-qa 3.2.2 → 3.2.3

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: bb67489afb90f2129504bff8b502b95d8cc448ee559e635a5cbf28c0a1ad36b3
4
- data.tar.gz: 9629fd028004d72bc0a8d49dd134bd106a0202d08d1995e5abc35cca007c73a2
3
+ metadata.gz: bb415c30506263debcb3290df0a0710cea24ff4bb44e8783a28a9bd13bf54317
4
+ data.tar.gz: 9acd943ded7dcbdbdea3155d5ed97b918bff7ed01b42c16fd333a4aed2501f1a
5
5
  SHA512:
6
- metadata.gz: 645d08b2fec56595b73cc2ab13c601e20a753c25c7787679a6b17d7968d3082045dd22cb60a1b7139d8056a87861a9e06a4fd7bfac2ded9e8fbab58cb6000908
7
- data.tar.gz: e81513069116b704fe1e4bb9ea2a041b07e2733cc487b2c074d21e03d767dfcdd4c66ddb1e791f605a046f255c0df8acf284176693d34578e26ef46ce32fb661
6
+ metadata.gz: 32bef30cbf022f175779c29c9debcfe424e4aa41a156a4b0141e768b9b3b75b1317bf84291ce30bc0c94f8f1176938846f67194dc128b33f88b68a53aa9c9500
7
+ data.tar.gz: 8d1e6bd8a2fadd06b61e7b4cf5d8173c4c1ef1bb42359cc3375e4111282865ec87e85b58258cafd070cb3ca1978f0b1d58c2db9f93e9c9df905399cbf6f5097e
data/CONTRIBUTING.md CHANGED
@@ -10,3 +10,19 @@ terms.
10
10
  [DCO + License](https://gitlab.com/gitlab-org/dco/blob/master/README.md)
11
11
 
12
12
  _This notice should stay as the first item in the CONTRIBUTING.md file._
13
+
14
+ ## Releasing a new version
15
+
16
+ To release a new version you can follow these steps:
17
+
18
+ 1. Bump the [version](lib/gitlab/qa/version.rb#L3) using [semantic versioning](https://semver.org/).
19
+ * You may find it helpful to fill out the description of the merge request
20
+ using the same format as for existing [tags](https://gitlab.com/gitlab-org/gitlab-qa/tags), as this will help in
21
+ step 3.
22
+ 2. Pull the change locally and run `bundle exec rake release` to build, tag,
23
+ and push the new version to [RubyGems](https://rubygems.org/gems/gitlab-qa).
24
+ * Note: you will need an account on [RubyGems.org](https://rubygems.org/)
25
+ and permission to push `gitlab-qa`. Open an issue in this project to
26
+ request access.
27
+ 3. Update the release notes for the new [tag](https://gitlab.com/gitlab-org/gitlab-qa/tags).
28
+ 4. If any pipelines are locked to a specific version, update them if required.
@@ -55,6 +55,7 @@ For more details on the internals, please read the
55
55
  * `QA_DEBUG` - set to `true` to verbosely log page object actions. Note: if enabled be aware that sensitive data might be logged. If an input element has a QA selector with `password` in the name, data entered into the input element will be masked. If the element doesn't have `password` in its name it won't be masked.
56
56
  * `QA_LOG_PATH` - path to output debug logging to. If not set logging will be output to STDOUT
57
57
  * `QA_CAN_TEST_GIT_PROTOCOL_V2` - set to `false` to skip tests that require Git protocol v2 if your environment doesn't support it.
58
+ * `QA_SKIP_PULL` - set to `true` to skip pulling docker images (e.g., to use one you built locally).
58
59
  * `GITHUB_OAUTH_APP_ID` - Client ID for GitHub OAuth app. See https://docs.gitlab.com/ce/integration/github.html for steps to generate this token.
59
60
  * `GITHUB_OAUTH_APP_SECRET` - Client Secret for GitHub OAuth app. See https://docs.gitlab.com/ce/integration/github.html for steps to generate this token.
60
61
  * `GITHUB_USERNAME` - Username for authenticating with GitHub.
@@ -83,7 +83,7 @@ module Gitlab
83
83
  alias_method :launch_and_teardown_instance, :instance
84
84
 
85
85
  def prepare
86
- @docker.pull(image, tag)
86
+ @docker.pull(image, tag) unless Runtime::Env.skip_pull?
87
87
 
88
88
  return if @docker.network_exists?(network)
89
89
 
@@ -8,7 +8,10 @@ module Gitlab
8
8
  class Staging
9
9
  ADDRESS = 'https://staging.gitlab.com'.freeze
10
10
  def self.release
11
- version = Version.new(address).fetch!
11
+ # Temporary fix so that the tests can run
12
+ # See: https://gitlab.com/gitlab-org/quality/staging/issues/56
13
+ # version = Version.new(address).fetch!
14
+ version = 'nightly'
12
15
  image =
13
16
  if Runtime::Env.dev_access_token_variable
14
17
  "dev.gitlab.org:5005/gitlab/omnibus-gitlab/gitlab-ee:#{version}"
@@ -52,7 +52,8 @@ module Gitlab
52
52
  'CI' => :ci,
53
53
  'CI_NODE_INDEX' => :ci_node_index,
54
54
  'CI_NODE_TOTAL' => :ci_node_total,
55
- 'GITLAB_CI' => :gitlab_ci
55
+ 'GITLAB_CI' => :gitlab_ci,
56
+ 'QA_SKIP_PULL' => :qa_skip_pull
56
57
  }.freeze
57
58
 
58
59
  ENV_VARIABLES.each_value do |accessor|
@@ -118,6 +119,10 @@ module Gitlab
118
119
  end
119
120
  end
120
121
 
122
+ def skip_pull?
123
+ (ENV['QA_SKIP_PULL'] =~ /^(false|no|0)$/i) != 0
124
+ end
125
+
121
126
  private
122
127
 
123
128
  def env_value_if_defined(variable)
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '3.2.2'.freeze
3
+ VERSION = '3.2.3'.freeze
4
4
  end
5
5
  end
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: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grzegorz Bizon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-23 00:00:00.000000000 Z
11
+ date: 2019-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control
@@ -210,7 +210,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.0.3
213
+ rubyforge_project:
214
+ rubygems_version: 2.7.6
214
215
  signing_key:
215
216
  specification_version: 4
216
217
  summary: Integration tests for GitLab