Source: ruby-factory-bot-rails
Version: 6.4.2-1
Severity: serious
Justification: autopkgtest failure
Tags: trixie sid ftbfs
User: debian-r...@lists.debian.org
Usertags: rails7

Hi,

We are about to upload rails 7 to unstable, as we are targetting to have rails
7 being released with Trixie.

After the last upload of rails 7 to experimental, we noticed that 
ruby-factory-bot-rails
fails its autopkgtests when run against that version of rails.

To reproduce this failure locally, you can run autopkgtest with the following
options:

--add-apt-release=experimental --pin-packages=experimental=src:rails

(or wait until rails 7 is uploaded to unstable)

Relevant part (hopefully):
> Setting up ruby-rspec (3.13.0c0e0m0s1-2) ...
> Setting up ruby-rails-html-sanitizer (1.6.2-1~exp1) ...
> Setting up ruby-actionview (2:7.2.2.1+dfsg-1~exp6) ...
> Setting up ruby-actionpack (2:7.2.2.1+dfsg-1~exp6) ...
> Setting up ruby-railties (2:7.2.2.1+dfsg-1~exp6) ...
> Setting up ruby-factory-bot-rails (6.4.2-1) ...
> Processing triggers for libc-bin (2.40-6) ...
> autopkgtest [19:04:52]: test gem2deb-test-runner: gem2deb-test-runner 
> --autopkgtest --check-dependencies 2>&1
> autopkgtest [19:04:52]: test gem2deb-test-runner: [-----------------------
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.3                          
>  │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=. GEM_PATH= ruby3.3 -e gem\ \"factory_bot_rails\"
> mv lib ./.gem2deb.lib
> mv Gemfile.lock ./.gem2deb.Gemfile.lock
> mv ./.gem2deb.lib lib
> mv ./.gem2deb.Gemfile.lock Gemfile.lock
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.3 from debian/ruby-tests.rake                           
>  │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=. GEM_PATH= ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f 
> debian/ruby-tests.rake
> mv lib ./.gem2deb.lib
> mv Gemfile.lock ./.gem2deb.Gemfile.lock
> /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 
> --pattern ./spec/\*\*/\*_spec.rb --format documentation
> 
> An error occurred while loading spec_helper.
> Failure/Error: require "factory_bot_rails"
> 
> NameError:
> uninitialized constant #<Class:ActiveSupport::Delegation>::Inflector
> # 
> /usr/share/rubygems-integration/all/gems/activesupport-7.2.2.1/lib/active_support/delegation.rb:47:in
>  `generate'
> # 
> /usr/share/rubygems-integration/all/gems/activesupport-7.2.2.1/lib/active_support/core_ext/module/delegation.rb:161:in
>  `delegate'
> # 
> /usr/share/rubygems-integration/all/gems/factory_bot-6.4.2/lib/factory_bot/definition_hierarchy.rb:3:in
>  `<class:DefinitionHierarchy>'
> # 
> /usr/share/rubygems-integration/all/gems/factory_bot-6.4.2/lib/factory_bot/definition_hierarchy.rb:2:in
>  `<module:FactoryBot>'
> # 
> /usr/share/rubygems-integration/all/gems/factory_bot-6.4.2/lib/factory_bot/definition_hierarchy.rb:1:in
>  `<top (required)>'
> # 
> /usr/share/rubygems-integration/all/gems/factory_bot-6.4.2/lib/factory_bot.rb:8:in
>  `<top (required)>'
> # 
> /usr/share/rubygems-integration/all/gems/factory_bot_rails-6.4.2/lib/factory_bot_rails/railtie.rb:3:in
>  `<top (required)>'
> # 
> /usr/share/rubygems-integration/all/gems/factory_bot_rails-6.4.2/lib/factory_bot_rails.rb:1:in
>  `<top (required)>'
> # ./spec/spec_helper.rb:5:in `<top (required)>'
> # ------------------
> # --- Caused by: ---
> # LoadError:
> #   cannot load such file -- factory_bot_rails
> #   ./spec/spec_helper.rb:5:in `<top (required)>'
> No examples found.
> No examples found.
> 
> 
> Finished in 0.00004 seconds (files took 0.13729 seconds to load)
> 0 examples, 0 failures, 1 error occurred outside of examples
> 
> Finished in 0.00004 seconds (files took 0.13729 seconds to load)
> 0 examples, 0 failures, 1 error occurred outside of examples
> 
> 
> /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 
> --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> mv ./.gem2deb.lib lib


The full autopkgtest logs are available and linked from
https://release.debian.org/britney/pseudo-excuses-experimental.html#rails
and after rails 7 gets into unstable, at
https://qa.debian.org/excuses.php?package=rails

Attachment: signature.asc
Description: PGP signature

Reply via email to