Files
chroma/bin/cluster-test.sh
Hammad Bashir 896822231e [ENH] Pulsar Producer & Consumer (#921)
## Description of changes

*Summarize the changes made by this PR.*
 - New functionality
- Adds a basic pulsar producer, consumer and associated tests. As well
as a docker compose for the distributed version of chroma.

## Test plan
We added bin/cluster-test.sh, which starts pulsar and allows
test_producer_consumer to run the pulsar fixture.

## Documentation Changes
None required.
2023-09-20 02:03:07 -07:00

17 lines
303 B
Bash
Executable File

#!/usr/bin/env bash
set -e
function cleanup {
docker compose -f docker-compose.cluster.yml down --rmi local --volumes
}
trap cleanup EXIT
docker compose -f docker-compose.cluster.yml up -d --wait pulsar
export CHROMA_CLUSTER_TEST_ONLY=1
echo testing: python -m pytest "$@"
python -m pytest "$@"