Force creation of a new uncached eval if jobs have been removed

[?]
Nov 1, 2013, 6:24 PM
4JE45C3CCIPHGOZH77RM4OVVQY35GCH5GL5W4K75CDSLDWL7FIGAC

Dependencies

  • [2] FTPCV25M Store aggregate members in the database
  • [3] 5SHCWE7X * Prevent repeated evaluation of a jobset with the same inputs. This
  • [4] RXVJFQ5A Evaluator cleanups
  • [5] S5PV6IIM * Represent jobs explicitly in the DB.
  • [6] RFE6T5LG * Store jobset evaluations in the database explicitly. This includes
  • [7] S6OISBQ3 * Mark the "current" builds in a jobset, i.e. those corresponding to
  • [8] L3UFM7DK * $currentBuilds{id} can be 0.
  • [9] AZCCANUB Missing part of aaacf9eda36f5cdcc77cec20d6f49fbb6f925105
  • [*] N22GPKYT * Put info about logs / build products in the DB.

Change contents

  • replacement in src/script/hydra-evaluator at line 179
    [3.5934][3.5934:5964](),[3.5964][2.4627:4719](),[2.4719][3.5839:5849](),[3.6058][3.5839:5849](),[3.5839][3.5839:5849]()
    my $hasNewBuilds = 0;
    while (my ($id, $x) = each %buildMap) {
    $hasNewBuilds = 1 if $x->{new};
    }
    [3.5549]
    [3.2571]
    # Have any builds been added or removed since last time?
    my $jobsetChanged =
    (scalar(grep { $_->{new} } values(%buildMap)) > 0)
    || (defined $prevEval && $prevEval->jobsetevalmembers->count != scalar(keys %buildMap));
  • replacement in src/script/hydra-evaluator at line 189
    [3.6290][3.6290:6334](),[3.6334][2.4720:4793]()
    , hasnewbuilds => $hasNewBuilds
    , nrbuilds => $hasNewBuilds ? scalar(keys %buildMap) : undef
    [3.6290]
    [3.6334]
    , hasnewbuilds => $jobsetChanged ? 1 : 0
    , nrbuilds => $jobsetChanged ? scalar(keys %buildMap) : undef
  • replacement in src/script/hydra-evaluator at line 193
    [3.6351][3.6351:6380]()
    if ($hasNewBuilds) {
    [3.6351]
    [2.4794]
    if ($jobsetChanged) {