David Portabella
2014-Apr-15 13:35 UTC
[Puppet Users] Failed running the puppet tests: bundle exec rake spec
Hi,
I need to build and run the specs on puppet, before I can send a pull
request:
https://github.com/puppetlabs/puppet/pull/2489
here it explains how to set up a machine with the dependencies for building
puppet:
https://github.com/nespresso/puppet/blob/master/docs/quickstart.md
I've used a standard vagrant box with Ubuntu, so that it can be reproduced
easily by anyone.
(and because it was difficult to install all this in my OSX machine)
However, I didn't manage to run all the tests (even without any
modification to the puppet source code).
What can be the problem?
Do you have a step by step example for building puppet and running the
tests?
$ vagrant init precise64 http://files.vagrantup.com/precise64.box
$ vagrant up
$ vagrant ssh
$ sudo apt-get update
$ sudo apt-get install ruby-rvm
$ sudo gem install bundler
$ git clone https://github.com/nespresso/puppet.git
$ cd puppet
$ bundle install --path .bundle/gems/
$ script log.txt
Script started on Tue 15 Apr 2014 09:08:12 AM UTC
$ bundle exec rake spec
rspec spec
/opt/vagrant_ruby/lib/ruby/1.8/rdoc/dot/dot.rb:28: warning: already
initialized constant NODE_OPTS
/opt/vagrant_ruby/lib/ruby/1.8/rdoc/dot/dot.rb:46: warning: already
initialized constant EDGE_OPTS
/opt/vagrant_ruby/lib/ruby/1.8/rdoc/dot/dot.rb:76: warning: already
initialized constant GRAPH_OPTS
Run options: exclude {:benchmark=>true, :broken=>true}
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................**....................................................................................................................................**.......**.......**........................................................................................................................................................................*..*..........................................................................................................*...............................................................................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF...........................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................................F................................................................................Could
not change to user puppet: Invalid user: puppet
FCould not change to user puppet: Invalid user: puppet
FCould not change to user puppet: Invalid user: puppet
FCould not change to user puppet: Invalid user: puppet
F.Could not change to user puppet: Invalid user: puppet
FCould not change to user puppet: Invalid user: puppet
FCould not change to user puppet: Invalid user: puppet
FCould not change to user puppet: Invalid user: puppet
F..............................................*................................................................................................................................................................................................................................................................................................................................................................................***...........................***..........................................................................*.................................................................................................................................****...................................................................................................................................................................................................*...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................**...................*........................................................................................................................
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Could
not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed while
executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate memory
-
/bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='kernelversion',
resolution='<anonymous>': private
method `split' called for nil:NilClass
Could not retrieve fact='kernelmajversion',
resolution='<anonymous>':
private method `split' called for nil:NilClass
Could not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed
while executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate
memory
- /bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
Could not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed
while executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate
memory
- /bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='kernelversion',
resolution='<anonymous>': private
method `split' called for nil:NilClass
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
Could not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed
while executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate
memory
- /bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
Could not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed
while executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate
memory
- /bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='kernelversion',
resolution='<anonymous>': private
method `split' called for nil:NilClass
Could not retrieve fact='kernelmajversion',
resolution='<anonymous>':
private method `split' called for nil:NilClass
Could not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed
while executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate
memory
- /bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
Could not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed
while executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate
memory
- /bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='kernelversion',
resolution='<anonymous>': private
method `split' called for nil:NilClass
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
Could not retrieve fact='uptime_seconds',
resolution='<anonymous>': Failed
while executing '/bin/cat /proc/uptime 2>/dev/null': Cannot allocate
memory
- /bin/cat /proc/uptime 2>/dev/null
Could not retrieve fact='hostname',
resolution='<anonymous>': Failed while
executing '/bin/hostname': Cannot allocate memory - /bin/hostname
.....................................................*......................................................................................................................................................*..............................................................................................
.
...................................................................................*............................******.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................
rake aborted!
Command failed with status (): [rspec spec...]
/vagrant/puppet/Rakefile:67
Tasks: TOP => spec
(See full trace by running task with --trace)
$ exit
Script done on Tue 15 Apr 2014 01:22:51 PM UTC
---
bundle exec rake spec fails after 4 hours with this message.
What can be the problem?
Do you have a step by step example for building puppet and running the
tests?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/fea1f394-2165-4376-84bd-483fab801fbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.