[DRE-maint] Bug#1006026: ruby-axiom-types: FTBFS: ERROR: Test "ruby3.0" failed: ArgumentError: Cannot proxy frozen objects, rspec-mocks relies on proxies for method stubbing and expectations.

Lucas Nussbaum lucas at debian.org
Sat Feb 19 06:34:07 GMT 2022


Source: ruby-axiom-types
Version: 0.1.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>      ArgumentError:
>        Cannot proxy frozen objects, rspec-mocks relies on proxies for method stubbing and expectations.
>      # ./spec/unit/axiom/types/class_methods/finalize_spec.rb:14:in `block (2 levels) in <top (required)>'
> 
> Top 10 slowest examples (0.02984 seconds, 11.5% of total time):
>   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.00549 seconds ./spec/unit/axiom/types/hash/class_methods/infer_spec.rb:95
>   Axiom::Types::Encodable.extended delegates to the ancestor
>     0.00394 seconds ./spec/unit/axiom/types/encodable/class_methods/extended_spec.rb:10
>   Axiom::Types::Object.infer with the type when the argument is ::Object is expected to equal Axiom::Types::Object (BasicObject)
>     0.00356 seconds ./spec/unit/axiom/types/object/class_methods/infer_spec.rb:26
>   Axiom::Types::Object.infer with the type when the argument is ::DateTime is expected to equal Axiom::Types::Object (BasicObject)
>     0.00353 seconds ./spec/unit/axiom/types/object/class_methods/infer_spec.rb:42
>   Axiom::Types.infer when the type is Axiom::Types::Symbol is expected to equal Axiom::Types::Symbol (Symbol)
>     0.00328 seconds ./spec/unit/axiom/types/class_methods/infer_spec.rb:18
>   Axiom::Types::Encodable#finalize when an ascii compatible encoding (UTF-8) is used adds a constraint that returns true for TIS-620 encoding
>     0.00294 seconds ./spec/unit/axiom/types/encodable/finalize_spec.rb:35
>   Axiom::Types::Collection.infer with a a non-base class when the argument is nil is expected to be nil
>     0.00288 seconds ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:130
>   Axiom::Types::Object.finalize adds a constraint that returns true for a valid primitive
>     0.00145 seconds ./spec/unit/axiom/types/object/class_methods/finalize_spec.rb:22
>   Axiom::Types::Object.coercion_method with a symbol sets the coercion_method
>     0.0014 seconds ./spec/unit/axiom/types/object/class_methods/coercion_method_spec.rb:22
>   Axiom::Types::Object.finalize is expected to be frozen
>     0.00136 seconds ./spec/unit/axiom/types/object/class_methods/finalize_spec.rb:18
> 
> Top 10 slowest example groups:
>   Axiom::Types::Encodable.extended
>     0.00158 seconds average (0.00473 seconds / 3 examples) ./spec/unit/axiom/types/encodable/class_methods/extended_spec.rb:5
>   Axiom::Types::Object.coercion_method
>     0.00143 seconds average (0.00287 seconds / 2 examples) ./spec/unit/axiom/types/object/class_methods/coercion_method_spec.rb:5
>   Axiom::Types::Object.finalize
>     0.00097 seconds average (0.00388 seconds / 4 examples) ./spec/unit/axiom/types/object/class_methods/finalize_spec.rb:5
>   Axiom::Types::Object.infer
>     0.00086 seconds average (0.03592 seconds / 42 examples) ./spec/unit/axiom/types/object/class_methods/infer_spec.rb:5
>   Axiom::Types::Hash.infer
>     0.0008 seconds average (0.03042 seconds / 38 examples) ./spec/unit/axiom/types/hash/class_methods/infer_spec.rb:5
>   Axiom::Types::Collection.infer
>     0.00073 seconds average (0.0131 seconds / 18 examples) ./spec/unit/axiom/types/collection/class_methods/infer_spec.rb:5
>   Axiom::Types::Array.infer
>     0.0006 seconds average (0.00961 seconds / 16 examples) ./spec/unit/axiom/types/array/class_methods/infer_spec.rb:5
>   Axiom::Types.finalize
>     0.00058 seconds average (0.00058 seconds / 1 example) ./spec/unit/axiom/types/class_methods/finalize_spec.rb:5
>   Axiom::Types::Set.infer
>     0.00056 seconds average (0.00896 seconds / 16 examples) ./spec/unit/axiom/types/set/class_methods/infer_spec.rb:5
>   Axiom::Types::ValueComparable#range
>     0.00055 seconds average (0.0011 seconds / 2 examples) ./spec/unit/axiom/types/value_comparable/range_spec.rb:5
> 
> Finished in 0.25994 seconds (files took 0.19747 seconds to load)
> 558 examples, 1 failure
> 
> Failed examples:
> 
> rspec ./spec/unit/axiom/types/class_methods/finalize_spec.rb:13 # Axiom::Types.finalize finalizes the descendants
> 
> Randomized with seed 34160
> 
> /usr/bin/ruby3.0 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.10.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby3.0" failed: 


The full build log is available from:
http://qa-logs.debian.net/2022/02/18/ruby-axiom-types_0.1.1-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



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