[DRE-maint] Bug#996223: ruby-factory-girl: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: ArgumentError:
Antonio Terceiro
terceiro at debian.org
Tue Oct 12 13:06:05 BST 2021
Source: ruby-factory-girl
Version: 4.7.0-2.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0
Hi,
We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-factory-girl was found to fail to build in that situation.
To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.
Relevant part (hopefully):
> ArgumentError:
> no receiver given
> # ./lib/factory_girl/attribute/dynamic.rb:16:in `instance_exec'
> # ./lib/factory_girl/attribute/dynamic.rb:16:in `block in to_proc'
> # ./lib/factory_girl/evaluator.rb:75:in `instance_exec'
> # ./lib/factory_girl/evaluator.rb:75:in `block in define_attribute'
> # ./lib/factory_girl/attribute_assigner.rb:56:in `get'
> # ./lib/factory_girl/attribute_assigner.rb:16:in `block (2 levels) in object'
> # ./lib/factory_girl/attribute_assigner.rb:15:in `each'
> # ./lib/factory_girl/attribute_assigner.rb:15:in `block in object'
> # <internal:kernel>:90:in `tap'
> # ./lib/factory_girl/attribute_assigner.rb:14:in `object'
> # ./lib/factory_girl/evaluation.rb:12:in `object'
> # ./lib/factory_girl/strategy/build.rb:9:in `result'
> # ./lib/factory_girl/factory.rb:42:in `run'
> # ./lib/factory_girl/factory_runner.rb:29:in `block in run'
> # /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in `instrument'
> # ./lib/factory_girl/factory_runner.rb:28:in `run'
> # ./lib/factory_girl/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
> # ./spec/acceptance/definition_spec.rb:42:in `block (2 levels) in <top (required)>'
>
> Finished in 8.59 seconds (files took 1.14 seconds to load)
> 537 examples, 3 failures
>
> Failed examples:
>
> rspec ./spec/acceptance/callbacks_spec.rb:68 # callbacks using Symbol#to_proc runs the callback correctly
> rspec ./spec/acceptance/definition_spec.rb:34 # attributes defined using Symbol#to_proc assigns values correctly
> rspec ./spec/acceptance/definition_spec.rb:41 # attributes defined using Symbol#to_proc assigns value with override correctly
>
> /usr/bin/ruby3.0 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby3.0" failed:
The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-factory-girl/ruby-factory-girl_4.7.0-2.1+rebuild1633379420_amd64.build.txt
-------------- 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/20211012/ce44c287/attachment-0001.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list