Handle active build steps of aborted builds properly

[?]
Jan 22, 2013, 10:01 PM
EX4FXA5TRG4UK4NASBDNYKW242ROLB42KE6S4I5AKV56LW6CBLHAC

Dependencies

  • [2] Y6AHH4TH Remove the logfile and logSize columns from the database
  • [3] CLJQCY2X * Store info about all the build actions and allow them to be
  • [4] LZO3C2KI * Hack around those SQLite timeouts: just retry the transaction.
  • [5] ZLQL62FK Only show "Running build steps" if there are running build steps
  • [6] AX5EQJO3 hydra: show machine in buildsteps
  • [7] RBHHV7P7 * Read logs using logContents function in stead of handling it everywhere separately.
  • [8] WRIU3S5E * UI for cloning builds (not functional yet).
  • [9] G3IUM7VL hydra: add support for succeedOnFailure feature in stdenv
  • [10] YFYRNNQU Use <h3> for running/failed build steps
  • [11] UVNQPK3T Hydra/56: handle failed builds with result only at build level, not buildsteps
  • [12] 3PNG7NIB Remove trailing whitespace
  • [13] XHK7IGYI * hdyra: show last succeeded build and changes since on build status summary if build has failed
  • [14] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [15] Z6MDQIGO * A quick (non-Web 2.0) interface to manually add builds to a release.
  • [16] CEARA7OH * hydra: show running buildsteps on build page
  • [17] K3EAQY3X * Doh.
  • [18] KAZWI5G4 * hydra: buildpage, show changes since last build/successful build
  • [19] D7NXMCON * Doh.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] 7YBYT2LQ
  • [*] WM5WAST3 * Monitor for dead builds all the time.

Change contents

  • replacement in src/root/build.tt at line 44
    [3.4844][3.4844:5094]()
    [% IF build.finished %]
    <span class="error">Aborted</span>
    [% ELSE %]
    <strong>Building</strong>
    [% END %]
    [3.4844]
    [3.5094]
    <strong>Building</strong>
  • edit in src/root/build.tt at line 47
    [3.5187]
    [3.5187]
    [% ELSIF step.status == 4 %]
    <span class="error">Aborted</span>
  • replacement in src/root/build.tt at line 164
    [3.1107][3.50:83]()
    [% IF !build.finished %]
    [3.1107]
    [3.83]
    [% IF build.busy %]
  • replacement in src/script/hydra-build at line 289
    [3.300][3.349:443](),[3.443][3.1097:1098](),[3.1098][3.756:845](),[3.756][3.756:845]()
    my $stepOutpath = $step->outpath;
    my $stepStatus = 0;
    $step->update({busy => 0, status => $stepStatus, stoptime => time});
    [3.300]
    [3.6355]
    $step->update({busy => 0, status => 0, stoptime => time});
  • edit in src/script/hydra-queue-runner at line 44
    [2.10770]
    [23.589]
    $build->buildsteps->search({ busy => 1 })->update({ busy => 0, status => 4, stoptime => time });