Fix "Use of uninitialized value $mode"

[?]
Oct 9, 2015, 1:06 PM
TUMFOKWNUIPBUIO6OHOO2BUKIUFDZVG635VU6HUUXBRUQO4E5X6AC

Dependencies

  • [2] FQAZTEK6 Don't set Expires header for logs of unfinished builds/steps
  • [3] CNEQ7L4G Don't show logs bigger than 64 MB
  • [4] KI423DCQ Stream logs if possible and remove size limit
  • [5] SAIUFDP3 hydra: make sure viewing logs works when logs are bz2'd
  • [6] YW66LY44 * hydra: enable pp'ing of logs for bigger files again
  • [7] Q24QXGSM * Don't do pretty printing for large logs, because the XSLT processing
  • [8] Y6AHH4TH Remove the logfile and logSize columns from the database
  • [9] C2DCO6AS
  • [10] QE253KG4 * Option to show the tail of a log.
  • [11] GJFYEU3S * Nix now stores logs by default as bzip2, make sure the build page uncompresses before showing.
  • [12] 6F4UNDTC * Provide access to the raw, non-pretty-printed logfiles.
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 137
    [2.339]
    [3.0]
    $mode //= "pretty";
  • replacement in src/lib/Hydra/Controller/Build.pm at line 150
    [3.199][3.0:18](),[3.336][3.0:18]()
    if (!$mode) {
    [3.199]
    [3.359]
    if ($mode eq "pretty") {