[DRE-maint] Bug#1084362: ruby-feature: FTBFS: Failure/Error: require 'fakeredis/rspec'

Santiago Vila sanvila at debian.org
Mon Oct 7 09:41:02 BST 2024


Package: src:ruby-feature
Version: 1.4.0-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem=ruby --with ruby
    dh_update_autotools_config -O--buildsystem=ruby
    dh_autoreconf -O--buildsystem=ruby
    dh_auto_configure -O--buildsystem=ruby
	dh_ruby --configure
    dh_auto_build -O--buildsystem=ruby
	dh_ruby --build
    dh_auto_test -O--buildsystem=ruby
	dh_ruby --test
    create-stamp debian/debhelper-build-stamp
    dh_testroot -O--buildsystem=ruby
    dh_prep -O--buildsystem=ruby
    dh_auto_install --destdir=debian/ruby-feature/ -O--buildsystem=ruby
	dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-feature
/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241006-933067-pem24l/gemspec
Failed to load /dev/null because it doesn't contain valid YAML hash
   Successfully built RubyGem
   Name: feature
   Version: 1.4.0
   File: feature-1.4.0.gem
/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-feature/usr/share/rubygems-integration/all /tmp/d20241006-933067-pem24l/feature-1.4.0.gem
Failed to load /dev/null because it doesn't contain valid YAML hash
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/generators/install_generator.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/generators/templates/feature.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/repository.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/repository/active_record_repository.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/repository/redis_repository.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/repository/simple_repository.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/repository/yaml_repository.rb
/<<PKGBUILDDIR>>/debian/ruby-feature/usr/share/rubygems-integration/all/gems/feature-1.4.0/lib/feature/testing.rb
Successfully installed feature-1.4.0
1 gem installed
cd debian/ruby-feature/usr/share/rubygems-integration/all
rm -rf bin
rm -rf build_info
rm -rf cache
rm -rf doc
rm -rf extensions
rmdir plugins
cd gems/feature-1.4.0
rm -f
chmod 644 lib/feature/generators/install_generator.rb lib/feature/generators/templates/feature.rb lib/feature/repository/active_record_repository.rb lib/feature/repository/redis_repository.rb lib/feature/repository/simple_repository.rb lib/feature/repository/yaml_repository.rb lib/feature/repository.rb lib/feature/testing.rb lib/feature.rb
find lib/ -type d -empty -delete
cd -
cd -
dh_installchangelogs -pruby-feature /<<PKGBUILDDIR>>/CHANGELOG.md upstream
/usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner

┌──────────────────────────────────────────────────────────────────────────────┐
│ Checking Rubygems dependency resolution on ruby3.1                           │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-feature/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\ \"feature\"

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-feature/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 --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
/usr/bin/ruby3.1 -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 --pattern ./spec/\*\*/\*_spec.rb --format documentation

An error occurred while loading ./spec/feature/active_record_repository_spec.rb. - Did you mean?
                     rspec ./spec/feature/redis_repository_spec.rb
                     rspec ./spec/feature/simple_repository_spec.rb

Failure/Error: require 'fakeredis/rspec'

LoadError:
   cannot load such file -- redis/connection/registry
   Did you mean?  redis/connection/memory
# ./spec/spec_helper.rb:4:in `<top (required)>'
# ./spec/feature/active_record_repository_spec.rb:1:in `<top (required)>'

An error occurred while loading ./spec/feature/feature_spec.rb. - Did you mean?
                     rspec ./spec/feature/testing_spec.rb

Failure/Error: require 'fakeredis/rspec'

LoadError:
   cannot load such file -- redis/connection/registry
   Did you mean?  redis/connection/memory
# ./spec/spec_helper.rb:4:in `<top (required)>'
# ./spec/feature/feature_spec.rb:1:in `<top (required)>'

An error occurred while loading ./spec/feature/redis_repository_spec.rb. - Did you mean?
                     rspec ./spec/feature/simple_repository_spec.rb
                     rspec ./spec/feature/yaml_repository_spec.rb

Failure/Error: require 'fakeredis/rspec'

LoadError:
   cannot load such file -- redis/connection/registry
   Did you mean?  redis/connection/memory
# ./spec/spec_helper.rb:4:in `<top (required)>'
# ./spec/feature/redis_repository_spec.rb:1:in `<top (required)>'

An error occurred while loading ./spec/feature/simple_repository_spec.rb. - Did you mean?
                     rspec ./spec/feature/redis_repository_spec.rb
                     rspec ./spec/feature/yaml_repository_spec.rb

Failure/Error: require 'fakeredis/rspec'

LoadError:
   cannot load such file -- redis/connection/registry
   Did you mean?  redis/connection/memory
# ./spec/spec_helper.rb:4:in `<top (required)>'
# ./spec/feature/simple_repository_spec.rb:1:in `<top (required)>'

An error occurred while loading ./spec/feature/testing_spec.rb. - Did you mean?
                     rspec ./spec/feature/feature_spec.rb

Failure/Error: require 'fakeredis/rspec'

LoadError:
   cannot load such file -- redis/connection/registry
   Did you mean?  redis/connection/memory
# ./spec/spec_helper.rb:4:in `<top (required)>'
# ./spec/feature/testing_spec.rb:1:in `<top (required)>'

An error occurred while loading ./spec/feature/yaml_repository_spec.rb. - Did you mean?
                     rspec ./spec/feature/simple_repository_spec.rb
                     rspec ./spec/feature/redis_repository_spec.rb

Failure/Error: require 'fakeredis/rspec'

LoadError:
   cannot load such file -- redis/connection/registry
   Did you mean?  redis/connection/memory
# ./spec/spec_helper.rb:4:in `<top (required)>'
# ./spec/feature/yaml_repository_spec.rb:1:in `<top (required)>'
No examples found.

Finished in 0.00003 seconds (files took 0.19606 seconds to load)
0 examples, 0 failures, 6 errors occurred outside of examples

/usr/bin/ruby3.1 -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 --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby3.1" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-feature returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



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