Skip to content

Commit

Permalink
cleanup benchmark pipeline definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacman99 authored and zeme-wana committed Nov 29, 2022
1 parent 96dbc32 commit 1906f4a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nix/cells/automation/pipelines.nix
Expand Up @@ -44,19 +44,18 @@ in
let
# Facts here correspond to inputs created by the benchmark action in the cloud cell
facts = config.actionRun.facts;
commentFact = facts.${cloud.library.actions.benchmark.commentInput};
prFact = facts.${cloud.library.actions.benchmark.prInput};
commentFact = facts.${cloud.library.actions.benchmark.commentInput}.github_body;
prFact = facts.${cloud.library.actions.benchmark.prInput}.github_body;

runner = cell.library.plutus-benchmark-runner {
PR_NUMBER = prFact.github_body.pull_request.number;
PR_COMMIT_SHA = prFact.github_body.pull_request.head.sha;
PR_NUMBER = prFact.pull_request.number;
PR_COMMIT_SHA = prFact.pull_request.head.sha;
BENCHMARK_NAME = lib.removePrefix "/benchmark" commentFact.github_body.comment.body;
GITHUB_TOKEN = "/secrets/cicero/github/token";
};
in
{
# Not importing common, github-ci preset is not needed here
#
preset.nix.enable = true;
command.text = "${runner}/bin/plutus-benchmark-runner";
nomad.templates = [
Expand Down

0 comments on commit 1906f4a

Please sign in to comment.