puppetlabs_spec_helper creates a default symlink but then fails build because a symlink exists - what is going on?

asked 2018-11-27 08:32:00 -0600

jpsheffield gravatar image

We have a Jenkins build that runs on updates to our modules, and as part of the spec tests it includes puppetlabs_spec_helper.

Note: there is no symlink defined in .fixtures.yml or any symlinks pre-existing.

During the rake exec a symbolic link is created automatically as per this code it seems: https://github.com/puppetlabs/puppetl...

Then the rake test fails because there is a sym link: https://github.com/puppetlabs/puppetl...

What is going on? What am I doing wrong?

Output from rake:

rake aborted!

Symlink(s) exist within this directory

/var/lib/jenkins/workspace/mymodule_tools_PR-52-SYHK7BFH357RS5GIKYAVKE7XOLQMQKADCXS3JHWX4QPVTT3CWZUA/gems/ruby/2.4.0/gems/puppetlabs_spec_helper-2.4.0/lib/puppetlabs_spec_helper/rake_tasks.rb:607:in `block (2 levels) in <top (required)&gt;'<="" p="">

/var/lib/jenkins/workspace/mymodule_tools_PR-52-SYHK7BFH357RS5GIKYAVKE7XOLQMQKADCXS3JHWX4QPVTT3CWZUA/gems/ruby/2.4.0/gems/puppetlabs_spec_helper-2.4.0/lib/puppetlabs_spec_helper/rake_tasks.rb:580:in `block in <top (required)&gt;'<="" p="">

/var/lib/jenkins/workspace/mymodule_tools_PR-52-SYHK7BFH357RS5GIKYAVKE7XOLQMQKADCXS3JHWX4QPVTT3CWZUA/gems/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)&gt;'<="" p="">

/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'

....etc....

/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `load'

/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `<main>'

Tasks: TOP => check:symlinks

(See full trace by running task with --trace)

Symlink found: spec/fixtures/modules/mymodule_tools => /var/lib/jenkins/workspace/mymodule_tools_PR-52-SYHK7BFH357RS5GIKYAVKE7XOLQMQKADCXS3JHWX4QPVTT3CWZUA/test-area

script returned exit code 1

edit retag flag offensive close merge delete

Comments

jpsheffield gravatar imagejpsheffield ( 2018-12-03 08:43:36 -0600 )edit