Rebuild not working against ruby 3.4 (staging)
When trying to rebuild this package against ruby 3.4 (bootstrapping on staging) then this error happens:
removed directory 'tmp_install/usr/lib/ruby/gems/3.4.0/cache/'
==> Starting check()...
Loaded suite /usr/lib/ruby/gems/3.4.0/gems/rake-13.2.1/lib/rake/rake_test_loader
Started
F
===============================================================================
Failure: test_exception_tracer_traces_exceptions(Tracer::ExceptionTracerIntegrationTest):
</^#depth:1 #<RuntimeError: boom> rescued at .*foo.rb:5/> was expected to be =~
<"#depth:0 #<RuntimeError: boom> rescued at /tmp/d20250322-953-fbp6qq/foo.rb:5">.
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:40:in 'block in Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Array#each'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Enumerable#each_with_index'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/tracer/exception_tracer_test.rb:36:in 'Tracer::ExceptionTracerIntegrationTest#test_ex
33: end
34:
35: assert_empty(err)
=> 36: assert_traces(expected_traces, out)
37: end
38:
39: def test_exception_tracer_with_header
===============================================================================
F
===============================================================================
Failure: test_exception_tracer_with_header(Tracer::ExceptionTracerIntegrationTest):
</^tracer-1 #depth:1 #<RuntimeError: boom> rescued at .*foo.rb:5/> was expected to be =~
<"tracer-1 #depth:0 #<RuntimeError: boom> rescued at /tmp/d20250322-953-xenna8/foo.rb:5">.
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:40:in 'block in Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Array#each'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Enumerable#each_with_index'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/tracer/exception_tracer_test.rb:60:in 'Tracer::ExceptionTracerIntegrationTest#test_ex
57: end
58:
59: assert_empty(err)
=> 60: assert_traces(expected_traces, out)
61: end
62: end
63: end
===============================================================================
F
===============================================================================
Failure: test_trace_exception(Tracer::HelperIntegrationTest):
</^#depth:2 #<RuntimeError: boom> rescued at .*foo.rb:4/> was expected to be =~
<"#depth:1 #<RuntimeError: boom> rescued at /tmp/d20250322-953-lia20v/foo.rb:4">.
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:40:in 'block in Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Array#each'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Enumerable#each_with_index'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/tracer/helper_test.rb:25:in 'Tracer::HelperIntegrationTest#test_trace_exception'
22: end
23:
24: assert_empty(err)
=> 25: assert_traces(expected_traces, out)
26: end
27:
28: def test_trace_call
===============================================================================
F
===============================================================================
Failure: test_object_tracer_works_with_basic_object(Tracer::ObjectTracerIntegrationTest):
</^#depth:0 #<Foo.* does not have #inspect> is used as a parameter obj of Object#bar at .*\/foo\.rb:17/> was expected to be =~
<"#depth:0 #<Foo:0x00007bc7ae147a48> is used as a parameter obj of Object#bar at /tmp/d20250322-953-t7eqxa/foo.rb:17:in '<main>'">.
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:40:in 'block in Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Array#each'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Enumerable#each_with_index'
/build/ruby-tracer/src/tracer-0.2.3/test/test_helper.rb:39:in 'Tracer::IntegrationTestCase#assert_traces'
/build/ruby-tracer/src/tracer-0.2.3/test/tracer/object_tracer_test.rb:238:in 'Tracer::ObjectTracerIntegrationTest#test_object_tracer_works_with_basic_object'
235: out, err = execute_file(file)
236:
237: assert_empty(err)
=> 238: assert_traces(
239: [
240: %r{^#depth:0 #<Foo.* does not have #inspect> is used as a parameter obj of Object#bar at .*/foo\.rb:17},
241: %r{^#depth:1 #<Foo.* does not have #inspect> receives \.foo at .*/foo\.rb:12},
===============================================================================
Finished in 2.401724393 seconds.
-------------------------------------------------------------------------------
32 tests, 151 assertions, 4 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
87.5% passed
-------------------------------------------------------------------------------
13.32 tests/s, 62.87 assertions/s
rake aborted!
Command failed with status (1)
Tasks: TOP => test
(See full trace by running task with --trace)