Skip to content

Commit

Permalink
Add a warning if a job doesn't have a priority defined (#113)
Browse files Browse the repository at this point in the history
Signed-off-by: Crola1702 <[email protected]>
  • Loading branch information
Crola1702 authored Nov 20, 2024
1 parent 6098ad0 commit 7e810b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database/scripts/lib/buildfarm_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ def self.calculate_issue_priority(issue_link)
flaky_ratio = flaky_result.first['failure_percentage'].to_f/100.0

job_priority = JOB_PRIORITIES[job]
if job_priority.nil?
puts "WARNING: No job priority for job #{job}. Defaulting to 1"
job_priority = 1
end
job_priority = job_priority*1.5 if flaky_ratio == 1

error_score_jobs[job] = [] if error_score_jobs[job].nil?
Expand Down

0 comments on commit 7e810b8

Please sign in to comment.