Issue #2907 has been updated by Markus Roberts.

Ah.  It wasn't found because of an unrelated (and consistent) ldap load 
failure.  My scan only looked for changes in behavior, and thus missed this 
interaction.
----------------------------------------
Bug #2907: Test isolation: rspec crash when spec/unit/application/puppetrun.rb 
is run after spec/unit/util/ldap/connection.rb
http://projects.reductivelabs.com/issues/2907

Author: Markus Roberts
Status: Accepted
Priority: Low
Assigned to: Jesse Wolfe
Category: testing
Target version: 0.25.2
Affected version: 0.25.1
Keywords: 
Branch: 


Running rake spec on 0.25.x just now (head is 
commit:"7136c85877982804dbf99d239c4c74e59366d2a2") I got the following strange 
failure:


    (markus) ~/projects/puppet (0.25.x)> rake spec
    (in /Users/markus/projects/puppet)
    ./lib/puppet.rb:27: warning: already initialized constant PUPPETVERSION
    ./spec/unit/file_serving/metadata.rb:89: warning: parenthesize argument(s) 
for future version
    Could not autoload 
"/Library/Ruby/Site/1.8/puppet/provider/package/paludis.rb": no such file to 
load -- Paludis
    /Library/Ruby/Site/1.8/universal-darwin9.0/ldap.bundle: Class is not a 
module (TypeError)
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
        from 
/Users/markus/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in
 `require'
        from 
/Users/markus/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in
 `new_constants_in'
        from 
/Users/markus/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in
 `require'
        from 
/Users/markus/projects/puppet/spec/../lib/puppet/application/puppetrun.rb:8
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in 
`gem_original_require'
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
        from 
/Users/markus/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in
 `require'
         ... 9 levels...
        from 
/Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/example_group_runner.rb:14:in
 `load_files'
        from 
/Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/options.rb:97:in 
`run_examples'
        from 
/Library/Ruby/Gems/1.8/gems/rspec-1.2.2/lib/spec/runner/command_line.rb:9:in 
`run'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.2/bin/spec:4

A bit of testing reveals that it is an interaction between 
spec/unit/util/ldap/connection.rb and spec/unit/application/puppetrun.rb and 
can be reproduced by running:

    touch spec/unit/util/ldap/connection.rb
    spec spec/unit/util/ldap/connection.rb spec/unit/application/puppetrun.rb 
--loadby mtime

Frustratingly, this appears to have somehow escaped my automated search for 
pairwise interactions a few weeks ago.
 



-- 
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