#1028620 ruby-pygments: autopkgtest is failng after updating pygments to 2.14.0+dfsg-1

#1028620#5
Date:
2023-01-13 18:26:07 UTC
From:
To:
Dear Maintainer,

after the upload of pygments 2.14.0+dfsg-1 your package is failung while
running the autopkgtest.

The failed part in detail is:

RUBYLIB=. GEM_PATH= ruby3.1 -S rake -f debian/ruby-tests.rake
mv lib ./.gem2deb.lib
/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.064462)
  test_formatters:					.: (0.006962)
  test_lexers:						.: (0.021366)
  test_styles:						.: (0.000854)
PygmentsCssTest:
  test_css:						.: (0.001624)
  test_css_colorful:					.: (0.001286)
  test_css_default:					.: (0.000903)
  test_css_options:					.: (0.000823)
  test_css_prefix:					.: (0.000833)
  test_css_prefix_and_options:				.: (0.000772)
PygmentsHighlightTest:
  test_full_html_highlight:				F
===============================================================================
Failure: test_full_html_highlight(PygmentsHighlightTest)
/tmp/autopkgtest-lxc.wcymigwk/downtmp/build.qG9/src/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.154840)
  test_highlight_defaults_to_html:			.: (0.002140)
  test_highlight_formatter_bbcode:			.: (0.001620)
  test_highlight_formatter_terminal:			.: (0.001277)
  test_highlight_on_multi_threads:			O
===============================================================================
Omission: We do not actually support multithreading [test_highlight_on_multi_threads(PygmentsHighlightTest)]
/tmp/autopkgtest-lxc.wcymigwk/downtmp/build.qG9/src/test/test_pygments.rb:114:in `test_highlight_on_multi_threads'
===============================================================================
: (0.000826)
  test_highlight_options:				.: (0.001922)
  test_highlight_still_works_with_invalid_code:		.: (0.046896)
  test_highlight_works_on_utf8:				.: (0.000949)
  test_highlight_works_on_utf8_all_chars_automatically:	.: (0.000811)
  test_highlight_works_on_utf8_automatically:		.: (0.000834)
  test_highlight_works_with_larger_files:		.: (0.033287)
  test_highlight_works_with_multiple_newlines:		.: (0.001873)
  test_highlight_works_with_multiple_utf8:		.: (0.000864)
  test_highlight_works_with_multiple_utf8_and_trailing_newline:	.: (0.000906)
  test_highlight_works_with_null_bytes:			.: (0.000902)
  test_highlight_works_with_trailing_cr:		.: (0.001775)
  test_highlight_works_with_trailing_newline:		.: (0.001717)
  test_version:						.: (0.000343)
PygmentsLexerClassTest:
  test_find:						.: (0.000268)
  test_find_by_alias:					.: (0.000152)
  test_find_by_name:					.: (0.000124)
  test_find_lexer_by_extname:				.: (0.000178)
  test_find_lexer_by_mimetype:				.: (0.000122)
PygmentsLexerTest:
  test_lexer_by_content:				.: (0.001258)
  test_lexer_by_filename:				.: (0.420205)
  test_lexer_by_filename_and_content:			.: (0.084091)
  test_lexer_by_mimetype:				.: (0.000676)
  test_lexer_by_name:					.: (0.014858)
  test_lexer_by_nothing:				.: (0.002577)

Finished in 0.881532932 seconds.
-------------------------------------------------------------------------------
39 tests, 60 assertions, 1 failures, 0 errors, 0 pendings, 1 omissions, 0 notifications
97.3684% passed
-------------------------------------------------------------------------------
44.24 tests/s, 68.06 assertions/s

Updating to 2.3.1 and adding this commit might solve this issue.

https://github.com/pygments/pygments.rb/commit/fe03c274a4b01fc9657a90dba5f16b3e9401082a

Regards
Carsten

#1028620#20
Date:
2023-01-20 08:54:02 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for ruby-pygments.rb (versioned as 2.3.0+ds-2.2). The diff
is attached to this message.

Regards.

#1028620#27
Date:
2023-01-20 09:06:30 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ruby-pygments.rb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1028620@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Sprickerhof <jspricke@debian.org> (supplier of updated ruby-pygments.rb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 20 Jan 2023 09:51:53 +0100
Source: ruby-pygments.rb
Architecture: source
Version: 2.3.0+ds-2.2
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Changed-By: Jochen Sprickerhof <jspricke@debian.org>
Closes: 1028620
Changes:
 ruby-pygments.rb (2.3.0+ds-2.2) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add patch for pygments 2.24 (Closes: #1028620)
Checksums-Sha1:
 fd6b05777db9f3bca7b535c8919f6447328f1ddb 2159 ruby-pygments.rb_2.3.0+ds-2.2.dsc
 ec88319d4079417ebcfb620cc91afc3e960a9651 8448 ruby-pygments.rb_2.3.0+ds-2.2.debian.tar.xz
 acaee0201c7f687d2668f1e6c375ae82d295e1f7 6978 ruby-pygments.rb_2.3.0+ds-2.2_source.buildinfo
Checksums-Sha256:
 fbc04d1a82e46746e785573e05d7230bf412778036a7018a99bff8263bed471c 2159 ruby-pygments.rb_2.3.0+ds-2.2.dsc
 cba021d3c641c7a2405c605069597d5efdf9c53686669289639404156edca8fb 8448 ruby-pygments.rb_2.3.0+ds-2.2.debian.tar.xz
 a5b14728afea1a5d9f728c07abdaa083b247723a9d1e9869208aeec53977553c 6978 ruby-pygments.rb_2.3.0+ds-2.2_source.buildinfo
Files:
 b22d77dc933441a59df46079648c6803 2159 ruby optional ruby-pygments.rb_2.3.0+ds-2.2.dsc
 d1f20598dc3df25084a320d37f70d512 8448 ruby optional ruby-pygments.rb_2.3.0+ds-2.2.debian.tar.xz
 b693732494804be94b5bd9b4e4b48852 6978 ruby optional ruby-pygments.rb_2.3.0+ds-2.2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmPKVsMACgkQW//cwljm
lDNtGw//bncQl6wCISRFYF0PkWTr/Xxyst7a7AjrM1dU5BmDNo3+ZkRpP2IJB8XX
Rp3t/nQD5DfC+9JwHvLLgZs+MIDyHmqpd/1ZBJ9zVWNGWFQsH7wOnB13sG1qf+PP
NGrIxFnqOIHRCG1i2z3Zf+XopTqJhjj5gKkSepgY6BA+be3K4yObxoxSO0gXUix9
4h9zCuiJtkogPkrvkGRvKRBm8CV3JRMcmN1RorbKajI/jv3ZSXn4byVFdwsF4i9M
ErQEOMtlcUUMNhJtzkBQSJdDTe3nwarDj816x9sQQJ4psTHFIiRrQCjXRqTmdxVN
e+ZEghZPLB1qjBGnB3odFXhU7C3E2rQoUa0cAsRKOcuH4hfhIj7RS5Bc8R9ByfA4
6VdsoTUOc0AkpP/LbD6wi9ApJC4mN1XE+StscChDLpUmzjagWpIav3IbWcSaYdXo
q38jN7OOnDyT1dHoKtu+pTMfhWnd1cQHb0l21DkGlbRR2T8RUtHGfF+owFBLmAyE
DFvSutmWJyAO3RuqWOGnoOSvuyQl/B4ZIsnQ/wqG4DDGJfUnV3kSF8hBrr4//HCa
zXuR43Pvbw6PxwsisqjaDiR1nKiDbrAb4fx04efvrTc0z1UsjC/eY2vvIfGhZ4OR
fCXWpFm0WbgZlGQy30tGRfNhSO2CTbC1nL5kHR2Xc70QGCpoweQ=
=GsLD
-----END PGP SIGNATURE-----