I'm getting the following test failures when trying to install app-admin/puppet-2.6.7. Please let me know if you need more information or if you need me to debug things. Failures: 1) Puppet::Node::ActiveRecord should call fact_merge when a node is found Failure/Error: ar = Puppet::Node::ActiveRecord.new ActiveRecord::StatementInvalid: SQLite3::IOException: disk I/O error: CREATE TABLE "resources" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" text NOT NULL, "restype" varchar(255) NOT NULL, "host_id" integer, "source_file_id" integer, "exported" boolean, "line" integer, "updated_at" datetime, "created_at" datetime) # ./spec/../lib/puppet/rails/database/schema.rb:9:in `init' # ./spec/../lib/puppet/rails/database/schema.rb:8:in `init' # ./lib/puppet/util.rb:193:in `benchmark' # ./lib/puppet/util.rb:192:in `benchmark' # ./spec/../lib/puppet/rails/database/schema.rb:4:in `init' # ./spec/../lib/puppet/rails.rb:81:in `init' # ./spec/../lib/puppet/indirector/active_record.rb:17:in `initialize' # ./spec/unit/indirector/node/active_record_spec.rb:31:in `new' # ./spec/unit/indirector/node/active_record_spec.rb:31 2) Puppet::Parser::Compiler should be able to determine the configuration version from a local version control repository Failure/Error: @compiler = Puppet::Parser::Compiler.new(@node) Puppet::ParseError: Unable to set config_version: Execution of 'git rev-parse HEAD' returned 128: fatal: Not a git repository (or any parent up to mount parent /var/tmp) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). # ./spec/../lib/puppet/resource/type_collection.rb:191:in `version' # ./spec/../lib/puppet/parser/compiler.rb:434:in `initvars' # ./spec/../lib/puppet/parser/compiler.rb:192:in `initialize' # ./spec/integration/parser/compiler_spec.rb:25:in `new' # ./spec/integration/parser/compiler_spec.rb:25
I guess "rake spec" is for puppet developers because it requires git repository. I noticed that "rake test" is useful instead of "rake spec". fixed in puppet-2.6.8. thanks.
@matsuu: please note that more and more gems no longer contain tests or specs, or all the files needed to run them. We are switching to downloading the upstream source more and more. Not sure if this is the right thing to do for puppet, but just FYI.