Skip to content
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

Bring tests up to date #2512

Merged
merged 62 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
e0f826d
Reorganize tox.ini
sentrivana Nov 16, 2023
1c8f277
wip
sentrivana Nov 16, 2023
3b21dc3
wip
sentrivana Nov 16, 2023
2e4dda2
wip
sentrivana Nov 16, 2023
44aea84
wip
sentrivana Nov 16, 2023
c52cb9e
wip
sentrivana Nov 16, 2023
3f9cd4c
try to fix chalice tests
sentrivana Nov 16, 2023
18275e2
fix skipif
sentrivana Nov 16, 2023
2602de4
lets try that again
sentrivana Nov 16, 2023
c8a33c7
reason is apparently mandatory?
sentrivana Nov 16, 2023
262c215
wip
sentrivana Nov 16, 2023
12c31ea
fix flask versions
sentrivana Nov 16, 2023
d0a7e6d
wip
sentrivana Nov 17, 2023
a3ddfce
Merge branch 'master' into ivana/clean-up-tox
sentrivana Nov 17, 2023
9c7d3b9
wip
sentrivana Nov 17, 2023
c036f4e
wip
sentrivana Nov 17, 2023
b0485c4
wip
sentrivana Nov 17, 2023
aabb172
wip
sentrivana Nov 20, 2023
8c2b02d
fix
sentrivana Nov 20, 2023
d6ac7ae
Merge branch 'master' into ivana/clean-up-tox
sentrivana Nov 20, 2023
5dcbca2
fix
sentrivana Nov 20, 2023
aad115f
Merge branch 'master' into ivana/clean-up-tox
sentrivana Nov 20, 2023
21e2853
simplify
sentrivana Nov 20, 2023
4686a63
fix huey test
sentrivana Nov 20, 2023
a4e3620
more fixes
sentrivana Nov 20, 2023
df831a7
fixes
sentrivana Nov 20, 2023
446f0de
fix
sentrivana Nov 20, 2023
740e315
fix sanic
sentrivana Nov 20, 2023
bd308c2
try to fix httpx
sentrivana Nov 21, 2023
35cae0b
Merge branch 'master' into ivana/clean-up-tox
sentrivana Nov 21, 2023
b32e329
Merge branch 'master' into ivana/clean-up-tox
sentrivana Nov 21, 2023
7eb34f6
remove unnecessary pin
sentrivana Nov 21, 2023
6e5dba4
fix httpx
sentrivana Nov 21, 2023
01d49ed
fix beam tests
sentrivana Nov 21, 2023
5f4a2f7
fix sanic
sentrivana Nov 21, 2023
6ac1805
Merge branch 'master' into ivana/clean-up-tox
sentrivana Nov 21, 2023
d571e1e
more httpx fixes
sentrivana Nov 21, 2023
77ee722
fix split tox actions
sentrivana Nov 21, 2023
5401b31
possibly fix sanic
sentrivana Nov 21, 2023
0006208
trying something
sentrivana Nov 21, 2023
ebd6a30
sanic compat
sentrivana Nov 22, 2023
2878df5
fix trytond
sentrivana Nov 22, 2023
adba1e0
fix some rq
sentrivana Nov 22, 2023
bce6578
fix boto, skip rq test for now
sentrivana Nov 22, 2023
98d73ec
fix rq
sentrivana Nov 22, 2023
a17cb78
run latest as an extra step
sentrivana Nov 22, 2023
29800f9
wip
sentrivana Nov 22, 2023
abda88e
better test name
sentrivana Nov 22, 2023
bc5cab1
update django deps
sentrivana Nov 22, 2023
74621eb
wip
sentrivana Nov 22, 2023
7df7f86
wip
sentrivana Nov 22, 2023
43969e9
new werkzeug compat
sentrivana Nov 22, 2023
1841da5
fix?
sentrivana Nov 22, 2023
22e6074
rename
sentrivana Nov 23, 2023
ac56526
fix django latest postgres
sentrivana Nov 23, 2023
2fd974b
fix werkzeug compat
sentrivana Nov 23, 2023
9ec095a
add note
sentrivana Nov 23, 2023
878318c
remove extra echo
sentrivana Nov 23, 2023
3b8f51d
Add more starlite tests
sentrivana Nov 23, 2023
d23b45b
Merge branch 'master' into ivana/clean-up-tox
sentrivana Nov 23, 2023
929cea4
Merge branch 'master' into ivana/clean-up-tox
antonpirker Nov 24, 2023
1fcd40f
Merge branch 'master' into ivana/clean-up-tox
antonpirker Nov 24, 2023
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
5 changes: 3 additions & 2 deletions .github/workflows/test-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

Expand Down Expand Up @@ -94,10 +94,11 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i


check_required_tests:
name: All common tests passed or skipped
needs: [test, test-py27]
Expand Down
48 changes: 47 additions & 1 deletion .github/workflows/test-integration-aiohttp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

Expand All @@ -70,6 +70,52 @@ jobs:
files: coverage.xml


test-latest:
name: aiohttp latest, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.10","3.11"]
# 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-20.04]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"

- name: Test aiohttp
uses: nick-fields/retry@v2
with:
timeout_minutes: 15
max_attempts: 2
retry_wait_seconds: 5
shell: bash
command: |
set -x # print commands that are executed
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

check_required_tests:
name: All aiohttp tests passed or skipped
needs: test
Expand Down
50 changes: 48 additions & 2 deletions .github/workflows/test-integration-ariadne.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.10","3.11","3.12"]
python-version: ["3.8","3.9","3.10","3.11"]
# 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
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

Expand All @@ -70,6 +70,52 @@ jobs:
files: coverage.xml


test-latest:
name: ariadne latest, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.10","3.11","3.12"]
# 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-20.04]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"

- name: Test ariadne
uses: nick-fields/retry@v2
with:
timeout_minutes: 15
max_attempts: 2
retry_wait_seconds: 5
shell: bash
command: |
set -x # print commands that are executed
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

check_required_tests:
name: All ariadne tests passed or skipped
needs: test
Expand Down
50 changes: 48 additions & 2 deletions .github/workflows/test-integration-arq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"]
python-version: ["3.7","3.8","3.9","3.10","3.11"]
# 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
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

Expand All @@ -70,6 +70,52 @@ jobs:
files: coverage.xml


test-latest:
name: arq latest, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"]
# 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-20.04]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"

- name: Test arq
uses: nick-fields/retry@v2
with:
timeout_minutes: 15
max_attempts: 2
retry_wait_seconds: 5
shell: bash
command: |
set -x # print commands that are executed
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

check_required_tests:
name: All arq tests passed or skipped
needs: test
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-integration-asgi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

Expand All @@ -70,6 +70,7 @@ jobs:
files: coverage.xml



check_required_tests:
name: All asgi tests passed or skipped
needs: test
Expand Down
71 changes: 69 additions & 2 deletions .github/workflows/test-integration-asyncpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"]
python-version: ["3.7","3.8","3.9","3.10"]
# 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
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

Expand All @@ -91,6 +91,73 @@ jobs:
files: coverage.xml


test-latest:
name: asyncpg latest, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.10","3.11","3.12"]
# 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-20.04]
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: sentry
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
# Maps tcp port 5432 on service container to the host
ports:
- 5432:5432
env:
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry
SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test
SENTRY_PYTHON_TEST_POSTGRES_HOST: localhost

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"
psql postgresql://postgres:sentry@localhost:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true
psql postgresql://postgres:sentry@localhost:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true

- name: Test asyncpg
uses: nick-fields/retry@v2
with:
timeout_minutes: 15
max_attempts: 2
retry_wait_seconds: 5
shell: bash
command: |
set -x # print commands that are executed
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

check_required_tests:
name: All asyncpg tests passed or skipped
needs: test
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-integration-aws_lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
coverage erase

# Run tests
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch &&
coverage combine .coverage* &&
coverage xml -i

Expand All @@ -72,6 +72,7 @@ jobs:
files: coverage.xml



check_required_tests:
name: All aws_lambda tests passed or skipped
needs: test
Expand Down
Loading
Loading