Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 363451

Summary: FEATURES=test app-admin/puppet-2.6.7 fails tests
Product: Gentoo Linux Reporter: Hans de Graaff <graaff>
Component: New packagesAssignee: MATSUU Takuto (RETIRED) <matsuu>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hans de Graaff gentoo-dev Security 2011-04-13 10:08:05 UTC
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
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2011-04-29 07:06:19 UTC
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.
Comment 2 Hans de Graaff gentoo-dev Security 2011-05-02 17:46:05 UTC
@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.