* Generic declaration of build products.

[?]
Nov 7, 2008, 5:10 PM
DVNWJXWWZAR4LGE3FGGY64EW5U6GWH6MXXAALWPO3EMI4NO42ZXAC

Dependencies

  • [2] K5BEBWKM
  • [3] TWURROKC
  • [4] N22GPKYT * Put info about logs / build products in the DB.
  • [5] UVMFS73T * Some jQuery / CSS hackery.
  • [6] PHX2HIVG * Store info about the build inputs in the build record.
  • [7] M552HLIA * Support variant builds.
  • [8] J5UVLXOK * Start of a basic Catalyst web interface.
  • [9] T7AHGVGM
  • [10] X27GNHDV * Basic job info in the database.
  • [11] WYN733ST * Store build duration, handle cached builds.
  • [12] GWCV3TQV * BuildInputs table: link to dependencies, include store paths.
  • [13] VCOSLZRP
  • [*] E2ZY5TE5

Change contents

  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Buildinputs.pm at line 38
    [4.782][4.179:321]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZDtFSXPegKbVEAoM+svosg
    [4.782]
    [4.924]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GBvbApjpjiwkUQsdZg1PLg
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Buildlogs.pm at line 28
    [4.3992][4.322:464]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YwyZF3sTsIWvkKAQ5fPtMQ
    [4.3992]
    [4.4134]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vLByOFOHkwwHa6hf8nC1Jg
  • edit in src/HydraFrontend/lib/HydraFrontend/Schema/Buildproducts.pm at line 19
    [4.4758]
    [4.4758]
    "productnr",
    { data_type => "integer", is_nullable => 0, size => undef },
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Buildproducts.pm at line 22
    [4.4761][4.4761:4821]()
    __PACKAGE__->set_primary_key("buildid", "type", "subtype");
    [4.4761]
    [4.4821]
    __PACKAGE__->set_primary_key("buildid", "productnr");
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Buildproducts.pm at line 30
    [4.4922][4.465:607]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m2mxFOI2ZgjLoAzbNhiDlw
    [4.4922]
    [4.5064]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4exGa1a3mCSv3b8Lqwu7Hw
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Builds.pm at line 58
    [4.6194][4.681:823]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jcNXcVLLxMEddBCUkq5aYg
    [4.6194]
    [4.0]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xsDBmgfas2tM/Dn9PE/eXQ
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Jobsetinputalts.pm at line 36
    [4.1831][4.1831:1973]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YK+TrYs5Zk+8q+66b3kOUw
    [4.1831]
    [4.1973]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8fi3nwRY3VrwApBAW6XrQQ
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Jobsetinputs.pm at line 46
    [4.1681][4.2451:2593]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H0KE/7kJ23s4RKFDVRIyUQ
    [4.1681]
    [4.1823]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0uYHZfy1ZXCTLc3AsFWI0w
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Jobsets.pm at line 43
    [4.2992][4.2683:2825]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7JksbkRjqTKzHQkOvUkt2g
    [4.2992]
    [4.3134]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g1LPc13y/7/ngDzFqL5jXQ
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema/Projects.pm at line 22
    [4.3685][4.2826:2968]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F3bS3Kbsxhp9G6klfVPRmg
    [4.3685]
    [4.3827]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fIpNlZNqqGDGGWd6EORCAA
  • replacement in src/HydraFrontend/lib/HydraFrontend/Schema.pm at line 11
    [4.6498][4.2969:3111]()
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-06 19:19:17
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DQCaurV1oArj0odoPHR+zw
    [4.6498]
    [4.6640]
    # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-07 17:44:37
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdXbmj1/EvPeU107AjY6zw
  • replacement in src/HydraFrontend/root/build.tt at line 106
    [4.8008][4.8008:8013]()
    <ul>
    [4.8008]
    [4.8013]
    <ul class="productList">
  • edit in src/HydraFrontend/root/build.tt at line 113
    [4.8178]
    [4.8178]
    [% CASE "file" %]
    [% SWITCH product.subtype %]
    [% CASE "source-dist" %]
    <img src="/static/images/source-dist.png" alt="Source" /> Source distribution <tt>[% product.path %]</tt>
    [% CASE "rpm" %]
    <img src="/static/images/rpm-fedora.png" alt="RPM" /> RPM package <tt>[% product.path %]</tt>
    [% CASE DEFAULT %]
    File <tt>[% product.path %]</tt> of type <tt>[% product.subtype %]</tt>
    [% END %]
    [% CASE DEFAULT %]
    Something of type <tt>[% product.type %]</tt>
  • edit in src/HydraFrontend/root/hydra.css at line 155
    [4.250]
    [4.250]
    ul.productList {
    list-style: none;
    padding-left: 1em;
    }
  • edit in src/HydraFrontend/root/hydra.css at line 160
    [4.251]
    [4.251]
  • replacement in src/HydraFrontend/root/hydra.css at line 188
    [2.787][2.787:788]()
    }
    [2.787]
    }
  • file addition: rpm-fedora.png (----------)
    [15.302]
  • file addition: source-dist.png (----------)
    [15.302]
  • edit in src/hydra.sql at line 9
    [4.4387][4.4387:4431]()
    -- !!! list all the inputs / arguments
  • edit in src/hydra.sql at line 45
    [4.430]
    [4.430]
    productnr integer not null,
  • replacement in src/hydra.sql at line 47
    [4.508][4.508:566]()
    subtype text not null, -- "sources", "rpm", ...
    [4.508]
    [4.566]
    subtype text not null, -- "source-dist", "rpm", ...
  • replacement in src/hydra.sql at line 49
    [4.599][4.599:643]()
    primary key (buildId, type, subType),
    [4.599]
    [4.643]
    primary key (buildId, productnr),
  • edit in src/hydra.sql at line 118
    [4.4665]
    [4.5642]
    );
    create table jobQueue (
    id integer primary key autoincrement not null,
    timestamp integer not null, -- time this build was added to the db (in Unix time)
    -- Info about the inputs.
    project text not null, -- !!! foreign key
    jobSet text not null, -- !!! foreign key
    attrName text not null,
    -- What this job will build.
    description text,
    drvPath text not null,
    outPath text not null,
    system text not null
  • edit in src/scheduler.pl at line 98
    [3.456]
    [4.6679]
    my $productnr = 0;
  • edit in src/scheduler.pl at line 101
    [4.6680][4.449:680]()
    $db->resultset('Buildproducts')->create(
    { buildid => $build->id
    , type => "nix-build"
    , subtype => ""
    , path => $outPath
    });
  • edit in src/scheduler.pl at line 109
    [4.1074]
    [4.1074]
    });
    }
    }
    if (-e "$outPath/nix-support/hydra-build-products") {
    open LIST, "$outPath/nix-support/hydra-build-products" or die;
    while (<LIST>) {
    /^(\w+)\s+([\w-]+)\s+(\S+)$/ or die;
    my $type = $1;
    my $subtype = $2;
    my $path = $3;
    die unless -e $path;
    $db->resultset('Buildproducts')->create(
    { buildid => $build->id
    , productnr => $productnr++
    , type => $type
    , subtype => $subtype
    , path => $path
  • edit in src/scheduler.pl at line 129
    [4.1120]
    [4.3586]
    close LIST;
    } else {
    $db->resultset('Buildproducts')->create(
    { buildid => $build->id
    , productnr => $productnr++
    , type => "nix-build"
    , subtype => ""
    , path => $outPath
    });