Skip to content

Commit 4073eec

Browse files
committed
log out estimated duration when running chunk
1 parent 98d01d5 commit 4073eec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ruby/lib/ci/queue/redis/worker.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,11 @@ def initialize(chunk, tests)
376376
@chunk_id = chunk.id
377377
@suite_name = chunk.suite_name
378378
@tests = tests.freeze
379+
@estimated_duration = chunk.estimated_duration
379380
end
380381

382+
attr_accessor :estimated_duration
383+
381384
def id
382385
chunk_id
383386
end

ruby/lib/minitest/queue.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def run_chunk(chunk, reporter)
243243
chunk_failed = false
244244
failed_tests = []
245245

246-
puts "Running chunk: #{chunk.suite_name} (#{chunk.size} tests)" if ENV['VERBOSE']
246+
puts "Running chunk: #{chunk.suite_name} (#{chunk.size} tests) :: Estimated Duration: (#{chunk.estimated_duration}s)" if ENV['VERBOSE']
247247

248248
# Run each test in the chunk sequentially
249249
chunk.tests.each do |test|

0 commit comments

Comments
 (0)