mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
Retrieve and sync flaky specs report from and to S3
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
21
scripts/detect-new-flaky-examples
Executable file
21
scripts/detect-new-flaky-examples
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require 'json'
|
||||
|
||||
report_file = ARGV.shift
|
||||
unless report_file
|
||||
puts 'usage: detect-new-flaky-examples <report-file>'
|
||||
exit 1
|
||||
end
|
||||
|
||||
puts "Loading #{report_file}..."
|
||||
report = JSON.parse(File.read(report_file))
|
||||
|
||||
if report.any?
|
||||
puts "New flaky examples were detected!\n"
|
||||
puts JSON.pretty_generate(report)
|
||||
exit 1
|
||||
else
|
||||
puts "No new flaky examples detected.\n"
|
||||
exit 0
|
||||
end
|
Reference in New Issue
Block a user