Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run bundle exec rake release_checks #98

Open
ranzbak opened this issue Feb 8, 2021 · 0 comments
Open

Can't run bundle exec rake release_checks #98

ranzbak opened this issue Feb 8, 2021 · 0 comments

Comments

@ranzbak
Copy link

ranzbak commented Feb 8, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet:
  • Ruby:
  • Distribution:
  • Module version:

How to reproduce (e.g Puppet code you use)

bundle install
bundle exec rake release_checks

What are you seeing

An error occurred while loading ./spec/tasks/register_runner_spec.rb. - Did you mean?
                    rspec ./spec/tasks/unregister_runner_spec.rb

Failure/Error: require_relative '../../tasks/register_runner.rb'

LoadError:
  cannot load such file -- /home/paul/work/esa_auto/puppet/vagrant/vagrant-gitlabci/modules/ruby_task_helper/files/task_helper.rb
# ./tasks/register_runner.rb:7:in `require_relative'
# ./tasks/register_runner.rb:7:in `<top (required)>'
# ./spec/tasks/register_runner_spec.rb:2:in `require_relative'
# ./spec/tasks/register_runner_spec.rb:2:in `<top (required)>'
No examples found.

What behaviour did you expect instead

I Expected the relative paths to work on the command line too, and not only in the CI/CD pipeline.

Output log

bundle exec rake release_checks  
(in /home/paul/work/esa_auto/puppet/vagrant/vagrant-gitlabci/modules/puppet-gitlab_ci_runner)
---> syntax:manifests
---> syntax:templates
---> syntax:hiera:yaml
I, [2021-02-08T14:17:02.455330 #893550]  INFO -- : Creating symlink from spec/fixtures/modules/gitlab_ci_runner to /home/paul/work/esa_auto/puppet/vagrant/vagrant-gitlabci/modules/puppet-gitlab_ci_runner
4 processes for 4 specs, ~ 1 specs per process

An error occurred while loading ./spec/tasks/register_runner_spec.rb. - Did you mean?
                    rspec ./spec/tasks/unregister_runner_spec.rb

Failure/Error: require_relative '../../tasks/register_runner.rb'

LoadError:
  cannot load such file -- /home/paul/work/esa_auto/puppet/vagrant/vagrant-gitlabci/modules/ruby_task_helper/files/task_helper.rb
# ./tasks/register_runner.rb:7:in `require_relative'
# ./tasks/register_runner.rb:7:in `<top (required)>'
# ./spec/tasks/register_runner_spec.rb:2:in `require_relative'
# ./spec/tasks/register_runner_spec.rb:2:in `<top (required)>'
No examples found.


Finished in 0.00004 seconds (files took 0.87794 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples


An error occurred while loading ./spec/tasks/unregister_runner_spec.rb. - Did you mean?
                    rspec ./spec/tasks/register_runner_spec.rb

Failure/Error: require_relative '../../tasks/unregister_runner.rb'

LoadError:
  cannot load such file -- /home/paul/work/esa_auto/puppet/vagrant/vagrant-gitlabci/modules/ruby_task_helper/files/task_helper.rb
# ./tasks/unregister_runner.rb:7:in `require_relative'
# ./tasks/unregister_runner.rb:7:in `<top (required)>'
# ./spec/tasks/unregister_runner_spec.rb:2:in `require_relative'
# ./spec/tasks/unregister_runner_spec.rb:2:in `<top (required)>'
No examples found.


Finished in 0.00004 seconds (files took 0.88601 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

^C
RSpec is shutting down and will print the summary report... Interrupt again to force quit.
RSpec is shutting down and will print the summary report... Interrupt again to force quit.


2 errors, 0 examples, 0 failures

Took 8 seconds
Tests Failed

Any additional information you'd like to impart

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant