Status page: Show running builds rather than build steps

[?]
Sep 25, 2014, 6:17 PM
MQQ5KZV37LHW6FHJFVND72EH3N5QF64GV6JECJELLWLOZX6XDKZAC

Dependencies

  • [2] IIDX526D
  • [3] J4R2VCPP Fix showing build steps in the machine status page
  • [4] VG4QG336 Remove tablesorter
  • [5] DCKPWXNZ Add in missing needed join
  • [6] PZL3SZM3 Give every page a consistent title
  • [7] LZVO64YG Merge in the first bits of the API work
  • [8] EFWN7JBV * Added a status page that shows all the currently executing build steps.
  • [9] ELABMHJI * hydra: layout changes
  • [10] R2PON6R7 Allow non-admin users to see the machine status page
  • [11] JARRBLZD Bootstrapify the Hydra forms (except the project and jobset edit pages)
  • [12] JZVRK5QJ Group some menu items together under a "Status" menu
  • [13] NRSKJPP4 makeLink -> menuItem
  • [14] BOAFFKUX Active build steps: Make the rows clickable
  • [15] TP3PFR5K
  • [16] WRIU3S5E * UI for cloning builds (not functional yet).
  • [17] SHIENRAL Clean up root controller
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] QL55ECJ6 - adapted ui for hydra, more in line with nixos.org website

Change contents

  • replacement in src/lib/Hydra/Controller/Root.pm at line 102
    [6.22362][6.22362:22493](),[6.22493][5.0:63](),[5.63][6.23079:23091](),[6.193][6.23079:23091](),[6.23079][6.23079:23091]()
    entity => [ $c->model('DB::BuildSteps')->search(
    { 'me.busy' => 1, 'build.finished' => 0, 'build.busy' => 1 },
    { order_by => [ 'machine' ], join => [ 'build' ] }
    ) ]
    [6.22362]
    [6.23091]
    entity => [$c->model('DB::Builds')->search({finished => 0, busy => 1}, { order_by => ["priority DESC", "id"]})]
  • replacement in src/root/queue.tt at line 4
    [6.93][2.0:25]()
    [% IF queue.size == 0 %]
    [6.93]
    [6.122]
    [% IF resource.size == 0 %]
  • replacement in src/root/queue.tt at line 6
    [6.123][6.123:152]()
    <p>The queue is empty.</p>
    [6.123]
    [6.152]
    <div class="alert alert-info">There are no pending builds.</div>
  • replacement in src/root/status.tt at line 1
    [6.1151][6.4398:4449]()
    [% WRAPPER layout.tt title="Active build steps" %]
    [6.1151]
    [6.1197]
    [% WRAPPER layout.tt title="Running builds" %]
  • edit in src/root/status.tt at line 3
    [6.1221]
    [6.1221]
    [% IF resource.size == 0 %]
    <div class="alert alert-info">There are no running builds.</div>
    [% ELSE %]
  • replacement in src/root/status.tt at line 10
    [6.1222][4.916:983](),[6.79][6.4514:4654](),[4.983][6.4514:4654](),[6.4514][6.4514:4654](),[6.4654][6.35621:35656](),[6.35656][6.4686:5085](),[6.4686][6.4686:5085](),[6.5085][6.80:221](),[6.221][6.5209:5271](),[6.5209][6.5209:5271](),[6.5271][3.665:768](),[3.768][6.5368:5414](),[6.5368][6.5368:5414]()
    <table class="table table-striped table-condensed clickable-rows">
    <thead>
    <tr><th>Machine</th><th>Job</th><th>Type</th><th>Build</th><th>Step</th><th>What</th><th>Since</th></tr>
    </thead>
    <tbody>
    [% FOREACH step IN resource %]
    <tr>
    <td><tt>[% IF step.machine; step.machine.match('@(.*)').0; ELSE; 'localhost'; END %]</tt></td>
    <td><tt>[% INCLUDE renderFullJobName project = step.build.project.name jobset = step.build.jobset.name job = step.build.job.name %]</tt></td>
    <td><tt>[% step.system %]</tt></td>
    <td><a href="[% c.uri_for('/build' step.build.id) %]">[% step.build.id %]</a></td>
    <td><a class="row-link" href="[% c.uri_for('/build' step.build.id 'nixlog' step.stepnr 'tail-reload') %]">[% step.stepnr %]</a></td>
    <td><tt>[% step.drvpath.match('-(.*)').0 %]</tt></td>
    <td style="width: 10em">[% INCLUDE renderDuration duration = curTime - step.starttime %] </td>
    </tr>
    [% END %]
    </tbody>
    </table>
    [6.1222]
    [6.1244]
    [% INCLUDE renderBuildList builds=resource showSchedulingInfo=1 hideResultInfo=1 %]
    [% END %]
  • replacement in src/root/topbar.tt at line 24
    [6.841][6.292:331](),[6.292][6.292:331]()
    title = "Active build steps" %]
    [6.841]
    [6.50]
    title = "Running builds" %]