[DRE-maint] Bug#952070: ruby-puppetlabs-spec-helper: FTBFS: ERROR: Test "ruby2.5" failed: Failure/Error: Puppet::Parser::Functions.expects(:function).with('my_func').returns(false)
Lucas Nussbaum
lucas at debian.org
Sun Feb 23 07:46:23 GMT 2020
Source: ruby-puppetlabs-spec-helper
Version: 2.6.2-1
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20200222 ftbfs-buster
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> Failure/Error: Puppet::Parser::Functions.expects(:function).with('my_func').returns(false)
>
> Mocha::NotInitializedError:
> Mocha methods cannot be used outside the context of a test
> # ./spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb:96:in `block (3 levels) in <top (required)>'
>
> Deprecation Warnings:
>
> scope is deprecated. Use rspec-puppet 2.2.0 provides a scope property instead. Called from /<<PKGBUILDDIR>>/lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb:11:in `scope'.
>
>
> If you need more of the backtrace for any of these deprecations to
> identify where to make the necessary changes, you can configure
> `config.raise_errors_for_deprecations!`, and it will turn the
> deprecation warnings into errors, giving you the full backtrace.
>
> 1 deprecation warning total
>
> Finished in 0.06403 seconds (files took 0.80944 seconds to load)
> 21 examples, 2 failures
>
> Failed examples:
>
> rspec ./spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb:88 # PuppetlabsSpec::PuppetInternals.function_method accepts an injected scope
> rspec ./spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb:95 # PuppetlabsSpec::PuppetInternals.function_method returns nil if the function doesn't exist
>
> /usr/bin/ruby2.5 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.2/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby2.5" failed:
The full build log is available from:
http://qa-logs.debian.net/2020/02/22/ruby-puppetlabs-spec-helper_2.6.2-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!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Pkg-ruby-extras-maintainers
mailing list