[DRE-maint] Bug#996129: ruby-axiom-types: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: RuntimeError:

Antonio Terceiro terceiro at debian.org
Mon Oct 11 13:53:46 BST 2021


Source: ruby-axiom-types
Version: 0.1.1-1.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-axiom-types 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):
>       RuntimeError:
>         The `SortedSet` class has been extracted from the `set` library.You must use the `sorted_set` gem or other alternatives.
>       # ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:31:in `block (4 levels) in <top (required)>'
>       # ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:30:in `initialize'
>       # ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:30:in `new'
>       # ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:30:in `block (3 levels) in <top (required)>'
>       # ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:9:in `block (2 levels) in <top (required)>'
>       # ------------------
>       # --- Caused by: ---
>       # LoadError:
>       #   cannot load such file -- sorted_set
>       #   ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:31:in `block (4 levels) in <top (required)>'
> 
> Top 10 slowest examples (0.03959 seconds, 14.4% of total time):
>   Axiom::Types::ValueComparable.extended delegates to the ancestor
>     0.00941 seconds ./spec/unit/axiom/types/value_comparable/class_methods/extended_spec.rb:10
>   Axiom::Types::Encodable#finalize when an ascii compatible encoding (UTF-8) is used adds a constraint that returns true for Windows-1252 encoding
>     0.0057 seconds ./spec/unit/axiom/types/encodable/finalize_spec.rb:35
>   Axiom::Types::Infinity#<=> when other object is a Integer is symmetric
>     0.00426 seconds ./spec/unit/axiom/types/infinity/spaceship_operator_spec.rb:22
>   Axiom::Types::Infinity#<=> when other object is a Rational is expected to equal 1
>     0.00371 seconds ./spec/unit/axiom/types/infinity/spaceship_operator_spec.rb:20
>   Axiom::Types::Hash.infer with Axiom::Types::Hash with an Hash with a nil key and value primitive key_type is expected to equal Axiom::Types::Object (BasicObject)
>     0.00367 seconds ./spec/unit/axiom/types/hash/class_methods/infer_spec.rb:95
>   Axiom::Types::Collection.infer with a a non-base class when the argument is an empty SortedSet 
>     0.00298 seconds ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:112
>   Axiom::Types::Infinity#<=> when the other object is not comparable is expected to be nil
>     0.00273 seconds ./spec/unit/axiom/types/infinity/spaceship_operator_spec.rb:61
>   Axiom::Types::Infinity#<=> when other object is a Integer is expected to equal 1
>     0.0026 seconds ./spec/unit/axiom/types/infinity/spaceship_operator_spec.rb:20
>   Axiom::Types::Infinity#<=> when other object is a Float is symmetric
>     0.00244 seconds ./spec/unit/axiom/types/infinity/spaceship_operator_spec.rb:22
>   Axiom::Types::ValueComparable.extended adds minimum method
>     0.00209 seconds ./spec/unit/axiom/types/value_comparable/class_methods/extended_spec.rb:24
> 
> Top 10 slowest example groups:
>   Axiom::Types::ValueComparable.extended
>     0.00253 seconds average (0.01263 seconds / 5 examples) ./spec/unit/axiom/types/value_comparable/class_methods/extended_spec.rb:5
>   Axiom::Types::Type.base?
>     0.00229 seconds average (0.00457 seconds / 2 examples) ./spec/unit/axiom/types/type/class_methods/base_predicate_spec.rb:5
>   Axiom::Types::Infinity#<=>
>     0.00127 seconds average (0.02287 seconds / 18 examples) ./spec/unit/axiom/types/infinity/spaceship_operator_spec.rb:5
>   Axiom::Types::Collection.infer
>     0.00112 seconds average (0.02023 seconds / 18 examples) ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:5
>   Axiom::Types::Hash.infer
>     0.00081 seconds average (0.03088 seconds / 38 examples) ./spec/unit/axiom/types/hash/class_methods/infer_spec.rb:5
>   Axiom::Types::Set.infer
>     0.0006 seconds average (0.00967 seconds / 16 examples) ./spec/unit/axiom/types/set/class_methods/infer_spec.rb:5
>   Axiom::Types::LengthComparable#finalize
>     0.0006 seconds average (0.00298 seconds / 5 examples) ./spec/unit/axiom/types/length_comparable/finalize_spec.rb:5
>   Axiom::Types::Array.infer
>     0.00057 seconds average (0.00908 seconds / 16 examples) ./spec/unit/axiom/types/array/class_methods/infer_spec.rb:5
>   Axiom::Types.finalize
>     0.00053 seconds average (0.00053 seconds / 1 example) ./spec/unit/axiom/types/class_methods/finalize_spec.rb:5
>   Axiom::Types::Options#inherited
>     0.00053 seconds average (0.0016 seconds / 3 examples) ./spec/unit/axiom/types/options/inherited_spec.rb:5
> 
> Finished in 0.27462 seconds (files took 0.33069 seconds to load)
> 558 examples, 16 failures
> 
> Failed examples:
> 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:112 # Axiom::Types::Collection.infer with a a non-base class when the argument is an empty SortedSet 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:106 # Axiom::Types::Collection.infer with a a non-base class when the argument is ::SortedSet 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:100 # Axiom::Types::Collection.infer with a a non-base class when the argument is the type object 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:130 # Axiom::Types::Collection.infer with a a non-base class when the argument is nil 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:124 # Axiom::Types::Collection.infer with a a non-base class when the argument is an SortedSet with a primitive 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:118 # Axiom::Types::Collection.infer with a a non-base class when the argument is an SortedSet with a type 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:54 # Axiom::Types::Collection.infer with a base class when the argument is ::SortedSet 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:60 # Axiom::Types::Collection.infer with a base class when the argument is an empty SortedSet 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:48 # Axiom::Types::Collection.infer with a base class when the argument is the type object 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:86 # Axiom::Types::Collection.infer with a base class when the argument is nil 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:66 # Axiom::Types::Collection.infer with a base class when the argument is an SortedSet with a type ancestors 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:68 # Axiom::Types::Collection.infer with a base class when the argument is an SortedSet with a type primitive 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:70 # Axiom::Types::Collection.infer with a base class when the argument is an SortedSet with a type member_type 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:80 # Axiom::Types::Collection.infer with a base class when the argument is an SortedSet with a primitive member_type 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:76 # Axiom::Types::Collection.infer with a base class when the argument is an SortedSet with a primitive ancestors 
> rspec ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:78 # Axiom::Types::Collection.infer with a base class when the argument is an SortedSet with a primitive primitive 
> 
> Randomized with seed 172
> 
> /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 failed
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-axiom-types/ruby-axiom-types_0.1.1-1.1+rebuild1633375507_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/20211011/858768e1/attachment-0001.sig>


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