Continuum
  1. Continuum
  2. CONTINUUM-2476

Projects are not built in the correct build agent when the project is already in the build queue and then triggered to be built again

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.5 (Beta)
    • Fix Version/s: 1.4.0 (Beta)
    • Component/s: Distributed Builds
    • Labels:
      None

      Description

      For example, you have two build agents configured (BA1 and BA2) and you also have two schedules configured (WINDOWS_DEV_BUILD and NIGHTLY_BUILD). Now, let's say your WINDOWS_DEV_BUILD runs at 6pm, 8pm and 10pm, while your NIGHLTY_BUILD runs at 11pm. You have a set of projects which have two build definitions, BDEF1 which is attached to the WINDOWS_DEV_BUILD schedule and targeted to build at build agent BA1, and BDEF2 which is set to "always build" and is attached to the NIGHTLY_BUILD schedule and targeted to build at build agent BA2.

      At 10pm, the WINDOWS_DEV_BUILD schedule fires and queues the attached projects in BA1. Let's say the build is slow and by 11pm, some of the projects haven't finished building and were still queued. When the NIGHTLY_BUILD schedule fires, the same set of projects are added to the build queue. If you look at the Queues page, you will see that they are also queued in build agent BA1 whereas they should have been queued in build agent BA2 (where they were targeted to build).

        Activity

        Maria Odea Ching created issue -
        Brett Porter made changes -
        Field Original Value New Value
        Fix Version/s 1.4.1 [ 15104 ]
        Maria Catherine Tan made changes -
        Assignee Maria Catherine Tan [ ctan ]
        Hide
        Maria Catherine Tan added a comment -

        Fixed in r933451

        • added checks if project and build definition is already in queue or is currently preparing build or building
        • select build agent based on the scm roots of the same project group
        • added unit test
        • fixed concurrent modification exception
        Show
        Maria Catherine Tan added a comment - Fixed in r933451 added checks if project and build definition is already in queue or is currently preparing build or building select build agent based on the scm roots of the same project group added unit test fixed concurrent modification exception
        Maria Catherine Tan made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Brett Porter made changes -
        Fix Version/s 1.4.1 (Beta) [ 15104 ]
        Fix Version/s 1.4.0 (Beta) [ 15106 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:36:01 UTC 2015 [ 1428222961749 ]
        Mark Thomas made changes -
        Workflow jira [ 12711120 ] Default workflow, editable Closed status [ 12740612 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:12:18 UTC 2015 [ 1428268338676 ]
        Mark Thomas made changes -
        Workflow jira [ 12948527 ] Default workflow, editable Closed status [ 12983767 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        40d 18h 1m 1 Maria Catherine Tan 12/Apr/10 20:48

          People

          • Assignee:
            Maria Catherine Tan
            Reporter:
            Maria Odea Ching
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development