[DRE-maint] Bug#1015329: ruby-prof: FTBFS: ERROR: Test "ruby3.1" failed.

Antonio Terceiro terceiro at debian.org
Tue Jul 19 15:19:23 BST 2022


Source: ruby-prof
Version: 1.3.1-2
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.1

Hi,

We are about to start the ruby3.1 transition in unstable. While trying to
rebuild ruby-prof with ruby3.1 enabled, the build failed.

Relevant part of the build log (hopefully):
> /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.1                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-prof/usr/share/rubygems-integration/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -e gem\ \"ruby-prof\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0:/<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-prof/usr/share/rubygems-integration/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby3.1 -w -I"test" /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/abstract_printer_test.rb" "test/alias_test.rb" "test/basic_test.rb" "test/call_tree_visitor_test.rb" "test/call_trees_test.rb" "test/duplicate_names_test.rb" "test/dynamic_method_test.rb" "test/enumerable_test.rb" "test/exceptions_test.rb" "test/exclude_methods_test.rb" "test/exclude_threads_test.rb" "test/gc_test.rb" "test/line_number_test.rb" "test/marshal_test.rb" "test/multi_printer_test.rb" "test/no_method_class_test.rb" "test/printer_call_stack_test.rb" "test/printer_call_tree_test.rb" "test/printer_flat_test.rb" "test/printer_graph_html_test.rb" "test/printer_graph_test.rb" "test/printing_recursive_graph_test.rb" "test/rack_test.rb" "test/singleton_test.rb" "test/unique_call_path_test.rb" "test/yarv_test.rb" -v
> DEPRECATED: use MT_CPU instead of N for parallel test runs
> Run options: -v --seed 24291
> 
> # Running:
> 
> PrinterGraphHtmlTest#test_graph_html_result_sorting = 0.28 s = .
> PrinterGraphHtmlTest#test_graph_html_result_sorting_by_total_time_is_default = 0.28 s = .
> PrinterGraphHtmlTest#test_graph_html_string = 0.22 s = .
> DuplicateNames#test_names = 0.00 s = .
> PrintingRecursiveGraphTest#test_printing_rescursive_graph = 2.00 s = .
> RackTest#test_allows_lazy_filename_setting = /<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/ruby/vendor_ruby/ruby-prof/rack.rb:71: warning: finalizer references object to be finalized
> 0.00 s = .
> RackTest#test_create_print_path = 0.00 s = .
> RackTest#test_create_profile_reports = /<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/ruby/vendor_ruby/ruby-prof/rack.rb:71: warning: finalizer references object to be finalized
> 0.02 s = .
> RackTest#test_it_uses_separate_profilers_if_not_aggregating_multiple_requests = 0.00 s = .
> RackTest#test_only_paths = /<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/ruby/vendor_ruby/ruby-prof/rack.rb:71: warning: finalizer references object to be finalized
> 0.01 s = .
> RackTest#test_skip_paths = 0.00 s = .
> RackTest#test_tries_to_print_results_if_shut_down_before_max_requests_reached = /<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/ruby/vendor_ruby/ruby-prof/rack.rb:71: warning: finalizer references object to be finalized
> 0.01 s = .
> RackTest#test_works_for_multiple_requests = /<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/ruby/vendor_ruby/ruby-prof/rack.rb:71: warning: finalizer references object to be finalized
> /<<PKGBUILDDIR>>/debian/ruby-prof/usr/lib/ruby/vendor_ruby/ruby-prof/rack.rb:71: warning: finalizer references object to be finalized
> 0.02 s = .
> PrinterCallStackTest#test_graph_html_string = 0.22 s = .
> CallTreeVisitorTest#test_visit = 0.10 s = .
> ExcludeMethodsTest#test_exclude_common_methods1 = 0.20 s = .
> ExcludeMethodsTest#test_exclude_common_methods2 = 1.00 s = .
> ExcludeMethodsTest#test_methods_can_be_hidden1 = 0.20 s = .
> ExcludeMethodsTest#test_methods_can_be_hidden2 = 0.20 s = .
> ExcludeMethodsTest#test_methods_can_be_profiled = 0.20 s = .
> CallTreesTest#test_call_infos = 0.00 s = .
> CallTreesTest#test_gc = 0.45 s = .
> PrinterFlatTest#test_flat_result_filter_by_self_time = 0.27 s = .
> PrinterFlatTest#test_flat_result_filter_by_total_time = 0.32 s = .
> PrinterFlatTest#test_flat_result_max_percent = 0.35 s = .
> PrinterFlatTest#test_flat_result_sorting = 0.35 s = .
> PrinterFlatTest#test_flat_result_sorting_by_self_time_is_default = 0.33 s = .
> PrinterFlatTest#test_flat_string = 0.35 s = .
> AliasTest#test_alias = 0.10 s = .
> LineNumbersTest#test_function_line_no = 4.50 s = .
> MultiPrinterTest#test_refuses_io_objects = 0.00 s = .
> MultiPrinterTest#test_refuses_non_hashes = 0.00 s = .
> ExceptionsTest#test_profile = 0.00 s = .
> ExceptionsTest#test_profile_allows_exceptions = 0.00 s = .
> BasicTest#test_double_profile = 0.00 s = .
> BasicTest#test_no_block = 0.00 s = .
> BasicTest#test_running = 0.00 s = .
> BasicTest#test_traceback = 0.00 s = .
> PrinterGraphTest#test_graph_results_sorting = 0.32 s = .
> BugsTest#test_array_push_optimized = 0.01 s = F
> BugsTest#test_array_push_unoptimized = 0.00 s = .
> SingletonTest#test_singleton = 0.00 s = .
> PrinterCallTreeTest#test_call_tree_string = 0.27 s = .
> UniqueCallPathTest#test_children_of = 0.00 s = F
> UniqueCallPathTest#test_root = 0.00 s = .
> UniqueCallPathTest#test_root_children = 0.00 s = .
> UniqueCallPathTest#test_unique_path = 0.00 s = F
> ExcludeThreadsTest#test_exclude_threads = 2.50 s = .
> DynamicMethodTest#test_dynamic_method = 1.01 s = F
> MarshalTest#test_marshal = DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:78. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:78. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:40. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:40. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:40. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:81. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:40. This will fail in Minitest 6.
> 0.20 s = .
> MarshalTest#test_singleton = DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:78. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:78. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:40. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:40. This will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from /<<PKGBUILDDIR>>/test/marshal_test.rb:40. This will fail in Minitest 6.
> 0.00 s = .
> GcTest#test_hold_onto_call_trees = 5.33 s = .
> GcTest#test_hold_onto_measurements = 5.69 s = .
> GcTest#test_hold_onto_method = 2.91 s = .
> GcTest#test_hold_onto_root_call_tree = 1.87 s = .
> GcTest#test_hold_onto_thread = 1.88 s = .
> EnumerableTest#test_enumerable = 0.00 s = .
> 
> Finished in 34.004112s, 1.6763 runs/s, 20.5563 assertions/s.
> 
>   1) Failure:
> BugsTest#test_array_push_optimized [/<<PKGBUILDDIR>>/test/yarv_test.rb:28]:
> --- expected
> +++ actual
> @@ -1 +1 @@
> -["BugsTest#test_array_push_optimized", "BugsTest#array_push_optimized", "Array#push"]
> +["BugsTest#test_array_push_optimized", "BugsTest#array_push_optimized", "Array#<<", "Array#push"]
> 
> 
>   2) Failure:
> UniqueCallPathTest#test_children_of [/<<PKGBUILDDIR>>/test/unique_call_path_test.rb:82]:
> Expected: 1
>   Actual: 2
> 
>   3) Failure:
> UniqueCallPathTest#test_unique_path [/<<PKGBUILDDIR>>/test/unique_call_path_test.rb:109]:
> Expected: 1
>   Actual: 2
> 
>   4) Failure:
> DynamicMethodTest#test_dynamic_method [/<<PKGBUILDDIR>>/test/dynamic_method_test.rb:51]:
> --- expected
> +++ actual
> @@ -4,4 +4,4 @@
>  DynamicMethodTest::FruitMedley#banana
>  DynamicMethodTest::FruitMedley#orange
>  DynamicMethodTest::FruitMedley#apple
> -Symbol#to_s"
> +Integer#=="
> 
> 
> 57 runs, 699 assertions, 4 failures, 0 errors, 0 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/abstract_printer_test.rb" "test/alias_test.rb" "test/basic_test.rb" "test/call_tree_visitor_test.rb" "test/call_trees_test.rb" "test/duplicate_names_test.rb" "test/dynamic_method_test.rb" "test/enumerable_test.rb" "test/exceptions_test.rb" "test/exclude_methods_test.rb" "test/exclude_threads_test.rb" "test/gc_test.rb" "test/line_number_test.rb" "test/marshal_test.rb" "test/multi_printer_test.rb" "test/no_method_class_test.rb" "test/printer_call_stack_test.rb" "test/printer_call_tree_test.rb" "test/printer_flat_test.rb" "test/printer_graph_html_test.rb" "test/printer_graph_test.rb" "test/printing_recursive_graph_test.rb" "test/rack_test.rb" "test/singleton_test.rb" "test/unique_call_path_test.rb" "test/yarv_test.rb" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.1" failed.


The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/ruby-prof_1.3.1-2+rebuild1658134466_amd64.log

To reproduce this, you need to install ruby-all-dev >= 1:3.0+2 (in experimental).
If you fail to reproduce, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20220719/d90804dc/attachment-0001.sig>


More information about the Pkg-ruby-extras-maintainers mailing list