Fix UTF-8 handling of log files

[?]
Aug 13, 2014, 4:53 PM
KZ55DLPHCMOBWZRUMNGPNG3N2XK65K7VKFKVZH27W3KVUEQWGCTQC

Dependencies

  • [2] DOQSWDUG mark lines with FAILURE as error
  • [3] X6RB5HQ6 Put a 5-second CPU time limit on the log processing pipeline.
  • [4] VHV6GI4L Add a jobset eval action to restart all aborted/cancelled builds
  • [5] ZH6B56XR Try harder to find build logs
  • [6] BA46C5LN * Pretty-print the logs.
  • [7] 6F4UNDTC * Provide access to the raw, non-pretty-printed logfiles.
  • [8] HKQWF5RQ hydra: refine error marking
  • [9] RBHHV7P7 * Read logs using logContents function in stead of handling it everywhere separately.
  • [10] 4JPNFWRB * Use jquery for the logfile manipulation.
  • [11] SAIUFDP3 hydra: make sure viewing logs works when logs are bz2'd
  • [12] LBNVQXUB * Build the /build stuff in a separate controller.
  • [13] Y6AHH4TH Remove the logfile and logSize columns from the database
  • [14] O3CGTZFG Simplify the log tree implementation a bit
  • [15] 3JCIP7EZ Use a span instead of a div in the pretty logs
  • [*] PMNWRTGJ Add multiple output support
  • [*] HSVVEKTY * Start of a JSON API to get information about a specific build.
  • [*] 2GK5DOU7 * Downloading closures.
  • [*] AFTXA575 * $HYDRA_DATA environment variable.

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 15
    [17.1607]
    [18.73]
    use Encode;
  • replacement in src/lib/Hydra/Controller/Build.pm at line 145
    [5.552][5.552:636]()
    . " | xsltproc " . $c->path_to("xsl/log2html.xsl") . " - | tail -n +2";
    [5.552]
    [5.637]
    . " | xsltproc " . $c->path_to("xsl/log2html.xsl") . " -";
  • replacement in src/lib/Hydra/Controller/Build.pm at line 147
    [5.679][3.0:58]()
    $c->stash->{logtext} = `ulimit -t 5 ; $pipeline`;
    [5.679]
    [5.723]
    $c->stash->{logtext} = decode("utf-8", `ulimit -t 5 ; $pipeline`);
  • edit in src/lib/Hydra/Helper/Nix.pm at line 11
    [4.687]
    [20.127]
    use Encode;
  • replacement in src/lib/Hydra/Helper/Nix.pm at line 314
    [5.713][5.1625:1644]()
    return `$cmd`;
    [5.713]
    [5.744]
    return decode("utf-8", `$cmd`);
  • replacement in src/xsl/log2html.xsl at line 5
    [5.3559][5.3559:3733]()
    <xsl:output method='html' encoding="UTF-8"
    doctype-public="-//W3C//DTD HTML 4.01//EN"
    doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
    [5.3559]
    [5.3733]
    <xsl:output method='html' encoding="UTF-8" omit-xml-declaration="yes" />
  • edit in src/xsl/mark-errors.xsl at line 4
    [5.6147]
    [5.6147]
    <xsl:output method='xml' encoding="UTF-8" />
  • replacement in src/xsl/mark-errors.xsl at line 28
    [5.6702][5.6702:6705]()
    [5.6702]
    [2.52]