gitlab-qa 6.19.0 → 6.20.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: 981a6afe2aef7aa49d6ea19d627947fa58f24ad84d4443268c582d16ff60a15c
4
- data.tar.gz: 2ff55255b8cb84ff2fe4368846da3f1818a069c389afc22e937d49eb2034bc35
3
+ metadata.gz: 5417b9ef6d77d1792479873ba808d93da9fce65bed5ebc13203a1eaf8ac4e6d4
4
+ data.tar.gz: 024dcea062a32731702635adfac6abf282c42b4487fff269c0a469556230222a
5
5
  SHA512:
6
- metadata.gz: 115a7e9805ff2723ffe4d0f41b92315778fc5846481542eafff3f321e0ef23750ef8abeaf620dfcfd8effab56a159b3ac0bf1bed9e07771dc4ea4a3b48f29c2f
7
- data.tar.gz: 985e57c53830587cf92d4a9087cd9537382a4247c479b4aec23227d2f703bdf02e58013c60c6d2096e92942af000d5d12855d54a43553ff76c3fb780e4c48dc5
6
+ metadata.gz: 942c05b8dbdf34fd1e34509460b701e4454abf85c70ac677a78975ae27788f0f0a95afa2e43695e87c2dd818099c3ae28962ea64d890b7dc87ecf06ce78a5cba
7
+ data.tar.gz: d2f5083521dd998c7b482985dd3f5b4f1b15c79d6b80eae21c102861d11254bd6a95082b57cab825a8409a4eebe5caf562220e2d283e9b1c9936100d7b083775
@@ -1023,7 +1023,7 @@ relate_test_failures:
1023
1023
  when: always
1024
1024
  variables:
1025
1025
  QA_FAILURES_REPORTING_PROJECT: "gitlab-org/gitlab"
1026
- QA_FAILURES_MAX_DIFF_RATIO: "0.05"
1026
+ QA_FAILURES_MAX_DIFF_RATIO: "0.15"
1027
1027
  # The --dry-run can be set to modify the behavior of `exe/gitlab-qa-report --relate-failure-issue` without releasing a new gem version.
1028
1028
  QA_FAILURES_REPORTER_OPTIONS: ""
1029
1029
  script:
@@ -84,6 +84,8 @@ All environment variables used by GitLab QA should be defined in [`lib/gitlab/qa
84
84
  | `CACHE_NAMESPACE_NAME` | `true` | Cache namespace name for groups. | No|
85
85
  | `DEPLOY_VERSION` |- | The version of GitLab being tested against. | No|
86
86
  | `GITLAB_QA_USER_AGENT` |- | The browser user-agent to use instead of the default Chrome user-agent. | No|
87
+ | `GEO_FAILOVER` | `false` | Set to `true` when a Geo secondary site has been promoted to a Geo primary site. | No|
88
+
87
89
 
88
90
  ## [Supported Remote Grid environment variables](./running_against_remote_grid.md)
89
91
 
@@ -87,7 +87,8 @@ module Gitlab
87
87
  'JIRA_ADMIN_PASSWORD' => :jira_admin_password,
88
88
  'CACHE_NAMESPACE_NAME' => :cache_namespace_name,
89
89
  'DEPLOY_VERSION' => :deploy_version,
90
- 'GITLAB_QA_USER_AGENT' => :gitlab_qa_user_agent
90
+ 'GITLAB_QA_USER_AGENT' => :gitlab_qa_user_agent,
91
+ 'GEO_FAILOVER' => :geo_failover
91
92
  }.freeze
92
93
 
93
94
  ENV_VARIABLES.each do |env_name, method_name|
@@ -283,6 +284,10 @@ module Gitlab
283
284
  enabled?(ENV['QA_SKIP_PULL'], default: false)
284
285
  end
285
286
 
287
+ def geo_failover?
288
+ enabled?(ENV['GEO_FAILOVER'], default: false)
289
+ end
290
+
286
291
  private
287
292
 
288
293
  def enabled?(value, default: true)
@@ -4,12 +4,20 @@ module Gitlab
4
4
  module Test
5
5
  module Instance
6
6
  ##
7
- # Run test suite against staging.gitlab.com
7
+ # Run test suite against staging.gitlab.com (or geo.staging.gitlab.com during failover)
8
8
  #
9
9
  class Staging < DeploymentBase
10
10
  def deployment_component
11
11
  Component::Staging
12
12
  end
13
+
14
+ def non_rspec_args
15
+ if Runtime::Env.geo_failover?
16
+ [deployment_component::GEO_SECONDARY_ADDRESS]
17
+ else
18
+ [deployment_component::ADDRESS]
19
+ end
20
+ end
13
21
  end
14
22
  end
15
23
  end
@@ -1,5 +1,5 @@
1
1
  module Gitlab
2
2
  module QA
3
- VERSION = '6.19.0'.freeze
3
+ VERSION = '6.20.0'.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: 6.19.0
4
+ version: 6.20.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: 2021-01-14 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: climate_control