Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
65e27bb
build(tox): migrate from pip to uv via tox-uv
sentry-junior[bot] May 22, 2026
74d5e2b
gen files
sl0thentr0py May 26, 2026
5333c5b
use 3.13 to run tox
sl0thentr0py May 26, 2026
d5bdaf4
restore rest of tox.in
sl0thentr0py May 26, 2026
10b7357
use astral setup-uv instead, containers for 3.6 and 3.7
sl0thentr0py May 26, 2026
84ee0d9
fix usedevelop on 3.6/3.7
sl0thentr0py May 26, 2026
d750175
ci: debug git inside 3.6/3.7 containers
sl0thentr0py May 26, 2026
5d04405
ci: mark workspace safe.directory for 3.6/3.7 containers
sl0thentr0py May 26, 2026
6f31acd
remove extras, move to installing all deps at once
sl0thentr0py May 26, 2026
f667b30
bump boto3 min version to 1.17 due to unresolvable urllib3
sl0thentr0py May 26, 2026
f75875f
proper potel deps
sl0thentr0py May 26, 2026
39b887f
fix makefile
sl0thentr0py May 26, 2026
d1707fe
gen files
sl0thentr0py May 26, 2026
4a936a7
allow prerelease
sl0thentr0py May 26, 2026
95a3173
fix prerelease resolution for transitive deps
sl0thentr0py May 26, 2026
ffd32ab
pin pydantic-ai-slim prerelease for pydantic_ai 2.0.0b3 env
sl0thentr0py May 26, 2026
d75cdf6
pin transitive prereleases and cap setuptools<81 for pkg_resources
sl0thentr0py May 26, 2026
d180999
comment
sl0thentr0py May 26, 2026
d494e50
fix redis service
sl0thentr0py May 26, 2026
cedde3e
debug celery
sl0thentr0py May 26, 2026
598366c
fix(tests): make celery beat killer wait for pidfile
sl0thentr0py May 26, 2026
2121565
test(celery): faulthandler dump child stacks on beat hang
sl0thentr0py May 26, 2026
b6d21ab
test(celery): arm faulthandler at fixture scope, not in run_beat
sl0thentr0py May 26, 2026
ba0a1c4
test(celery): diag — fail fast on broker connect
sl0thentr0py May 27, 2026
1358a4c
test(celery): skip beat-cron tests on py3.7, drop debug code
sl0thentr0py May 27, 2026
2e62376
test: pass SENTRY_PYTHON_TEST_REDIS_HOST through tox
sl0thentr0py May 27, 2026
ba78caa
move flask pins to normal config
sl0thentr0py May 27, 2026
3d048da
let uv handle tox top level
sl0thentr0py May 27, 2026
19b6324
pre-commit and instructions
sl0thentr0py May 27, 2026
2d52529
port runtox
sl0thentr0py May 27, 2026
c63f18a
fix preference after runtox
sl0thentr0py May 27, 2026
dcd3698
boto 1.16 should work
sl0thentr0py May 27, 2026
3b7f860
fix ray uv
sl0thentr0py May 27, 2026
dda4412
uv run perms
sl0thentr0py May 27, 2026
8da55d1
fix pre-releases with gen
sl0thentr0py May 27, 2026
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
3 changes: 2 additions & 1 deletion .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"Bash(.tox/*/bin/ruff:*)",
"Bash(ruff format:*)",
"Bash(ruff check:*)",
"Bash(mypy:*)"
"Bash(mypy:*)",
"Bash(uv run *)"
],
"deny": []
}
Expand Down
38 changes: 16 additions & 22 deletions .github/workflows/test-integrations-agents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-22.04]
# Use Docker container only for Python 3.6
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
env:
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
if: ${{ matrix.python-version != '3.6' }}
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Mark workspace safe for git (3.6/3.7 container)
# needed to make git rev-parse work in the containers
# subprocesses (e.g. sentry_sdk.utils.get_git_revision) can run git.
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
uv sync
- name: Erase coverage
run: |
coverage erase
uv run coverage erase
- name: Test openai_agents
run: |
set -x # print commands that are executed
Expand All @@ -61,17 +61,11 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
if: ${{ !cancelled() }}
run: |
coverage combine .coverage-sentry-*
coverage xml
uv run coverage combine .coverage-sentry-*
uv run coverage xml
- name: Parse and Upload Coverage
if: ${{ !cancelled() }}
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main
Expand Down
38 changes: 16 additions & 22 deletions .github/workflows/test-integrations-ai-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.9","3.10","3.11","3.12","3.13","3.14"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-22.04]
# Use Docker container only for Python 3.6
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
env:
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
if: ${{ matrix.python-version != '3.6' }}
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Mark workspace safe for git (3.6/3.7 container)
# needed to make git rev-parse work in the containers
# subprocesses (e.g. sentry_sdk.utils.get_git_revision) can run git.
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
uv sync
- name: Erase coverage
run: |
coverage erase
uv run coverage erase
- name: Test langchain-base
run: |
set -x # print commands that are executed
Expand All @@ -65,17 +65,11 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
if: ${{ !cancelled() }}
run: |
coverage combine .coverage-sentry-*
coverage xml
uv run coverage combine .coverage-sentry-*
uv run coverage xml
- name: Parse and Upload Coverage
if: ${{ !cancelled() }}
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main
Expand Down
38 changes: 16 additions & 22 deletions .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,26 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-22.04]
# Use Docker container only for Python 3.6
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
env:
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
if: ${{ matrix.python-version != '3.6' }}
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Mark workspace safe for git (3.6/3.7 container)
# needed to make git rev-parse work in the containers
# subprocesses (e.g. sentry_sdk.utils.get_git_revision) can run git.
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
uv sync
- name: Erase coverage
run: |
coverage erase
uv run coverage erase
- name: Test anthropic
run: |
set -x # print commands that are executed
Expand Down Expand Up @@ -81,17 +81,11 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
if: ${{ !cancelled() }}
run: |
coverage combine .coverage-sentry-*
coverage xml
uv run coverage combine .coverage-sentry-*
uv run coverage xml
- name: Parse and Upload Coverage
if: ${{ !cancelled() }}
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main
Expand Down
38 changes: 16 additions & 22 deletions .github/workflows/test-integrations-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-22.04]
services:
docker:
image: docker:dind # Required for Docker network management
options: --privileged # Required for Docker-in-Docker operations
# Use Docker container only for Python 3.6
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
env:
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
if: ${{ matrix.python-version != '3.6' }}
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Mark workspace safe for git (3.6/3.7 container)
# needed to make git rev-parse work in the containers
# subprocesses (e.g. sentry_sdk.utils.get_git_revision) can run git.
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
uv sync
- name: Erase coverage
run: |
coverage erase
uv run coverage erase
- name: Test aws_lambda
run: |
set -x # print commands that are executed
Expand All @@ -77,17 +77,11 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
if: ${{ !cancelled() }}
run: |
coverage combine .coverage-sentry-*
coverage xml
uv run coverage combine .coverage-sentry-*
uv run coverage xml
- name: Parse and Upload Coverage
if: ${{ !cancelled() }}
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main
Expand Down
38 changes: 16 additions & 22 deletions .github/workflows/test-integrations-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,41 +33,35 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
Comment thread
sl0thentr0py marked this conversation as resolved.
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-22.04]
# Use Docker container only for Python 3.6
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
env:
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
if: ${{ matrix.python-version != '3.6' }}
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Mark workspace safe for git (3.6/3.7 container)
# needed to make git rev-parse work in the containers
# subprocesses (e.g. sentry_sdk.utils.get_git_revision) can run git.
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
uv sync
- name: Erase coverage
run: |
coverage erase
uv run coverage erase
- name: Test common
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-common"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
if: ${{ !cancelled() }}
run: |
coverage combine .coverage-sentry-*
coverage xml
uv run coverage combine .coverage-sentry-*
uv run coverage xml
- name: Parse and Upload Coverage
if: ${{ !cancelled() }}
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main
Expand Down
39 changes: 16 additions & 23 deletions .github/workflows/test-integrations-dbs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-22.04]
services:
postgres:
Expand All @@ -53,26 +49,29 @@ jobs:
ports:
- 5432:5432
env:
SENTRY_PYTHON_TEST_POSTGRES_HOST: ${{ matrix.python-version == '3.6' && 'postgres' || 'localhost' }}
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
SENTRY_PYTHON_TEST_POSTGRES_HOST: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'postgres' || 'localhost' }}
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry
# Use Docker container only for Python 3.6
container: ${{ matrix.python-version == '3.6' && 'python:3.6' || null }}
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
if: ${{ matrix.python-version != '3.6' }}
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: "Setup ClickHouse Server"
uses: getsentry/action-clickhouse-in-ci@5dc8a6a50d689bd6051db0241f34849e5a36490b # v1.7
- name: Mark workspace safe for git (3.6/3.7 container)
# needed to make git rev-parse work in the containers
# subprocesses (e.g. sentry_sdk.utils.get_git_revision) can run git.
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Setup Test Env
run: |
pip install "coverage[toml]" tox
uv sync
- name: Erase coverage
run: |
coverage erase
uv run coverage erase
- name: Test asyncpg
run: |
set -x # print commands that are executed
Expand All @@ -97,17 +96,11 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
export COVERAGE_RCFILE=.coveragerc36
coverage combine .coverage-sentry-*
coverage xml --ignore-errors
- name: Generate coverage XML
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
if: ${{ !cancelled() }}
run: |
coverage combine .coverage-sentry-*
coverage xml
uv run coverage combine .coverage-sentry-*
uv run coverage xml
- name: Parse and Upload Coverage
if: ${{ !cancelled() }}
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main
Expand Down
Loading
Loading