Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-1825

Use internal rubygems mirror for JRuby spec tests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SERVER 5.1.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Systems Engineering
    • Sub-team:
    • Story Points:
      1
    • Sprint:
      Server 2017-07-11
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      We've had a fairly high number of failures recently for Jenkins runs of the JRuby Spec test jobs. The reason for the failures isn't obvious from looking at the console output, but it seems like it might be a network / rubygems issue leading the bundler command to hang / eventually be timed out.

      From this job, for example, we see this output:

            PATH='/tmp/jenkins/workspace/platform_puppetserver_unit-jruby_master/JDK/oraclejdk8/label/unit/vendor/test_gems/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/local/rvm/gems/ruby-2.3.1/bin:/usr/local/rvm/gems/ruby-2.3.1@global/bin:/usr/local/rvm/rubies/ruby-2.3.1/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'       BUNDLE_GEMFILE='/tmp/jenkins/workspace/platform_puppetserver_unit-jruby_master/JDK/oraclejdk8/label/unit/ruby/puppet/Gemfile'       GEM_HOME='/tmp/jenkins/workspace/platform_puppetserver_unit-jruby_master/JDK/oraclejdk8/label/unit/vendor/test_gems' GEM_PATH='/tmp/jenkins/workspace/platform_puppetserver_unit-jruby_master/JDK/oraclejdk8/label/unit/vendor/test_gems'       lein run -m org.jruby.Main         -S bundle install --without extra development --path='/tmp/jenkins/workspace/platform_puppetserver_unit-jruby_master/JDK/oraclejdk8/label/unit/vendor/test_bundle'
      ...
      The dependency win32-service (= 0.8.8) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
      The dependency minitar (~> 0.6.1) will be unused by any of the platforms Bundler is installing for. Bundler is installing for java but the dependency is only for x86-mingw32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32`.
      Build timed out (after 40 minutes). Marking the build as aborted.
      Build was aborted
      

      Informally, we've seen a number of one-off rubygems.org connectivity issues of late.

      We are currently using rubygems.org as the GEM_SOURCE for these jobs. We may see significantly less network-related failures if we instead switch to using the Puppet rubygems mirror, http://rubygems.delivery.puppetlabs.net. For this ticket, we would investigate using the Puppet rubygems mirror for this job instead.

        Attachments

          Activity

            People

            Assignee:
            jeremy.barlow Jeremy Barlow
            Reporter:
            jeremy.barlow Jeremy Barlow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support