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
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
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
Any additional information you'd like to impart
None