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

UnlabeledLoad.computeQueueLength() includes labeled jobs

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            recampbell Ryan Campbell created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Assignee Oleg Nenashev [ oleg_nenashev ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "jenkins/pull/1709 (Web Link)" [ 12914 ]
            recampbell Ryan Campbell made changes -
            Description 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.
            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_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels cloud loadstatistics cloud loadstatistics lts-candidate
            olivergondza Oliver Gondža made changes -
            Labels cloud loadstatistics lts-candidate 1.609 cloud loadstatistics
            olivergondza Oliver Gondža made changes -
            Labels 1.609 cloud loadstatistics 1.609.2-fixed cloud loadstatistics
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163286 ] JNJira + In-Review [ 197161 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: