From e8ff9d9351f6f011419edea2da042d57e3f6f9f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 22:14:29 +0000 Subject: [PATCH 1/2] Initial plan From ba3315378b3d13d56c10f9f85ec51baaf1a68673 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Dec 2025 22:33:19 +0000 Subject: [PATCH 2/2] Improve error handling in assert_allocations_helper for unmapped Ruby versions Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com> --- test/test_helpers/assert_allocations_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_helpers/assert_allocations_helper.rb b/test/test_helpers/assert_allocations_helper.rb index 516a250230..3570efccaa 100644 --- a/test/test_helpers/assert_allocations_helper.rb +++ b/test/test_helpers/assert_allocations_helper.rb @@ -12,6 +12,12 @@ def assert_allocations(count_map, &block) total = trace.allocations.all.size count = count_map[ruby_version] + if count.nil? + raise "No allocation count mapped for Ruby version #{ruby_version}. " \ + "Available versions: #{count_map.keys.sort.join(', ')}. " \ + "Actual allocations: #{total}" + end + assert_equal count, total, "Expected #{count} allocations, got #{total} allocations" end