-
Notifications
You must be signed in to change notification settings - Fork 1
build(test-long-running-transaction): Migrate to uv and pyproject.toml #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| [project] | ||
| name = "test-long-running-transaction" | ||
| version = "0" | ||
| requires-python = ">=3.12" | ||
|
|
||
| dependencies = [ | ||
| "ipdb>=0.13.13", | ||
| "sentry-sdk", | ||
| "Werkzeug<2.1.0", | ||
| ] | ||
|
|
||
| [tool.uv.sources] | ||
| sentry-sdk = { path = "../../sentry-python", editable = true } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,9 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| reset | ||
|
|
||
| python -m venv .venv | ||
| source .venv/bin/activate | ||
|
|
||
| pip install -r requirements.txt | ||
| if ! command -v uv &> /dev/null; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| fi | ||
|
|
||
| python main.py | ||
| uv run python main.py | ||
|
Comment on lines
+5
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The script installs Suggested FixAfter the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uv missing after install
Medium Severity
When
uvis not onPATH, the script installs it via the official installer but never loads the installer’s env into the current shell. The nextuv runstill runs in a session wherecommand -v uvfails, so the first run can exit with “command not found” even though installation succeeded.Reviewed by Cursor Bugbot for commit 89a8ee7. Configure here.