[DRE-maint] Bug#1028726: ruby-pygments.rb: FTBFS: ERROR: Test "ruby3.1" failed.

Lucas Nussbaum lucas at debian.org
Sat Jan 14 12:36:39 GMT 2023


Source: ruby-pygments.rb
Version: 2.3.0+ds-2.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230113 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.1                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -e gem\ \"pygments.rb\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby3.1 -w -I"test" /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/test_pygments.rb"  -v
> Loaded suite /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader
> Started
> PygmentsConfigTest: 
>   test_filters:						.: (0.062287)
>   test_formatters:					.: (0.008841)
>   test_lexers:						.: (0.027062)
>   test_styles:						.: (0.001371)
> PygmentsCssTest: 
>   test_css:						.: (0.001736)
>   test_css_colorful:					.: (0.001309)
>   test_css_default:					.: (0.000726)
>   test_css_options:					.: (0.000693)
>   test_css_prefix:					.: (0.000903)
>   test_css_prefix_and_options:				.: (0.001226)
> PygmentsHighlightTest: 
>   test_full_html_highlight:				F
> ===============================================================================
> Failure: test_full_html_highlight(PygmentsHighlightTest)
> /<<PKGBUILDDIR>>/test/test_pygments.rb:31:in `test_full_html_highlight'
>      28:   def test_full_html_highlight
>      29:     code = P.highlight(RUBY_CODE)
>      30:     assert_match '<span class="ch">#!/usr/bin/ruby</span>', code
>   => 31:     assert_equal %(<div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/ruby</span>
>      32: <span class="nb">puts</span> <span class="s1">'foo'</span>
>      33: </pre></div>), code
>      34:   end
> <"<div class=\"highlight\"><pre><span></span><span class=\"ch\">#!/usr/bin/ruby</span>\n" +
> "<span class=\"nb\">puts</span> <span class=\"s1\">'foo'</span>\n" +
> "</pre></div>"> expected but was
> <"<div class=\"highlight\"><pre><span></span><span class=\"ch\">#!/usr/bin/ruby</span>\n" +
> "<span class=\"nb\">puts</span><span class=\"w\"> </span><span class=\"s1\">'foo'</span>\n" +
> "</pre></div>">
> 
> diff:
>   <div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/ruby</span>
> ? <span class="nb">puts</span> <span class="w"> </span><span class="s1">'foo'</span>
>   </pre></div>
> ===============================================================================
> : (0.164795)
>   test_highlight_defaults_to_html:			.: (0.003854)
>   test_highlight_formatter_bbcode:			.: (0.001730)
>   test_highlight_formatter_terminal:			.: (0.001643)
>   test_highlight_on_multi_threads:			O
> ===============================================================================
> Omission: We do not actually support multithreading [test_highlight_on_multi_threads(PygmentsHighlightTest)]
> /<<PKGBUILDDIR>>/test/test_pygments.rb:114:in `test_highlight_on_multi_threads'
> ===============================================================================
> : (0.000897)
>   test_highlight_options:				.: (0.001943)
>   test_highlight_still_works_with_invalid_code:		.: (0.041074)
>   test_highlight_works_on_utf8:				.: (0.001257)
>   test_highlight_works_on_utf8_all_chars_automatically:	.: (0.000899)
>   test_highlight_works_on_utf8_automatically:		.: (0.000752)
>   test_highlight_works_with_larger_files:		.: (0.036969)
>   test_highlight_works_with_multiple_newlines:		.: (0.002116)
>   test_highlight_works_with_multiple_utf8:		.: (0.000853)
>   test_highlight_works_with_multiple_utf8_and_trailing_newline:	.: (0.000987)
>   test_highlight_works_with_null_bytes:			.: (0.000768)
>   test_highlight_works_with_trailing_cr:		.: (0.001734)
>   test_highlight_works_with_trailing_newline:		.: (0.001614)
>   test_version:						.: (0.000295)
> PygmentsLexerClassTest: 
>   test_find:						.: (0.000218)
>   test_find_by_alias:					.: (0.000092)
>   test_find_by_name:					.: (0.000062)
>   test_find_lexer_by_extname:				.: (0.000110)
>   test_find_lexer_by_mimetype:				.: (0.000059)
> PygmentsLexerTest: 
>   test_lexer_by_content:				.: (0.001211)
>   test_lexer_by_filename:				.: (0.340779)
>   test_lexer_by_filename_and_content:			.: (0.019132)
>   test_lexer_by_mimetype:				.: (0.000771)
>   test_lexer_by_name:					.: (0.017544)
>   test_lexer_by_nothing:				.: (0.003403)
> 
> Finished in 0.757813417 seconds.
> -------------------------------------------------------------------------------
> 39 tests, 60 assertions, 1 failures, 0 errors, 0 pendings, 1 omissions, 0 notifications
> 97.3684% passed
> -------------------------------------------------------------------------------
> 51.46 tests/s, 79.18 assertions/s
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/test_pygments.rb"  -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.1" failed.


The full build log is available from:
http://qa-logs.debian.net/2023/01/13/ruby-pygments.rb_2.3.0+ds-2.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230113;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230113&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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 mark 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