[DRE-maint] Bug#1026892: asciidoctor: FTBFS with haml 6.1.1: ERROR: Test "ruby3.1" failed.

Antonio Terceiro terceiro at debian.org
Fri Dec 23 14:41:50 GMT 2022


Source: asciidoctor
Version: 2.0.17-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs

Hi,

I'm working on updating ruby-haml to the new upstream versinon 6.1.1,
and when trying asciidoctor against that the tests fail.


Relevant part (hopefully):
> /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.1                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-asciidoctor/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\ \"asciidoctor\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-asciidoctor/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-asciidoctor/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"lib:test" /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/api_test.rb" "test/attribute_list_test.rb" "test/attributes_test.rb" "test/blocks_test.rb" "test/converter_test.rb" "test/document_test.rb" "test/extensions_test.rb" "test/helpers_test.rb" "test/invoker_test.rb" "test/links_test.rb" "test/lists_test.rb" "test/logger_test.rb" "test/manpage_test.rb" "test/options_test.rb" "test/paragraphs_test.rb" "test/parser_test.rb" "test/paths_test.rb" "test/preamble_test.rb" "test/reader_test.rb" "test/sections_test.rb" "test/substitutions_test.rb" "test/syntax_highlighter_test.rb" "test/tables_test.rb" "test/text_test.rb" 
> RUBY_GC_HEAP_FREE_SLOTS=750000 (default value: 4096)
> RUBY_GC_HEAP_INIT_SLOTS=750000 (default value: 10000)
> RUBY_GC_HEAP_GROWTH_FACTOR=2.000000 (default value: 1.800000)
> RUBY_GC_HEAP_GROWTH_MAX_SLOTS=50000 (default value: 0)
> RUBY_GC_MALLOC_LIMIT=128000000 (default value: 16777216)
> RUBY_GC_OLDMALLOC_LIMIT=128000000 (default value: 16777216)
> /usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/nokogiri-1.13.10/lib/nokogiri/version/info.rb:85: warning: possibly useless use of a variable in void context
> Run options: --seed 60429
> 
> # Running:
> 
> .......................................................................................................................................................................................................................................................................................Haml::Engine: Option :attr_wrapper is invalid
> Haml::Engine: Option :attr_wrapper is invalid
> FHaml::Engine: Option :attr_wrapper is invalid
> F....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Haml::Engine: Option :attr_wrapper is invalid
> Haml::Engine: Option :attr_wrapper is invalid
> F...............Haml::Engine: Option :attr_wrapper is invalid
> Haml::Engine: Option :attr_wrapper is invalid
> F.................................................................................FF..F....FFF..............................................
> 
> Finished in 2.915521s, 908.5856 runs/s, 3237.8437 assertions/s.
> 
>   1) Failure:
> Minitest::Test::TestConverter::TestViewOptions#test_should_set_Haml_format_to_html5_for_html5_backend [/<<PKGBUILDDIR>>/test/converter_test.rb:12]:
> Expected #<Haml::Template:0x00007f109c68fd68 @options={:format=>:html5, :attr_wrapper=>"\"", :escape_attrs=>false}, @line=1, @file="/<<PKGBUILDDIR>>/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml", @compiled_method={}, @default_encoding=nil, @reader=#<Proc:0x00007f109c68fc00 /usr/lib/ruby/vendor_ruby/tilt/template.rb:85 (lambda)>, @data="- if title?\n  .title=title\n%p{id: @id, class: (attr 'role')}=content\n", @src="extend Haml::Helpers; _buf = '';  if title?; \n; _buf << (\"<div class='title'>\".freeze); _haml_compiler1 = (title; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler1))).to_s).to_s); _buf << (\"</div>\\n\".freeze); end; _buf << ((%Q\u0000<p class='\#{(::Haml::AttributeBuilder.build_class(false, (attr 'role'))).to_s}' id='\#{(::Haml::AttributeBuilder.build_id(false, @id)).to_s}'>\u0000).to_s); _haml_compiler2 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler2))).to_s).to_s); _buf << (\"</p>\\n\".freeze); _buf"> to be a kind of Tilt::HamlTemplate, not Haml::Template.
> 
>   2) Failure:
> Minitest::Test::TestConverter::TestViewOptions#test_should_set_Haml_format_to_xhtml_for_docbook_backend [/<<PKGBUILDDIR>>/test/converter_test.rb:21]:
> Expected #<Haml::Template:0x00007f109c62d690 @options={:format=>:xhtml, :attr_wrapper=>"\"", :escape_attrs=>false}, @line=1, @file="/<<PKGBUILDDIR>>/test/fixtures/custom-backends/haml/docbook5/block_paragraph.xml.haml", @compiled_method={}, @default_encoding=nil, @reader=#<Proc:0x00007f109c62d438 /usr/lib/ruby/vendor_ruby/tilt/template.rb:85 (lambda)>, @data="- if title?\n  %formalpara{'xml:id'=>@id, role: (attr :role), xreflabel: (attr :reftext)}\n    %title=title\n    %para=content\n- else\n  %para{'xml:id'=>@id, role: (attr :role), xreflabel: (attr :reftext)}=content\n", @src="extend Haml::Helpers; _buf = '';  if title?; \n; _buf << ((%Q\u0000<formalpara role='\#{((attr :role)).to_s}' xml:id='\#{(@id).to_s}' xreflabel='\#{((attr :reftext)).to_s}'>\n<title>\u0000).to_s); _haml_compiler1 = (title; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler1))).to_s).to_s); _buf << (\"</title>\\n<para>\".freeze); _haml_compiler2 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler2))).to_s).to_s); _buf << (\"</para>\\n</formalpara>\\n\".freeze);  else; \n; _buf << ((%Q\u0000<para role='\#{((attr :role)).to_s}' xml:id='\#{(@id).to_s}' xreflabel='\#{((attr :reftext)).to_s}'>\u0000).to_s); _haml_compiler3 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler3))).to_s).to_s); _buf << (\"</para>\\n\".freeze); end; _buf"> to be a kind of Tilt::HamlTemplate, not Haml::Template.
> 
>   3) Failure:
> Minitest::Test::TestInvoker#test_should_locate_custom_templates_based_on_template_dir_template_engine_and_backend [/<<PKGBUILDDIR>>/test/invoker_test.rb:588]:
> Expected #<Haml::Template:0x00007f109d01b0a8 @options={:format=>:html5, :attr_wrapper=>"\"", :escape_attrs=>false}, @line=1, @file="/<<PKGBUILDDIR>>/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml", @compiled_method={[Asciidoctor::Block, []]=>#<UnboundMethod: Tilt::CompiledTemplates#__tilt_30960(locals) /<<PKGBUILDDIR>>/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml:-2>}, @default_encoding=nil, @reader=#<Proc:0x00007f109d01af40 /usr/lib/ruby/vendor_ruby/tilt/template.rb:85 (lambda)>, @data="- if title?\n  .title=title\n%p{id: @id, class: (attr 'role')}=content\n", @src="extend Haml::Helpers; _buf = '';  if title?; \n; _buf << (\"<div class='title'>\".freeze); _haml_compiler1 = (title; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler1))).to_s).to_s); _buf << (\"</div>\\n\".freeze); end; _buf << ((%Q\u0000<p class='\#{(::Haml::AttributeBuilder.build_class(false, (attr 'role'))).to_s}' id='\#{(::Haml::AttributeBuilder.build_id(false, @id)).to_s}'>\u0000).to_s); _haml_compiler2 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler2))).to_s).to_s); _buf << (\"</p>\\n\".freeze); _buf"> to be a kind of Tilt::HamlTemplate, not Haml::Template.
> 
>   4) Failure:
> Minitest::Test::TestInvoker#test_should_load_custom_templates_from_multiple_template_directories [/<<PKGBUILDDIR>>/test/invoker_test.rb:597]:
> CSS #preamble > .sectionbody > p yielded 0 elements rather than 1 for:
> <div id="preamble">
> <div class="sectionbody">
> <p>Preamble paragraph.</p>
> <div class="admonitionblock note">
> <table>
> <tr>
> <td class="icon">
> <div class="title">Note</div>
> </td>
> <td class="content">
> This is test, only a test.
> </td>
> </tr>
> </table>
> </div>
> </div>
> </div>
> <div class="sect1">
> <h2 id="id_section_a">Section A</h2>
> <div class="sectionbody">
> <p>&lt;strong&gt;Section A&lt;/strong&gt; paragraph.</p>
> <div class="sect2">
> <h3 id="id_section_a_subsection">Section A Subsection</h3>
> <p>&lt;strong&gt;Section A&lt;/strong&gt; &lt;em&gt;subsection&lt;/em&gt; paragraph.</p>
> </div>
> </div>
> </div>
> <div class="sect1">
> <h2 id="id_section_b">Section B</h2>
> <div class="sectionbody">
> <p>&lt;strong&gt;Section B&lt;/strong&gt; paragraph.</p>
> <table class="tableblock frame-all grid-all stretch">
> <colgroup>
> <col style="width: 33.3333%;">
> <col style="width: 33.3333%;">
> <col style="width: 33.3334%;">
> </colgroup>
> <tbody>
> <tr>
> <td class="tableblock halign-left valign-top"><p class="tableblock">a</p></td>
> <td class="tableblock halign-left valign-top"><p class="tableblock">b</p></td>
> <td class="tableblock halign-left valign-top"><p class="tableblock">c</p></td>
> </tr>
> <tr>
> <td class="tableblock halign-left valign-top"><p class="tableblock">1</p></td>
> <td class="tableblock halign-left valign-top"><p class="tableblock">2</p></td>
> <td class="tableblock halign-left valign-top"><p class="tableblock">3</p></td>
> </tr>
> </tbody>
> </table>
> <div class="ulist">
> <div class="title">Section B list</div>
> <ul>
> <li>
> <p>Item 1</p>
> </li>
> <li>
> <p>Item 2</p>
> </li>
> <li>
> <p>Item 3</p>
> </li>
> </ul>
> </div>
> </div>
> </div>
> 
> 
>   5) Failure:
> Minitest::Test::TestConverter::TestCustomBackends#test_should_use_custom_cache_to_cache_templates [/<<PKGBUILDDIR>>/test/converter_test.rb:218]:
> Expected #<Haml::Template:0x00007f109cac2d68 @options={:format=>:html5, :attr_wrapper=>"\"", :escape_attrs=>false}, @line=1, @file="/<<PKGBUILDDIR>>/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml", @compiled_method={}, @default_encoding=nil, @reader=#<Proc:0x00007f109cac2c50 /usr/lib/ruby/vendor_ruby/tilt/template.rb:85 (lambda)>, @data="- if title?\n  .title=title\n%p{id: @id, class: (attr 'role')}=content\n", @src="extend Haml::Helpers; _buf = '';  if title?; \n; _buf << (\"<div class='title'>\".freeze); _haml_compiler1 = (title; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler1))).to_s).to_s); _buf << (\"</div>\\n\".freeze); end; _buf << ((%Q\u0000<p class='\#{(::Haml::AttributeBuilder.build_class(false, (attr 'role'))).to_s}' id='\#{(::Haml::AttributeBuilder.build_id(false, @id)).to_s}'>\u0000).to_s); _haml_compiler2 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler2))).to_s).to_s); _buf << (\"</p>\\n\".freeze); _buf"> to be a kind of Tilt::HamlTemplate, not Haml::Template.
> 
>   6) Failure:
> Minitest::Test::TestConverter::TestCustomBackends#test_should_allow_custom_backend_to_emulate_a_known_backend [/<<PKGBUILDDIR>>/test/converter_test.rb:164]:
> Expected: "<p>content</p>"
>   Actual: "<p>content</p>"
> 
>   7) Failure:
> Minitest::Test::TestConverter::TestCustomBackends#test_should_load_Haml_templates_for_docbook5_backend [/<<PKGBUILDDIR>>/test/converter_test.rb:129]:
> Expected #<Haml::Template:0x00007f109c959b70 @options={:format=>:xhtml, :attr_wrapper=>"\"", :escape_attrs=>false}, @line=1, @file="/<<PKGBUILDDIR>>/test/fixtures/custom-backends/haml/docbook5/block_paragraph.xml.haml", @compiled_method={}, @default_encoding=nil, @reader=#<Proc:0x00007f109c959a58 /usr/lib/ruby/vendor_ruby/tilt/template.rb:85 (lambda)>, @data="- if title?\n  %formalpara{'xml:id'=>@id, role: (attr :role), xreflabel: (attr :reftext)}\n    %title=title\n    %para=content\n- else\n  %para{'xml:id'=>@id, role: (attr :role), xreflabel: (attr :reftext)}=content\n", @src="extend Haml::Helpers; _buf = '';  if title?; \n; _buf << ((%Q\u0000<formalpara role='\#{((attr :role)).to_s}' xml:id='\#{(@id).to_s}' xreflabel='\#{((attr :reftext)).to_s}'>\n<title>\u0000).to_s); _haml_compiler1 = (title; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler1))).to_s).to_s); _buf << (\"</title>\\n<para>\".freeze); _haml_compiler2 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler2))).to_s).to_s); _buf << (\"</para>\\n</formalpara>\\n\".freeze);  else; \n; _buf << ((%Q\u0000<para role='\#{((attr :role)).to_s}' xml:id='\#{(@id).to_s}' xreflabel='\#{((attr :reftext)).to_s}'>\u0000).to_s); _haml_compiler3 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler3))).to_s).to_s); _buf << (\"</para>\\n\".freeze); end; _buf"> to be a kind of Tilt::HamlTemplate, not Haml::Template.
> 
>   8) Failure:
> Minitest::Test::TestConverter::TestCustomBackends#test_should_create_template_converter_even_when_a_converter_is_not_registered_for_the_specified_backend [/<<PKGBUILDDIR>>/test/converter_test.rb:170]:
> --- expected
> +++ actual
> @@ -1 +1 @@
> -"<p>paragraph content</p>"
> +"<p>paragraph content</p>"
> 
> 
>   9) Failure:
> Minitest::Test::TestConverter::TestCustomBackends#test_should_load_Haml_templates_for_default_backend [/<<PKGBUILDDIR>>/test/converter_test.rb:98]:
> Expected #<Haml::Template:0x00007f109c7c8568 @options={:format=>:html5, :attr_wrapper=>"\"", :escape_attrs=>false}, @line=1, @file="/<<PKGBUILDDIR>>/test/fixtures/custom-backends/haml/html5/block_paragraph.html.haml", @compiled_method={}, @default_encoding=nil, @reader=#<Proc:0x00007f109c7c8428 /usr/lib/ruby/vendor_ruby/tilt/template.rb:85 (lambda)>, @data="- if title?\n  .title=title\n%p{id: @id, class: (attr 'role')}=content\n", @src="extend Haml::Helpers; _buf = '';  if title?; \n; _buf << (\"<div class='title'>\".freeze); _haml_compiler1 = (title; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler1))).to_s).to_s); _buf << (\"</div>\\n\".freeze); end; _buf << ((%Q\u0000<p class='\#{(::Haml::AttributeBuilder.build_class(false, (attr 'role'))).to_s}' id='\#{(::Haml::AttributeBuilder.build_id(false, @id)).to_s}'>\u0000).to_s); _haml_compiler2 = (content; \n; ); _buf << (((::Haml::Util.escape_html((_haml_compiler2))).to_s).to_s); _buf << (\"</p>\\n\".freeze); _buf"> to be a kind of Tilt::HamlTemplate, not Haml::Template.
> 
>  10) Failure:
> Minitest::Test::TestConverter::TestCustomBackends#test_should_use_Haml_templates_in_place_of_built_in_templates [/<<PKGBUILDDIR>>/test/converter_test.rb:154]:
> XPath //aside/header/following-sibling::p[text()="Sidebar content"] yielded 0 elements rather than 1 for:
> <div class="sect1">
> <h2 id="_section_one">Section One</h2>
> <div class="sectionbody">
> <p class='' id=''>Sample paragraph</p>
> <aside class='' id=''>
> <header>
> <h1>Related</h1>
> </header>
> <p class='' id=''>Sidebar content</p>
> </aside>
> </div>
> </div>
> 
> 2649 runs, 9440 assertions, 10 failures, 0 errors, 0 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"lib:test" /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/api_test.rb" "test/attribute_list_test.rb" "test/attributes_test.rb" "test/blocks_test.rb" "test/converter_test.rb" "test/document_test.rb" "test/extensions_test.rb" "test/helpers_test.rb" "test/invoker_test.rb" "test/links_test.rb" "test/lists_test.rb" "test/logger_test.rb" "test/manpage_test.rb" "test/options_test.rb" "test/paragraphs_test.rb" "test/parser_test.rb" "test/paths_test.rb" "test/preamble_test.rb" "test/reader_test.rb" "test/sections_test.rb" "test/substitutions_test.rb" "test/syntax_highlighter_test.rb" "test/tables_test.rb" "test/text_test.rb" ]
> 
> Tasks: TOP => default => test:all => test
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.1" failed.

Attached the full build log.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciidoctor.log.gz
Type: application/gzip
Size: 20390 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221223/4cc395ad/attachment-0001.gz>
-------------- 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/20221223/4cc395ad/attachment-0001.sig>


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