From ef6a2c96e7cd602594d8e8b0fe64c4d3c7bc767d Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 10 Jan 2022 10:54:54 -0800 Subject: [PATCH] JobsetEval: add the result of buildDiff to $c->stash --- src/lib/Hydra/Controller/JobsetEval.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/JobsetEval.pm b/src/lib/Hydra/Controller/JobsetEval.pm index d1aef2bd..30179d49 100644 --- a/src/lib/Hydra/Controller/JobsetEval.pm +++ b/src/lib/Hydra/Controller/JobsetEval.pm @@ -67,7 +67,16 @@ sub view_GET { my @builds = $eval->builds->search($filter, { columns => [@buildListColumns] }); my @builds2 = defined $eval2 ? $eval2->builds->search($filter, { columns => [@buildListColumns] }) : (); - buildDiff(@builds, @builds2); + my $diff = buildDiff([@builds], [@builds2]); + $c->stash->{stillSucceed} = $diff->{stillSucceed}; + $c->stash->{stillFail} = $diff->{stillFail}; + $c->stash->{nowSucceed} = $diff->{nowSucceed}; + $c->stash->{nowFail} = $diff->{nowFail}; + $c->stash->{new} = $diff->{new}; + $c->stash->{removed} = $diff->{removed}; + $c->stash->{unfinished} = $diff->{unfinished}; + $c->stash->{aborted} = $diff->{aborted}; + $c->stash->{failed} = $diff->{failed}; $c->stash->{full} = ($c->req->params->{full} || "0") eq "1";