Respect SystemTypes if defined

[?]
Mar 5, 2013, 5:01 PM
RNNLIVYYCD6HQTY6WSKOYJ6FTWY7SFLZAZ42IEQM3JFWP3GOYQMQC

Dependencies

  • [2] SA5ZZ3I4 hydra-queue-runner: Use nix.machines instead of the SystemTypes table to determine how many build jobs are allowed per system type.
  • [3] DQD7JMSU * Fix the terminology.
  • [4] NREF6YOA * Don't start more builds concurrently than allowed for each system
  • [5] LZO3C2KI * Hack around those SQLite timeouts: just retry the transaction.
  • [6] 7YBYT2LQ
  • [7] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [8] WHAFVCEI
  • [9] QZLMDKMU * Queue runner: don't start scheduled builds builds if they belong to
  • [10] TWVSALRL * Allow the maximum number of concurrent builds per platform to be

Change contents

  • replacement in src/script/hydra-queue-runner at line 78
    [3.8470][2.34:62]()
    my %maxConcurrent = ();
    [3.8470]
    [2.62]
    my %maxConcurrent;
  • replacement in src/script/hydra-queue-runner at line 102
    [3.8666][2.320:388]()
    my $extraAllowed = $maxConcurrent{$system} - $nrActive;
    [3.8666]
    [3.892]
    (my $systemTypeInfo) = $db->resultset('SystemTypes')->search({system => $system->system});
    my $max = defined $systemTypeInfo ? $systemTypeInfo->maxconcurrent : $maxConcurrent{$system} // 2;
    my $extraAllowed = $max - $nrActive;
  • replacement in src/script/hydra-queue-runner at line 115
    [3.1345][2.389:463]()
    "': $nrActive active, $maxConcurrent{$system} allowed, ",
    [3.1345]
    [3.626]
    "': $nrActive active, $max allowed, ",