Skip to content

Commit

Permalink
Warn if a test regression doesn't show an output from sql_run script (#…
Browse files Browse the repository at this point in the history
…38)

Signed-off-by: Crola1702 <[email protected]>
  • Loading branch information
Crola1702 authored Apr 2, 2024
1 parent 1309cd4 commit d486482
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion database/scripts/check_buildfarm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ def get_issues_list(jobs_to_filter = [])
issues_map = Hash.new
test_regressions_today.each do |tr|
tr_flakiness = %x{./sql_run.sh calculate_flakiness_jobs.sql "#{tr['error_name']}" "15 days"}
tr_flakiness_output = parse_sql_output(tr_flakiness).uniq { |item| item["job_name"] }
tr_flakiness_raw_out = parse_sql_output(tr_flakiness)
if tr_flakiness_raw_out.nil?
puts "WARNING: Error parsing flakiness output for '#{tr['error_name']}' in #{tr['job_name']}##{tr['build_number']}"
next
end
tr_flakiness_output = tr_flakiness_raw_out.uniq { |item| item["job_name"] }
tr_flakiness_output.map { |item|
item['error_name'] = tr['error_name']
item['github_issues'] = parse_known_issues(tr['error_name'])
Expand Down

0 comments on commit d486482

Please sign in to comment.