[DRE-maint] Bug#996303: ruby-json-jwt: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: Failure/Error:

Antonio Terceiro terceiro at debian.org
Tue Oct 12 23:33:44 BST 2021


Source: ruby-json-jwt
Version: 1.11.0-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-json-jwt 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):
>      Failure/Error:
>        jws_blank.to_json(syntax: :flattened).should == {
>          protected: Base64.urlsafe_encode64(jws_blank.header.to_json, padding: false),
>          payload: '',
>          signature: Base64.urlsafe_encode64('', padding: false)
>        }.to_json
> 
>        expected: "{\"protected\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9\",\"payload\":\"\",\"signature\":\"\"}"
>             got: "{}" (using ==)
>      # ./spec/json/jws_spec.rb:429:in `block (7 levels) in <top (required)>'
> 
> Finished in 1.98 seconds (files took 2.47 seconds to load)
> 360 examples, 8 failures, 6 pending
> 
> Failed examples:
> 
> rspec ./spec/json/jws_spec.rb:356 # JSON::JWS#to_json when syntax option given when general should return General JWS JSON Serialization
> rspec ./spec/json/jws_spec.rb:366 # JSON::JWS#to_json when syntax option given when general with blank payload should return General JWS JSON Serialization
> rspec ./spec/json/jws_spec.rb:378 # JSON::JWS#to_json when syntax option given when general when not signed yet should not fail
> rspec ./spec/json/jws_spec.rb:388 # JSON::JWS#to_json when syntax option given when general when not signed yet with blank payload should not fail
> rspec ./spec/json/jws_spec.rb:402 # JSON::JWS#to_json when syntax option given when flattened should return Flattened JWS JSON Serialization
> rspec ./spec/json/jws_spec.rb:410 # JSON::JWS#to_json when syntax option given when flattened with blank payload should return Flattened JWS JSON Serialization
> rspec ./spec/json/jws_spec.rb:420 # JSON::JWS#to_json when syntax option given when flattened when not signed yet should not fail
> rspec ./spec/json/jws_spec.rb:428 # JSON::JWS#to_json when syntax option given when flattened when not signed yet with blank payload should not fail
> 
> /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-json-jwt/ruby-json-jwt_1.11.0-1+rebuild1633384555_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/2002e9b9/attachment.sig>


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