Hi,
I need to build and run the specs on puppet, before I can send a pull request:
here it explains how to set up a machine with the dependencies for building puppet:
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 up
$ vagrant ssh
$ sudo apt-get update
$ sudo apt-get install ruby-rvm
$ sudo gem install bundler
$ 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?