Show evaluation time in the evaluations overview

[?]
Mar 9, 2021, 5:27 PM
S3ETHAGKW3BJTWARYXKNXPFYMBRGJ7W5AWEUE2LGITLBSDU3YLXAC

Dependencies

  • [2] XO72X6PQ Handle SSH hosts without a @
  • [3] HOMDMC3K Handle utf-8 properly
  • [4] XKXMU5PV Ellipsize long jobset/job names to prevent bootstrap navbar breakage
  • [5] O757ISIS Remove unused function
  • [6] ZH6B56XR Try harder to find build logs
  • [7] Y6AHH4TH Remove the logfile and logSize columns from the database
  • [8] JPTXSWBO Show whether a job still exists
  • [9] OZDDUMVP Automatically chomp all [%...%] directives
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] ODNCGFQ5 * Improved the navigation bar: don't include all projects (since that
  • [*] 4UUKWXDF Jobset page: Show last evaluation time
  • [*] TFK74CQR Put job status on a separate tab

Change contents

  • edit in src/lib/Hydra/View/TT.pm at line 6
    [3.9665]
    [3.9665]
    use Time::Seconds;
  • replacement in src/lib/Hydra/View/TT.pm at line 13
    [3.41][2.0:87]()
    expose_methods => [qw/buildLogExists buildStepLogExists jobExists stripSSHUser/]);
    [3.41]
    [3.2156]
    expose_methods => [qw/buildLogExists buildStepLogExists jobExists relativeDuration stripSSHUser/]);
  • edit in src/lib/Hydra/View/TT.pm at line 27
    [3.2517]
    [2.88]
    }
    =head2 relativeDuration
    Given an integer of seconds, return an English representation of the
    duration as a string.
    Arguments:
    =over 1
    =item C<$seconds>
    An integer number of seconds
    =back
    =cut
    sub relativeDuration {
    my ($self, $c, $seconds) = @_;
    return Time::Seconds->new($seconds)->pretty();
  • edit in src/root/jobset.tt at line 94
    [13.705]
    [14.579]
    (took [% relativeDuration (latestEval.checkouttime + latestEval.evaltime) %])