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