[DRE-maint] Bug#1019638: ruby-memory-profiler: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed.

Antonio Terceiro terceiro at debian.org
Tue Sep 13 02:01:09 BST 2022


Source: ruby-memory-profiler
Version: 0.9.14-4
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-memory-profiler 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-memory-profiler/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/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\ \"memory_profiler\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-memory-profiler/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/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 /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/test_helper.rb" "test/test_helpers.rb" "test/test_reporter.rb" "test/test_reporter_private_start_stop.rb" "test/test_reporter_public_start_stop.rb" "test/test_results.rb" "test/test_stat_hash.rb" "test/test_top_n.rb" -v
> Run options: -v --seed 49086
> 
> # Running:
> 
> TestReporterPublicStartStop#test_no_strings_retained_report = 0.02 s = F
> TestReporterPublicStartStop#test_anonymous_class_object = 0.02 s = .
> TestReporterPublicStartStop#test_yield_block = 0.02 s = .
> TestReporterPublicStartStop#test_ignore_file_with_regex = 0.02 s = .
> TestReporterPublicStartStop#test_ignore_file_with_string = 0.02 s = .
> TestReporterPublicStartStop#test_strings_report = 0.02 s = .
> TestReporterPublicStartStop#test_module_double_start = 0.02 s = .
> TestReporterPublicStartStop#test_module_stop_with_no_start = 0.00 s = .
> TestReporterPublicStartStop#test_mono_output_defaults_to_true_when_not_run_from_tty = 0.02 s = .
> TestReporterPublicStartStop#test_counts = 0.03 s = .
> TestReporterPublicStartStop#test_nil_reporting_class = 0.02 s = .
> TestReporterPublicStartStop#test_no_color_output = 0.02 s = .
> TestReporterPublicStartStop#test_class_tracing_with_value = 0.02 s = .
> TestReporterPublicStartStop#test_color_output_defaults_to_true_when_run_from_tty = 0.02 s = .
> TestReporterPublicStartStop#test_allow_files_with_string = 0.02 s = .
> TestReporterPublicStartStop#test_basic_object = 0.02 s = .
> TestReporterPublicStartStop#test_reports_can_be_reused_with_different_color_options = 0.02 s = .
> TestReporterPublicStartStop#test_non_string_named_class = 0.03 s = .
> TestReporterPublicStartStop#test_class_tracing_with_array = 0.03 s = .
> TestReporterPublicStartStop#test_color_output = 0.02 s = .
> TestReporterPublicStartStop#test_exception_handling = 0.00 s = .
> TestReporterPublicStartStop#test_allow_files_with_array = 0.02 s = .
> TestReporterPublicStartStop#test_string_reporting_class = 0.02 s = .
> TestReporterPrivateStartStop#test_color_output = 0.02 s = .
> TestReporterPrivateStartStop#test_strings_report = 0.02 s = .
> TestReporterPrivateStartStop#test_allow_files_with_string = 0.02 s = .
> TestReporterPrivateStartStop#test_exception_handling = 0.00 s = .
> TestReporterPrivateStartStop#test_no_color_output = 0.02 s = .
> TestReporterPrivateStartStop#test_allow_files_with_array = 0.02 s = .
> TestReporterPrivateStartStop#test_counts = 0.02 s = .
> TestReporterPrivateStartStop#test_color_output_defaults_to_true_when_run_from_tty = 0.02 s = .
> TestReporterPrivateStartStop#test_mono_output_defaults_to_true_when_not_run_from_tty = 0.03 s = .
> TestReporterPrivateStartStop#test_class_tracing_with_value = 0.02 s = .
> TestReporterPrivateStartStop#test_ignore_file_with_regex = 0.02 s = .
> TestReporterPrivateStartStop#test_yield_block = 0.02 s = .
> TestReporterPrivateStartStop#test_class_tracing_with_array = 0.02 s = .
> TestReporterPrivateStartStop#test_nil_reporting_class = 0.02 s = .
> TestReporterPrivateStartStop#test_no_strings_retained_report = 0.02 s = F
> TestReporterPrivateStartStop#test_reports_can_be_reused_with_different_color_options = 0.02 s = .
> TestReporterPrivateStartStop#test_basic_object = 0.02 s = .
> TestReporterPrivateStartStop#test_non_string_named_class = 0.02 s = .
> TestReporterPrivateStartStop#test_string_reporting_class = 0.02 s = .
> TestReporterPrivateStartStop#test_anonymous_class_object = 0.03 s = .
> TestReporterPrivateStartStop#test_ignore_file_with_string = 0.02 s = .
> MemoryProfiler::TestHelpers#test_app_path_parse = 0.00 s = .
> MemoryProfiler::TestHelpers#test_rubygems_parse = 0.00 s = .
> MemoryProfiler::TestHelpers#test_another_standard_parse = 0.00 s = .
> MemoryProfiler::TestHelpers#test_standard_parse = 0.00 s = .
> MemoryProfiler::TestHelpers#test_stdlib_parse = 0.00 s = .
> TestReporter#test_ignore_file_with_string = 0.02 s = .
> TestReporter#test_basic_object = 0.02 s = .
> TestReporter#test_string_reporting_class = 0.02 s = .
> TestReporter#test_color_output = 0.03 s = .
> TestReporter#test_yield_block = 0.02 s = .
> TestReporter#test_exception_handling = 0.03 s = .
> TestReporter#test_nil_reporting_class = 0.02 s = .
> TestReporter#test_non_string_named_class = 0.02 s = .
> TestReporter#test_allow_files_with_string = 0.03 s = .
> TestReporter#test_ignore_file_with_regex = 0.02 s = .
> TestReporter#test_no_strings_retained_report = 0.02 s = F
> TestReporter#test_class_tracing_with_array = 0.02 s = .
> TestReporter#test_no_color_output = 0.02 s = .
> TestReporter#test_allow_files_with_array = 0.02 s = .
> TestReporter#test_strings_report = 0.02 s = .
> TestReporter#test_class_tracing_with_value = 0.02 s = .
> TestReporter#test_mono_output_defaults_to_true_when_not_run_from_tty = 0.02 s = .
> TestReporter#test_anonymous_class_object = 0.02 s = .
> TestReporter#test_counts = 0.02 s = .
> TestReporter#test_reports_can_be_reused_with_different_color_options = 0.03 s = .
> TestReporter#test_color_output_defaults_to_true_when_run_from_tty = 0.02 s = .
> TestTopN#test_top_n_large_n = 0.00 s = .
> TestTopN#test_top_n_small_n = 0.00 s = .
> TestResults#test_normalize_paths_false = 0.03 s = .
> TestResults#test_normalize_paths_default = 0.02 s = .
> TestResults#test_normalize_paths_true = 0.02 s = .
> TestResults#test_scale_bytes_default = 0.03 s = .
> TestResults#test_no_conflict_with_pretty_print = 0.00 s = .
> TestResults#test_pretty_print_works_with_no_args = 0.00 s = .
> TestResults#test_pretty_print_works_with_io_arg = 0.00 s = .
> TestResults#test_scale_bytes_off = 0.03 s = .
> TestResults#test_scale_bytes_true = 0.03 s = .
> 
> Finished in 1.648978s, 49.1213 runs/s, 124.9258 assertions/s.
> 
>   1) Failure:
> TestReporterPublicStartStop#test_no_strings_retained_report [/<<PKGBUILDDIR>>/test/test_reporter.rb:235]:
> 45 strings should be allocated.
> Expected [45, 55] to include 40.
> 
>   2) Failure:
> TestReporterPrivateStartStop#test_no_strings_retained_report [/<<PKGBUILDDIR>>/test/test_reporter.rb:235]:
> 45 strings should be allocated.
> Expected [45, 55] to include 40.
> 
>   3) Failure:
> TestReporter#test_no_strings_retained_report [/<<PKGBUILDDIR>>/test/test_reporter.rb:235]:
> 45 strings should be allocated.
> Expected [45, 55] to include 40.
> 
> 81 runs, 206 assertions, 3 failures, 0 errors, 0 skips
> rake aborted!
> Command failed with status (1): [ruby -w /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/test_helper.rb" "test/test_helpers.rb" "test/test_reporter.rb" "test/test_reporter_private_start_stop.rb" "test/test_reporter_public_start_stop.rb" "test/test_results.rb" "test/test_stat_hash.rb" "test/test_top_n.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/17/ruby-memory-profiler/ruby-memory-profiler_0.9.14-4+rebuild1663007830_amd64-2022-09-12T18:37:11Z.build

To reproduce this, you need to install ruby-all-dev >= 1:3.0+2. Depending on
when you try this, it might mean installing ruby-all-dev from experimental, or
if the transition has already started, a normal build on unstable will be
enough.  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/20220912/15bedea6/attachment.sig>


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