From f44d77e84f48ad686b330563fd2f40cb5be57efe Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 27 May 2026 14:27:26 -0500 Subject: [PATCH] Merge print loop into bucket placement loop in split_tests --- script/split_tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/split_tests.py b/script/split_tests.py index 373254172619..881e42b2e28b 100755 --- a/script/split_tests.py +++ b/script/split_tests.py @@ -65,9 +65,6 @@ class BucketHolder: by_load = attrgetter("total_tests") units = sorted(self._atomic_units(test_folder), key=itemgetter(0), reverse=True) for size, items in units: - for item in items: - tag = " (same bucket)" if item is not items[0] else "" - print(f"{item.total_tests:>{digits}} tests in {item.path}{tag}") fits = [ b for b in self._buckets @@ -75,6 +72,8 @@ class BucketHolder: ] bucket = max(fits, key=by_load) if fits else min(self._buckets, key=by_load) for item in items: + tag = " (same bucket)" if item is not items[0] else "" + print(f"{item.total_tests:>{digits}} tests in {item.path}{tag}") bucket.add(item) if not test_folder.added_to_bucket: