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

Tests not running with kitchen-dokken (including in Travis), looking in /tmp rather than /opt #367

Open
atheiman opened this issue Jan 4, 2018 · 3 comments
Labels
Help Wanted Assistance is required to resolve this issue Maintenance Maintenance issues such as failing builds

Comments

@atheiman
Copy link

atheiman commented Jan 4, 2018

Tests are not running via kitchen verify with kitchen-dokken (I haven't tried kitchen-vagrant but i expect they work fine). See https://travis-ci.org/brianbianco/redisio/jobs/279583552 for an example

The issue is test-kitchen is looking in /tmp/verifier on the instances for tests, but everything is actually stored in /opt/verifier with kitchen-dokken.

kitchen verify debug output:

redisio $ bundle exec kitchen verify sentinel-ubuntu-1404 -l debug
-----> Starting Kitchen (v1.19.2)
D      Berksfile found at /Users/austinheiman/code/github.com/atheiman/redisio/Berksfile, loading Berkshelf
D      Berkshelf 6.3.1 library loaded
...
D      Berksfile found at /Users/austinheiman/code/github.com/atheiman/redisio/Berksfile, loading Berkshelf
D      Berkshelf 6.3.1 previously loaded
-----> Verifying <sentinel-ubuntu-1404>...
       Creating kitchen sandbox in /Users/austinheiman/.dokken/verifier_sandbox/9033a7797a-sentinel-ubuntu-1404
-----> Busser installation detected (busser)
-----> Busser plugin detected: busser-serverspec
-----> Running serverspec test suite
/opt/chef/embedded/bin/ruby -I/tmp/verifier/suites/serverspec -I/tmp/verifier/gems/gems/rspec-support-3.7.0/lib:/tmp/verifier/gems/gems/rspec-core-3.7.1/lib /opt/chef/embedded/bin/rspec --pattern /tmp/verifier/suites/serverspec/\*\*/\*_spec.rb --color --format documentation --default-path /tmp/verifier/suites/serverspec
No examples found.

Finished in 0.0003 seconds (files took 0.0485 seconds to load)
0 examples, 0 failures

       Finished verifying <sentinel-ubuntu-1404> (0m0.77s).
-----> Kitchen is finished. (0m1.78s)

So when I run the same command on the instance manually, but use /opt instead of /tmp everywhere, it works:

redisio $ bundle exec kitchen login sentinel-ubuntu-1404 -l debug
D      Berksfile found at /Users/austinheiman/code/github.com/atheiman/redisio/Berksfile, loading Berkshelf
D      Berkshelf 6.3.1 library loaded
...
D      Berksfile found at /Users/austinheiman/code/github.com/atheiman/redisio/Berksfile, loading Berkshelf
D      Berkshelf 6.3.1 previously loaded
D      Login command: docker exec -it 9033a7797a-sentinel-ubuntu-1404 /bin/bash -login -i (Options: {})
root@dokken:/# /opt/chef/embedded/bin/ruby -I/opt/verifier/suites/serverspec -I/opt/verifier/gems/gems/rspec-support-3.7.0/lib:/opt/verifier/gems/gems/rspec-core-3.7.1/lib /opt/chef/embedded/bin/rspec --pattern /opt/verifier/suites/serverspec/\*\*/\*_spec.rb --color --format documentation --default-path /opt/verifier/suites/serverspec

Redis-Sentinel
  behaves like sentinel on port
WARNING: ignoring the provided expectation message argument ({:if=>true}) since it is not a string or a proc.
    enables the redis-sentinel service
    is listening on port 26379

Finished in 0.03449 seconds (files took 0.75687 seconds to load)
2 examples, 0 failures
@atheiman
Copy link
Author

atheiman commented Jan 4, 2018

Looks like this can be corrected with the following after reading the kitchen-dokken readme's note on this

verifier:
  root_path: '/opt/verifier'

@damacus
Copy link
Member

damacus commented Nov 27, 2018

We should probably fix this in the move/tidy up when moving from Travis to CircleCI 👍

@xorima xorima added Maintenance Maintenance issues such as failing builds Help Wanted Assistance is required to resolve this issue labels May 13, 2019
@github-actions
Copy link

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

@github-actions github-actions bot added the Stale label Sep 30, 2020
@xorimabot xorimabot removed the Stale label Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Assistance is required to resolve this issue Maintenance Maintenance issues such as failing builds
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants