[DRE-maint] Bug#952084: ruby-twitter-text: FTBFS: ERROR: Test "ruby2.7" failed: Failure/Error:

Lucas Nussbaum lucas at debian.org
Sun Feb 23 07:47:07 GMT 2020


Source: ruby-twitter-text
Version: 1.14.7+conformance-1
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20200222 ftbfs-buster

Hi,

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

Relevant part (hopefully):
>      Failure/Error:
>        @to_char_a ||= if chars.kind_of?(Enumerable)
>          chars.to_a
>        else
>          char_array = []
>          0.upto(char_length - 1) { |i| char_array << [chars.slice(i)].pack('U') }
>          char_array
> 
>      FrozenError:
>        can't modify frozen String: ""
>      # /<<PKGBUILDDIR>>/lib/twitter-text/extractor.rb:17:in `to_char_a'
>      # /<<PKGBUILDDIR>>/lib/twitter-text/rewriter.rb:5:in `rewrite_entities'
>      # /<<PKGBUILDDIR>>/lib/twitter-text/rewriter.rb:57:in `rewrite_urls'
>      # /<<PKGBUILDDIR>>/lib/twitter-text/deprecation.rb:11:in `block in deprecate'
>      # /<<PKGBUILDDIR>>/spec/rewriter_spec.rb:341:in `block (3 levels) in <top (required)>'
> 
> Deprecation Warnings:
> 
> Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /<<PKGBUILDDIR>>/spec/autolinking_spec.rb:22:in `block (5 levels) in <top (required)>'.
> 
> `failure_message_for_should_not` is deprecated. Use `failure_message_when_negated` instead. Called from /<<PKGBUILDDIR>>/spec/spec_helper.rb:73:in `block in <top (required)>'.
> `failure_message_for_should_not` is deprecated. Use `failure_message_when_negated` instead. Called from /<<PKGBUILDDIR>>/spec/spec_helper.rb:100:in `block in <top (required)>'.
> `failure_message_for_should_not` is deprecated. Use `failure_message_when_negated` instead. Called from /<<PKGBUILDDIR>>/spec/spec_helper.rb:125:in `block in <top (required)>'.
> 
> `failure_message_for_should` is deprecated. Use `failure_message` instead. Called from /<<PKGBUILDDIR>>/spec/spec_helper.rb:65:in `block in <top (required)>'.
> `failure_message_for_should` is deprecated. Use `failure_message` instead. Called from /<<PKGBUILDDIR>>/spec/spec_helper.rb:92:in `block in <top (required)>'.
> `failure_message_for_should` is deprecated. Use `failure_message` instead. Called from /<<PKGBUILDDIR>>/spec/spec_helper.rb:117:in `block in <top (required)>'.
> Too many uses of deprecated '`failure_message_for_should`'. Pass `--deprecation-out` or set `config.deprecation_stream` to a file for full output.
> 
> 
> If you need more of the backtrace for any of these deprecations to
> identify where to make the necessary changes, you can configure
> `config.raise_errors_for_deprecations!`, and it will turn the
> deprecation warnings into errors, giving you the full backtrace.
> 
> 9 deprecation warnings total
> 
> Finished in 0.15979 seconds (files took 0.39763 seconds to load)
> 524 examples, 5 failures
> 
> Failed examples:
> 
> rspec /<<PKGBUILDDIR>>/spec/hithighlighter_spec.rb:50 # Twitter::HitHighlighter highlight without links should correctly highlight last-word hits
> rspec /<<PKGBUILDDIR>>/spec/hithighlighter_spec.rb:80 # Twitter::HitHighlighter highlight with links should fail gracefully with bad hits
> rspec /<<PKGBUILDDIR>>/spec/hithighlighter_spec.rb:84 # Twitter::HitHighlighter highlight with links should not mess up with touching tags
> rspec /<<PKGBUILDDIR>>/spec/rewriter_spec.rb:453 # Twitter::Rewriter rewrite urls with a URL ending in allowed punctuation does not consume ending punctuation
> rspec /<<PKGBUILDDIR>>/spec/rewriter_spec.rb:463 # Twitter::Rewriter rewrite urls with a URL preceded in forbidden characters should be rewritten
> 
> Coverage report generated for RSpec to /<<PKGBUILDDIR>>/coverage. 1111 / 1180 LOC (94.15%) covered.
> SimpleCov failed with exit 1
> /usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.2/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby2.7" failed: 

The full build log is available from:
   http://qa-logs.debian.net/2020/02/22/ruby-twitter-text_1.14.7+conformance-1_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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



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