Skip to content

Commit

Permalink
Print requeued tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Dec 21, 2023
1 parent 0e9f24e commit 2fe3034
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ruby/lib/ci/queue/redis/build_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def failed_tests
redis.hkeys(key('error-reports'))
end

def requeued_tests
redis.hgetall(key('requeues-count'))
end

def pop_warnings
warnings = redis.multi do |transaction|
transaction.lrange(key('warnings'), 0, -1)
Expand Down
10 changes: 10 additions & 0 deletions ruby/lib/minitest/queue/build_status_reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,21 @@ def flaky_reports
build.flaky_reports
end

def requeued_tests
build.requeued_tests
end

def report
puts aggregates
errors = error_reports
puts errors

requeued_tests.to_a.sort.each do |test_id, count|
puts yellow("REQUEUE")
puts "#{test_id} (requeued #{count} times)"
puts ""
end

errors.empty?
end

Expand Down

0 comments on commit 2fe3034

Please sign in to comment.