[DRE-maint] Bug#996234: ruby-github-markup: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed.

Antonio Terceiro terceiro at debian.org
Tue Oct 12 13:22:38 BST 2021


Source: ruby-github-markup
Version: 1.7.0+dfsg-3
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-github-markup 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):
> /usr/bin/ruby3.0 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.0                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-github-markup/usr/share/rubygems-integration/all:/var/lib/gems/3.0.0:/usr/local/lib/ruby/gems/3.0.0:/usr/lib/ruby/gems/3.0.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0:/usr/share/rubygems-integration/3.0.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0 ruby3.0 -e gem\ \"github-markup\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.0 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-github-markup/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-github-markup/usr/share/rubygems-integration/all:/var/lib/gems/3.0.0:/usr/local/lib/ruby/gems/3.0.0:/usr/lib/ruby/gems/3.0.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0:/usr/share/rubygems-integration/3.0.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0 ruby3.0 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby3.0 -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/markup_test.rb" -v
> <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85: warning: <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85: warning: loading in progress, circular require considered harmful - /usr/lib/ruby/vendor_ruby/posix/spawn.rb
> 	from /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:5:in  `<main>'
> 	from /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:5:in  `select'
> 	from /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:17:in  `block in <main>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from /<<PKGBUILDDIR>>/test/markup_test.rb:5:in  `<top (required)>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from /<<PKGBUILDDIR>>/lib/github/markup.rb:7:in  `<top (required)>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from /<<PKGBUILDDIR>>/lib/github/markup/command_implementation.rb:2:in  `<top (required)>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from /usr/lib/ruby/vendor_ruby/posix-spawn.rb:1:in  `<top (required)>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from /usr/lib/ruby/vendor_ruby/posix/spawn.rb:6:in  `<top (required)>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from /usr/lib/ruby/vendor_ruby/posix/spawn/child.rb:1:in  `<top (required)>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in  `require'
> 
> Run options: -v --seed 31115
> 
> # Running:
> 
> MarkupTest#test_noformat = 0.05 s = .
> MarkupTest#test_pod = /usr/lib/ruby/vendor_ruby/posix/spawn.rb:532: warning: deprecated Object#=~ is called on Array; it always returns nil
> 0.12 s = .
> MarkupTest#test_rst.txt = 0.46 s = .
> MarkupTest#test_each_render_has_a_name = 0.00 s = .
> MarkupTest#test_textile = 0.12 s = .
> MarkupTest#test_rdoc = 0.14 s = .
> MarkupTest#test_preserve_markup = 0.38 s = .
> MarkupTest#test_creole = /usr/lib/ruby/vendor_ruby/creole/parser.rb:255: warning: character class has duplicated range: /\A([:alpha:]|[:digit:])+/
> 0.09 s = .
> MarkupTest#test_directives.rst = 0.66 s = .
> MarkupTest#test_asciidoc = 0.33 s = .
> MarkupTest#test_litcoffee = 0.06 s = F
> MarkupTest#test_rendering_by_symbol = 0.00 s = .
> MarkupTest#test_rmd = 0.01 s = .
> MarkupTest#test_markdown = 0.02 s = .
> MarkupTest#test_toc.rst = 0.52 s = .
> MarkupTest#test_org = /usr/lib/ruby/vendor_ruby/org-ruby/output_buffer.rb:291: warning: method redefined; discarding old output_footnotes!
> /usr/lib/ruby/vendor_ruby/org-ruby/output_buffer.rb:249: warning: previous definition of output_footnotes! was here
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:243: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:246: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:249: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:253: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:322: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:323: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:324: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:328: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:329: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:330: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:344: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> /usr/lib/ruby/vendor_ruby/org-ruby/html_output_buffer.rb:381: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
> 0.34 s = .
> MarkupTest#test_txt = 0.05 s = .
> MarkupTest#test_rst = 0.75 s = .
> MarkupTest#test_knows_what_it_can_and_cannot_render = 0.00 s = .
> 
> Finished in 4.098508s, 4.6358 runs/s, 11.4676 assertions/s.
> 
>   1) Failure:
> MarkupTest#test_litcoffee [/<<PKGBUILDDIR>>/test/markup_test.rb:71]:
> README.litcoffee.html's contents are not html equal to output:
> --- -	2021-10-04 20:58:21.733529273 +0000
> +++ test/markups/README.litcoffee.html	2018-12-04 16:56:49.000000000 +0000
> @@ -1,43 +1,28 @@
>  <h2>Literate CoffeeScript Test</h2>
> -
>  <blockquote>
> -<p>Taken from https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</p>
> +<p>Taken from <a href="https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee">https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</a></p>
>  </blockquote>
> -
>  <p>comment comment</p>
> -
>  <pre><code>test "basic literate CoffeeScript parsing", ->
>    ok yes
>  </code></pre>
> -
>  <p>now with a...</p>
> -
>  <pre><code>test "broken up indentation", ->
>  </code></pre>
> -
>  <p>... broken up ...</p>
> -
>  <pre><code>  do ->
>  </code></pre>
> -
>  <p>... nested block.</p>
> -
>  <pre><code>    ok yes
>  </code></pre>
> -
>  <p>Code must be separated from text by a blank line.</p>
> -
>  <pre><code>test "code blocks must be preceded by a blank line", ->
>  </code></pre>
> -
>  <p>The next line is part of the text and will not be executed.
> -      fail()</p>
> -
> +fail()</p>
>  <pre><code>  ok yes
>  </code></pre>
> -
>  <p>Code in <code>backticks is not parsed</code> and...</p>
> -
>  <pre><code>test "comments in indented blocks work", ->
>    do ->
>      do ->
> @@ -49,18 +34,22 @@
>  
>        ok yes
>  </code></pre>
> -
>  <p>Regular <a href="http://example.com/markdown">Markdown</a> features,
>  like links and unordered lists, are fine:</p>
> -
>  <ul>
> -<li><p>I</p></li>
> -<li><p>Am</p></li>
> -<li><p>A</p></li>
> -<li><p>List</p></li>
> +<li>
> +<p>I</p>
> +</li>
> +<li>
> +<p>Am</p>
> +</li>
> +<li>
> +<p>A</p>
> +</li>
> +<li>
> +<p>List</p>
> +</li>
>  </ul>
> -
>  <p>Tabs work too:</p>
> -
>  <p>test "tabbed code", ->
> -    ok yes</p>
> \ No newline at end of file
> +ok yes</p>
> 
> 
> 
> 19 runs, 47 assertions, 1 failures, 0 errors, 0 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/markup_test.rb" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed.


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-github-markup/ruby-github-markup_1.7.0+dfsg-3+rebuild1633381029_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/08900776/attachment.sig>


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