Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920518 - dev-util/aruba-2.2.0 fails tests: Could not find gem 'simplecov (>= 0.18.0, < 0.23.0)' in lo cally installed gems. (Bundler::GemNotFound)
Summary: dev-util/aruba-2.2.0 fails tests: Could not find gem 'simplecov (>= 0.18.0, <...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 916520
  Show dependency tree
 
Reported: 2023-12-22 05:12 UTC by matoro
Modified: 2023-12-23 07:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log.gz,22.01 KB, application/gzip)
2023-12-22 05:13 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2023-12-22 05:12:38 UTC
There seems to already be a sed for this but is possibly not working?

I tried to sed it out of the gemspec and got even more errors.

build.log and emerge --info in attachment.


Expected `cucumber` to succeed but got non-zero exit status and the following output:

/usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/resolver.rb:304:in `raise_not_found!': Could not find gem 'simplecov (>= 0.18.0, < 0.23.0)' in locally installed gems. (Bundler::GemNotFound)
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/resolver.rb:357:in `block in prepare_dependencies'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/resolver.rb:342:in `each'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/resolver.rb:342:in `map'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/resolver.rb:342:in `prepare_dependencies'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/resolver.rb:53:in `setup_solver'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/resolver.rb:28:in `start'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/definition.rb:570:in `start_resolution'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/definition.rb:301:in `resolve'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/definition.rb:523:in `materialize'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/definition.rb:200:in `specs'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/definition.rb:266:in `specs_for'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/runtime.rb:18:in `setup'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler.rb:162:in `setup'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/setup.rb:23:in `block in <top (required)>'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/ui/shell.rb:159:in `with_level'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/ui/shell.rb:111:in `silence'
        from /usr/lib64/ruby/gems/3.1.0/gems/bundler-2.4.19/lib/bundler/setup.rb:23:in `<top (required)>'
        from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
        from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
        from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:40:in `require'
        from /var/tmp/portage/dev-util/aruba-2.2.0/work/ruby31/aruba-2.2.0/bin/cucumber:25:in `<main>'
<internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:86:in `require': cannot load such file -- bundler/setup (LoadError)
        from <internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:86:in `require'
        from /var/tmp/portage/dev-util/aruba-2.2.0/work/ruby31/aruba-2.2.0/bin/cucumber:25:in `<main>'

 (RSpec::Expectations::ExpectationNotMetError)
./lib/aruba/api/commands.rb:198:in `run_command_and_stop'
./lib/aruba/cucumber/command.rb:12:in `/^I successfully run `(.*?)`(?: for up to ([\d.]+) seconds)?$/'
./features/support/timing.rb:9:in `block in <top (required)>'
./lib/aruba/platforms/local_environment.rb:22:in `call'
./lib/aruba/platforms/unix_platform.rb:79:in `with_environment'
./lib/aruba/api/core.rb:222:in `block in with_environment'
./lib/aruba/platforms/unix_environment_variables.rb:189:in `nest'
./lib/aruba/api/core.rb:220:in `with_environment'
./lib/aruba/cucumber/hooks.rb:7:in `block in <top (required)>'
features/06_use_aruba_cli/initialize_project_with_aruba.feature:53:in `I successfully run `cucumber`'

Reproducible: Always
Comment 1 matoro archtester 2023-12-22 05:13:53 UTC
Created attachment 880202 [details]
build.log and emerge --info
Comment 2 Hans de Graaff gentoo-dev Security 2023-12-23 07:29:18 UTC
(In reply to matoro from comment #0)
> There seems to already be a sed for this but is possibly not working?

That sed tries to tweak the version number, but we don't depend on simplecov so that is a weird solution.

> I tried to sed it out of the gemspec and got even more errors.

That should work, I'll commit a fix for it shortly.
Comment 3 Larry the Git Cow gentoo-dev 2023-12-23 07:31:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08ca5191fe9dadb0a8d2de3a8b2e7dd05ce574fd

commit 08ca5191fe9dadb0a8d2de3a8b2e7dd05ce574fd
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2023-12-23 07:30:12 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-12-23 07:31:00 +0000

    dev-util/aruba: avoid test dependency on simplecov
    
    Closes: https://bugs.gentoo.org/920518
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-util/aruba/aruba-2.2.0.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)