[DRE-maint] Bug#1005432: yard: FTBFS: ERROR: Test "ruby2.7" failed: Failure/Error:

Lucas Nussbaum lucas at debian.org
Sun Feb 13 07:07:48 GMT 2022


Source: yard
Version: 0.9.26-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220212 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
>      Failure/Error:
>        YARD::GemIndex.each.find do |spec|
>          next unless spec.full_name == gemfile_without_ext
>          yardoc = Registry.yardoc_file_for_gem(spec.name, "= #{spec.version}")
>          if yardoc
>            Registry.load_yardoc(yardoc)
>            Registry.load_all
>          else
>            log.enter_level(Logger::ERROR) do
>              olddir = Dir.pwd
>              Gems.run(spec.name, spec.version.to_s)
> 
>        #<File (class)> received :open with unexpected arguments
>          expected: ("gem1.gem", "rb")
>               got: ("/usr/share/rubygems-integration/all/specifications/asciidoctor-2.0.16.gemspec", "r:UTF-8:-")
>      # ./lib/yard/cli/diff.rb:134:in `each'
>      # ./lib/yard/cli/diff.rb:134:in `find'
>      # ./lib/yard/cli/diff.rb:134:in `load_gem_data'
>      # ./lib/yard/cli/diff.rb:33:in `block in run'
>      # ./lib/yard/cli/diff.rb:29:in `map'
>      # ./lib/yard/cli/diff.rb:29:in `run'
>      # ./spec/cli/diff_spec.rb:229:in `block (3 levels) in <top (required)>'
>      # ./spec/spec_helper.rb:121:in `block (2 levels) in <top (required)>'
> 
> Top 5 slowest examples (1.04 seconds, 26.9% of total time):
>   YARD::RegistryStore#save never saves as single object db if single_object_db is false
>     0.68972 seconds ./spec/registry_store_spec.rb:152
>   YARD::Registry Thread local maintains two Registries in separate threads
>     0.10088 seconds ./spec/registry_spec.rb:396
>   YARD::Registry Thread local allows setting of yardoc_file in separate threads
>     0.10035 seconds ./spec/registry_spec.rb:417
>   YARD::Registry Thread local allows setting of po_dir in separate threads
>     0.10029 seconds ./spec/registry_spec.rb:442
>   YARD::RegistryStore#save saves as single object db if single_object_db is true (and any amount of objects)
>     0.04807 seconds ./spec/registry_store_spec.rb:144
> 
> Top 5 slowest example groups:
>   YARD::Server::Commands::LibraryCommand
>     0.03814 seconds average (0.11442 seconds / 3 examples) ./spec/server/commands/library_command_spec.rb:4
>   YARD::RegistryStore
>     0.02393 seconds average (0.78956 seconds / 33 examples) ./spec/registry_store_spec.rb:3
>   YARD::Parser::C::CParser
>     0.02074 seconds average (0.37327 seconds / 18 examples) ./spec/parser/c_parser_spec.rb:3
>   YARD::Templates::Engine::Template__build_yard_2uPQjK_yard_0_9_26_templates_default_module
>     0.01687 seconds average (0.11807 seconds / 7 examples) ./spec/templates/module_spec.rb:4
>   YARD::CLI::Display
>     0.01554 seconds average (0.04661 seconds / 3 examples) ./spec/cli/display_spec.rb:3
> 
> Finished in 3.86 seconds (files took 0.44782 seconds to load)
> 1920 examples, 1 failure
> 
> Failed examples:
> 
> rspec ./spec/cli/diff_spec.rb:217 # YARD::CLI::Diff File searching searches for .gem file
> 
> /usr/bin/ruby2.7 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.10.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby2.7" failed: 


The full build log is available from:
http://qa-logs.debian.net/2022/02/12/yard_0.9.26-1_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