[DRE-maint] Bug#1019677: ruby-webpacker: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed.

Antonio Terceiro terceiro at debian.org
Tue Sep 13 13:07:00 BST 2022


Source: ruby-webpacker
Version: 5.4.3-1
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-webpacker 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-webpacker/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\ \"webpacker\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-webpacker/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
> mv Gemfile.lock ./.gem2deb.Gemfile.lock
> /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/command_test.rb" "test/compiler_test.rb" "test/configuration_test.rb" "test/dev_server_test.rb" "test/env_test.rb" "test/helper_test.rb" "test/manifest_test.rb" "test/rake_tasks_test.rb" "test/webpacker_test.rb" -v
> /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/nokogiri-1.13.7/lib/nokogiri/version/info.rb:85: warning: possibly useless use of a variable in void context
> /usr/share/rubygems-integration/all/gems/activesupport-6.1.6.1/lib/active_support/core_ext/class/subclasses.rb:30: warning: method redefined; discarding old subclasses
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> Run options: -v --seed 30762
> 
> # Running:
> 
> DevServerTest#test_host = 0.00 s = .
> DevServerTest#test_protocol = 0.00 s = .
> DevServerTest#test_pretty? = 0.00 s = .
> DevServerTest#test_running? = 0.00 s = .
> DevServerTest#test_host_with_port = 0.00 s = .
> DevServerTest#test_port = 0.00 s = .
> DevServerTest#test_default_env_prefix = 0.00 s = .
> DevServerTest#test_https? = 0.00 s = .
> CompilerTest#test_compilation_digest_path = 0.00 s = .
> CompilerTest#test_custom_environment_variables = 0.00 s = .
> CompilerTest#test_freshness = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> CompilerTest#test_compile = 0.10 s = .
> CompilerTest#test_external_env_variables = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> CompilerTest#test_freshness_on_compile_success = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> CompilerTest#test_default_watched_paths = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> The resolved_paths option has been deprecated. Use additional_paths instead.
> CompilerTest#test_freshness_on_compile_fail = 0.00 s = .
> HelperTest#test_asset_pack_path = 0.00 s = .
> HelperTest#test_asset_pack_url = 0.00 s = .
> HelperTest#test_favicon_pack_tag = 0.00 s = .
> HelperTest#test_image_pack_tag = 0.00 s = .
> HelperTest#test_javascript_pack_tag = 0.00 s = .
> HelperTest#test_javascript_pack_tag_splat = 0.00 s = .
> HelperTest#test_javascript_pack_tag_split_chunks = 0.00 s = .
> HelperTest#test_javascript_pack_tag_symbol = 0.00 s = .
> HelperTest#test_preload_pack_asset = 0.00 s = .
> HelperTest#test_stylesheet_pack_tag = 0.00 s = .
> HelperTest#test_stylesheet_pack_tag_splat = 0.00 s = .
> HelperTest#test_stylesheet_pack_tag_split_chunks = 0.00 s = .
> HelperTest#test_stylesheet_pack_tag_symbol = 0.00 s = .
> ConfigurationTest#test_extensions = 0.00 s = E
> 
> 
> Error:
> ConfigurationTest#test_extensions:
> Psych::BadAlias: Unknown alias: default
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
>     /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
>     /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
>     /usr/lib/ruby/3.1.0/psych.rb:335:in `safe_load'
>     /usr/lib/ruby/3.1.0/psych.rb:370:in `load'
>     /usr/lib/ruby/3.1.0/psych.rb:671:in `block in load_file'
>     /usr/lib/ruby/3.1.0/psych.rb:670:in `open'
>     /usr/lib/ruby/3.1.0/psych.rb:670:in `load_file'
>     /<<PKGBUILDDIR>>/test/configuration_test.rb:70:in `test_extensions'
>     minitest (5.15.0) lib/minitest/test.rb:98:in `block (3 levels) in run'
>     minitest (5.15.0) lib/minitest/test.rb:195:in `capture_exceptions'
>     minitest (5.15.0) lib/minitest/test.rb:95:in `block (2 levels) in run'
>     minitest (5.15.0) lib/minitest.rb:281:in `time_it'
>     minitest (5.15.0) lib/minitest/test.rb:94:in `block in run'
>     minitest (5.15.0) lib/minitest.rb:376:in `on_signal'
>     minitest (5.15.0) lib/minitest/test.rb:221:in `with_info_handler'
>     minitest (5.15.0) lib/minitest/test.rb:93:in `run'
>     minitest (5.15.0) lib/minitest.rb:1042:in `run_one_method'
>     minitest (5.15.0) lib/minitest.rb:350:in `run_one_method'
>     minitest (5.15.0) lib/minitest.rb:337:in `block (2 levels) in run'
>     minitest (5.15.0) lib/minitest.rb:336:in `each'
>     minitest (5.15.0) lib/minitest.rb:336:in `block in run'
>     minitest (5.15.0) lib/minitest.rb:376:in `on_signal'
>     minitest (5.15.0) lib/minitest.rb:363:in `with_info_handler'
>     minitest (5.15.0) lib/minitest.rb:335:in `run'
>     minitest (5.15.0) lib/minitest.rb:169:in `block in __run'
>     minitest (5.15.0) lib/minitest.rb:169:in `map'
>     minitest (5.15.0) lib/minitest.rb:169:in `__run'
>     minitest (5.15.0) lib/minitest.rb:146:in `run'
>     minitest (5.15.0) lib/minitest.rb:73:in `block in autorun'
> 
> rails test /<<PKGBUILDDIR>>/test/configuration_test.rb:68
> 
> ConfigurationTest#test_public_manifest_path = 0.00 s = .
> ConfigurationTest#test_cache_manifest? = 0.01 s = .
> ConfigurationTest#test_public_output_path = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> ConfigurationTest#test_additional_paths_globbed = 0.00 s = .
> ConfigurationTest#test_source_path_globbed = 0.00 s = .
> ConfigurationTest#test_compile? = 0.01 s = .
> ConfigurationTest#test_source_entry_path = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> ConfigurationTest#test_additional_paths = 0.00 s = .
> ConfigurationTest#test_extract_css? = 0.01 s = .
> ConfigurationTest#test_public_root_path = 0.00 s = .
> ConfigurationTest#test_source_path = 0.00 s = .
> ConfigurationTest#test_cache_path = 0.00 s = .
> RakeTasksTest#test_check_yarn_version = 0.62 s = .
> RakeTasksTest#test_rake_task_webpacker_check_binstubs = 0.58 s = .
> Ignoring nokogiri-1.13.7 because its extensions are not built. Try: gem pristine nokogiri --version 1.13.7
> Ignoring byebug-11.1.3 because its extensions are not built. Try: gem pristine byebug --version 11.1.3
> Ignoring debug-1.4.0 because its extensions are not built. Try: gem pristine debug --version 1.4.0
> Ignoring rbs-2.1.0 because its extensions are not built. Try: gem pristine rbs --version 2.1.0
> Ignoring sdbm-1.0.0 because its extensions are not built. Try: gem pristine sdbm --version 1.0.0
> RakeTasksTest#test_rake_tasks = 0.56 s = .
> RakeTasksTest#test_check_node_version = 0.58 s = .
> EnvTest#test_custom_with_config = 0.00 s = .
> EnvTest#test_default = 0.00 s = .
> EnvTest#test_custom_without_config = 0.00 s = .
> EnvTest#test_current = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> CommandTest#test_compile_command_returns_success_status_when_stale = 0.00 s = .
> The resolved_paths option has been deprecated. Use additional_paths instead.
> CommandTest#test_compile_command_returns_failure_status_when_stale = 0.00 s = .
> CommandTest#test_compile_command_returns_success_status_when_fresh = 0.00 s = .
> CommandTest#test_clean_command_works_with_nested_hashes_and_without_any_compiled_files = 0.00 s = .
> WebpackerTest#test_config_params = 0.00 s = .
> ManifestTest#test_lookup_entrypoint = 0.00 s = .
> ManifestTest#test_lookup_nil = 0.00 s = .
> ManifestTest#test_lookup_with_type_exception! = 0.00 s = .
> ManifestTest#test_lookup_exception! = 0.00 s = .
> ManifestTest#test_lookup_success = 0.00 s = .
> ManifestTest#test_lookup_entrypoint_exception! = 0.00 s = .
> ManifestTest#test_lookup_success! = 0.00 s = .
> ManifestTest#test_lookup_chunks_nil = 0.00 s = .
> 
> Finished in 2.527547s, 24.9253 runs/s, 55.3897 assertions/s.
> 63 runs, 140 assertions, 0 failures, 1 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/command_test.rb" "test/compiler_test.rb" "test/configuration_test.rb" "test/dev_server_test.rb" "test/env_test.rb" "test/helper_test.rb" "test/manifest_test.rb" "test/rake_tasks_test.rb" "test/webpacker_test.rb" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> mv ./.gem2deb.Gemfile.lock Gemfile.lock
> ERROR: Test "ruby3.1" failed.


The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/17/ruby-webpacker/ruby-webpacker_5.4.3-1+rebuild1663008319_amd64-2022-09-12T18:45:20Z.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/20220913/e9493dc7/attachment-0001.sig>


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