hypersolana/ci/stable/run-local-cluster-partially.sh
Yihau Chen 239a7ba759
ci: refactor local cluster tests (#31730)
* ci: separate local cluster tests by nextest

* parallelism => 6

* Revert "parallelism => 6"

This reverts commit 5c271357fee8aa8ae812ee67e285d72ebb9bec10.
2023-05-24 15:07:33 +08:00

25 lines
522 B
Bash
Executable File

#!/usr/bin/env bash
set -e
here="$(dirname "$0")"
#shellcheck source=ci/common/shared-functions.sh
source "$here"/../common/shared-functions.sh
#shellcheck source=ci/stable/common.sh
source "$here"/common.sh
INDEX=${1:-"$BUILDKITE_PARALLEL_JOB"}
: "${INDEX:?}"
LIMIT=${2:-"$BUILDKITE_PARALLEL_JOB_COUNT"}
: "${LIMIT:?}"
_ cargo nextest run \
--profile ci \
--config-file ./nextest.toml \
--package solana-local-cluster \
--test local_cluster \
--partition hash:"$((INDEX + 1))/$LIMIT" \
--test-threads=1