* Option to show the tail of a log.

[?]
Mar 16, 2009, 12:16 PM
QE253KG464JLXJHTILULXUIK527FGXT42IHHDE3BR6ASIYC44MWAC

Dependencies

  • [2] 6F4UNDTC * Provide access to the raw, non-pretty-printed logfiles.
  • [3] X27GNHDV * Basic job info in the database.
  • [4] C2DCO6AS
  • [5] SMM4HQTP * Put actions related to builds under /build (e.g. /log/<buildid>
  • [6] LBNVQXUB * Build the /build stuff in a separate controller.
  • [7] ZILILXXK * Allow scheduled builds to be cancelled. They're not removed from
  • [8] CLJQCY2X * Store info about all the build actions and allow them to be
  • [9] SHZLOM5M * eval-jobs -> hydra_eval_jobs.
  • [10] AS5PAYLI
  • [11] BD3GRK4B * Get rid of "positive failures" and separate log phases.
  • [12] S5PV6IIM * Represent jobs explicitly in the DB.
  • [*] D5QIOJGP * Move everything up one directory.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] N22GPKYT * Put info about logs / build products in the DB.

Change contents

  • replacement in src/lib/Hydra/Controller/Build.pm at line 68
    [2.336][2.336:359]()
    if ($mode eq "") {
    [2.336]
    [2.359]
    if (!$mode) {
  • edit in src/lib/Hydra/Controller/Build.pm at line 82
    [2.804]
    [2.804]
    elsif ($mode eq "tail") {
    $c->stash->{'plain'} = { data => scalar `tail -n 50 $path` };
    $c->forward('Hydra::View::Plain');
    }
  • file addition: Plain.pm (----------)
    [14.1193]
    package Hydra::View::Plain;
    use strict;
    use warnings;
    use base 'Catalyst::View::Download::Plain';
    1;
  • replacement in src/root/build.tt at line 166
    [3.2789][2.878:955]()
    (<a href="[% c.uri_for('/build' build.id 'log' 'raw') %]">raw</a>)
    [3.2789]
    [3.2789]
    (<a href="[% c.uri_for('/build' build.id 'log' 'raw') %]">raw</a>,
    <a href="[% c.uri_for('/build' build.id 'log' 'tail') %]">tail</a>)
  • replacement in src/root/build.tt at line 278
    [3.322][2.956:1034]()
    (<a href="[% log %]">log</a>, <a href="[% "$log/raw" %]">raw</a>)
    [3.322]
    [3.402]
    (<a href="[% log %]">log</a>, <a href="[% "$log/raw" %]">raw</a>, <a href="[% "$log/tail" %]">tail</a>)
  • replacement in src/script/hydra_scheduler.pl at line 371
    [3.817][3.817:893]()
    $msg .= "at `" . $error->{location} . "': " . $error->{msg} . "\n";
    [3.817]
    [3.893]
    $msg .= "at `" . $error->{location} . "': " . $error->{msg} . "\n\n";