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
17 changes: 17 additions & 0 deletions test-potel-trace-propagation/backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[project]
name = "test-potel-trace-propagation-backend"
version = "0"
requires-python = ">=3.12"

dependencies = [
"blinker>=1.9.0",
"flask>=3.1.0",
"gunicorn>=23.0.0",
"ipdb>=0.13.13",
"markupsafe>=3.0.2",
"requests>=2.32.3",
"sentry-sdk[flask,opentelemetry-experimental]",
]

[tool.uv.sources]
sentry-sdk = { path = "../../../sentry-python", editable = true }
11 changes: 0 additions & 11 deletions test-potel-trace-propagation/backend/requirements.txt

This file was deleted.

20 changes: 5 additions & 15 deletions test-potel-trace-propagation/backend/run.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

# exit on first error
set -xe
if ! command -v uv &> /dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
fi

# create and activate virtual environment
python -m venv .venv
source .venv/bin/activate

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Installed uv not in PATH for current session

High Severity

When uv is not installed and the curl | sh installer runs, it modifies shell profile files (.bashrc, .zshrc, etc.) to add uv to PATH. Those profile changes only take effect in new shell sessions, not the current one. So when execution reaches uv run flask --app main run immediately after, the shell still can't find uv and the script fails with a "command not found" error.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2b74e47. Configure here.

# Install (or update) requirements
python -m pip install -r requirements.txt


# Run Flask application on localhost:5000
flask --app main run

# Run Flask application with multithreading (port 8000)
# gunicorn main:app -w 1 --threads 12
uv run flask --app main run
Loading