From 237fb738f97b4aced3021f69904b8d6e29943599 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Mon, 8 Apr 2019 15:30:15 +1000 Subject: [PATCH] Buildkite: Add pipeline for nightly benchmark --- .buildkite/benchmark.sh | 12 ++++++++++++ .buildkite/nightly.yml | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100755 .buildkite/benchmark.sh create mode 100644 .buildkite/nightly.yml diff --git a/.buildkite/benchmark.sh b/.buildkite/benchmark.sh new file mode 100755 index 00000000000..1b917c4f8ac --- /dev/null +++ b/.buildkite/benchmark.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -euo pipefail + +stack bench cardano-wallet:restore --interleaved-output --ba "+RTS -N2 -qg -A1m -I0 -T -M1G -h -RTS" + +hp2pretty restore.hp + +if [ -n "${BUILDKITE:-}" ]; then + buildkite-agent artifact upload restore.svg + printf '\033]1338;url='"artifact://restore.svg"';alt='"Heap profile"'\a\n' +fi diff --git a/.buildkite/nightly.yml b/.buildkite/nightly.yml new file mode 100644 index 00000000000..8c0ea1a57d1 --- /dev/null +++ b/.buildkite/nightly.yml @@ -0,0 +1,8 @@ +env: + NIX_PATH: "channel:nixos-19.03" +steps: + - label: 'Restore benchmarks' + command: "nix-shell -p nix git stack haskellPackages.hp2pretty buildkite-agent --run ./.buildkite/benchmark.sh" + timeout_in_minutes: 60 + agents: + system: x86_64-linux