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

Label expression (a&&b) wants two executors on slaves

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • core
    • Jenkins 1.441, also seen in Hudson 1.377
      Plugin heavy-job is active, but I don't know if that's important. The job in the test has weight 1. I depend on the plugin so cannot disable it for testing.

      Create a job J, let it depend on two labels (A && B).
      Have a slave S with one executor and both labels, A and B, assigned.
      S is idle, no builds.
      Request a build of J.
      The build waits patiently in queue ("waiting for next available executor on S").
      Edit S, set #executors to two.
      Watch the requested build start, actually using only a single executor.

      If I instead use the expression (A || B), the build starts with just one executor on S.
      I have not tried the "implies" expressions as I believe they're hard to force to run on a particular slave.

      If the labels are assigned to the master instead of a slave, the expression (A && B) works with a single executor.

          [JENKINS-12557] Label expression (a&&b) wants two executors on slaves

          torbent added a comment -

          Another data point: Having one two-labeled build (eg "J" above) running on a slave ("S") and then trying to start a different build with two labels (eg A && C), requires three available executors on the slave.

          torbent added a comment - Another data point: Having one two-labeled build (eg "J" above) running on a slave ("S") and then trying to start a different build with two labels (eg A && C), requires three available executors on the slave.

          Daniel Beck added a comment -

          This looks like a bug of Heavy Job plugin I've heard about.

          No watchers, so resolving instead of asking for more information.

          Daniel Beck added a comment - This looks like a bug of Heavy Job plugin I've heard about. No watchers, so resolving instead of asking for more information.

            Unassigned Unassigned
            torbent torbent
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: