[DRE-maint] Bug#1019619: ruby-did-you-mean: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed.

Antonio Terceiro terceiro at debian.org
Tue Sep 13 01:12:35 BST 2022


Source: ruby-did-you-mean
Version: 1.2.1-1
Severity: serious
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-did-you-mean 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                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> /<<PKGBUILDDIR>>/lib/did_you_mean/version.rb:2: warning: already initialized constant DidYouMean::VERSION
> /usr/lib/ruby/3.1.0/did_you_mean/version.rb:2: warning: previous definition of VERSION was here
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-did-you-mean/usr/share/rubygems-integration/all:/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\ \"did_you_mean\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-did-you-mean/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-did-you-mean/usr/share/rubygems-integration/all:/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/core_ext/name_error_extension_test.rb" "test/deprecated_formatter_test.rb" "test/edit_distance/jaro_winkler_test.rb" "test/spell_checker_test.rb" "test/spell_checking/class_name_check_test.rb" "test/spell_checking/key_name_check_test.rb" "test/spell_checking/method_name_check_test.rb" "test/spell_checking/uncorrectable_name_check_test.rb" "test/spell_checking/variable_name_check_test.rb" -v
> /<<PKGBUILDDIR>>/test/spell_checking/variable_name_check_test.rb:61: warning: assigned but unused variable - some_var
> DidYouMean version: 1.2.1
> Run options: -v --seed 22188
> 
> # Running:
> 
> KeyNameCheckTest#test_corrects_hash_key_name_with_fetch = 0.00 s = .
> KeyNameCheckTest#test_corrects_hash_key_name_with_fetch_values = 0.00 s = .
> KeyNameCheckTest#test_corrects_sprintf_key_name = 0.00 s = .
> KeyNameCheckTest#test_corrects_env_key_name = 0.00 s = .
> DeprecatedFormatterTest#test_deprecated_formatter = 0.00 s = .
> SpellCheckerTest#test_spell_checker_corrects_misspells = 0.00 s = .
> SpellCheckerTest#test_spell_checker_excludes_input_from_dictionary = 0.00 s = .
> SpellCheckerTest#test_spell_checker_sorts_results_by_simiarity = 0.00 s = .
> SpellCheckerTest#test_spell_checker_corrects_mistypes = 0.00 s = .
> UncorrectableNameCheckTest#test_message = 0.01 s = F
> MethodNameCheckTest#test_corrections_include_method_from_module = 0.00 s = .
> MethodNameCheckTest#test_does_not_append_suggestions_three_times = 0.00 s = .
> MethodNameCheckTest#test_exclude_methods_on_nil = 0.00 s = .
> MethodNameCheckTest#test_corrections_include_instance_method = 0.00 s = .
> MethodNameCheckTest#test_corrections_include_class_method = 0.00 s = .
> MethodNameCheckTest#test_private_methods_should_not_be_suggested = 0.00 s = .
> MethodNameCheckTest#test_corrections_include_private_method = 0.00 s = .
> MethodNameCheckTest#test_does_not_append_suggestions_twice = 0.00 s = .
> MethodNameCheckTest#test_corrections_when_private_method_is_called_with_args = 0.00 s = .
> MethodNameCheckTest#test_does_not_exclude_custom_methods_on_nil = 0.00 s = .
> NameErrorExtensionTest#test_message = 0.00 s = S
> NameErrorExtensionTest#test_to_s_does_not_make_disruptive_changes_to_error_message = 0.00 s = .
> ClassNameCheckTest#test_corrections = 0.00 s = .
> ClassNameCheckTest#test_corrections_candidates_for_names_in_upper_level_scopes = 0.00 s = .
> ClassNameCheckTest#test_does_not_suggest_user_input = 0.00 s = .
> ClassNameCheckTest#test_names_in_corrections_have_namespaces = 0.00 s = .
> ClassNameCheckTest#test_corrections_include_case_specific_class_name = 0.00 s = .
> ClassNameCheckTest#test_corrections_include_top_level_class_name = 0.00 s = .
> ClassNameCheckTest#test_corrections_should_work_from_within_instance_method = 0.00 s = .
> ClassNameCheckTest#test_corrections_should_work_from_within_instance_method_on_nested_class = 0.00 s = .
> VariableNameCheckTest#test_corrections_include_private_method = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> VariableNameCheckTest#test_struct_name_error = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> VariableNameCheckTest#test_corrections_include_method_from_module = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> VariableNameCheckTest#test_corrections_include_instance_method = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> VariableNameCheckTest#test_exclude_typical_incorrect_suggestions = (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> VariableNameCheckTest#test_corrections_include_local_variable_name = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> VariableNameCheckTest#test_corrections_include_ruby_predefined_objects = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.01 s = .
> VariableNameCheckTest#test_corrections_include_class_variable_name = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> VariableNameCheckTest#test_corrections_include_instance_variable_name = (none):61: warning: assigned but unused variable - some_var
> (none):61: warning: assigned but unused variable - some_var
> 0.00 s = .
> JaroWinklerTest#test_jaro_winkler_distance = 0.00 s = .
> JaroWinklerTest#test_jarowinkler_distance_with_utf8_strings = 0.00 s = .
> DeprecatedIgnoreCallersTest#test_ignore = 0.00 s = .
> 
> Finished in 0.055686s, 754.2342 runs/s, 3070.8105 assertions/s.
> 
>   1) Failure:
> UncorrectableNameCheckTest#test_message [/<<PKGBUILDDIR>>/test/spell_checking/uncorrectable_name_check_test.rb:13]:
> --- expected
> +++ actual
> @@ -1 +1,4 @@
> -"Other name error"
> +"Other name error
> +
> +      raise FirstNameError, \"Other name error\"
> +      ^^^^^"
> 
> 
>   2) Skipped:
> NameErrorExtensionTest#test_message [/<<PKGBUILDDIR>>/test/core_ext/name_error_extension_test.rb:22]:
> Skipped, no message given
> 
> 42 runs, 171 assertions, 1 failures, 0 errors, 1 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/core_ext/name_error_extension_test.rb" "test/deprecated_formatter_test.rb" "test/edit_distance/jaro_winkler_test.rb" "test/spell_checker_test.rb" "test/spell_checking/class_name_check_test.rb" "test/spell_checking/key_name_check_test.rb" "test/spell_checking/method_name_check_test.rb" "test/spell_checking/uncorrectable_name_check_test.rb" "test/spell_checking/variable_name_check_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/17/ruby-did-you-mean/ruby-did-you-mean_1.2.1-1+rebuild1663007513_amd64-2022-09-12T18:31:53Z.build

To reproduce this, you need ruby-all-dev >= 1:3.0+2.  Depending on when you
read this, this might mean installing ruby-all-dev from experimental, or ir the
transition has alraedy started in unstable, a normal build on unstable should
do it.  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/c0ff574d/attachment-0001.sig>


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