Skip to content

Commit 388e68e

Browse files
authored
Fix tests (#3341)
1 parent dfcab26 commit 388e68e

18 files changed

+81
-557
lines changed

.github/workflows/test-integrations-aws-lambda.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
- uses: actions/setup-python@v5
7272
with:
7373
python-version: ${{ matrix.python-version }}
74+
env:
75+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
7476
- name: Setup Test Env
7577
run: |
7678
pip install coverage "tox>=3,<4"

.github/workflows/test-integrations-cloud-computing.yml

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,6 @@ env:
1818
CACHED_BUILD_PATHS: |
1919
${{ github.workspace }}/dist-serverless
2020
jobs:
21-
test-cloud_computing-latest:
22-
name: Cloud Computing (latest)
23-
timeout-minutes: 30
24-
runs-on: ${{ matrix.os }}
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
python-version: ["3.7","3.10","3.11","3.12"]
29-
# python3.6 reached EOL and is no longer being supported on
30-
# new versions of hosted runners on Github Actions
31-
# ubuntu-20.04 is the last version that supported python3.6
32-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
33-
os: [ubuntu-20.04]
34-
steps:
35-
- uses: actions/[email protected]
36-
- uses: actions/setup-python@v5
37-
with:
38-
python-version: ${{ matrix.python-version }}
39-
- name: Setup Test Env
40-
run: |
41-
pip install coverage "tox>=3,<4"
42-
- name: Erase coverage
43-
run: |
44-
coverage erase
45-
- name: Test boto3 latest
46-
run: |
47-
set -x # print commands that are executed
48-
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
49-
- name: Test chalice latest
50-
run: |
51-
set -x # print commands that are executed
52-
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
53-
- name: Test cloud_resource_context latest
54-
run: |
55-
set -x # print commands that are executed
56-
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
57-
- name: Test gcp latest
58-
run: |
59-
set -x # print commands that are executed
60-
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
61-
- name: Generate coverage XML
62-
run: |
63-
coverage combine .coverage*
64-
coverage xml -i
65-
- uses: codecov/codecov-action@v4
66-
with:
67-
token: ${{ secrets.CODECOV_TOKEN }}
68-
files: coverage.xml
6921
test-cloud_computing-pinned:
7022
name: Cloud Computing (pinned)
7123
timeout-minutes: 30
@@ -84,6 +36,8 @@ jobs:
8436
- uses: actions/setup-python@v5
8537
with:
8638
python-version: ${{ matrix.python-version }}
39+
env:
40+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
8741
- name: Setup Test Env
8842
run: |
8943
pip install coverage "tox>=3,<4"

.github/workflows/test-integrations-common.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
- uses: actions/setup-python@v5
3737
with:
3838
python-version: ${{ matrix.python-version }}
39+
env:
40+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
3941
- name: Setup Test Env
4042
run: |
4143
pip install coverage "tox>=3,<4"

.github/workflows/test-integrations-data-processing.yml

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -18,62 +18,6 @@ env:
1818
CACHED_BUILD_PATHS: |
1919
${{ github.workspace }}/dist-serverless
2020
jobs:
21-
test-data_processing-latest:
22-
name: Data Processing (latest)
23-
timeout-minutes: 30
24-
runs-on: ${{ matrix.os }}
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
python-version: ["3.5","3.7","3.8","3.9","3.11","3.12"]
29-
# python3.6 reached EOL and is no longer being supported on
30-
# new versions of hosted runners on Github Actions
31-
# ubuntu-20.04 is the last version that supported python3.6
32-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
33-
os: [ubuntu-20.04]
34-
steps:
35-
- uses: actions/[email protected]
36-
- uses: actions/setup-python@v5
37-
with:
38-
python-version: ${{ matrix.python-version }}
39-
- name: Setup Test Env
40-
run: |
41-
pip install coverage "tox>=3,<4"
42-
- name: Erase coverage
43-
run: |
44-
coverage erase
45-
- name: Test arq latest
46-
run: |
47-
set -x # print commands that are executed
48-
./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
49-
- name: Test beam latest
50-
run: |
51-
set -x # print commands that are executed
52-
./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
53-
- name: Test celery latest
54-
run: |
55-
set -x # print commands that are executed
56-
./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
57-
- name: Test huey latest
58-
run: |
59-
set -x # print commands that are executed
60-
./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
61-
- name: Test openai latest
62-
run: |
63-
set -x # print commands that are executed
64-
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
65-
- name: Test rq latest
66-
run: |
67-
set -x # print commands that are executed
68-
./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
69-
- name: Generate coverage XML
70-
run: |
71-
coverage combine .coverage*
72-
coverage xml -i
73-
- uses: codecov/codecov-action@v4
74-
with:
75-
token: ${{ secrets.CODECOV_TOKEN }}
76-
files: coverage.xml
7721
test-data_processing-pinned:
7822
name: Data Processing (pinned)
7923
timeout-minutes: 30
@@ -92,6 +36,8 @@ jobs:
9236
- uses: actions/setup-python@v5
9337
with:
9438
python-version: ${{ matrix.python-version }}
39+
env:
40+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
9541
- name: Setup Test Env
9642
run: |
9743
pip install coverage "tox>=3,<4"

.github/workflows/test-integrations-databases.yml

Lines changed: 2 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -18,84 +18,6 @@ env:
1818
CACHED_BUILD_PATHS: |
1919
${{ github.workspace }}/dist-serverless
2020
jobs:
21-
test-databases-latest:
22-
name: Databases (latest)
23-
timeout-minutes: 30
24-
runs-on: ${{ matrix.os }}
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
python-version: ["3.7","3.8","3.11","3.12"]
29-
# python3.6 reached EOL and is no longer being supported on
30-
# new versions of hosted runners on Github Actions
31-
# ubuntu-20.04 is the last version that supported python3.6
32-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
33-
os: [ubuntu-20.04]
34-
services:
35-
postgres:
36-
image: postgres
37-
env:
38-
POSTGRES_PASSWORD: sentry
39-
# Set health checks to wait until postgres has started
40-
options: >-
41-
--health-cmd pg_isready
42-
--health-interval 10s
43-
--health-timeout 5s
44-
--health-retries 5
45-
# Maps tcp port 5432 on service container to the host
46-
ports:
47-
- 5432:5432
48-
env:
49-
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres
50-
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry
51-
SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test
52-
SENTRY_PYTHON_TEST_POSTGRES_HOST: localhost
53-
steps:
54-
- uses: actions/[email protected]
55-
- uses: actions/setup-python@v5
56-
with:
57-
python-version: ${{ matrix.python-version }}
58-
- uses: getsentry/action-clickhouse-in-ci@v1
59-
- name: Setup Test Env
60-
run: |
61-
pip install coverage "tox>=3,<4"
62-
psql postgresql://postgres:sentry@localhost:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true
63-
psql postgresql://postgres:sentry@localhost:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true
64-
- name: Erase coverage
65-
run: |
66-
coverage erase
67-
- name: Test asyncpg latest
68-
run: |
69-
set -x # print commands that are executed
70-
./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
71-
- name: Test clickhouse_driver latest
72-
run: |
73-
set -x # print commands that are executed
74-
./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
75-
- name: Test pymongo latest
76-
run: |
77-
set -x # print commands that are executed
78-
./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
79-
- name: Test redis latest
80-
run: |
81-
set -x # print commands that are executed
82-
./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
83-
- name: Test rediscluster latest
84-
run: |
85-
set -x # print commands that are executed
86-
./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
87-
- name: Test sqlalchemy latest
88-
run: |
89-
set -x # print commands that are executed
90-
./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
91-
- name: Generate coverage XML
92-
run: |
93-
coverage combine .coverage*
94-
coverage xml -i
95-
- uses: codecov/codecov-action@v4
96-
with:
97-
token: ${{ secrets.CODECOV_TOKEN }}
98-
files: coverage.xml
9921
test-databases-pinned:
10022
name: Databases (pinned)
10123
timeout-minutes: 30
@@ -133,6 +55,8 @@ jobs:
13355
- uses: actions/setup-python@v5
13456
with:
13557
python-version: ${{ matrix.python-version }}
58+
env:
59+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
13660
- uses: getsentry/action-clickhouse-in-ci@v1
13761
- name: Setup Test Env
13862
run: |

.github/workflows/test-integrations-graphql.yml

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -18,62 +18,14 @@ env:
1818
CACHED_BUILD_PATHS: |
1919
${{ github.workspace }}/dist-serverless
2020
jobs:
21-
test-graphql-latest:
22-
name: GraphQL (latest)
23-
timeout-minutes: 30
24-
runs-on: ${{ matrix.os }}
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
python-version: ["3.7","3.8","3.11","3.12"]
29-
# python3.6 reached EOL and is no longer being supported on
30-
# new versions of hosted runners on Github Actions
31-
# ubuntu-20.04 is the last version that supported python3.6
32-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
33-
os: [ubuntu-20.04]
34-
steps:
35-
- uses: actions/[email protected]
36-
- uses: actions/setup-python@v5
37-
with:
38-
python-version: ${{ matrix.python-version }}
39-
- name: Setup Test Env
40-
run: |
41-
pip install coverage "tox>=3,<4"
42-
- name: Erase coverage
43-
run: |
44-
coverage erase
45-
- name: Test ariadne latest
46-
run: |
47-
set -x # print commands that are executed
48-
./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
49-
- name: Test gql latest
50-
run: |
51-
set -x # print commands that are executed
52-
./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
53-
- name: Test graphene latest
54-
run: |
55-
set -x # print commands that are executed
56-
./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
57-
- name: Test strawberry latest
58-
run: |
59-
set -x # print commands that are executed
60-
./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
61-
- name: Generate coverage XML
62-
run: |
63-
coverage combine .coverage*
64-
coverage xml -i
65-
- uses: codecov/codecov-action@v4
66-
with:
67-
token: ${{ secrets.CODECOV_TOKEN }}
68-
files: coverage.xml
6921
test-graphql-pinned:
7022
name: GraphQL (pinned)
7123
timeout-minutes: 30
7224
runs-on: ${{ matrix.os }}
7325
strategy:
7426
fail-fast: false
7527
matrix:
76-
python-version: ["3.7","3.8","3.11"]
28+
python-version: ["3.7","3.8","3.11","3.12"]
7729
# python3.6 reached EOL and is no longer being supported on
7830
# new versions of hosted runners on Github Actions
7931
# ubuntu-20.04 is the last version that supported python3.6
@@ -84,6 +36,8 @@ jobs:
8436
- uses: actions/setup-python@v5
8537
with:
8638
python-version: ${{ matrix.python-version }}
39+
env:
40+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
8741
- name: Setup Test Env
8842
run: |
8943
pip install coverage "tox>=3,<4"

.github/workflows/test-integrations-miscellaneous.yml

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,6 @@ env:
1818
CACHED_BUILD_PATHS: |
1919
${{ github.workspace }}/dist-serverless
2020
jobs:
21-
test-miscellaneous-latest:
22-
name: Miscellaneous (latest)
23-
timeout-minutes: 30
24-
runs-on: ${{ matrix.os }}
25-
strategy:
26-
fail-fast: false
27-
matrix:
28-
python-version: ["3.5","3.8","3.11","3.12"]
29-
# python3.6 reached EOL and is no longer being supported on
30-
# new versions of hosted runners on Github Actions
31-
# ubuntu-20.04 is the last version that supported python3.6
32-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
33-
os: [ubuntu-20.04]
34-
steps:
35-
- uses: actions/[email protected]
36-
- uses: actions/setup-python@v5
37-
with:
38-
python-version: ${{ matrix.python-version }}
39-
- name: Setup Test Env
40-
run: |
41-
pip install coverage "tox>=3,<4"
42-
- name: Erase coverage
43-
run: |
44-
coverage erase
45-
- name: Test loguru latest
46-
run: |
47-
set -x # print commands that are executed
48-
./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
49-
- name: Test opentelemetry latest
50-
run: |
51-
set -x # print commands that are executed
52-
./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
53-
- name: Test pure_eval latest
54-
run: |
55-
set -x # print commands that are executed
56-
./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
57-
- name: Test trytond latest
58-
run: |
59-
set -x # print commands that are executed
60-
./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
61-
- name: Generate coverage XML
62-
run: |
63-
coverage combine .coverage*
64-
coverage xml -i
65-
- uses: codecov/codecov-action@v4
66-
with:
67-
token: ${{ secrets.CODECOV_TOKEN }}
68-
files: coverage.xml
6921
test-miscellaneous-pinned:
7022
name: Miscellaneous (pinned)
7123
timeout-minutes: 30
@@ -84,6 +36,8 @@ jobs:
8436
- uses: actions/setup-python@v5
8537
with:
8638
python-version: ${{ matrix.python-version }}
39+
env:
40+
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
8741
- name: Setup Test Env
8842
run: |
8943
pip install coverage "tox>=3,<4"

0 commit comments

Comments
 (0)