Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions test-fastapi-distributed-tracing/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[project]
name = "test-fastapi-distributed-tracing"
version = "0"
requires-python = ">=3.12"

dependencies = [
"black>=25.1.0",
"fastapi>=0.115.11",
"ipdb>=0.13.13",
"requests>=2.32.3",
"sentry-sdk[fastapi]",
"uvicorn>=0.34.0",
]

[tool.uv.sources]
sentry-sdk = { path = "../../sentry-python", editable = true }
10 changes: 0 additions & 10 deletions test-fastapi-distributed-tracing/requirements.txt

This file was deleted.

14 changes: 4 additions & 10 deletions test-fastapi-distributed-tracing/run1.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

reset

python -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt

# uvicorn main:app --port 5000 --reload --root-path /api/v1 &
uvicorn main1:app --port 5001 --reload
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

#nginx -c "$(pwd)/nginx.conf"
uv run uvicorn main1:app --port 5001 --reload

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uv not on PATH after install

Medium Severity

When uv is installed via curl | sh, the installer adds it to ~/.local/bin but doesn't update the PATH for the current shell. This causes the subsequent uv run command to fail with 'command not found' immediately after installation.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 57adfdd. Configure here.

14 changes: 4 additions & 10 deletions test-fastapi-distributed-tracing/run2.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

reset

python -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt

# uvicorn main:app --port 5000 --reload --root-path /api/v1 &
uvicorn main2:app --port 5002 --reload
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

#nginx -c "$(pwd)/nginx.conf"
uv run uvicorn main2:app --port 5002 --reload
Loading