[DRE-maint] Bug#1090873: ruby-puppetlabs-spec-helper: FTBFS with ruby-mocha 2: ERROR: Test "ruby3.1" failed: Failure/Error: it { expect(output[0]).to match(/spec_prep/) }
Antonio Terceiro
terceiro at debian.org
Fri Dec 20 11:56:16 GMT 2024
Source: ruby-puppetlabs-spec-helper
Version: 7.0.5-1
Severity: important
Justification: FTBFS
Tags: trixie sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby-mocha-2
Hi,
We are trying to update ruby-mocha to version 2, currently available in experimental.
During a test rebuild, ruby-puppetlabs-spec-helper was found to fail to build in that situation.
To reproduce this locally, you need to install ruby-mocha from experimental
on an unstable system or build chroot.
Relevant part (hopefully):
> Failure/Error: it { expect(output[0]).to match(/spec_prep/) }
>
> expected "rake aborted!\nGem::MissingSpecError: Could not find 'mocha' (~> 1.0) among 121 total gem(s)\nChecke...gems/rake-13.2.1/exe/rake:27:in `<top (required)>'\n(See full trace by running task with --trace)\n" to match /spec_prep/
> Diff:
> @@ -1,39 +1,77 @@
> -/spec_prep/
> +rake aborted!
> +Gem::MissingSpecError: Could not find 'mocha' (~> 1.0) among 121 total gem(s)
> +Checked in 'GEM_PATH=/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/debian/ruby-puppetlabs-spec-helper/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/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/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.1.0' at: /build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/debian/ruby-puppetlabs-spec-helper/usr/share/rubygems-integration/all/specifications/puppetlabs_spec_helper-7.0.5.gemspec, execute `gem env` for more information
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:155:in `rescue in require'
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:40:in `require'
> +/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/spec/acceptance/fixtures/Rakefile:3:in `<top (required)>'
> +/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
> +
> +Caused by:
> +Gem::MissingSpecVersionError: Could not find 'mocha' (~> 1.0) - did find: [mocha-2.4.2]
> +Checked in 'GEM_PATH=/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/debian/ruby-puppetlabs-spec-helper/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/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/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.1.0' , execute `gem env` for more information
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:155:in `rescue in require'
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:40:in `require'
> +/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/spec/acceptance/fixtures/Rakefile:3:in `<top (required)>'
> +/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
> +
> +Caused by:
> +Gem::MissingSpecError: Could not find 'mocha' (~> 1.0) among 121 total gem(s)
> +Checked in 'GEM_PATH=/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/debian/ruby-puppetlabs-spec-helper/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/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/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.1.0' at: /build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/debian/ruby-puppetlabs-spec-helper/usr/share/rubygems-integration/all/specifications/puppetlabs_spec_helper-7.0.5.gemspec, execute `gem env` for more information
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:155:in `rescue in require'
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:40:in `require'
> +/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/spec/acceptance/fixtures/Rakefile:3:in `<top (required)>'
> +/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
> +
> +Caused by:
> +Gem::MissingSpecVersionError: Could not find 'mocha' (~> 1.0) - did find: [mocha-2.4.2]
> +Checked in 'GEM_PATH=/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/debian/ruby-puppetlabs-spec-helper/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/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/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/rubygems-integration/3.1.0' , execute `gem env` for more information
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:155:in `rescue in require'
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:40:in `require'
> +/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/spec/acceptance/fixtures/Rakefile:3:in `<top (required)>'
> +/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
> +
> +Caused by:
> +LoadError: cannot load such file -- puppetlabs_spec_helper/rake_tasks
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require'
> +<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require'
> +/build/reproducible-path/ruby-puppetlabs-spec-helper-7.0.5/spec/acceptance/fixtures/Rakefile:3:in `<top (required)>'
> +/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
> +(See full trace by running task with --trace)
> # ./spec/acceptance/smoke_spec.rb:12:in `block (2 levels) in <top (required)>'
>
> Finished in 1.87 seconds (files took 3.75 seconds to load)
> 41 examples, 2 failures
>
> Failed examples:
>
> rspec ./spec/acceptance/smoke_spec.rb:13 # rake is expected to be success
> rspec ./spec/acceptance/smoke_spec.rb:12 # rake is expected to match /spec_prep/
>
> Randomized with seed 46145
>
> /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
> ERROR: Test "ruby3.1" failed:
The full build log is available at
https://people.debian.org/~terceiro/ruby-mocha-2/ruby-puppetlabs-spec-helper_arm64-2024-12-20T10:26:28Z.build
This bug report is being filed as severity important, but will be raised to
serious once ruby-mocha is updated in unstable.
-------------- 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/20241220/545b3fb3/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list