Machine status: Don't show removed machines anymore
[?]
Apr 23, 2013, 1:20 PM
RFGPN7U7DOFZMPNLJDTS3IXEYSDN57HUDKI5I54NU4LC376JUR2ACDependencies
- [2]
BZUB3ZSHUse get_column for 'as' column (max_stoptime). - [3]
J4R2VCPPFix showing build steps in the machine status page - [4]
V6S6OYIAFormatting tweaks - [5]
HTL6HIBMmachine-status: Read /etc/nix.machines instead of using the BuildMachines table - [6]
SMCOU72Fhydra: add some admin for adding/enabling/etc build machines - [7]
R2PON6R7Allow non-admin users to see the machine status page - [*]
J5UVLXOK* Start of a basic Catalyst web interface. - [*]
ZWCTAZGLadded newsitems, added some admin options to clear various caches.
Change contents
- replacement in src/lib/Hydra/Controller/Root.pm at line 78
my $idles = $c->model('DB::BuildSteps')->search({ stoptime => { '!=', undef } },{ select => [ 'machine', { max => 'stoptime', -as => 'max_stoptime' }], group_by => "machine" });while (my $idle = $idles->next) {${$machines}{$idle->machine}{'idle'} = $idle->get_column('max_stoptime');# Add entry for localhost.${$machines}{''} //= {};# Get the last finished build step for each machine.foreach my $m (keys %{$machines}) {my $idle = $c->model('DB::BuildSteps')->find({ machine => "$m", stoptime => { '!=', undef } },{ order_by => 'stoptime desc', rows => 1 });${$machines}{$m}{'idle'} = $idle ? $idle->stoptime : 0; - edit in src/lib/Hydra/Controller/Root.pm at line 89
- replacement in src/root/machine-status.tt at line 10[4.259]→[3.63:129](∅→∅),[3.129]→[4.416:437](∅→∅),[4.1459]→[4.416:437](∅→∅),[4.416]→[4.416:437](∅→∅),[4.437]→[3.130:192](∅→∅)
[% IF !m.key || m.value.maxJobs %]Enabled:[% ELSE %]Disabled:[% END %] <tt>[% name %]</tt><tt>[% name %]</tt> - replacement in src/root/machine-status.tt at line 34
<tr><td colspan="5">Idle since [% INCLUDE renderDuration duration = curTime - m.value.idle %]</td></tr><tr><td colspan="5">Idle for [% INCLUDE renderDuration duration = curTime - m.value.idle %]</td></tr>