* Render durations nicely.

[?]
Mar 13, 2009, 4:04 PM
6FXGLP7TYUCKFF5LDNVF6X7X6FBWQ3D7RUMPZQQ3BO76MXQAEIRAC

Dependencies

  • [2] S5PV6IIM * Represent jobs explicitly in the DB.
  • [3] NDL67SQT * XHTML validity.
  • [4] SHZLOM5M * eval-jobs -> hydra_eval_jobs.
  • [5] CLJQCY2X * Store info about all the build actions and allow them to be
  • [6] LQNBKF3D
  • [7] IE3SRMWZ * Show global and per-project statistics.
  • [8] JLDUSNUO * Unify rendering of finished and scheduled builds.
  • [9] ZILILXXK * Allow scheduled builds to be cancelled. They're not removed from
  • [10] BD3GRK4B * Get rid of "positive failures" and separate log phases.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] IK53RV4V

Change contents

  • replacement in src/root/build.tt at line 157
    [3.2519][3.263:335]()
    [% build.resultInfo.stoptime - build.resultInfo.starttime %]s
    [3.2519]
    [3.2590]
    [% INCLUDE renderDuration duration = build.resultInfo.stoptime - build.resultInfo.starttime %]
  • replacement in src/root/build.tt at line 230
    [3.1118][3.1118:1168]()
    [% step.stoptime - step.starttime %]s
    [3.1118]
    [3.1168]
    [% INCLUDE renderDuration duration = step.stoptime - step.starttime %]
  • replacement in src/root/build.tt at line 233
    [3.2721][3.2721:2785]()
    [% build.resultInfo.stoptime - step.starttime %]s
    [3.2721]
    [3.2785]
    [% INCLUDE renderDuration duration = build.resultInfo.stoptime - step.starttime %]
  • replacement in src/root/build.tt at line 235
    [3.2808][3.2808:2854]()
    [% curTime - step.starttime %]s
    [3.2808]
    [3.2854]
    [% INCLUDE renderDuration duration = curTime - step.starttime %]
  • edit in src/root/common.tt at line 44
    [2.5084]
    [2.5084]
    [% END %]
    [% BLOCK renderDuration -%]
    [% IF duration >= 24 * 60 * 60 %][% duration div (24 * 60 * 60) %]d[% END %]
    [% IF duration >= 60 * 60 %][% duration div (60 * 60) % 24 %]h[% END %]
    [% IF duration >= 60 %][% duration div 60 % 60 %]m[% END %]
    [% duration % 60 %]s
  • replacement in src/root/common.tt at line 127
    [3.1277][3.1277:1314]()
    <td>[% totalBuildTime %]s</td>
    [3.1277]
    [3.1314]
    <td>[% INCLUDE renderDuration duration = totalBuildTime %]</td>