[DRE-maint] Bug#996621: ruby-enumerable-statistics: FTBFS on i386: ERROR: Test "ruby2.7" failed: Failure/Error: it { is_expected.to eq(x) }

Antonio Terceiro terceiro at debian.org
Sat Oct 16 12:07:09 BST 2021


Source: ruby-enumerable-statistics
Version: 2.0.7+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
Forwarded: https://github.com/mrkn/enumerable-statistics/issues/31

This is caused by the test suite comparing floating point numbers for
equality, what is not really feasible. This has been forwarded upstream.

Relevant part (hopefully):
>      Failure/Error: it { is_expected.to eq(x) }
> 
>        expected: 8333333.333333335
>             got: 8333333.333333333
> 
>        (compared using ==)
>      # /<<PKGBUILDDIR>>/spec/support/macros.rb:48:in `block in it_equals_with_type'
> 
> Top 10 slowest examples (0.06033 seconds, 23.2% of total time):
>   Array#histogram with 10,000 normal random values closed: :right is expected to eq false
>     0.01933 seconds /<<PKGBUILDDIR>>/spec/histogram/array_spec.rb:179
>   Array#histogram with 10,000 normal random values default is expected to eq false
>     0.01272 seconds /<<PKGBUILDDIR>>/spec/histogram/array_spec.rb:164
>   Enumerable#mean for [1.0e-09, (100000000/1), 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09].each is expected to eq 8333333.333333335
>     0.0115 seconds /<<PKGBUILDDIR>>/spec/support/macros.rb:48
>   Array#histogram with 10,000 normal random values nbins: 5 is expected to eq false
>     0.01132 seconds /<<PKGBUILDDIR>>/spec/histogram/array_spec.rb:194
>   Array#percentile for [1, nil, 3] is expected to match [(be nan), (be nan)]
>     0.00163 seconds /<<PKGBUILDDIR>>/spec/percentile/array_spec.rb:57
>   Enumerable#variance for [].each with a conversion block does not call the block
>     0.00155 seconds /<<PKGBUILDDIR>>/spec/enum_spec.rb:80
>   Array#percentile for [] is expected to raise ArgumentError
>     0.00093 seconds /<<PKGBUILDDIR>>/spec/percentile/array_spec.rb:10
>   Hash#value_counts with normalize: false, sort: false, ascending: true, dropna: false pairs
>     0.00051 seconds /<<PKGBUILDDIR>>/spec/value_counts_spec.rb:60
>   Array#value_counts with normalize: false, sort: false, ascending: false, dropna: true pairs
>     0.00046 seconds /<<PKGBUILDDIR>>/spec/value_counts_spec.rb:60
>   Hash#sum for {:a=>3, :b=>(5/1), :c=>7.0} with conversion `(k, v) -> v` is expected to eq 15.0
>     0.00036 seconds /<<PKGBUILDDIR>>/spec/support/macros.rb:48
> 
> Top 10 slowest example groups:
>   Array#histogram
>     0.00333 seconds average (0.0533 seconds / 16 examples) /<<PKGBUILDDIR>>/spec/histogram/array_spec.rb:4
>   Array#percentile
>     0.00088 seconds average (0.00706 seconds / 8 examples) /<<PKGBUILDDIR>>/spec/percentile/array_spec.rb:3
>   Enumerable
>     0.00066 seconds average (0.02103 seconds / 32 examples) /<<PKGBUILDDIR>>/spec/value_counts_spec.rb:101
>   Enumerable
>     0.00062 seconds average (0.05612 seconds / 90 examples) /<<PKGBUILDDIR>>/spec/enum_spec.rb:5
>   Hash
>     0.00055 seconds average (0.02386 seconds / 43 examples) /<<PKGBUILDDIR>>/spec/hash_spec.rb:5
>   Hash
>     0.00051 seconds average (0.0163 seconds / 32 examples) /<<PKGBUILDDIR>>/spec/value_counts_spec.rb:83
>   Array
>     0.00048 seconds average (0.04351 seconds / 90 examples) /<<PKGBUILDDIR>>/spec/array_spec.rb:5
>   Array
>     0.00048 seconds average (0.0154 seconds / 32 examples) /<<PKGBUILDDIR>>/spec/value_counts_spec.rb:69
>   Enumerable
>     0.00046 seconds average (0.01423 seconds / 31 examples) /<<PKGBUILDDIR>>/spec/range_spec.rb:5
>   Array#median
>     0.00044 seconds average (0.00701 seconds / 16 examples) /<<PKGBUILDDIR>>/spec/median/array_spec.rb:3
> 
> Finished in 0.25997 seconds (files took 2.11 seconds to load)
> 390 examples, 2 failures
> 
> Failed examples:
> 
> rspec '/<<PKGBUILDDIR>>/spec/enum_spec.rb[1:1:8:2]' # Enumerable#mean for [1.0e-09, (100000000/1), 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09].each is expected to eq 8333333.333333335
> rspec '/<<PKGBUILDDIR>>/spec/array_spec.rb[1:1:8:2]' # Array#mean for [1.0e-09, (100000000/1), 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09, 1.0e-09] is expected to eq 8333333.333333335
> 
> Randomized with seed 58835
> 
> /usr/bin/ruby2.7 -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 "ruby2.7" failed:
-------------- 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/20211016/863cc673/attachment.sig>


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