[DRE-maint] Bug#1019683: test-kitchen: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: "#<ArgumentError: wrong number of arguments (given 4, expected 1)>".

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


Source: test-kitchen
Version: 1.23.2-6
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 test-kitchen with ruby3.1 enabled, the build failed.

Relevant part of the build log (hopefully):
> "#<ArgumentError: wrong number of arguments (given 4, expected 1)>".
> 
>  58) Failure:
> Kitchen::Loader::YAML::#diagnose::for yaml files::for combined on error#test_0003_uses an error hash with the exception message [/<<PKGBUILDDIR>>/spec/kitchen/loader/yaml_spec.rb:761]:
> Expected /Error parsing/ to match # encoding: ASCII-8BIT
> #    valid: true
> "wrong number of arguments (given 4, expected 1)".
> 
>  59) Failure:
> Kitchen::Loader::YAML::#diagnose::for yaml files#test_0004_project config contains raw data [/<<PKGBUILDDIR>>/spec/kitchen/loader/yaml_spec.rb:621]:
> No visible difference in the Hash#inspect output.
> You should look at the implementation of #== on Hash or its members.
> {"from_project"=>"project", "common"=>{"p"=>"pretty"}}
> 
>  60) Failure:
> Kitchen::Loader::YAML::#diagnose::for yaml files#test_0006_local config contains raw data [/<<PKGBUILDDIR>>/spec/kitchen/loader/yaml_spec.rb:633]:
> No visible difference in the Hash#inspect output.
> You should look at the implementation of #== on Hash or its members.
> {"from_local"=>"local", "common"=>{"l"=>"looky"}}
> 
>  61) Failure:
> Kitchen::Loader::YAML::#diagnose::for yaml files#test_0008_combined config contains raw data [/<<PKGBUILDDIR>>/spec/kitchen/loader/yaml_spec.rb:645]:
> No visible difference in the Hash#inspect output.
> You should look at the implementation of #== on Hash or its members.
> {"from_global"=>"global", "from_project"=>"project", "from_local"=>"local", "common"=>{"g"=>"goody", "p"=>"pretty", "l"=>"looky"}}
> 
>  62) Failure:
> Kitchen::Loader::YAML::#diagnose::for yaml files#test_0002_global config contains raw data [/<<PKGBUILDDIR>>/spec/kitchen/loader/yaml_spec.rb:609]:
> No visible difference in the Hash#inspect output.
> You should look at the implementation of #== on Hash or its members.
> {"from_global"=>"global", "common"=>{"g"=>"goody"}}
> 
> 2210 runs, 3375 assertions, 18 failures, 44 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 "spec/kitchen/base64_stream_spec.rb" "spec/kitchen/cli_spec.rb" "spec/kitchen/collection_spec.rb" "spec/kitchen/color_spec.rb" "spec/kitchen/config_spec.rb" "spec/kitchen/configurable_spec.rb" "spec/kitchen/data_munger_spec.rb" "spec/kitchen/diagnostic_spec.rb" "spec/kitchen/driver/base_spec.rb" "spec/kitchen/driver/dummy_spec.rb" "spec/kitchen/driver/exec_spec.rb" "spec/kitchen/driver/proxy_spec.rb" "spec/kitchen/driver/ssh_base_spec.rb" "spec/kitchen/driver_spec.rb" "spec/kitchen/errors_spec.rb" "spec/kitchen/instance_spec.rb" "spec/kitchen/lazy_hash_spec.rb" "spec/kitchen/lifecycle_hooks_spec.rb" "spec/kitchen/loader/yaml_spec.rb" "spec/kitchen/logger_spec.rb" "spec/kitchen/logging_spec.rb" "spec/kitchen/login_command_spec.rb" "spec/kitchen/metadata_chopper_spec.rb" "spec/kitchen/platform_spec.rb" "spec/kitchen/provisioner/base_spec.rb" "spec/kitchen/provisioner/chef/policyfile_spec.rb" "spec/kitchen/provisioner/chef_apply_spec.rb" "spec/kitchen/provisioner/chef_base_spec.rb" "spec/kitchen/provisioner/chef_solo_spec.rb" "spec/kitchen/provisioner/chef_zero_spec.rb" "spec/kitchen/provisioner/dummy_spec.rb" "spec/kitchen/provisioner/shell_spec.rb" "spec/kitchen/provisioner_spec.rb" "spec/kitchen/shell_out_spec.rb" "spec/kitchen/ssh_spec.rb" "spec/kitchen/state_file_spec.rb" "spec/kitchen/suite_spec.rb" "spec/kitchen/transport/base_spec.rb" "spec/kitchen/transport/exec_spec.rb" "spec/kitchen/transport/ssh_spec.rb" "spec/kitchen/transport/winrm_spec.rb" "spec/kitchen/transport_spec.rb" "spec/kitchen/util_spec.rb" "spec/kitchen/verifier/base_spec.rb" "spec/kitchen/verifier/busser_spec.rb" "spec/kitchen/verifier/dummy_spec.rb" "spec/kitchen/verifier/shell_spec.rb" "spec/kitchen/verifier_spec.rb" "spec/kitchen_spec.rb" "spec/support/powershell_max_size_spec.rb" ]
> 
> Tasks: TOP => default => unit
> (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/test-kitchen/test-kitchen_1.23.2-6+rebuild1663008366_amd64-2022-09-12T18:46:08Z.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/c7c2707b/attachment.sig>


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