mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-05 02:17:31 +00:00
chore: fix tele test
# What does this PR do? ## Test Plan
This commit is contained in:
parent
5e20938832
commit
b71a870f04
2 changed files with 5 additions and 20 deletions
|
|
@ -187,6 +187,11 @@ if ! command -v pytest &> /dev/null; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Configure telemetry collector port shared between host and container
|
||||
COLLECTOR_PORT=4319
|
||||
export LLAMA_STACK_TEST_COLLECTOR_PORT="${COLLECTOR_PORT}"
|
||||
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:${COLLECTOR_PORT}"
|
||||
|
||||
# Start Llama Stack Server if needed
|
||||
if [[ "$STACK_CONFIG" == *"server:"* && "$COLLECT_ONLY" == false ]]; then
|
||||
stop_server() {
|
||||
|
|
@ -284,10 +289,6 @@ if [[ "$STACK_CONFIG" == *"docker:"* && "$COLLECT_ONLY" == false ]]; then
|
|||
docker stop "$container_name" 2>/dev/null || true
|
||||
docker rm "$container_name" 2>/dev/null || true
|
||||
|
||||
# Configure telemetry collector port shared between host and container
|
||||
COLLECTOR_PORT=4317
|
||||
export LLAMA_STACK_TEST_COLLECTOR_PORT="${COLLECTOR_PORT}"
|
||||
|
||||
# Build environment variables for docker run
|
||||
DOCKER_ENV_VARS=""
|
||||
DOCKER_ENV_VARS="$DOCKER_ENV_VARS -e LLAMA_STACK_TEST_INFERENCE_MODE=$INFERENCE_MODE"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue