Issue #2511 has been updated by Markus Roberts.

A clue!

Sam was seeing the problem on :ignore -- but that's one of the parameters 
that's set up inline in type/file.rb, not one of the ones that's required (e.g. 
the ones in type/file/*.rb).  So it isn't affected by reloading type/file.rb at 
all (I just tested this to confirm).

Therefore, there are two distinct mechanisms at work: the reloading, as seen in 
the tests, and some as yet undiagnosed problem.

----------------------------------------
Bug #2511: Sporadic and spurious "invalid parameter" errors
http://projects.reductivelabs.com/issues/2511

Author: Markus Roberts
Status: Accepted
Priority: High
Assigned to: Markus Roberts
Category: unknown
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0rc1
Keywords: 


Under certain orderings large numbers (>100) of tests will fail with messages 
similar to this:

<pre>
44)
Puppet::Error in 'Puppet::Resource::Catalog when compiling when creating a 
relationship graph should not write graph files if the catalog is not a host 
cata
log'
Invalid parameter source(:source)
./lib/puppet/util/errors.rb:51:in `fail'
./lib/puppet/type.rb:418:in `[]'
./spec/../lib/puppet/type/file.rb:278:in `validate'
./lib/puppet/type.rb:1908:in `initialize'
./spec/../lib/puppet/type/file.rb:400:in `initialize'
./spec/unit/resource/catalog.rb:713:in `new'
./spec/unit/resource/catalog.rb:713:
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:22:in `run'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `each'
./spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb:17:in `run'
</pre>

The common factor in each case being the "Invalid parameter" messages and the 
first five lines of the stack trace.  

That this is order dependent has been confirmed by making the problem appear on 
a fresh, unmodified copy of 0.25.0rc1 by simply touching spec files to force 
test execution error and then making the problem go away by touching one of the 
spec files again to force a different ordering.




-- 
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---

Reply via email to