gitlab-qa 14.3.0 → 14.4.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/Gemfile.lock +1 -1
- data/lib/gitlab/qa/component/base.rb +10 -4
- data/lib/gitlab/qa/component/gitlab.rb +6 -1
- 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: 85f257a2db8062967a163e8a0b8ba89819f3d3427cf49649f8351d653aebf366
|
|
4
|
+
data.tar.gz: 1671995024ee6f639d8704f5c51192688f936da372d289df9076ea54ed25327c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d411d68b8ae74157023616898119cc582c824707bb18b4cf038fdc493123f419491bddf35508e44cedbd8a7149b38d7e0f75f8497a17739a0963973cc579177
|
|
7
|
+
data.tar.gz: cd2f237877a3f7a85f29509bcbaa5a75a7c8b26b56513d210b78f75f705f864e1dc5d37c505d9e69b5a459af34dd32a8c3cf87dd6fb23b08dd911dbae21614f7
|
data/Gemfile.lock
CHANGED
|
@@ -198,19 +198,25 @@ module Gitlab
|
|
|
198
198
|
wait_until_ready
|
|
199
199
|
process_exec_commands
|
|
200
200
|
rescue Support::ShellCommand::StatusError => e
|
|
201
|
+
reconfigure_log_file = get_reconfigure_log_file_from_artefact
|
|
201
202
|
# for scenarios where a service fails during startup, attempt to retry to avoid flaky failures
|
|
202
203
|
if (retries += 1) < 3
|
|
204
|
+
Runtime::Logger.info(
|
|
205
|
+
"Follow the document " \
|
|
206
|
+
"https://gitlab.com/gitlab-org/quality/runbooks/-/blob/main/debug_orchestrated_test_locally/ " \
|
|
207
|
+
"for debugging the test failure locally.")
|
|
208
|
+
Runtime::Logger.error("Tailing the reconfigure log file: #{reconfigure_log_file}. Please check #{reconfigure_log_file} " \
|
|
209
|
+
"file in the artifacts for more details.")
|
|
203
210
|
Runtime::Logger.warn(
|
|
204
211
|
"Retry instance_no_teardown due to Support::ShellCommand::StatusError -- attempt #{retries}"
|
|
205
212
|
)
|
|
206
|
-
Runtime::Logger.info(
|
|
207
|
-
"Follow the document " \
|
|
208
|
-
"https://gitlab.com/gitlab-org/quality/runbooks/-/blob/main/debug_orchestrated_test_locally/running_update-major_and_update-minor_locally.md " \
|
|
209
|
-
"for debugging this issue locally.")
|
|
210
213
|
teardown!
|
|
211
214
|
retry
|
|
212
215
|
end
|
|
213
216
|
|
|
217
|
+
# Tailing the reconfigure logs after retries are over and before raising exception
|
|
218
|
+
Runtime::Logger.info("Tail of the reconfigure log file, see artifacts for full log: #{reconfigure_log_file}")
|
|
219
|
+
Support::ShellCommand.new("tail -n 100 #{reconfigure_log_file}", stream_output: true).execute!
|
|
214
220
|
raise e
|
|
215
221
|
end
|
|
216
222
|
|
|
@@ -206,6 +206,11 @@ module Gitlab
|
|
|
206
206
|
log_file
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
+
def get_reconfigure_log_file_from_artefact
|
|
210
|
+
all_reconfigure_log_file = Dir["#{Runtime::Env.host_artifacts_dir}/*reconfigure-logs.txt"].sort_by { |f| File.mtime(f) }
|
|
211
|
+
all_reconfigure_log_file.last
|
|
212
|
+
end
|
|
213
|
+
|
|
209
214
|
private :log_file
|
|
210
215
|
|
|
211
216
|
def reconfigure
|
|
@@ -213,7 +218,7 @@ module Gitlab
|
|
|
213
218
|
log_file_path = log_file
|
|
214
219
|
config_file = File.open(log_file_path, "w")
|
|
215
220
|
@docker.attach(name) do |line, _wait|
|
|
216
|
-
config_file.write(line
|
|
221
|
+
config_file.write(line)
|
|
217
222
|
|
|
218
223
|
if line.include?('There was an error running gitlab-ctl reconfigure')
|
|
219
224
|
Runtime::Logger.error(
|
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: 14.
|
|
4
|
+
version: 14.4.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: 2024-03-
|
|
11
|
+
date: 2024-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: climate_control
|