hydra-queue-runner: Start as many builds as possible on each iteration

[?]
Jun 7, 2013, 7:18 PM
TFLAR4KANBOKVE63435RE4A5JHEDYD2ARZIECI64DKVOSBHJULGAC

Dependencies

  • [2] 7VWDMKAZ hydra-queue-runner: don't clutter the system log with debug message
  • [3] R6B5CAFF Let Builds.timestamp refer to the time the build was added
  • [4] QZLMDKMU * Queue runner: don't start scheduled builds builds if they belong to
  • [5] 7YBYT2LQ
  • [6] NREF6YOA * Don't start more builds concurrently than allowed for each system
  • [7] DQD7JMSU * Fix the terminology.
  • [8] TWVSALRL * Allow the maximum number of concurrent builds per platform to be
  • [9] YTIDBFGU Drop unused "disabled" columns
  • [10] L2E6EVE2 * Merged the Build and Job tables.
  • [11] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [12] RNNLIVYY Respect SystemTypes if defined
  • [13] JK2QWPH6
  • [14] SA5ZZ3I4 hydra-queue-runner: Use nix.machines instead of the SystemTypes table to determine how many build jobs are allowed per system type.

Change contents

  • replacement in src/script/hydra-queue-runner at line 103
    [4.494][3.2205:2281](),[4.804][4.1248:1292](),[3.2281][4.1248:1292](),[4.7291][4.1248:1292](),[4.1248][4.1248:1292]()
    { join => ['project'], order_by => ["priority DESC", "id"],
    rows => $extraAllowed });
    [4.494]
    [4.1292]
    { join => ['project'], order_by => ["priority DESC", "id"] });
  • replacement in src/script/hydra-queue-runner at line 105
    [4.1293][2.0:225](),[2.225][4.8820:8821](),[4.685][4.8820:8821](),[4.1463][4.8820:8821](),[4.8820][4.8820:8821]()
    if (scalar(@builds) > 0) {
    print "system type `", $system->system,
    "': $nrActive active, $max allowed, ",
    "starting ", scalar(@builds), " builds\n";
    }
    [4.1293]
    [4.686]
    my $started = 0;
  • edit in src/script/hydra-queue-runner at line 127
    [4.1149]
    [4.1879]
    last if ++$started >= $extraAllowed;
    }
    if ($started > 0) {
    print STDERR "system type `", $system->system,
    "': $nrActive active, $max allowed, started $started builds\n";