From 6f6c350781282df06a30f8a171ac3629c78a5252 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 18 Dec 2018 18:21:46 -0800 Subject: [PATCH] Skip stable-perf of no .rs files are modified in a PR --- ci/test-stable-perf.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ci/test-stable-perf.sh b/ci/test-stable-perf.sh index b14191eef5..8e71e334ab 100755 --- a/ci/test-stable-perf.sh +++ b/ci/test-stable-perf.sh @@ -1,8 +1,24 @@ #!/usr/bin/env bash set -e - cd "$(dirname "$0")/.." +annotate() { + ${BUILDKITE:-false} && { + buildkite-agent annotate "$@" + } +} + +ci/affects-files.sh \ + .rs$ \ + ci/test-stable-perf.sh \ + ci/test-stable.sh \ +|| { + annotate --style info --context test-stable-perf \ + "Stable Perf skipped as no .rs files were modified" + exit 0 +} + + ./fetch-perf-libs.sh # shellcheck source=/dev/null source ./target/perf-libs/env.sh