Commit 7e3ff5a0 authored by Rémy Coutable's avatar Rémy Coutable

Retrieve and sync flaky specs report from and to S3

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 8f8fd342
This diff is collapsed.
#!/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
......@@ -4,7 +4,7 @@ require 'json'
main_report_file = ARGV.shift
unless main_report_file
puts 'usage: merge_reports <main-report> [extra reports...]'
puts 'usage: merge-reports <main-report> [extra reports...]'
exit 1
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment