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:
> &lt;div id=&quot;preamble&quot;&gt;
> &lt;div class=&quot;sectionbody&quot;&gt;
> &lt;p&gt;Preamble paragraph.&lt;/p&gt;
> &lt;div class=&quot;admonitionblock note&quot;&gt;
> &lt;table&gt;
> &lt;tr&gt;
> &lt;td class=&quot;icon&quot;&gt;
> &lt;div class=&quot;title&quot;&gt;Note&lt;/div&gt;
> &lt;/td&gt;
> &lt;td class=&quot;content&quot;&gt;
> This is test, only a test.
> &lt;/td&gt;
> &lt;/tr&gt;
> &lt;/table&gt;
> &lt;/div&gt;
> &lt;/div&gt;
> &lt;/div&gt;
> &lt;div class=&quot;sect1&quot;&gt;
> &lt;h2 id=&quot;id_section_a&quot;&gt;Section A&lt;/h2&gt;
> &lt;div class=&quot;sectionbody&quot;&gt;
> &lt;p&gt;&amp;lt;strong&amp;gt;Section A&amp;lt;/strong&amp;gt; 
> paragraph.&lt;/p&gt;
> &lt;div class=&quot;sect2&quot;&gt;
> &lt;h3 id=&quot;id_section_a_subsection&quot;&gt;Section A 
> Subsection&lt;/h3&gt;
> &lt;p&gt;&amp;lt;strong&amp;gt;Section A&amp;lt;/strong&amp;gt; 
> &amp;lt;em&amp;gt;subsection&amp;lt;/em&amp;gt; paragraph.&lt;/p&gt;
> &lt;/div&gt;
> &lt;/div&gt;
> &lt;/div&gt;
> &lt;div class=&quot;sect1&quot;&gt;
> &lt;h2 id=&quot;id_section_b&quot;&gt;Section B&lt;/h2&gt;
> &lt;div class=&quot;sectionbody&quot;&gt;
> &lt;p&gt;&amp;lt;strong&amp;gt;Section B&amp;lt;/strong&amp;gt; 
> paragraph.&lt;/p&gt;
> &lt;table class=&quot;tableblock frame-all grid-all stretch&quot;&gt;
> &lt;colgroup&gt;
> &lt;col style=&quot;width: 33.3333%;&quot;&gt;
> &lt;col style=&quot;width: 33.3333%;&quot;&gt;
> &lt;col style=&quot;width: 33.3334%;&quot;&gt;
> &lt;/colgroup&gt;
> &lt;tbody&gt;
> &lt;tr&gt;
> &lt;td class=&quot;tableblock halign-left valign-top&quot;&gt;&lt;p 
> class=&quot;tableblock&quot;&gt;a&lt;/p&gt;&lt;/td&gt;
> &lt;td class=&quot;tableblock halign-left valign-top&quot;&gt;&lt;p 
> class=&quot;tableblock&quot;&gt;b&lt;/p&gt;&lt;/td&gt;
> &lt;td class=&quot;tableblock halign-left valign-top&quot;&gt;&lt;p 
> class=&quot;tableblock&quot;&gt;c&lt;/p&gt;&lt;/td&gt;
> &lt;/tr&gt;
> &lt;tr&gt;
> &lt;td class=&quot;tableblock halign-left valign-top&quot;&gt;&lt;p 
> class=&quot;tableblock&quot;&gt;1&lt;/p&gt;&lt;/td&gt;
> &lt;td class=&quot;tableblock halign-left valign-top&quot;&gt;&lt;p 
> class=&quot;tableblock&quot;&gt;2&lt;/p&gt;&lt;/td&gt;
> &lt;td class=&quot;tableblock halign-left valign-top&quot;&gt;&lt;p 
> class=&quot;tableblock&quot;&gt;3&lt;/p&gt;&lt;/td&gt;
> &lt;/tr&gt;
> &lt;/tbody&gt;
> &lt;/table&gt;
> &lt;div class=&quot;ulist&quot;&gt;
> &lt;div class=&quot;title&quot;&gt;Section B list&lt;/div&gt;
> &lt;ul&gt;
> &lt;li&gt;
> &lt;p&gt;Item 1&lt;/p&gt;
> &lt;/li&gt;
> &lt;li&gt;
> &lt;p&gt;Item 2&lt;/p&gt;
> &lt;/li&gt;
> &lt;li&gt;
> &lt;p&gt;Item 3&lt;/p&gt;
> &lt;/li&gt;
> &lt;/ul&gt;
> &lt;/div&gt;
> &lt;/div&gt;
> &lt;/div&gt;
> 
> 
>   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: "&lt;p&gt;content&lt;/p&gt;"
> 
>   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>"
> +"&lt;p&gt;paragraph content&lt;/p&gt;"
> 
> 
>   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>
> &lt;p class=&#39;&#39; id=&#39;&#39;&gt;Sidebar content&lt;/p&gt;
> </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.

Attachment: asciidoctor.log.gz
Description: application/gzip

Attachment: signature.asc
Description: PGP signature

Reply via email to