Document getEvals a bit

[?]
Jun 16, 2021, 4:42 PM
Y7QZBXCL3XQHGKKD5AACT56SIJKU4OAGMJCBBOTTETK52ZWJS6FAC

Dependencies

  • [2] Y3UI4OJI Add a /eval action to /build to go from a build to the latest finished eval
  • [3] 3EH53DZJ Serialize data as JSON with `Accept: application/json`
  • [4] TBLFIQYD getBuilds: clarify the names of evals vs. the query builder
  • [5] 6QRHXIM3 * Speed up the jobset index page. Especially the query to get the
  • [6] FHHFNCCR Fix duplicate function name
  • [7] QTC3SYBM Jobset page: Load the jobs and status tabs on demand
  • [8] HZWUT4YN Allow users to reproduce builds on their own systems
  • [9] VH5ZABDR Add a page to show the latest evaluations for the entire server
  • [10] M4TBFHHJ "limit" -> "rows"
  • [11] HRAFVVOE make logo configurable via HYDRA_LOGO env var
  • [12] GEADFVZ5 hydra-queue-runner: Improved scheduling
  • [13] HSVVEKTY * Start of a JSON API to get information about a specific build.
  • [14] OE5NED7F getEvals: order by the eval table's ID
  • [15] MQYHIUEE Cleanup eval serialization
  • [16] ND75XNSQ Allow showing all evaluations that contain a given build
  • [17] PMNWRTGJ Add multiple output support
  • [18] W4G5MZZS hydra-evaluator improvements
  • [19] NP7IOJ4Q Flesh out the API a bit
  • [20] LZVO64YG Merge in the first bits of the API work
  • [21] TX7Q4RAS Add page showing latest build steps
  • [22] U5ZWDBW3 Ensure that each eval is compared to the previous one from the same jobset
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] 3HZY24CX * Make jobsets viewable under
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] 2GK5DOU7 * Downloading closures.

Change contents

  • replacement in src/lib/Hydra/Controller/Build.pm at line 561
    [5.487][5.487:588]()
    $c->stash->{evals} = getEvals($self, $c, $evals, ($page - 1) * $resultsPerPage, $resultsPerPage)
    [5.487]
    [2.0]
    $c->stash->{evals} = getEvals($c, $evals, ($page - 1) * $resultsPerPage, $resultsPerPage)
  • replacement in src/lib/Hydra/Controller/Jobset.pm at line 44
    [5.100][5.79:173]()
    $c->stash->{evals} = getEvals($self, $c, scalar $c->stash->{jobset}->jobsetevals, 0, 10);
    [5.1]
    [5.173]
    $c->stash->{evals} = getEvals($c, scalar $c->stash->{jobset}->jobsetevals, 0, 10);
  • replacement in src/lib/Hydra/Controller/Jobset.pm at line 340
    [5.14277][5.14277:14357]()
    $c->stash->{evals} = getEvals($self, $c, $evals, $offset, $resultsPerPage);
    [5.14277]
    [5.14357]
    $c->stash->{evals} = getEvals($c, $evals, $offset, $resultsPerPage);
  • replacement in src/lib/Hydra/Controller/Root.pm at line 401
    [5.742][3.60:162]()
    $c->stash->{evals} = getEvals($self, $c, $evals, ($page - 1) * $resultsPerPage, $resultsPerPage);
    [5.742]
    [3.162]
    $c->stash->{evals} = getEvals($c, $evals, ($page - 1) * $resultsPerPage, $resultsPerPage);
  • edit in src/lib/Hydra/Helper/Nix.pm at line 224
    [5.880]
    [5.880]
  • edit in src/lib/Hydra/Helper/Nix.pm at line 226
    [5.881]
    [5.881]
    =head2 getEvals
  • edit in src/lib/Hydra/Helper/Nix.pm at line 228
    [5.882]
    [5.882]
    This method returns a list of evaluations with details about what changed,
    intended to be used with `eval.tt`.
    Arguments:
    =over 4
    =item C<$c>
    L<Hydra> - the entire application.
    =item C<$evals_result_set>
    A L<DBIx::Class::ResultSet> for the result class of L<Hydra::Model::DB::JobsetEvals>
    =item C<$offset>
    Integer offset when selecting evaluations
    =item C<$rows>
    Integer rows to fetch
    =back
    =cut
  • replacement in src/lib/Hydra/Helper/Nix.pm at line 254
    [5.897][4.0:63]()
    my ($self, $c, $evals_query_builder, $offset, $rows) = @_;
    [5.897]
    [5.0]
    my ($c, $evals_result_set, $offset, $rows) = @_;
  • replacement in src/lib/Hydra/Helper/Nix.pm at line 256
    [5.1][4.64:121]()
    my $me = $evals_query_builder->current_source_alias;
    [5.1]
    [5.946]
    my $me = $evals_result_set->current_source_alias;
  • replacement in src/lib/Hydra/Helper/Nix.pm at line 258
    [5.947][4.122:168]()
    my @evals = $evals_query_builder->search(
    [5.947]
    [5.979]
    my @evals = $evals_result_set->search(