[Debian-med-packaging] Bug#1092702: ruby-rgfa: FTBFS with ruby3.3: ERROR: Test "ruby3.3" failed: Error: test_field_writer_H(TestRGFAFieldWriter): NoMethodError: undefined method `trust' for an instance of RGFA::ByteArray
Antonio Terceiro
terceiro at debian.org
Fri Jan 10 18:16:02 GMT 2025
Source: ruby-rgfa
Version: 1.3.1+dfsg-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.3
Hi,
The ruby3.3 transition has started on unstable. During a test rebuild,
ruby-rgfa failed to build.
Relevant part (hopefully):
> Error: test_field_writer_H(TestRGFAFieldWriter): NoMethodError: undefined method `trust' for an instance of RGFA::ByteArray
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/byte_array.rb:21:in `validate!'
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/byte_array.rb:36:in `to_s'
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/field_writer.rb:83:in `to_gfa_field'
> /<<PKGBUILDDIR>>/test/test_rgfa_field_writer.rb:19:in `test_field_writer_H'
> 16: end
> 17:
> 18: def test_field_writer_H
> => 19: assert_equal("0D0D0D", [13,13,13].to_byte_array.to_gfa_field)
> 20: assert_raise(RGFA::ByteArray::ValueError) do
> 21: [13,13,1.3].to_byte_array.to_gfa_field
> 22: end
> ===============================================================================
> F
> ===============================================================================
> Failure: test_field_writer_as_optfield(TestRGFAFieldWriter)
> /<<PKGBUILDDIR>>/test/test_rgfa_field_writer.rb:42:in `test_field_writer_as_optfield'
> 39: end
> 40:
> 41: def test_field_writer_as_optfield
> => 42: assert_equal("AA:i:13", 13.to_gfa_optfield(:AA))
> 43: end
> 44:
> 45: end
> <"AA:i:13"> expected but was
> <"AA:Z:13">
>
> diff:
> ? AA:i:13
> ? Z
> ? ?
> ===============================================================================
> E
> ===============================================================================
> Error: test_field_setters_existing_optional_fields(TestRGFALine):
> RGFA::FieldParser::FormatError: Wrong type (Integer) for field xx
> Content: 13
> Datatype: i
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/field_validator.rb:82:in `validate_gfa_field!'
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/line.rb:351:in `get'
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/line.rb:421:in `method_missing'
> /<<PKGBUILDDIR>>/test/test_rgfa_line.rb:137:in `test_field_setters_existing_optional_fields'
> 134:
> 135: def test_field_setters_existing_optional_fields
> 136: l = RGFA::Line::Header.new(["xx:i:13","VN:Z:HI"], validate: 5)
> => 137: assert_equal(13, l.xx)
> 138: l.xx = 15
> 139: assert_equal(15, l.xx)
> 140: assert_raise(RGFA::FieldParser::FormatError) { l.xx = "1A" }
> ===============================================================================
> F
> ===============================================================================
> Failure: test_field_setters_not_existing_optional_fields(TestRGFALine)
> /<<PKGBUILDDIR>>/test/test_rgfa_line.rb:154:in `test_field_setters_not_existing_optional_fields'
> 151: assert_equal(:"Z", l.zz.default_gfa_datatype)
> 152: assert_nothing_raised { l.zi=1 }
> 153: assert_equal(1, l.zi)
> => 154: assert_equal(:"i", l.zi.default_gfa_datatype)
> 155: assert_nothing_raised { l.zf=1.0 }
> 156: assert_equal(1.0, l.zf)
> 157: assert_equal(:"f", l.zf.default_gfa_datatype)
> <:i> expected but was
> <:Z>
>
> diff:
> ? :i
> ? Z
> ? ?
> ===============================================================================
> E
> ===============================================================================
> Error: test_header_add(TestRGFALineCreators):
> RGFA::FieldParser::FormatError: Wrong type (Integer) for field aa
> Content: 15
> Datatype: i
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/field_validator.rb:82:in `validate_gfa_field!'
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/field_array.rb:47:in `push_with_validation'
> /<<PKGBUILDDIR>>/debian/ruby-rgfa/usr/lib/ruby/vendor_ruby/rgfa/line/header.rb:40:in `add'
> /<<PKGBUILDDIR>>/test/test_rgfa_line_creators.rb:120:in `test_header_add'
> 117: gfa << "H\tVN:Z:1.0"
> 118: gfa << "H\taa:i:12\tab:Z:test1"
> 119: gfa << "H\tac:Z:test2"
> => 120: gfa.header.add(:aa, 15)
> 121: assert_equal(
> 122: [
> 123: "H\tVN:Z:1.0",
> ===============================================================================
> Finished in 0.06644646 seconds.
> -------------------------------------------------------------------------------
> 139 tests, 570 assertions, 3 failures, 4 errors, 0 pendings, 0 omissions, 0 notifications
> 94.964% passed
> -------------------------------------------------------------------------------
> 2091.91 tests/s, 8578.34 assertions/s
> ERROR: Test "ruby3.3" failed:
The full build log is available at
https://people.debian.org/~terceiro/ruby3.3/ruby-rgfa_1.3.1+dfsg-2+rebuild1736519441_amd64.build
-------------- 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/debian-med-packaging/attachments/20250110/d464accd/attachment.sig>
More information about the Debian-med-packaging
mailing list