[DRE-maint] Bug#1077411: ruby-asciidoctor-kroki: FTBFS: ERROR: Test "ruby3.1" failed: Failure/Error: Base64.urlsafe_encode64(Zlib::Deflate.deflate(@text, 9))

Lucas Nussbaum lucas at debian.org
Mon Jul 29 06:37:10 BST 2024


Source: ruby-asciidoctor-kroki
Version: 0.8.0-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240728 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
>       Failure/Error: Base64.urlsafe_encode64(Zlib::Deflate.deflate(@text, 9))
> 
>       NameError:
>         asciidoctor: FAILED: <stdin>: Failed to load AsciiDoc document - uninitialized constant AsciidoctorExtensions::KrokiDiagram::Base64
> 
>               Base64.urlsafe_encode64(Zlib::Deflate.deflate(@text, 9))
>               ^^^^^^
>       # ./lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb:295:in `encode'
>       # ./lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb:291:in `get_diagram_uri'
>       # ./lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb:242:in `create_image_src'
>       # ./lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb:177:in `process'
>       # ./lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb:76:in `process'
>       # /usr/share/rubygems-integration/all/gems/asciidoctor-2.0.23/lib/asciidoctor/parser.rb:672:in `[]'
>       # /usr/share/rubygems-integration/all/gems/asciidoctor-2.0.23/lib/asciidoctor/parser.rb:672:in `next_block'
>       # /usr/share/rubygems-integration/all/gems/asciidoctor-2.0.23/lib/asciidoctor/parser.rb:403:in `next_section'
>       # /usr/share/rubygems-integration/all/gems/asciidoctor-2.0.23/lib/asciidoctor/parser.rb:103:in `parse'
>       # /usr/share/rubygems-integration/all/gems/asciidoctor-2.0.23/lib/asciidoctor/document.rb:538:in `parse'
>       # /usr/share/rubygems-integration/all/gems/asciidoctor-2.0.23/lib/asciidoctor/load.rb:84:in `load'
>       # /usr/share/rubygems-integration/all/gems/asciidoctor-2.0.23/lib/asciidoctor/convert.rb:78:in `convert'
>       # ./spec/asciidoctor_kroki_spec.rb:160:in `block (3 levels) in <top (required)>'
>       # ------------------
>       # --- Caused by: ---
>       # NameError:
>       #   uninitialized constant AsciidoctorExtensions::KrokiDiagram::Base64
>       #   
>       #         Base64.urlsafe_encode64(Zlib::Deflate.deflate(@text, 9))
>       #         ^^^^^^
>       #   ./lib/asciidoctor/extensions/asciidoctor_kroki/extension.rb:295:in `encode'
> 
> Finished in 0.1176 seconds (files took 0.27031 seconds to load)
> 42 examples, 18 failures, 4 pending
> 
> Failed examples:
> 
> rspec ./spec/asciidoctor_kroki_block_macro_spec.rb:40 # AsciidoctorExtensions::KrokiBlockMacroProcessor using a custom block macro should allow read if target is not a URI
> rspec ./spec/asciidoctor_kroki_block_macro_spec.rb:72 # AsciidoctorExtensions::KrokiBlockMacroProcessor using a custom block macro should override the resolve target method
> rspec ./spec/asciidoctor_kroki_diagram_spec.rb:8 # AsciidoctorExtensions::KrokiDiagram should compute a diagram URI
> rspec ./spec/asciidoctor_kroki_diagram_spec.rb:13 # AsciidoctorExtensions::KrokiDiagram should compute a diagram URI with a trailing slashes
> rspec ./spec/asciidoctor_kroki_diagram_spec.rb:18 # AsciidoctorExtensions::KrokiDiagram should compute a diagram URI with trailing slashes
> rspec ./spec/asciidoctor_kroki_diagram_spec.rb:23 # AsciidoctorExtensions::KrokiDiagram should compute a diagram URI with query parameters
> rspec ./spec/asciidoctor_kroki_diagram_spec.rb:41 # AsciidoctorExtensions::KrokiDiagram should encode a diagram text definition
> rspec ./spec/asciidoctor_kroki_diagram_spec.rb:87 # AsciidoctorExtensions::KrokiDiagram should fetch a diagram from Kroki with the same definition only once
> rspec ./spec/asciidoctor_kroki_spec.rb:9 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should convert a PlantUML block to an image
> rspec ./spec/asciidoctor_kroki_spec.rb:23 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should only pass diagram options as query parameters
> rspec ./spec/asciidoctor_kroki_spec.rb:37 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should use the title attribute as the alt value
> rspec ./spec/asciidoctor_kroki_spec.rb:52 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should use png if kroki-default-format is set to png
> rspec ./spec/asciidoctor_kroki_spec.rb:66 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should use svg if kroki-default-format is set to png and the diagram type does not support png
> rspec ./spec/asciidoctor_kroki_spec.rb:83 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should include the plantuml-include file when safe mode is safe
> rspec ./spec/asciidoctor_kroki_spec.rb:99 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should normalize plantuml-include path when safe mode is safe
> rspec ./spec/asciidoctor_kroki_spec.rb:113 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should not include file which reside outside of the parent directory of the source when safe mode is safe
> rspec ./spec/asciidoctor_kroki_spec.rb:127 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should not include file when safe mode is secure
> rspec ./spec/asciidoctor_kroki_spec.rb:154 # AsciidoctorExtensions::KrokiBlockProcessor convert to html5 should not fetch diagram when safe mode is secure
> 
> /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> mv ./.gem2deb.Gemfile.lock Gemfile.lock
> ERROR: Test "ruby3.1" failed: 


The full build log is available from:
http://qa-logs.debian.net/2024/07/28/ruby-asciidoctor-kroki_0.8.0-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240728&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