Skip to content

Commit 30f59ea

Browse files
ericapisaniclaude
andcommitted
fix(test-checkin-in-trace-id): Use explicit venv creation and activation in scripts
Create .venv with uv venv if missing, activate it, and install deps with uv pip install -e . before running the app commands. Refs PY-2437 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dbfe2dc commit 30f59ea

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

test-checkin-in-trace-id/run-celery.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ if ! command -v uv &> /dev/null; then
55
curl -LsSf https://astral.sh/uv/install.sh | sh
66
fi
77

8+
if [ ! -d ".venv" ]; then
9+
uv venv
10+
fi
11+
12+
source .venv/bin/activate
13+
uv pip install -e .
14+
815
redis-server &
916

10-
uv run celery -A tasks worker --loglevel=DEBUG
17+
celery -A tasks worker --loglevel=DEBUG

test-checkin-in-trace-id/run.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ if ! command -v uv &> /dev/null; then
55
curl -LsSf https://astral.sh/uv/install.sh | sh
66
fi
77

8-
uv run python main.py
8+
if [ ! -d ".venv" ]; then
9+
uv venv
10+
fi
11+
12+
source .venv/bin/activate
13+
uv pip install -e .
14+
15+
python main.py

0 commit comments

Comments
 (0)