From b1718422ce172cbf6e250b9f8e1dbb1ea6d9efec Mon Sep 17 00:00:00 2001 From: Dmitri Makarov Date: Mon, 11 Jul 2022 16:10:45 -0700 Subject: [PATCH] Add a check for rebuild regression due to dep features in cargo tomls --- ci/test-stable.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/test-stable.sh b/ci/test-stable.sh index 3034af28e3..adaa62b47c 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -69,7 +69,13 @@ test-stable-bpf) "$cargo_test_bpf" --bpf-sdk ../../../../sdk/bpf popd fi - done + done |& tee cargo.log + solana_program_count=$(grep -c 'solana-program v' cargo.log) + rm -f cargo.log + if ((solana_program_count > 4)); then + echo "Regression of build redundancy. Review dependency features that trigger redundant rebuilds of solana-program." + exit 1 + fi # bpf-tools version "$cargo_build_bpf" -V