Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 3.8.1, PUP 4.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1

      Description

      We are seeing lots of warnings like the following:

      C:/jenkins/workspace/platform_aio-puppet_unit-ruby_stable-windows/RUBY/ruby-2.1.5.2-x64/SLAVE/unit-win2012/lib/puppet/pops/loader/../../../puppet/functions/defined.rb:71: warning: already initialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::ARG_TYPE
      

      in windows specs, https://jenkins.puppetlabs.com/view/All%20in%20One%20Agent/view/Stable/view/Puppet/job/platform_aio-puppet_unit-ruby_stable-windows/RUBY=ruby-2.1.5.2-x64,SLAVE=unit-win2012/71/console

      Seems to be an order dependent issue. I can reproduce on OSX with:

       $ bundle exec rspec spec/integration/parser/class_spec.rb
      Run options: exclude {:broken=>true, :benchmark=>true}
      ./Users/josh/work/puppet/lib/puppet/pops/loader/../../../puppet/functions/defined.rb:71: warning: already initialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::ARG_TYPE
      /Users/josh/work/puppet/lib/puppet/pops/loader/../../../puppet/functions/defined.rb:71: warning: previous definition of ARG_TYPE was here
      ./Users/josh/work/puppet/lib/puppet/pops/loader/../../../puppet/functions/defined.rb:71: warning: already initialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::ARG_TYPE
      

      However, when running all specs locally I don't see the issue, so there must be some other test that when run first, prevents the warning from being generated.

      I'm guessing it's related to how some specs do extend PuppetSpec::Language

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                josh Josh Cooper
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: