Remove the related builds tab

[?]
Feb 21, 2013, 5:43 PM
YLLP6LP7KW5PR4QZ4STWQDH5ZQITIRUFDSP5AKBUPI7MBPCZYCJAC

Dependencies

  • [2] FU4GO5VN On build pages, provide a link to the build's first eval
  • [3] MPVX6MKX * hydra: on build page, show tail of log on first tab when buildstatus == 1 (this specific build failed)
  • [4] 3SQCOHZN * minor performance tweaks
  • [5] 7ZVZJK54 Re-enable the "Related Builds" tab
  • [6] CLJQCY2X * Store info about all the build actions and allow them to be
  • [7] LBNVQXUB * Build the /build stuff in a separate controller.
  • [8] NZI7E2E3 * hydra: handle case where logfile is empty
  • [9] HB3OHPJL hydra: in case of cached build, add link to build that built the storepath
  • [10] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [11] 2GUAKGTB Fix indentation of build.tt
  • [12] YFYRNNQU Use <h3> for running/failed build steps
  • [13] 36M6DGIT Show the runtime/build dependencies in the build page
  • [14] MMJYE535 Also show number of evaluations of which a build is a part
  • [15] K22TMPH5 Make the info tables less compressed
  • [16] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [17] 3PNG7NIB Remove trailing whitespace
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 99
    [2.199][2.199:200](),[2.200][3.0:452](),[3.250][3.0:452]()
    my $maxRelated = 100;
    my $r = $c->model('DB::Builds')->search(
    { eval => { -in => $build->jobsetevalmembers->search({}, {rows => 1})->get_column('eval')->as_query } },
    { join => 'jobsetevalmembers', order_by => [ 'project', 'jobset', 'job'], distinct => 1, rows => $maxRelated + 1 }
    );
    $c->stash->{relatedbuilds} = [$r->all];
    delete $c->stash->{relatedbuilds} if scalar(@{$c->stash->{relatedbuilds}}) > $maxRelated;
  • edit in src/root/build.tt at line 69
    [3.1753][3.1753:1862]()
    [% IF relatedbuilds %]<li><a href="#tabs-relatedbuilds" data-toggle="tab">Related builds</a></li>[% END %]
  • edit in src/root/build.tt at line 340
    [3.4686][3.19902:19903](),[3.19903][3.12008:12298]()
    [% IF relatedbuilds %]
    <div id="tabs-relatedbuilds" class="tab-pane">
    <p>The following builds are part of the same jobset evaluation that produced this build.</p>
    [% INCLUDE renderBuildList builds=relatedbuilds hideProjectName=1 hideJobsetName=1 %]
    </div>
    [% END %]