remove ascii escapes from log in tail page and emails

[?]
Jun 10, 2011, 9:53 AM
PY4WQF5GIMT46FAALDW3PR6JURGY56PJOGOPDZ6NIEADQ7GTWJTAC

Dependencies

  • [2] KSD75RNJ Hydra/18: fixed uninitialized value error when logfile is null
  • [3] F5RYSE7T qualify order by column
  • [4] ZEEZRG2E clean up build page for build that failed with result
  • [5] KA45EBF5 * Send email if a build fails.
  • [6] A63IHCMX * Register GC roots properly.
  • [7] T7Z63K6T hydra: moves jobsetOverview sub
  • [8] BOFOHCPK removed debug print, added last 50 lines in failure emails
  • [9] 2GK5DOU7 * Downloading closures.
  • [10] V62IBGJV * Cannot call isValidPath on a logfile. This happened to work because
  • [11] QUTWJR7P * Include more info in notification emails.
  • [12] PPJN6SDP * paging for releases page
  • [13] XBU2ODSP * More renaming.
  • [14] NZI7E2E3 * hydra: handle case where logfile is empty
  • [15] 2R7GHSA4 * hydra: added initial version of build graph
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] AFTXA575 * $HYDRA_DATA environment variable.
  • [*] 7YBYT2LQ

Change contents

  • replacement in src/lib/Hydra/Controller/Build.pm at line 58
    [5.126][5.207:251](),[4.168][5.207:251](),[5.207][5.207:251]()
    $c->stash->{logtext} = `tail -n 50 $path`;
    [4.168]
    [5.222]
    $c->stash->{logtext} = removeAsciiEscapes(`tail -n 50 $path`);
  • replacement in src/lib/Hydra/Helper/Nix.pm at line 17
    [5.654][5.35:100]()
    getViewResult getLatestSuccessfulViewResult jobsetOverview);
    [5.654]
    [5.486]
    getViewResult getLatestSuccessfulViewResult jobsetOverview removeAsciiEscapes);
  • edit in src/lib/Hydra/Helper/Nix.pm at line 262
    [18.850]
    [3.371]
    sub removeAsciiEscapes {
    my ($logtext) = @_;
    $logtext =~ s/\e\[[A-Za-z]//g;
    return $logtext;
    }
  • replacement in src/script/hydra_build.pl.in at line 159
    [5.71][2.0:108]()
    my $logtext = defined $logfile && -e $logfile ? `tail -$loglines $logfile` : "No logfile available.\n";
    [5.71]
    [5.807]
    my $logtext = defined $logfile && -e $logfile ? removeAsciiEscapes(`tail -$loglines $logfile`) : "No logfile available.\n";