Issue #20401 has been reported by Josh Cooper. ---------------------------------------- Bug #20401: 2.7 specs against ruby 1.8.5 are all failing but marked as success https://projects.puppetlabs.com/issues/20401
* Author: Josh Cooper * Status: Accepted * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: 2.7.21 * Keywords: * Branch: ---------------------------------------- During code orange we found that all of the puppet 2.7 specs fail against ruby 1.8.5, but rake still returns 0, causing jenkins to think the run was successful. Such as <https://jenkins.puppetlabs.com/view/Puppet%20FOSS/view/2.7.x/job/Puppet%20Specs%20(2.7.x)/facter=1.6.x,gemset=@noFeatures,ruby=ruby-1.8.5-p231,rvm=%23rvm/> The problem is puppet's spec_helper calls `Dir.mktmpdir`, but it doesn't exist in 1.8.5, and that occurs before we've required puppet, which monkey patches `Dir`, so yeah. Filing this so we don't forget to fix it. <pre> /home/jenkins/workspace/Puppet Specs (2.7.x)/facter/1.7.x/gemset/@allFeatures/ruby/ruby-1.8.5-p231/rvm/#rvm/spec/spec_helper.rb:46: undefined method `mktmpdir' for Dir:Class (NoMethodError) from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core.rb:94:in `configure' from /home/jenkins/workspace/Puppet Specs (2.7.x)/facter/1.7.x/gemset/@allFeatures/ruby/ruby-1.8.5-p231/rvm/#rvm/spec/spec_helper.rb:41 from /home/jenkins/.rvm/rubies/ruby-1.8.5-p231/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /home/jenkins/.rvm/rubies/ruby-1.8.5-p231/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/jenkins/workspace/Puppet Specs (2.7.x)/facter/1.7.x/gemset/@allFeatures/ruby/ruby-1.8.5-p231/rvm/#rvm/spec/integration/type_spec.rb:2 from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load' from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load_spec_files' from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `map' from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load_spec_files' from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:22:in `run' from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `autorun' from /home/jenkins/.rvm/gems/ruby-1.8.5-p231@allFeatures/bin/rspec:19 </pre> -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
