Skip to content

Commit 6d63b9b

Browse files
committed
Push up suite bin packing
1 parent f65f7ff commit 6d63b9b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ruby/lib/ci/queue/strategy/suite_bin_packing.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,20 @@ def split_suite_into_chunks(suite_name, suite_tests, max_duration)
138138
chunks = []
139139
current_chunk_tests = []
140140
current_chunk_duration = 0.0
141-
chunk_index = 0
141+
chunk_index = 0
142+
143+
if suite_name == "ApiAdminOrgsTest"
144+
puts "effective max #{effective_max}"
145+
end
142146

143147
suite_tests.each do |test|
144148
test_duration = get_test_duration(test.id)
145149

150+
if suite_name == "ApiAdminOrgsTest"
151+
puts "test duration #{test_duration}"
152+
puts "current chunk duration #{current_chunk_duration}"
153+
puts "current chunk tests #{current_chunk_tests.size}"
154+
end
146155
if current_chunk_duration + test_duration > effective_max && current_chunk_tests.any?
147156
# Finalize current chunk and start new one
148157
chunk_id = "#{suite_name}:chunk_#{chunk_index}"

0 commit comments

Comments
 (0)