[DRE-maint] Bug#1090872: ruby-mini-magick: FTBFS with ruby-mocha 2: ERROR: Test "ruby3.1" failed: Failure/Error: expect(described_class.cli_version).to match(/^\d+\.\d+\.\d+-\d+$/)

Antonio Terceiro terceiro at debian.org
Fri Dec 20 11:55:42 GMT 2024


Source: ruby-mini-magick
Version: 4.13.1-1
Severity: important
Justification: FTBFS
Tags: trixie sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby-mocha-2

Hi,

We are trying to update ruby-mocha to version 2, currently available in experimental.
During a test rebuild, ruby-mini-magick was found to fail to build in that situation.
This does not look related to mocha, since the package uses rspec, but
when I tried to build without ruby-mocha from experimental, the build
passed.

To reproduce this locally, you need to install ruby-mocha from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
>       Failure/Error: expect(described_class.cli_version).to match(/^\d+\.\d+\.\d+-\d+$/)
> 
>         expected "1.3.45" to match /^\d+\.\d+\.\d+-\d+$/
>         Diff:
>         @@ -1 +1 @@
>         -/^\d+\.\d+\.\d+-\d+$/
>         +"1.3.45"
>       # ./spec/lib/mini_magick_spec.rb:31:in `block (3 levels) in <top (required)>'
>       # /usr/share/rubygems-integration/all/gems/webmock-3.24.0/lib/webmock/rspec.rb:39:in `block (2 levels) in <top (required)>'
> 
> Finished in 6.71 seconds (files took 0.61687 seconds to load)
> 172 examples, 10 failures, 2 pending
> 
> Failed examples:
> 
> rspec ./spec/lib/mini_magick/image_spec.rb:430 # MiniMagick::Image#exif returns a hash of EXIF data
> rspec ./spec/lib/mini_magick/image_spec.rb:435 # MiniMagick::Image#exif decodes the ExifVersion
> rspec ./spec/lib/mini_magick/image_spec.rb:440 # MiniMagick::Image#exif handles no EXIF data
> rspec ./spec/lib/mini_magick/image_spec.rb:447 # MiniMagick::Image#resolution accepts units
> rspec ./spec/lib/mini_magick/image_spec.rb:481 # MiniMagick::Image#details when verbose information includes an empty line skips the empty line
> rspec ./spec/lib/mini_magick/image_spec.rb:493 # MiniMagick::Image#details when verbose information includes a badly encoded line do skips the badly encoded line
> rspec ./spec/lib/mini_magick/image_spec.rb:503 # MiniMagick::Image#data when the data return is not an array returns image JSON data
> rspec ./spec/lib/mini_magick/image_spec.rb:512 # MiniMagick::Image#data when the data return is an array (ex png) returns image JSON data
> rspec ./spec/lib/mini_magick/shell_spec.rb:49 # MiniMagick::Shell#execute executes the command in the shell
> rspec ./spec/lib/mini_magick_spec.rb:29 # MiniMagick.cli_version returns ImageMagick's version
> 
> /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: 


The full build log is available at
https://people.debian.org/~terceiro/ruby-mocha-2/ruby-mini-magick_arm64-2024-12-20T10:21:31Z.build

This bug report is being filed as severity important, but will be raised to
serious once ruby-mocha is updated in unstable.
-------------- 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/20241220/9afd9f10/attachment.sig>


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