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

Add decorator for Sentry tracing #1089

Merged
merged 51 commits into from Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
bd86719
Add decorator for Sentry tracing
ynouri Apr 15, 2021
23d23de
Update decorators.py
ynouri Dec 30, 2021
af136a7
Merge branch 'master' into feature/tracing-decorator
antonpirker Mar 28, 2022
146c8ad
Merge branch 'master' into feature/tracing-decorator
antonpirker Mar 3, 2023
c0bc0d8
Linting
antonpirker Mar 3, 2023
fa6c550
Merge branch 'master' into feature/tracing-decorator
antonpirker Mar 3, 2023
9d1fb9a
Fixed syntax errors
antonpirker Mar 3, 2023
c272e17
Merge branch 'feature/tracing-decorator' of https://github.com/ynouri…
antonpirker Mar 3, 2023
b795e19
Fixed syntax error
antonpirker Mar 3, 2023
e839e4c
Try to make it work in Python 2.x
antonpirker Mar 3, 2023
99d5485
Removed transaction generation and made OP set to .
antonpirker Mar 6, 2023
1a6958f
Added function name as descripion to span.
antonpirker Mar 6, 2023
aecfda9
Merge branch 'master' into feature/tracing-decorator
antonpirker Mar 6, 2023
f8138b8
Try to make it run in Python 2
antonpirker Mar 6, 2023
c885e4c
Merge branch 'feature/tracing-decorator' of https://github.com/ynouri…
antonpirker Mar 6, 2023
05a7caa
Trying something else.
antonpirker Mar 6, 2023
33ecfcf
Merge branch 'master' into feature/tracing-decorator
antonpirker Mar 6, 2023
0160be0
Reverted changes to tracing_utils
antonpirker Mar 6, 2023
17eb234
Merge branch 'feature/tracing-decorator' of https://github.com/ynouri…
antonpirker Mar 6, 2023
1589a56
Added warning message in case there is no transaction
antonpirker Mar 6, 2023
639e190
Update sentry_sdk/tracing.py
antonpirker Mar 7, 2023
37a1b9c
Merge branch 'master' into feature/tracing-decorator
antonpirker Mar 7, 2023
0b26cf1
Added tests
antonpirker Mar 8, 2023
6635d62
Updated how to run tests
antonpirker Mar 8, 2023
10fe566
Fixed invocation of tests
antonpirker Mar 8, 2023
b293047
Fixed invocation (again)
antonpirker Mar 8, 2023
b40578a
Fixed tests
antonpirker Mar 8, 2023
333286f
Linting
antonpirker Mar 8, 2023
3e0e769
Fixed typing
antonpirker Mar 8, 2023
1bdf047
.
antonpirker Mar 8, 2023
95e877e
Create span under current span
antonpirker Mar 8, 2023
4c7f8eb
.
antonpirker Mar 8, 2023
6cf968a
More test coverage
antonpirker Mar 8, 2023
0ec4f56
Cleanup
antonpirker Mar 8, 2023
a882f54
Fixed typing
antonpirker Mar 8, 2023
e51a93f
Better naming
antonpirker Mar 8, 2023
4af3170
Added top level api to get current span and transaction
antonpirker Mar 14, 2023
4efec57
Split out function in separate PR
antonpirker Mar 14, 2023
0b3c227
Merge branch 'antonpirker/top-level-get-current-span-transaction' int…
antonpirker Mar 14, 2023
a1e49c8
Always install pytest-asyncio in Python3 to run new async tests in co…
antonpirker Mar 14, 2023
3265709
Updated test config to make it possible to have dependencies only nee…
antonpirker Mar 15, 2023
933535f
Fixed minimum Python versions the tests should run in.
antonpirker Mar 15, 2023
c124a7d
Dont run common tests in py3.4 (like it was before)
antonpirker Mar 15, 2023
d5e10fb
Updated test matrix
antonpirker Mar 15, 2023
2ede736
Trying normal fixture
antonpirker Mar 15, 2023
cefd2bc
Run asyncio tests only in python >3.6
antonpirker Mar 15, 2023
535eb74
Remove check because it is not really useful and breaks when asyncio …
antonpirker Mar 15, 2023
c1b6a6b
Fixed some tests
antonpirker Mar 15, 2023
62e5719
Use get_current_span, because it also returns the transaction if no s…
antonpirker Mar 15, 2023
6b90c09
Merge branch 'master' into feature/tracing-decorator
antonpirker Mar 15, 2023
524fb88
Linting
antonpirker Mar 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 27 additions & 7 deletions .github/workflows/test-common.yml
@@ -1,4 +1,4 @@
name: Test Common
name: Test common

on:
push:
Expand All @@ -8,6 +8,12 @@ on:

pull_request:

# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -18,18 +24,20 @@ env:

jobs:
test:
name: Test Python ${{ matrix.python-version }}, ${{ matrix.os }}
name: common, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
continue-on-error: true

strategy:
fail-fast: false
matrix:
python-version: ["2.7","3.5","3.6","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
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-20.04]
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -38,16 +46,28 @@ jobs:

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

- name: Run Tests
- name: Test common
timeout-minutes: 45
shell: bash
run: |
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "py${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations
./scripts/runtox.sh "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml

check_required_tests:
name: All common tests passed or skipped
needs: test
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
steps:
- name: Check for failures
if: contains(needs.test.result, 'failure')
run: |
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-aiohttp.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-arq.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-asgi.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-aws_lambda.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-beam.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-boto3.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-bottle.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-celery.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-chalice.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-django.yml
Expand Up @@ -73,7 +73,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-falcon.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-fastapi.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-flask.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-gcp.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-gevent.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-httpx.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-huey.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-opentelemetry.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-pure_eval.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-pymongo.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-pyramid.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-quart.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-redis.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-rediscluster.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-requests.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-rq.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-sanic.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-sqlalchemy.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-starlette.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-starlite.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-tornado.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-trytond.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion scripts/split-tox-gh-actions/ci-yaml.txt
Expand Up @@ -47,7 +47,7 @@ jobs:
set -x # print commands that are executed
coverage erase

./scripts/runtox.sh "${{ matrix.python-version }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
./scripts/runtox.sh "py${{ matrix.python-version }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
Expand Down
6 changes: 5 additions & 1 deletion scripts/split-tox-gh-actions/split-tox-gh-actions.py
Expand Up @@ -71,7 +71,11 @@ def write_yaml_file(
out += template_line.replace("{{ framework }}", current_framework)

# write rendered template
outfile_name = OUT_DIR / f"test-integration-{current_framework}.yml"
if current_framework == "common":
outfile_name = OUT_DIR / f"test-{current_framework}.yml"
else:
outfile_name = OUT_DIR / f"test-integration-{current_framework}.yml"

print(f"Writing {outfile_name}")
f = open(outfile_name, "w")
f.writelines(out)
Expand Down