Skip to content

Commit e297c05

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,13 @@ def resolve_partial_suite_tests(test_ids)
370370

371371
# Represents a chunk with resolved test objects
372372
class ResolvedChunk
373-
attr_reader :chunk_id, :suite_name, :tests
373+
attr_reader :chunk_id, :suite_name, :tests, :estimated_duration
374374

375375
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

381382
def id

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)