Record which build a failed build step was propagated from

[?]
Feb 25, 2015, 3:42 PM
UJOSXBZIZYRUNHMYJGMNG5WCV5DAAWATX3HOR4PSZEDOGKZJHQZAC

Dependencies

  • [2] R7MDDCB2 Some unnecessary job names
  • [3] BIVZGPUT Optimise clickable rows
  • [4] LZVO64YG Merge in the first bits of the API work
  • [5] SX5XYD6I When propagating failure, propagate the duration and machine
  • [6] JGLE5BRN Add separate build step status codes for cached failures and timeouts
  • [7] PMNWRTGJ Add multiple output support
  • [8] 3E6IP3R3 * Add the name of the jobset to ReleaseSetJobs, otherwise we can't
  • [9] CLJQCY2X * Store info about all the build actions and allow them to be
  • [10] KN3VYE5P * Cleaned up the foreign key constraints.
  • [11] 4SJPAAJX Pass failing dependent builds to buildFinished
  • [12] 4WZQW2N6 Fix indentation and get rid of some unnecessary whitespace in the output
  • [13] MNZ67UXO If a build step fail, immediately fail all queued builds that depend on it
  • [14] AS5PAYLI
  • [15] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [*] SB2V735V Keep track of the database schema version
  • [*] EFWN7JBV * Added a status page that shows all the currently executing build steps.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] 2GUAKGTB Fix indentation of build.tt
  • [*] IK53RV4V
  • [*] 7YBYT2LQ
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] D5QIOJGP * Move everything up one directory.

Change contents

  • edit in src/lib/Hydra/Schema/BuildSteps.pm at line 93
    [17.6626]
    [18.722]
    is_nullable: 1
    =head2 propagatedfrom
    data_type: 'integer'
    is_foreign_key: 1
  • edit in src/lib/Hydra/Schema/BuildSteps.pm at line 126
    [17.7287]
    [6.2685]
    "propagatedfrom",
    { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
  • edit in src/lib/Hydra/Schema/BuildSteps.pm at line 176
    [6.9975]
    [6.9975]
    =head2 propagatedfrom
  • replacement in src/lib/Hydra/Schema/BuildSteps.pm at line 178
    [6.9976][4.27838:27980]()
    # Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-06-13 01:54:50
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OZsXJniZ/7EB2iSz7p5y4A
    [6.9976]
    [6.10118]
    Type: belongs_to
    Related object: L<Hydra::Schema::Builds>
    =cut
    __PACKAGE__->belongs_to(
    "propagatedfrom",
    "Hydra::Schema::Builds",
    { id => "propagatedfrom" },
    {
    is_deferrable => 0,
    join_type => "LEFT",
    on_delete => "CASCADE",
    on_update => "NO ACTION",
    },
    );
    # Created by DBIx::Class::Schema::Loader v0.07033 @ 2015-02-25 16:27:20
    # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZbOxzCzFN7fIT9M2BFY0iQ
  • edit in src/root/build.tt at line 59
    [3.180]
    [20.1452]
    [%+ IF step.propagatedfrom; %](propagated from [% INCLUDE renderBuildIdLink id=step.propagatedfrom.get_column('id') %])[% END %]
  • replacement in src/root/common.tt at line 171
    [6.4324][2.1006:1102]()
    BLOCK renderBuildLink; %]
    <a href="[% c.uri_for('/build' build.id) %]">build [% build.id %]</a>
    [6.4324]
    [2.1102]
    BLOCK renderBuildIdLink; %]
    <a href="[% c.uri_for('/build' id) %]">build [% id %]</a>
  • edit in src/root/common.tt at line 176
    [2.1112]
    [6.4324]
    BLOCK renderBuildLink; INCLUDE renderBuildIdLink id=build.id; END;
  • replacement in src/script/hydra-build at line 42
    [6.266][5.0:90]()
    my ($drvPath, $status, $errorMsg, $dependents, $startTime, $stopTime, $machine) = @_;
    [6.266]
    [6.301]
    my ($drvPath, $status, $errorMsg, $dependents, $startTime, $stopTime, $machine, $propagatedFrom) = @_;
  • edit in src/script/hydra-build at line 78
    [5.212]
    [6.1494]
    , propagatedfrom => $propagatedFrom->id
  • replacement in src/script/hydra-build at line 240
    [6.1708][5.731:851]()
    failDependents($drvPathStep, $status, $errorMsg, $dependents, $stepStartTime, $stepStopTime, $machine);
    [6.1708]
    [6.649]
    failDependents($drvPathStep, $status, $errorMsg, $dependents, $stepStartTime, $stepStopTime, $machine, $build);
  • edit in src/sql/hydra.sql at line 235
    [18.2107]
    [6.7556]
    propagatedFrom integer,
  • replacement in src/sql/hydra.sql at line 239
    [6.5926][6.7988:8054]()
    foreign key (build) references Builds(id) on delete cascade
    [6.5926]
    [6.7673]
    foreign key (build) references Builds(id) on delete cascade,
    foreign key (propagatedFrom) references Builds(id) on delete cascade
  • file addition: upgrade-32.sql (----------)
    [24.3004]
    alter table BuildSteps
    add column propagatedFrom integer,
    add foreign key (propagatedFrom) references Builds(id) on delete cascade;