Issue #6771 has been updated by Josh Cooper.
This occurs when the db connection is not closed between tests. See commit:7e9707a7d7b357d9b5167c6dd0dd250ab207f6ac I can reproduce a slightly different error by running: <pre> rspec spec/unit/indirector/node/active_record_spec.rb spec/unit/indirector/facts/inventory_active_record_spec.rb </pre> Adding `ActiveRecord::Base.remove_connection` in an `after` block to the former makes the error go away. ---------------------------------------- Bug #6771: Mysterious ActiveRecord disk I/O Error https://projects.puppetlabs.com/issues/6771 Author: Max Martin Status: Accepted Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Some of us (but not others) have been getting a mysterious failure when running the spec tests: 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 Finished in 250.66 seconds 11249 examples, 1 failure, 45 pending On my machine, it could be due to some weirdness with homebrew-installed SQLite. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
