mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-01-12 17:02:54 +08:00
## 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.
17 lines
303 B
Bash
Executable File
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 "$@"
|