Skip to content

Commit

Permalink
Merge branch 'master' into ticket_1527
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Jan 9, 2023
2 parents a5b821b + 2f67f12 commit 347e384
Show file tree
Hide file tree
Showing 61 changed files with 2,353 additions and 592 deletions.
4 changes: 3 additions & 1 deletion .craft.yml
@@ -1,4 +1,4 @@
minVersion: 0.28.1
minVersion: 0.34.1
targets:
- name: pypi
includeNames: /^sentry[_\-]sdk.*$/
Expand All @@ -23,5 +23,7 @@ targets:
- python3.8
- python3.9
license: MIT
- name: sentry-pypi
internalPypiRepo: getsentry/pypi
changelog: CHANGELOG.md
changelogPolicy: auto
13 changes: 6 additions & 7 deletions .github/workflows/test-common.yml
Expand Up @@ -24,7 +24,11 @@ jobs:
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest]
# 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"]
services:
postgres:
Expand All @@ -51,15 +55,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
run: |
pip install codecov tox
- name: Run Tests
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -69,4 +68,4 @@ jobs:
./scripts/runtox.sh "py${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
codecov --file coverage.xml
27 changes: 19 additions & 8 deletions .github/workflows/test-integration-aiohttp.yml
Expand Up @@ -27,12 +27,16 @@ jobs:
name: aiohttp, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
continue-on-error: true

strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.8","3.9","3.10"]
os: [ubuntu-latest]
# 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@v3
Expand All @@ -41,15 +45,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
run: |
pip install codecov tox
pip install codecov "tox>=3,<4"
- name: Test aiohttp
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -60,3 +59,15 @@ jobs:
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
check_required_tests:
name: All aiohttp 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
27 changes: 19 additions & 8 deletions .github/workflows/test-integration-asgi.yml
Expand Up @@ -27,12 +27,16 @@ jobs:
name: asgi, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
continue-on-error: true

strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.8","3.9","3.10"]
os: [ubuntu-latest]
# 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@v3
Expand All @@ -41,15 +45,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
run: |
pip install codecov tox
pip install codecov "tox>=3,<4"
- name: Test asgi
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -60,3 +59,15 @@ jobs:
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
check_required_tests:
name: All asgi 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
27 changes: 19 additions & 8 deletions .github/workflows/test-integration-aws_lambda.yml
Expand Up @@ -27,12 +27,16 @@ jobs:
name: aws_lambda, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
continue-on-error: true

strategy:
fail-fast: false
matrix:
python-version: ["3.7"]
os: [ubuntu-latest]
# 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@v3
Expand All @@ -41,15 +45,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
run: |
pip install codecov tox
pip install codecov "tox>=3,<4"
- name: Test aws_lambda
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -60,3 +59,15 @@ jobs:
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
check_required_tests:
name: All aws_lambda 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
27 changes: 19 additions & 8 deletions .github/workflows/test-integration-beam.yml
Expand Up @@ -27,12 +27,16 @@ jobs:
name: beam, python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 45
continue-on-error: true

strategy:
fail-fast: false
matrix:
python-version: ["3.7"]
os: [ubuntu-latest]
# 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@v3
Expand All @@ -41,15 +45,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
run: |
pip install codecov tox
pip install codecov "tox>=3,<4"
- name: Test beam
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -60,3 +59,15 @@ jobs:
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
check_required_tests:
name: All beam 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
27 changes: 19 additions & 8 deletions .github/workflows/test-integration-boto3.yml
Expand Up @@ -27,12 +27,16 @@ jobs:
name: boto3, 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.6","3.7","3.8"]
os: [ubuntu-latest]
# 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@v3
Expand All @@ -41,15 +45,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
run: |
pip install codecov tox
pip install codecov "tox>=3,<4"
- name: Test boto3
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -60,3 +59,15 @@ jobs:
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
check_required_tests:
name: All boto3 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
27 changes: 19 additions & 8 deletions .github/workflows/test-integration-bottle.yml
Expand Up @@ -27,12 +27,16 @@ jobs:
name: bottle, 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"]
os: [ubuntu-latest]
# 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@v3
Expand All @@ -41,15 +45,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
run: |
pip install codecov tox
pip install codecov "tox>=3,<4"
- name: Test bottle
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
shell: bash
run: |
Expand All @@ -60,3 +59,15 @@ jobs:
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
check_required_tests:
name: All bottle 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

0 comments on commit 347e384

Please sign in to comment.