[DRE-maint] Bug#1091657: ruby-chef-config: FTBFS with ruby3.3: ERROR: Test "ruby3.3" failed: Failure/Error: allow(File).to receive(:exists?).with(ChefConfig::Config.var_chef_dir).and_return(true)
Antonio Terceiro
terceiro at debian.org
Sun Dec 29 11:41:36 GMT 2024
Source: ruby-chef-config
Version: 16.12.3-2
Severity: important
Justification: FTBFS
Tags: trixie sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.3
Hi,
We are about to enable building against ruby3.3 on unstable. During a test
rebuild, ruby-chef-config was found to fail to build in that situation. This bug
is being reported as important, but will be upgraded to serious soon.
To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.
Relevant part (hopefully):
> Failure/Error: allow(File).to receive(:exists?).with(ChefConfig::Config.var_chef_dir).and_return(true)
> File does not implement: exists?
> # ./spec/unit/config_spec.rb:535:in `block (7 levels) in <top (required)>'
>
> Finished in 0.15948 seconds (files took 0.16695 seconds to load)
> 237 examples, 8 failures
>
> Failed examples:
>
> rspec './spec/unit/config_spec.rb[1:5:3:4:2:1]' # ChefConfig::Config On Unix default values ChefConfig::Config[:cache_path] when /var/chef does not exist and /var is accessible defaults to /var/chef
> rspec './spec/unit/config_spec.rb[1:5:3:4:3:1]' # ChefConfig::Config On Unix default values ChefConfig::Config[:cache_path] when /var/chef does not exist and /var is not accessible defaults to $HOME/.chef
> rspec './spec/unit/config_spec.rb[1:5:3:4:4:1]' # ChefConfig::Config On Unix default values ChefConfig::Config[:cache_path] when /var/chef exists and is not accessible defaults to $HOME/.chef
> rspec './spec/unit/config_spec.rb[1:5:3:4:4:2:1]' # ChefConfig::Config On Unix default values ChefConfig::Config[:cache_path] when /var/chef exists and is not accessible and target mode is enabled cache path defaults to $HOME/.chef with the target host name
> rspec './spec/unit/config_spec.rb[1:6:3:4:3:1]' # ChefConfig::Config On Windows default values ChefConfig::Config[:cache_path] when /var/chef does not exist and /var is not accessible defaults to $HOME/.chef
> rspec './spec/unit/config_spec.rb[1:6:3:4:2:1]' # ChefConfig::Config On Windows default values ChefConfig::Config[:cache_path] when /var/chef does not exist and /var is accessible defaults to /var/chef
> rspec './spec/unit/config_spec.rb[1:6:3:4:4:1]' # ChefConfig::Config On Windows default values ChefConfig::Config[:cache_path] when /var/chef exists and is not accessible defaults to $HOME/.chef
> rspec './spec/unit/config_spec.rb[1:6:3:4:4:2:1]' # ChefConfig::Config On Windows default values ChefConfig::Config[:cache_path] when /var/chef exists and is not accessible and target mode is enabled cache path defaults to $HOME/.chef with the target host name
>
> Randomized with seed 16441
>
> /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec ./spec/unit/config_spec.rb ./spec/unit/fips_spec.rb ./spec/unit/path_helper_spec.rb --format documentation failed
> ERROR: Test "ruby3.3" failed:
The full build log is available at
https://people.debian.org/~terceiro/ruby3.3/ruby-chef-config/ruby-chef-config_16.12.3-2+rebuild1733787222_amd64.build
-------------- 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/20241229/ec3c832e/attachment-0001.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list