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

Lucas Nussbaum lucas at debian.org
Sat Feb 19 06:36:27 GMT 2022


Source: ruby-pygments.rb
Version: 2.3.0+ds-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

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


Relevant part (hopefully):
> /usr/bin/ruby3.0 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.0                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.0.0:/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\ \"pygments.rb\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.0 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.0.0:/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/share/rubygems-integration/all/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/test_pygments.rb" -v
> Loaded suite /usr/share/rubygems-integration/all/gems/rake-13.0.6/lib/rake/rake_test_loader
> Started
> PygmentsConfigTest: 
>   test_filters:						.: (0.147586)
>   test_formatters:					.: (0.010482)
>   test_lexers:						.: (0.021429)
>   test_styles:						.: (0.000445)
> PygmentsCssTest: 
>   test_css:						.: (0.001387)
>   test_css_colorful:					.: (0.001078)
>   test_css_default:					F
> ===============================================================================
> Failure: test_css_default(PygmentsCssTest):
>   </\.c\ \{\ color:\ \#408080;\ font\-style:\ italic\ \}/> was expected to be =~
>   <"pre { line-height: 125%; }\n" +
>   "td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }\n" +
>   "span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }\n" +
>   "td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }\n" +
>   "span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }\n" +
>   ".hll { background-color: #ffffcc }\n" +
>   ".c { color: #3D7B7B; font-style: italic } /* Comment */\n" +
>   ".err { border: 1px solid #FF0000 } /* Error */\n" +
>   ".k { color: #008000; font-weight: bold } /* Keyword */\n" +
>   ".o { color: #666666 } /* Operator */\n" +
>   ".ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */\n" +
>   ".cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */\n" +
>   ".cp { color: #9C6500 } /* Comment.Preproc */\n" +
>   ".cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */\n" +
>   ".c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */\n" +
>   ".cs { color: #3D7B7B; font-style: italic } /* Comment.Special */\n" +
>   ".gd { color: #A00000 } /* Generic.Deleted */\n" +
>   ".ge { font-style: italic } /* Generic.Emph */\n" +
>   ".gr { color: #E40000 } /* Generic.Error */\n" +
>   ".gh { color: #000080; font-weight: bold } /* Generic.Heading */\n" +
>   ".gi { color: #008400 } /* Generic.Inserted */\n" +
>   ".go { color: #717171 } /* Generic.Output */\n" +
>   ".gp { color: #000080; font-weight: bold } /* Generic.Prompt */\n" +
>   ".gs { font-weight: bold } /* Generic.Strong */\n" +
>   ".gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n" +
>   ".gt { color: #0044DD } /* Generic.Traceback */\n" +
>   ".kc { color: #008000; font-weight: bold } /* Keyword.Constant */\n" +
>   ".kd { color: #008000; font-weight: bold } /* Keyword.Declaration */\n" +
>   ".kn { color: #008000; font-weight: bold } /* Keyword.Namespace */\n" +
>   ".kp { color: #008000 } /* Keyword.Pseudo */\n" +
>   ".kr { color: #008000; font-weight: bold } /* Keyword.Reserved */\n" +
>   ".kt { color: #B00040 } /* Keyword.Type */\n" +
>   ".m { color: #666666 } /* Literal.Number */\n" +
>   ".s { color: #BA2121 } /* Literal.String */\n" +
>   ".na { color: #687822 } /* Name.Attribute */\n" +
>   ".nb { color: #008000 } /* Name.Builtin */\n" +
>   ".nc { color: #0000FF; font-weight: bold } /* Name.Class */\n" +
>   ".no { color: #880000 } /* Name.Constant */\n" +
>   ".nd { color: #AA22FF } /* Name.Decorator */\n" +
>   ".ni { color: #717171; font-weight: bold } /* Name.Entity */\n" +
>   ".ne { color: #CB3F38; font-weight: bold } /* Name.Exception */\n" +
>   ".nf { color: #0000FF } /* Name.Function */\n" +
>   ".nl { color: #767600 } /* Name.Label */\n" +
>   ".nn { color: #0000FF; font-weight: bold } /* Name.Namespace */\n" +
>   ".nt { color: #008000; font-weight: bold } /* Name.Tag */\n" +
>   ".nv { color: #19177C } /* Name.Variable */\n" +
>   ".ow { color: #AA22FF; font-weight: bold } /* Operator.Word */\n" +
>   ".w { color: #bbbbbb } /* Text.Whitespace */\n" +
>   ".mb { color: #666666 } /* Literal.Number.Bin */\n" +
>   ".mf { color: #666666 } /* Literal.Number.Float */\n" +
>   ".mh { color: #666666 } /* Literal.Number.Hex */\n" +
>   ".mi { color: #666666 } /* Literal.Number.Integer */\n" +
>   ".mo { color: #666666 } /* Literal.Number.Oct */\n" +
>   ".sa { color: #BA2121 } /* Literal.String.Affix */\n" +
>   ".sb { color: #BA2121 } /* Literal.String.Backtick */\n" +
>   ".sc { color: #BA2121 } /* Literal.String.Char */\n" +
>   ".dl { color: #BA2121 } /* Literal.String.Delimiter */\n" +
>   ".sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */\n" +
>   ".s2 { color: #BA2121 } /* Literal.String.Double */\n" +
>   ".se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */\n" +
>   ".sh { color: #BA2121 } /* Literal.String.Heredoc */\n" +
>   ".si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */\n" +
>   ".sx { color: #008000 } /* Literal.String.Other */\n" +
>   ".sr { color: #A45A77 } /* Literal.String.Regex */\n" +
>   ".s1 { color: #BA2121 } /* Literal.String.Single */\n" +
>   ".ss { color: #19177C } /* Literal.String.Symbol */\n" +
>   ".bp { color: #008000 } /* Name.Builtin.Pseudo */\n" +
>   ".fm { color: #0000FF } /* Name.Function.Magic */\n" +
>   ".vc { color: #19177C } /* Name.Variable.Class */\n" +
>   ".vg { color: #19177C } /* Name.Variable.Global */\n" +
>   ".vi { color: #19177C } /* Name.Variable.Instance */\n" +
>   ".vm { color: #19177C } /* Name.Variable.Magic */\n" +
>   ".il { color: #666666 } /* Literal.Number.Integer.Long */">.
> /<<PKGBUILDDIR>>/test/test_pygments.rb:216:in `test_css_default'
>      213:   end
>      214: 
>      215:   def test_css_default
>   => 216:     assert_match '.c { color: #408080; font-style: italic }', P.css
>      217:   end
>      218: 
>      219:   def test_css_colorful
> ===============================================================================
> : (0.011409)
>   test_css_options:					.: (0.001353)
>   test_css_prefix:					.: (0.000749)
>   test_css_prefix_and_options:				.: (0.000665)
> PygmentsHighlightTest: 
>   test_full_html_highlight:				.: (0.149303)
>   test_highlight_defaults_to_html:			.: (0.002343)
>   test_highlight_formatter_bbcode:			F
> ===============================================================================
> Failure: test_highlight_formatter_bbcode(PygmentsHighlightTest):
>   </color=\#408080\]\[i\]\#!\/usr\/bin\/ruby\[\/i\]/> was expected to be =~
>   <"[color=#3D7B7B][i]#!/usr/bin/ruby[/i][/color]\n" +
>   "[color=#008000]puts[/color] [color=#BA2121]'foo'[/color]">.
> /<<PKGBUILDDIR>>/test/test_pygments.rb:74:in `test_highlight_formatter_bbcode'
>      71: 
>      72:   def test_highlight_formatter_bbcode
>      73:     code = P.highlight(RUBY_CODE, formatter: 'bbcode')
>   => 74:     assert_match 'color=#408080][i]#!/usr/bin/ruby[/i]', code
>      75:   end
>      76: 
>      77:   def test_highlight_formatter_terminal
> ===============================================================================
> : (0.007247)
>   test_highlight_formatter_terminal:			.: (0.002015)
>   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.000704)
>   test_highlight_options:				.: (0.002192)
>   test_highlight_still_works_with_invalid_code:		.: (0.040236)
>   test_highlight_works_on_utf8:				.: (0.001040)
>   test_highlight_works_on_utf8_all_chars_automatically:	.: (0.000790)
>   test_highlight_works_on_utf8_automatically:		.: (0.000660)
>   test_highlight_works_with_larger_files:		.: (0.028620)
>   test_highlight_works_with_multiple_newlines:		.: (0.002402)
>   test_highlight_works_with_multiple_utf8:		.: (0.001161)
>   test_highlight_works_with_multiple_utf8_and_trailing_newline:	.: (0.001045)
>   test_highlight_works_with_null_bytes:			.: (0.000767)
>   test_highlight_works_with_trailing_cr:		.: (0.002462)
>   test_highlight_works_with_trailing_newline:		.: (0.002045)
>   test_version:						.: (0.000298)
> PygmentsLexerClassTest: 
>   test_find:						.: (0.000204)
>   test_find_by_alias:					.: (0.000093)
>   test_find_by_name:					.: (0.000045)
>   test_find_lexer_by_extname:				F
> ===============================================================================
> Failure: test_find_lexer_by_extname(PygmentsLexerClassTest)
> /<<PKGBUILDDIR>>/test/test_pygments.rb:184:in `test_find_lexer_by_extname'
>      181:     assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php4')
>      182:     assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php5')
>      183:     assert_equal P::Lexer['Groff'], P::Lexer.find_by_extname('.1')
>   => 184:     assert_equal P::Lexer['Groff'], P::Lexer.find_by_extname('.3')
>      185:     assert_equal P::Lexer['C'], P::Lexer.find_by_extname('.c')
>      186:     assert_equal P::Lexer['Python'], P::Lexer.find_by_extname('.py')
>      187:     assert_equal P::Lexer['Java'], P::Lexer.find_by_extname('.java')
> <#<struct Pygments::Lexer
>  name="Groff",
>  aliases=["groff", "nroff", "man"],
>  filenames=["*.[1-9]", "*.man", "*.1p", "*.3pm"],
>  mimetypes=["application/x-troff", "text/troff"]>> expected but was
> <nil>
> 
> diff:
> - #<struct Pygments::Lexer
> ?  name="Groff",
> ?   il          
> -  aliases=["groff", "nroff", "man"],
> -  filenames=["*.[1-9]", "*.man", "*.1p", "*.3pm"],
> -  mimetypes=["application/x-troff", "text/troff"]>
> ===============================================================================
> : (0.005632)
>   test_find_lexer_by_mimetype:				.: (0.000089)
> PygmentsLexerTest: 
>   test_lexer_by_content:				.: (0.001437)
>   test_lexer_by_filename:				.: (0.383108)
>   test_lexer_by_filename_and_content:			.: (0.011579)
>   test_lexer_by_mimetype:				.: (0.000800)
>   test_lexer_by_name:					.: (0.008988)
>   test_lexer_by_nothing:				.: (0.002071)
> 
> Finished in 0.863835943 seconds.
> -------------------------------------------------------------------------------
> 39 tests, 58 assertions, 3 failures, 0 errors, 0 pendings, 1 omissions, 0 notifications
> 92.1053% passed
> -------------------------------------------------------------------------------
> 45.15 tests/s, 67.14 assertions/s
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/test_pygments.rb" -v]
> /usr/share/rubygems-integration/all/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed.


The full build log is available from:
http://qa-logs.debian.net/2022/02/18/ruby-pygments.rb_2.3.0+ds-2_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!

If you reassign this bug to another package, please marking 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