From 8c3c573953be97bcff103e9fec9e438c9bf3e3a7 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sun, 9 Jan 2022 09:50:55 -0500 Subject: [PATCH] hydra-eval-jobset: fixup old reference to project / jobset columns --- src/script/hydra-eval-jobset | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/script/hydra-eval-jobset b/src/script/hydra-eval-jobset index c5d15567..7639ec2d 100755 --- a/src/script/hydra-eval-jobset +++ b/src/script/hydra-eval-jobset @@ -106,9 +106,17 @@ sub fetchInputBuild { $projectName ||= $project->name; $jobsetName ||= $jobset->name; + my $jobset = $db->resultset('Jobsets')->search( + { + name => $jobsetName, + project => $projectName, + }, + {} + )->single; + # Pick the most recent successful build of the specified job. $prevBuild = $db->resultset('Builds')->search( - { finished => 1, project => $projectName, jobset => $jobsetName + { finished => 1, jobset_id => $jobset->get_column('id') , job => $jobName, buildStatus => 0 }, { order_by => "me.id DESC", rows => 1 , where => \ attrsToSQL($attrs, "me.id") })->single;