remove ascii escapes from log in tail page and emails
[?]
Jun 10, 2011, 9:53 AM
PY4WQF5GIMT46FAALDW3PR6JURGY56PJOGOPDZ6NIEADQ7GTWJTACDependencies
- [2]
KSD75RNJHydra/18: fixed uninitialized value error when logfile is null - [3]
F5RYSE7Tqualify order by column - [4]
ZEEZRG2Eclean up build page for build that failed with result - [5]
KA45EBF5* Send email if a build fails. - [6]
A63IHCMX* Register GC roots properly. - [7]
T7Z63K6Thydra: moves jobsetOverview sub - [8]
BOFOHCPKremoved 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
$c->stash->{logtext} = `tail -n 50 $path`;$c->stash->{logtext} = removeAsciiEscapes(`tail -n 50 $path`); - replacement in src/lib/Hydra/Helper/Nix.pm at line 17
getViewResult getLatestSuccessfulViewResult jobsetOverview);getViewResult getLatestSuccessfulViewResult jobsetOverview removeAsciiEscapes); - edit in src/lib/Hydra/Helper/Nix.pm at line 262
sub removeAsciiEscapes {my ($logtext) = @_;$logtext =~ s/\e\[[A-Za-z]//g;return $logtext;} - replacement in src/script/hydra_build.pl.in at line 159
my $logtext = defined $logfile && -e $logfile ? `tail -$loglines $logfile` : "No logfile available.\n";my $logtext = defined $logfile && -e $logfile ? removeAsciiEscapes(`tail -$loglines $logfile`) : "No logfile available.\n";