Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28446

UnlabeledLoad.computeQueueLength() includes labeled jobs

      The Jenkins#unlabeledLoad LoadStatistics incorrectly counts labeled jobs from computeQueueLength().

      Steps to reproduce:

      1. Create a job with a label 'foo'
      2. Run the job and ensure it is the only job in the queue
      3. Evaluating Jenkins.getInstance().unlabeledLoad.computeQueueLength() will return 1

      This causes the Jenkins.unlabeledLoadProvisioner to provision slaves with null labels even though they will not be able to run the labeled jobs.

          [JENKINS-28446] UnlabeledLoad.computeQueueLength() includes labeled jobs

          Ryan Campbell created issue -
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "jenkins/pull/1709 (Web Link)" [ 12914 ]
          Ryan Campbell made changes -
          Description Original: The {{Jenkins#unlabeledLoad}} LoadStatistics incorrectly counts labeled jobs from computeQueueLength().

          Steps to reproduce:
          # Create a job with a label 'foo'
          # Evaluating {{Jenkins.getInstance().unlabeledLoad.computeQueueLength()}} will return 1

          This causes the {{Jenkins.unlabeledLoadProvisioner}} to provision slaves with null labels even though they will not be able to run the labeled jobs.
          New: The {{Jenkins#unlabeledLoad}} LoadStatistics incorrectly counts labeled jobs from computeQueueLength().

          Steps to reproduce:
          # Create a job with a label 'foo'
          # Run the job and ensure it is the only job in the queue
          # Evaluating {{Jenkins.getInstance().unlabeledLoad.computeQueueLength()}} will return 1

          This causes the {{Jenkins.unlabeledLoadProvisioner}} to provision slaves with null labels even though they will not be able to run the labeled jobs.
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Labels Original: cloud loadstatistics New: cloud loadstatistics lts-candidate
          Oliver Gondža made changes -
          Labels Original: cloud loadstatistics lts-candidate New: 1.609 cloud loadstatistics
          Oliver Gondža made changes -
          Labels Original: 1.609 cloud loadstatistics New: 1.609.2-fixed cloud loadstatistics
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163286 ] New: JNJira + In-Review [ 197161 ]

            oleg_nenashev Oleg Nenashev
            recampbell Ryan Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: