Missing part of aaacf9eda36f5cdcc77cec20d6f49fbb6f925105

[?]
Apr 15, 2012, 10:57 PM
AZCCANUBA5NBQCU5EHKCNDLEUS5VPXSSVZVUKGKGJLUNYIGSJAYQC

Dependencies

  • [2] G2T4WAHI Store the inputs of each evaluation in the database
  • [3] KJC7RKIE Speed up the jobset eval list a bit
  • [4] HFJPPMTU Cleanup
  • [5] 5SHCWE7X * Prevent repeated evaluation of a jobset with the same inputs. This
  • [6] KPZNJ33U * In views, support selecting a job that doesn't depend on the
  • [7] SB2V735V Keep track of the database schema version
  • [8] RWFCW6ZN In the jobset evals lists, show what inputs changed between consecutive evals
  • [*] 3HZY24CX * Make jobsets viewable under
  • [*] JM3DPYOM generated schema with new dbix class schema loader, grrrrrr
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] RFE6T5LG * Store jobset evaluations in the database explicitly. This includes

Change contents

  • replacement in src/lib/Hydra/Controller/Jobset.pm at line 342
    [3.126][3.126:343]()
    my $nrBuilds = $cur->jobsetevalmembers->count;
    my $nrScheduled = $cur->builds->search({finished => 0})->count;
    my $nrSucceeded = $cur->builds->search({finished => 1, buildStatus => 0})->count;
    [3.126]
    [4.323]
    my $nrScheduled;
    my $nrSucceeded = $cur->nrsucceeded;
    if (defined $nrSucceeded) {
    $nrScheduled = 0;
    } else {
    $nrScheduled = $cur->builds->search({finished => 0})->count;
    $nrSucceeded = $cur->builds->search({finished => 1, buildStatus => 0})->count;
    if ($nrScheduled == 0) {
    $cur->update({nrsucceeded => $nrSucceeded});
    }
    }
  • edit in src/lib/Hydra/Controller/Jobset.pm at line 370
    [4.259][3.363:399]()
    , nrBuilds => $nrBuilds
  • replacement in src/lib/Hydra/Controller/Jobset.pm at line 372
    [3.483][3.483:549]()
    , nrFailed => $nrBuilds - $nrSucceeded - $nrScheduled
    [3.483]
    [3.549]
    , nrFailed => $cur->nrbuilds - $nrSucceeded - $nrScheduled
  • edit in src/lib/Hydra/Schema/JobsetEvals.pm at line 68
    [11.16449]
    [11.16463]
    =head2 nrbuilds
    data_type: 'integer'
    is_nullable: 1
    =head2 nrsucceeded
    data_type: 'integer'
    is_nullable: 1
  • edit in src/lib/Hydra/Schema/JobsetEvals.pm at line 98
    [4.18063]
    [4.867]
    "nrbuilds",
    { data_type => "integer", is_nullable => 1 },
    "nrsucceeded",
    { data_type => "integer", is_nullable => 1 },
  • replacement in src/lib/Hydra/Schema/JobsetEvals.pm at line 174
    [4.18354][2.3028:3170]()
    # Created by DBIx::Class::Schema::Loader v0.07014 @ 2012-04-15 16:38:10
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Yt39QbkhH52hfpJZ4ZECeg
    [4.18354]
    [4.1674]
    # Created by DBIx::Class::Schema::Loader v0.07014 @ 2012-04-15 22:30:41
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jn81MbsAb5KZGwRpQ7qTEQ
  • edit in src/script/hydra-evaluator at line 168
    [13.6334]
    [13.6334]
    , nrbuilds => $hasNewBuilds ? scalar(keys %buildIds) : undef
  • edit in src/sql/hydra.sql at line 440
    [4.3261]
    [13.7667]
    -- Cached stats about the builds.
    nrBuilds integer,
    nrSucceeded integer, -- set lazily when all builds are finished