From e744c525c7257e7fcf856bf69a0b6bb160619a75 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 14:35:07 +0100 Subject: [PATCH 01/17] Only test aws lambda --- .../workflows/test-integration-aiohttp.yml | 83 --- .../workflows/test-integration-ariadne.yml | 83 --- .github/workflows/test-integration-arq.yml | 83 --- .github/workflows/test-integration-asgi.yml | 83 --- .../workflows/test-integration-asyncpg.yml | 104 ---- .github/workflows/test-integration-beam.yml | 83 --- .github/workflows/test-integration-boto3.yml | 115 ---- .github/workflows/test-integration-bottle.yml | 115 ---- .github/workflows/test-integration-celery.yml | 115 ---- .../workflows/test-integration-chalice.yml | 83 --- .../test-integration-clickhouse_driver.yml | 85 --- ...est-integration-cloud_resource_context.yml | 83 --- .github/workflows/test-integration-django.yml | 155 ----- .github/workflows/test-integration-falcon.yml | 115 ---- .../workflows/test-integration-fastapi.yml | 83 --- .github/workflows/test-integration-flask.yml | 115 ---- .github/workflows/test-integration-gcp.yml | 83 --- .github/workflows/test-integration-gevent.yml | 115 ---- .github/workflows/test-integration-gql.yml | 83 --- .../workflows/test-integration-graphene.yml | 83 --- .github/workflows/test-integration-grpc.yml | 83 --- .github/workflows/test-integration-httpx.yml | 83 --- .github/workflows/test-integration-huey.yml | 115 ---- .github/workflows/test-integration-loguru.yml | 83 --- .../test-integration-opentelemetry.yml | 83 --- .../workflows/test-integration-pure_eval.yml | 83 --- .../workflows/test-integration-pymongo.yml | 115 ---- .../workflows/test-integration-pyramid.yml | 115 ---- .github/workflows/test-integration-quart.yml | 83 --- .github/workflows/test-integration-redis.yml | 115 ---- .../test-integration-rediscluster.yml | 115 ---- .../workflows/test-integration-requests.yml | 115 ---- .github/workflows/test-integration-rq.yml | 115 ---- .github/workflows/test-integration-sanic.yml | 83 --- .../workflows/test-integration-sqlalchemy.yml | 115 ---- .../workflows/test-integration-starlette.yml | 83 --- .../workflows/test-integration-starlite.yml | 83 --- .../workflows/test-integration-strawberry.yml | 83 --- .../workflows/test-integration-tornado.yml | 83 --- .../workflows/test-integration-trytond.yml | 83 --- tox.ini | 564 ------------------ 41 files changed, 4427 deletions(-) delete mode 100644 .github/workflows/test-integration-aiohttp.yml delete mode 100644 .github/workflows/test-integration-ariadne.yml delete mode 100644 .github/workflows/test-integration-arq.yml delete mode 100644 .github/workflows/test-integration-asgi.yml delete mode 100644 .github/workflows/test-integration-asyncpg.yml delete mode 100644 .github/workflows/test-integration-beam.yml delete mode 100644 .github/workflows/test-integration-boto3.yml delete mode 100644 .github/workflows/test-integration-bottle.yml delete mode 100644 .github/workflows/test-integration-celery.yml delete mode 100644 .github/workflows/test-integration-chalice.yml delete mode 100644 .github/workflows/test-integration-clickhouse_driver.yml delete mode 100644 .github/workflows/test-integration-cloud_resource_context.yml delete mode 100644 .github/workflows/test-integration-django.yml delete mode 100644 .github/workflows/test-integration-falcon.yml delete mode 100644 .github/workflows/test-integration-fastapi.yml delete mode 100644 .github/workflows/test-integration-flask.yml delete mode 100644 .github/workflows/test-integration-gcp.yml delete mode 100644 .github/workflows/test-integration-gevent.yml delete mode 100644 .github/workflows/test-integration-gql.yml delete mode 100644 .github/workflows/test-integration-graphene.yml delete mode 100644 .github/workflows/test-integration-grpc.yml delete mode 100644 .github/workflows/test-integration-httpx.yml delete mode 100644 .github/workflows/test-integration-huey.yml delete mode 100644 .github/workflows/test-integration-loguru.yml delete mode 100644 .github/workflows/test-integration-opentelemetry.yml delete mode 100644 .github/workflows/test-integration-pure_eval.yml delete mode 100644 .github/workflows/test-integration-pymongo.yml delete mode 100644 .github/workflows/test-integration-pyramid.yml delete mode 100644 .github/workflows/test-integration-quart.yml delete mode 100644 .github/workflows/test-integration-redis.yml delete mode 100644 .github/workflows/test-integration-rediscluster.yml delete mode 100644 .github/workflows/test-integration-requests.yml delete mode 100644 .github/workflows/test-integration-rq.yml delete mode 100644 .github/workflows/test-integration-sanic.yml delete mode 100644 .github/workflows/test-integration-sqlalchemy.yml delete mode 100644 .github/workflows/test-integration-starlette.yml delete mode 100644 .github/workflows/test-integration-starlite.yml delete mode 100644 .github/workflows/test-integration-strawberry.yml delete mode 100644 .github/workflows/test-integration-tornado.yml delete mode 100644 .github/workflows/test-integration-trytond.yml diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml deleted file mode 100644 index f70d652f2e..0000000000 --- a/.github/workflows/test-integration-aiohttp.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test aiohttp - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: aiohttp, 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"] - # 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" --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 - # 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-ariadne.yml b/.github/workflows/test-integration-ariadne.yml deleted file mode 100644 index 38e0d8271b..0000000000 --- a/.github/workflows/test-integration-ariadne.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test ariadne - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: ariadne, 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" --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 - # 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-arq.yml b/.github/workflows/test-integration-arq.yml deleted file mode 100644 index 614e53f390..0000000000 --- a/.github/workflows/test-integration-arq.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test arq - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: arq, 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" --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 - # 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml deleted file mode 100644 index 9a29398fc2..0000000000 --- a/.github/workflows/test-integration-asgi.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test asgi - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: asgi, 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 asgi - 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 }}-asgi" --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 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-asyncpg.yml b/.github/workflows/test-integration-asyncpg.yml deleted file mode 100644 index 4b2ed26671..0000000000 --- a/.github/workflows/test-integration-asyncpg.yml +++ /dev/null @@ -1,104 +0,0 @@ -name: Test asyncpg - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: asyncpg, 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] - 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" --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 - # 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml deleted file mode 100644 index a86d6ccd7d..0000000000 --- a/.github/workflows/test-integration-beam.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test beam - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: beam, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.7"] - # 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 beam - 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 }}-beam" --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 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml deleted file mode 100644 index fb246c899e..0000000000 --- a/.github/workflows/test-integration-boto3.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test boto3 - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: boto3, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","3.8"] - # 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 boto3 - 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 }}-boto3" --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 - - test-py27: - name: boto3, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test boto3 - 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 "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All boto3 tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml deleted file mode 100644 index 5bbdcaac53..0000000000 --- a/.github/workflows/test-integration-bottle.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test bottle - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: bottle, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 bottle - 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 }}-bottle" --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 - - test-py27: - name: bottle, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test bottle - 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 "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All bottle tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml deleted file mode 100644 index 71623f0e1e..0000000000 --- a/.github/workflows/test-integration-celery.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test celery - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: celery, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["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] - - 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 celery - 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 }}-celery" --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 - - test-py27: - name: celery, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test celery - 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 "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All celery tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml deleted file mode 100644 index 6615aeb75d..0000000000 --- a/.github/workflows/test-integration-chalice.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test chalice - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: chalice, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","3.8"] - # 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 chalice - 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 }}-chalice" --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 chalice 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-clickhouse_driver.yml b/.github/workflows/test-integration-clickhouse_driver.yml deleted file mode 100644 index 30561ab5a1..0000000000 --- a/.github/workflows/test-integration-clickhouse_driver.yml +++ /dev/null @@ -1,85 +0,0 @@ -name: Test clickhouse_driver - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: clickhouse_driver, 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 }} - - - uses: getsentry/action-clickhouse-in-ci@v1 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test clickhouse_driver - 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 }}-clickhouse_driver" --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 clickhouse_driver 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-cloud_resource_context.yml b/.github/workflows/test-integration-cloud_resource_context.yml deleted file mode 100644 index f6140d823c..0000000000 --- a/.github/workflows/test-integration-cloud_resource_context.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test cloud_resource_context - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: cloud_resource_context, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 cloud_resource_context - 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 }}-cloud_resource_context" --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 cloud_resource_context 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml deleted file mode 100644 index 819fb70f1a..0000000000 --- a/.github/workflows/test-integration-django.yml +++ /dev/null @@ -1,155 +0,0 @@ -name: Test django - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: django, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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] - 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 django - 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 }}-django" --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 - - test-py27: - name: django, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - 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: postgres - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test django - 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 "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All django tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml deleted file mode 100644 index 09d8ff8d80..0000000000 --- a/.github/workflows/test-integration-falcon.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test falcon - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: falcon, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 falcon - 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 }}-falcon" --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 - - test-py27: - name: falcon, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test falcon - 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 "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All falcon tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml deleted file mode 100644 index 0a330b1401..0000000000 --- a/.github/workflows/test-integration-fastapi.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test fastapi - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: fastapi, 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 fastapi - 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 }}-fastapi" --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 fastapi 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml deleted file mode 100644 index d716df171d..0000000000 --- a/.github/workflows/test-integration-flask.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test flask - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: flask, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 flask - 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 }}-flask" --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 - - test-py27: - name: flask, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test flask - 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 "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All flask tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml deleted file mode 100644 index c6eb4adcc8..0000000000 --- a/.github/workflows/test-integration-gcp.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test gcp - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: gcp, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.7"] - # 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 gcp - 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 }}-gcp" --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 gcp 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-gevent.yml b/.github/workflows/test-integration-gevent.yml deleted file mode 100644 index d879f5c2f5..0000000000 --- a/.github/workflows/test-integration-gevent.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test gevent - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: gevent, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["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] - - 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 gevent - 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 }}-gevent" --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 - - test-py27: - name: gevent, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test gevent - 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 "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All gevent tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-gql.yml b/.github/workflows/test-integration-gql.yml deleted file mode 100644 index 9ebd5a16b7..0000000000 --- a/.github/workflows/test-integration-gql.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test gql - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: gql, 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"] - # 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 gql - 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 }}-gql" --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 gql 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-graphene.yml b/.github/workflows/test-integration-graphene.yml deleted file mode 100644 index 5236731eb0..0000000000 --- a/.github/workflows/test-integration-graphene.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test graphene - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: graphene, 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 graphene - 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 }}-graphene" --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 graphene 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-grpc.yml b/.github/workflows/test-integration-grpc.yml deleted file mode 100644 index 0e4f48d423..0000000000 --- a/.github/workflows/test-integration-grpc.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test grpc - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: grpc, 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 grpc - 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 }}-grpc" --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 grpc 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml deleted file mode 100644 index 3c67d2370c..0000000000 --- a/.github/workflows/test-integration-httpx.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test httpx - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: httpx, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 httpx - 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 }}-httpx" --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 httpx 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-huey.yml b/.github/workflows/test-integration-huey.yml deleted file mode 100644 index db6c5fcbc4..0000000000 --- a/.github/workflows/test-integration-huey.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test huey - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: huey, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 huey - 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 }}-huey" --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 - - test-py27: - name: huey, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test huey - 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 "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All huey tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-loguru.yml b/.github/workflows/test-integration-loguru.yml deleted file mode 100644 index 885b1534f4..0000000000 --- a/.github/workflows/test-integration-loguru.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test loguru - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: loguru, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 loguru - 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 }}-loguru" --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 loguru 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-opentelemetry.yml b/.github/workflows/test-integration-opentelemetry.yml deleted file mode 100644 index 5e2722ed49..0000000000 --- a/.github/workflows/test-integration-opentelemetry.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test opentelemetry - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: opentelemetry, 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 opentelemetry - 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 }}-opentelemetry" --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 opentelemetry 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml deleted file mode 100644 index 30b5f8cc1b..0000000000 --- a/.github/workflows/test-integration-pure_eval.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test pure_eval - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: pure_eval, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 pure_eval - 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 }}-pure_eval" --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 pure_eval 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-pymongo.yml b/.github/workflows/test-integration-pymongo.yml deleted file mode 100644 index 2a3d7697f2..0000000000 --- a/.github/workflows/test-integration-pymongo.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test pymongo - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: pymongo, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 pymongo - 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 }}-pymongo" --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 - - test-py27: - name: pymongo, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test pymongo - 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 "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All pymongo tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml deleted file mode 100644 index 7a4b327b3f..0000000000 --- a/.github/workflows/test-integration-pyramid.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test pyramid - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: pyramid, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 pyramid - 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 }}-pyramid" --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 - - test-py27: - name: pyramid, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test pyramid - 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 "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All pyramid tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml deleted file mode 100644 index 838683cf9c..0000000000 --- a/.github/workflows/test-integration-quart.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test quart - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: quart, 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 quart - 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 }}-quart" --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 quart 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml deleted file mode 100644 index 54ad9abe2a..0000000000 --- a/.github/workflows/test-integration-redis.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test redis - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: redis, 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 redis - 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 }}-redis" --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 - - test-py27: - name: redis, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test redis - 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 "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All redis tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml deleted file mode 100644 index 73ed5c1733..0000000000 --- a/.github/workflows/test-integration-rediscluster.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test rediscluster - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: rediscluster, 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"] - # 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 rediscluster - 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 }}-rediscluster" --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 - - test-py27: - name: rediscluster, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test rediscluster - 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 "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All rediscluster tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml deleted file mode 100644 index bc8e4a990c..0000000000 --- a/.github/workflows/test-integration-requests.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test requests - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: requests, 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 requests - 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 }}-requests" --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 - - test-py27: - name: requests, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test requests - 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 "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All requests tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml deleted file mode 100644 index b0812c36e6..0000000000 --- a/.github/workflows/test-integration-rq.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test rq - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: rq, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 rq - 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 }}-rq" --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 - - test-py27: - name: rq, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test rq - 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 "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All rq tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml deleted file mode 100644 index 27ca05eb6a..0000000000 --- a/.github/workflows/test-integration-sanic.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test sanic - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: sanic, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["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] - - 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 sanic - 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 }}-sanic" --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 sanic 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml deleted file mode 100644 index 70cbb7ff79..0000000000 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test sqlalchemy - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: sqlalchemy, 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 sqlalchemy - 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 }}-sqlalchemy" --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 - - test-py27: - name: sqlalchemy, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test sqlalchemy - 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 "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - check_required_tests: - name: All sqlalchemy tests passed or skipped - needs: [test, test-py27] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml deleted file mode 100644 index ad3e269075..0000000000 --- a/.github/workflows/test-integration-starlette.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test starlette - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: starlette, 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 starlette - 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 }}-starlette" --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 starlette 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-starlite.yml b/.github/workflows/test-integration-starlite.yml deleted file mode 100644 index 01715e1c66..0000000000 --- a/.github/workflows/test-integration-starlite.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test starlite - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: starlite, 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 starlite - 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 }}-starlite" --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 starlite 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-strawberry.yml b/.github/workflows/test-integration-strawberry.yml deleted file mode 100644 index 16b42ec2a2..0000000000 --- a/.github/workflows/test-integration-strawberry.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test strawberry - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: strawberry, 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 strawberry - 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 }}-strawberry" --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 strawberry 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml deleted file mode 100644 index c9ccec4f38..0000000000 --- a/.github/workflows/test-integration-tornado.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test tornado - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: tornado, 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 tornado - 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 }}-tornado" --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 tornado 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 has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml deleted file mode 100644 index 137cec7ef4..0000000000 --- a/.github/workflows/test-integration-trytond.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: Test trytond - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: trytond, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 trytond - 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 }}-trytond" --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 trytond 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 has failed. You may need to re-run it." && exit 1 diff --git a/tox.ini b/tox.ini index d5e0d753a9..79ec7d7673 100644 --- a/tox.ini +++ b/tox.ini @@ -5,186 +5,12 @@ [tox] envlist = - # === Common === - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common - - # === Integrations === - # General format is {pythonversion}-{integrationname}-v{frameworkversion} - # 1 blank line between different integrations - # Each framework version should only be mentioned once. I.e: - # {py3.7,py3.10}-django-v{3.2} - # {py3.10}-django-v{4.0} - # instead of: - # {py3.7}-django-v{3.2} - # {py3.7,py3.10}-django-v{3.2,4.0} - - # AIOHTTP - {py3.7}-aiohttp-v{3.5} - {py3.7,py3.8,py3.9,py3.10,py3.11}-aiohttp-v{3.6} - - # Ariadne - {py3.8,py3.9,py3.10,py3.11,py3.12}-ariadne - - # Arq - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-arq - - # Asgi - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-asgi - - # asyncpg - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-asyncpg - # AWS Lambda # The aws_lambda tests deploy to the real AWS and have their own # matrix of Python versions to run the test lambda function in. # see `lambda_runtime` fixture in tests/integrations/aws_lambda.py {py3.9}-aws_lambda - # Beam - {py3.7}-beam-v{2.12,2.13,2.32,2.33} - - # Boto3 - {py2.7,py3.6,py3.7,py3.8}-boto3-v{1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16} - - # Bottle - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-bottle-v{0.12} - - # Celery - {py2.7}-celery-v{3} - {py2.7,py3.5,py3.6}-celery-v{4.1,4.2} - {py2.7,py3.5,py3.6,py3.7,py3.8}-celery-v{4.3,4.4} - {py3.6,py3.7,py3.8}-celery-v{5.0} - {py3.7,py3.8,py3.9,py3.10}-celery-v{5.1,5.2} - {py3.8,py3.9,py3.10,py3.11}-celery-v{5.3} - - # Chalice - {py3.6,py3.7,py3.8}-chalice-v{1.18,1.20,1.22,1.24} - - # Clickhouse Driver - {py3.8,py3.9,py3.10,py3.11}-clickhouse_driver-v{0.2.4,0.2.5,0.2.6} - {py3.12}-clickhouse_driver-v{0.2.6} - - # Cloud Resource Context - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-cloud_resource_context - - # Django - # - Django 1.x - {py2.7,py3.5}-django-v{1.8,1.9,1.10} - {py2.7,py3.5,py3.6,py3.7}-django-v{1.11} - # - Django 2.x - {py3.5,py3.6,py3.7}-django-v{2.0,2.1} - {py3.5,py3.6,py3.7,py3.8,py3.9}-django-v{2.2} - # - Django 3.x - {py3.6,py3.7,py3.8,py3.9}-django-v{3.0,3.1} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-django-v{3.2} - # - Django 4.x - {py3.8,py3.9,py3.10,py3.11,py3.12}-django-v{4.0,4.1,4.2} - - # Falcon - {py2.7,py3.5,py3.6,py3.7}-falcon-v{1.4} - {py2.7,py3.5,py3.6,py3.7}-falcon-v{2.0} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-v{3.0} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-v{3.1} - - # FastAPI - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-fastapi - - # Flask - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-v{0.11,0.12,1.0} - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-flask-v{1.1} - {py3.6,py3.8,py3.9,py3.10,py3.11,py3.12}-flask-v{2.0} - - # Gevent - {py2.7,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-gevent - - # GCP - {py3.7}-gcp - - # GQL - {py3.7,py3.8,py3.9,py3.10,py3.11}-gql - - # Graphene - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-graphene - - # Grpc - {py3.7,py3.8,py3.9,py3.10}-grpc-v{1.40,1.44,1.48} - {py3.7,py3.8,py3.9,py3.10,py3.11}-grpc-v{1.54,1.56,1.58} - {py3.12}-grpc-v{1.59} - - # HTTPX - {py3.6,py3.7,py3.8,py3.9}-httpx-v{0.16,0.17,0.18} - {py3.6,py3.7,py3.8,py3.9,py3.10}-httpx-v{0.19,0.20,0.21,0.22} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-httpx-v{0.23} - - # Huey - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-huey-2 - - # Loguru - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-loguru-v{0.5,0.6,0.7} - - # OpenTelemetry (OTel) - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-opentelemetry - - # pure_eval - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pure_eval - - # PyMongo (Mongo DB) - {py2.7,py3.6}-pymongo-v{3.1} - {py2.7,py3.6,py3.7,py3.8,py3.9}-pymongo-v{3.12} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-pymongo-v{4.0} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pymongo-v{4.1,4.2} - - # Pyramid - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-pyramid-v{1.6,1.7,1.8,1.9,1.10} - {py3.12}-pyramid-v{1.10} - - # Quart - {py3.7,py3.8,py3.9,py3.10,py3.11}-quart-v{0.16,0.17,0.18} - {py3.8,py3.9,py3.10,py3.11,py3.12}-quart-v{0.19} - - # Redis - {py2.7,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-redis - - # Redis Cluster - {py2.7,py3.7,py3.8,py3.9}-rediscluster-v{1,2.1.0,2} - - # Requests - {py2.7,py3.8,py3.9,py3.10,py3.11,py3.12}-requests - - # RQ (Redis Queue) - {py2.7,py3.5,py3.6}-rq-v{0.6,0.7,0.8,0.9,0.10,0.11} - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-rq-v{0.12,0.13,1.0,1.1,1.2,1.3} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-rq-v{1.4,1.5} - - # Sanic - {py3.5,py3.6,py3.7}-sanic-v{0.8,18} - {py3.6,py3.7}-sanic-v{19} - {py3.6,py3.7,py3.8}-sanic-v{20} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{21} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{22} - {py3.8,py3.9,py3.10,py3.11}-sanic-latest - - # Starlette - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-starlette-v{0.20,0.22,0.24,0.26,0.28} - - # Starlite - {py3.8,py3.9,py3.10,py3.11}-starlite - - # SQL Alchemy - {py2.7,py3.7,py3.8,py3.9,py3.10,py3.11}-sqlalchemy-v{1.2,1.3,1.4} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-sqlalchemy-v{2.0} - - # Strawberry - {py3.8,py3.9,py3.10,py3.11,py3.12}-strawberry - - # Tornado - {py3.7,py3.8,py3.9}-tornado-v{5} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-tornado-v{6} - - # Trytond - {py3.5,py3.6,py3.7,py3.8,py3.9}-trytond-v{4.6,5.0,5.2} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-trytond-v{5.4} - [testenv] deps = # if you change test-requirements.txt and your change is not being reflected @@ -192,391 +18,12 @@ deps = # with the -r flag -r test-requirements.txt - py3.8-common: hypothesis - - linters: -r linter-requirements.txt - linters: werkzeug<2.3.0 - - # Common - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest-asyncio - - # AIOHTTP - aiohttp-v3.4: aiohttp>=3.4.0,<3.5.0 - aiohttp-v3.5: aiohttp>=3.5.0,<3.6.0 - aiohttp: pytest-aiohttp - - # Ariadne - ariadne: ariadne>=0.20 - ariadne: fastapi - ariadne: flask - ariadne: httpx - - # Arq - arq: arq>=0.23.0 - arq: fakeredis>=2.2.0,<2.8 - arq: pytest-asyncio - arq: async-timeout - - # Asgi - asgi: pytest-asyncio - asgi: async-asgi-testclient - - # Asyncpg - asyncpg: pytest-asyncio - asyncpg: asyncpg - # AWS Lambda aws_lambda: boto3 - # Beam - beam-v2.12: apache-beam>=2.12.0, <2.13.0 - beam-v2.13: apache-beam>=2.13.0, <2.14.0 - beam-v2.32: apache-beam>=2.32.0, <2.33.0 - beam-v2.33: apache-beam>=2.33.0, <2.34.0 - beam-master: git+https://github.com/apache/beam#egg=apache-beam&subdirectory=sdks/python - - # Boto3 - boto3-v1.9: boto3>=1.9,<1.10 - boto3-v1.10: boto3>=1.10,<1.11 - boto3-v1.11: boto3>=1.11,<1.12 - boto3-v1.12: boto3>=1.12,<1.13 - boto3-v1.13: boto3>=1.13,<1.14 - boto3-v1.14: boto3>=1.14,<1.15 - boto3-v1.15: boto3>=1.15,<1.16 - boto3-v1.16: boto3>=1.16,<1.17 - - # Bottle - bottle: Werkzeug<2.1.0 - bottle-v0.12: bottle>=0.12,<0.13 - - # Celery - celery: redis - celery-v3: Celery>=3.1,<4.0 - celery-v4.1: Celery>=4.1,<4.2 - celery-v4.2: Celery>=4.2,<4.3 - celery-v4.3: Celery>=4.3,<4.4 - # https://github.com/celery/vine/pull/29#issuecomment-689498382 - celery-4.3: vine<5.0.0 - # https://github.com/celery/celery/issues/6153 - celery-v4.4: Celery>=4.4,<4.5,!=4.4.4 - celery-v5.0: Celery>=5.0,<5.1 - celery-v5.1: Celery>=5.1,<5.2 - celery-v5.2: Celery>=5.2,<5.3 - celery-v5.3: Celery>=5.3,<5.4 - - {py3.5}-celery: newrelic<6.0.0 - {py3.7}-celery: importlib-metadata<5.0 - {py2.7,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-celery: newrelic - - # Chalice - chalice-v1.18: chalice>=1.18.0,<1.19.0 - chalice-v1.20: chalice>=1.20.0,<1.21.0 - chalice-v1.22: chalice>=1.22.0,<1.23.0 - chalice-v1.24: chalice>=1.24.0,<1.25.0 - chalice: pytest-chalice==0.0.5 - - {py3.7}-chalice: botocore~=1.31 - {py3.8}-chalice: botocore~=1.31 - - # Clickhouse Driver - clickhouse_driver-v0.2.4: clickhouse_driver>=0.2.4,<0.2.5 - clickhouse_driver-v0.2.5: clickhouse_driver>=0.2.5,<0.2.6 - clickhouse_driver-v0.2.6: clickhouse_driver>=0.2.6,<0.2.7 - - # Django - django: psycopg2-binary - django: Werkzeug<2.1.0 - django-v{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: djangorestframework>=3.0.0,<4.0.0 - - {py3.7,py3.8,py3.9,py3.10,py3.11}-django-v{1.11,2.0,2.1,2.2,3.0,3.1,3.2,4.0,4.1,4.2}: pytest-asyncio - {py3.7,py3.8,py3.9,py3.10,py3.11}-django-v{1.11,2.0,2.1,2.2,3.0,3.1,3.2,4.0,4.1,4.2}: channels[daphne]>2 - - django-v{1.8,1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0 - django-v{2.2,3.0,3.1,3.2}: pytest-django>=4.0 - django-v{2.2,3.0,3.1,3.2}: Werkzeug<2.0 - - django-v{4.0,4.1,4.2}: djangorestframework - django-v{4.0,4.1,4.2}: pytest-asyncio - django-v{4.0,4.1,4.2}: pytest-django - django-v{4.0,4.1,4.2}: Werkzeug - - django-v1.8: Django>=1.8,<1.9 - django-v1.9: Django>=1.9,<1.10 - django-v1.10: Django>=1.10,<1.11 - django-v1.11: Django>=1.11,<1.12 - django-v2.0: Django>=2.0,<2.1 - django-v2.1: Django>=2.1,<2.2 - django-v2.2: Django>=2.2,<2.3 - django-v3.0: Django>=3.0,<3.1 - django-v3.1: Django>=3.1,<3.2 - django-v3.2: Django>=3.2,<3.3 - django-v4.0: Django>=4.0,<4.1 - django-v4.1: Django>=4.1,<4.2 - django-v4.2: Django>=4.2,<4.3 - - # Falcon - falcon-v1.4: falcon>=1.4,<1.5 - falcon-v2.0: falcon>=2.0.0rc3,<3.0 - falcon-v3.0: falcon>=3.0.0,<3.1.0 - falcon-v3.1: falcon>=3.1.0,<3.2 - - # FastAPI - fastapi: fastapi - fastapi: httpx - fastapi: anyio<4.0.0 # thats a dep of httpx - fastapi: pytest-asyncio - fastapi: python-multipart - fastapi: requests - - # Flask - flask: flask-login - flask: Werkzeug<2.1.0 - flask-v0.11: Flask>=0.11,<0.12 - flask-v0.12: Flask>=0.12,<0.13 - flask-v1.0: Flask>=1.0,<1.1 - flask-v1.1: Flask>=1.1,<1.2 - flask-v2.0: Flask>=2.0,<2.1 - - # Gevent - # See http://www.gevent.org/install.html#older-versions-of-python - # for justification of the versions pinned below - py3.5-gevent: gevent==20.9.0 - # See https://stackoverflow.com/questions/51496550/runtime-warning-greenlet-greenlet-size-changed - # for justification why greenlet is pinned here - py3.5-gevent: greenlet==0.4.17 - {py2.7,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-gevent: gevent>=22.10.0, <22.11.0 - - # GQL - gql: gql[all] - - # Graphene - graphene: graphene>=3.3 - graphene: blinker - graphene: fastapi - graphene: flask - graphene: httpx - - # Grpc - grpc-v1.40: grpcio-tools>=1.40.0,<1.41.0 - grpc-v1.44: grpcio-tools>=1.44.0,<1.45.0 - grpc-v1.48: grpcio-tools>=1.48.0,<1.49.0 - grpc-v1.54: grpcio-tools>=1.54.0,<1.55.0 - grpc-v1.56: grpcio-tools>=1.56.0,<1.57.0 - grpc-v1.58: grpcio-tools>=1.58.0,<1.59.0 - grpc-v1.59: grpcio-tools>=1.59.0,<1.60.0 - grpc: protobuf - grpc: mypy-protobuf - grpc: types-protobuf - grpc: pytest-asyncio - - # HTTPX - httpx: pytest-httpx - httpx: anyio<4.0.0 # thats a dep of httpx - httpx-v0.16: httpx>=0.16,<0.17 - httpx-v0.17: httpx>=0.17,<0.18 - httpx-v0.18: httpx>=0.18,<0.19 - httpx-v0.19: httpx>=0.19,<0.20 - httpx-v0.20: httpx>=0.20,<0.21 - httpx-v0.21: httpx>=0.21,<0.22 - httpx-v0.22: httpx>=0.22,<0.23 - httpx-v0.23: httpx>=0.23,<0.24 - - # Huey - huey-2: huey>=2.0 - - # Loguru - loguru-v0.5: loguru>=0.5.0,<0.6.0 - loguru-v0.6: loguru>=0.6.0,<0.7.0 - loguru-v0.7: loguru>=0.7.0,<0.8.0 - - # OpenTelemetry (OTel) - opentelemetry: opentelemetry-distro - - # pure_eval - pure_eval: pure_eval - - # PyMongo (MongoDB) - pymongo: mockupdb - pymongo-v3.1: pymongo>=3.1,<3.2 - pymongo-v3.12: pymongo>=3.12,<4.0 - pymongo-v4.0: pymongo>=4.0,<4.1 - pymongo-v4.1: pymongo>=4.1,<4.2 - pymongo-v4.2: pymongo>=4.2,<4.3 - - # Pyramid - pyramid: Werkzeug<2.1.0 - pyramid-v1.6: pyramid>=1.6,<1.7 - pyramid-v1.7: pyramid>=1.7,<1.8 - pyramid-v1.8: pyramid>=1.8,<1.9 - pyramid-v1.9: pyramid>=1.9,<1.10 - pyramid-v1.10: pyramid>=1.10,<1.11 - - # Quart - quart: quart-auth - quart: pytest-asyncio - quart-v0.16: blinker<1.6 - quart-v0.16: jinja2<3.1.0 - quart-v0.16: Werkzeug<2.1.0 - quart-v0.16: hypercorn<0.15.0 - quart-v0.16: quart>=0.16.1,<0.17.0 - quart-v0.17: Werkzeug<3.0.0 - quart-v0.17: blinker<1.6 - quart-v0.17: hypercorn<0.15.0 - quart-v0.17: quart>=0.17.0,<0.18.0 - quart-v0.18: Werkzeug<3.0.0 - quart-v0.18: quart>=0.18.0,<0.19.0 - quart-v0.18: hypercorn<0.15.0 - quart-v0.19: Werkzeug>=3.0.0 - quart-v0.19: quart>=0.19.0,<0.20.0 - - # Requests - requests: requests>=2.0 - - # Redis - redis: fakeredis!=1.7.4 - {py3.7,py3.8,py3.9,py3.10,py3.11}-redis: pytest-asyncio - - # Redis Cluster - rediscluster-v1: redis-py-cluster>=1.0.0,<2.0.0 - rediscluster-v2.1.0: redis-py-cluster>=2.0.0,<2.1.1 - rediscluster-v2: redis-py-cluster>=2.1.1,<3.0.0 - - # RQ (Redis Queue) - # https://github.com/jamesls/fakeredis/issues/245 - rq-v{0.6,0.7,0.8,0.9,0.10,0.11,0.12}: fakeredis<1.0 - rq-v{0.6,0.7,0.8,0.9,0.10,0.11,0.12}: redis<3.2.2 - rq-v{0.13,1.0,1.1,1.2,1.3,1.4,1.5}: fakeredis>=1.0,<1.7.4 - - rq-v0.6: rq>=0.6,<0.7 - rq-v0.7: rq>=0.7,<0.8 - rq-v0.8: rq>=0.8,<0.9 - rq-v0.9: rq>=0.9,<0.10 - rq-v0.10: rq>=0.10,<0.11 - rq-v0.11: rq>=0.11,<0.12 - rq-v0.12: rq>=0.12,<0.13 - rq-v0.13: rq>=0.13,<0.14 - rq-v1.0: rq>=1.0,<1.1 - rq-v1.1: rq>=1.1,<1.2 - rq-v1.2: rq>=1.2,<1.3 - rq-v1.3: rq>=1.3,<1.4 - rq-v1.4: rq>=1.4,<1.5 - rq-v1.5: rq>=1.5,<1.6 - - # Sanic - sanic-v0.8: sanic>=0.8,<0.9 - sanic-v18: sanic>=18.0,<19.0 - sanic-v19: sanic>=19.0,<20.0 - sanic-v20: sanic>=20.0,<21.0 - sanic-v21: sanic>=21.0,<22.0 - sanic-v22: sanic>=22.0,<22.9.0 - - # Sanic is not using semver, so here we check the current latest version of Sanic. When this test breaks, we should - # determine whether it is because we need to fix something in our integration, or whether Sanic has simply dropped - # support for an older Python version. If Sanic has dropped support for an older python version, we should add a new - # line above to test for the newest Sanic version still supporting the old Python version, and we should update the - # line below so we test the latest Sanic version only using the Python versions that are supported. - sanic-latest: sanic>=23.6 - - sanic: websockets<11.0 - sanic: aiohttp - sanic-v21: sanic_testing<22 - sanic-v22: sanic_testing<22.9.0 - sanic-latest: sanic_testing>=23.6 - {py3.5,py3.6}-sanic: aiocontextvars==0.2.1 - {py3.5}-sanic: ujson<4 - - # Starlette - starlette: pytest-asyncio - starlette: python-multipart - starlette: requests - starlette: httpx - starlette: anyio<4.0.0 # thats a dep of httpx - starlette: jinja2 - starlette-v0.20: starlette>=0.20.0,<0.21.0 - starlette-v0.22: starlette>=0.22.0,<0.23.0 - starlette-v0.24: starlette>=0.24.0,<0.25.0 - starlette-v0.26: starlette>=0.26.0,<0.27.0 - starlette-v0.28: starlette>=0.28.0,<0.29.0 - - # Starlite - starlite: pytest-asyncio - starlite: python-multipart - starlite: requests - starlite: cryptography - starlite: pydantic<2.0.0 - starlite: starlite - {py3.8,py3.9}-starlite: typing-extensions==4.5.0 # this is used by pydantic, which is used by starlite. When the problem is fixed in here or pydantic, this can be removed - - # SQLAlchemy - sqlalchemy-v1.2: sqlalchemy>=1.2,<1.3 - sqlalchemy-v1.3: sqlalchemy>=1.3,<1.4 - sqlalchemy-v1.4: sqlalchemy>=1.4,<2.0 - sqlalchemy-v2.0: sqlalchemy>=2.0,<2.1 - - # Strawberry - strawberry: strawberry-graphql[fastapi,flask] - strawberry: fastapi - strawberry: flask - strawberry: httpx - - # Tornado - tornado-v5: tornado>=5,<6 - tornado-v6: tornado>=6.0a1 - - # Trytond - trytond-v5.4: trytond>=5.4,<5.5 - trytond-v5.2: trytond>=5.2,<5.3 - trytond-v5.0: trytond>=5.0,<5.1 - trytond-v4.6: trytond>=4.6,<4.7 - - trytond-v{4.6,4.8,5.0,5.2,5.4}: werkzeug<2.0 - setenv = PYTHONDONTWRITEBYTECODE=1 - common: TESTPATH=tests - aiohttp: TESTPATH=tests/integrations/aiohttp - ariadne: TESTPATH=tests/integrations/ariadne - arq: TESTPATH=tests/integrations/arq - asgi: TESTPATH=tests/integrations/asgi - asyncpg: TESTPATH=tests/integrations/asyncpg aws_lambda: TESTPATH=tests/integrations/aws_lambda - beam: TESTPATH=tests/integrations/beam - boto3: TESTPATH=tests/integrations/boto3 - bottle: TESTPATH=tests/integrations/bottle - celery: TESTPATH=tests/integrations/celery - chalice: TESTPATH=tests/integrations/chalice - clickhouse_driver: TESTPATH=tests/integrations/clickhouse_driver - cloud_resource_context: TESTPATH=tests/integrations/cloud_resource_context - django: TESTPATH=tests/integrations/django - falcon: TESTPATH=tests/integrations/falcon - fastapi: TESTPATH=tests/integrations/fastapi - flask: TESTPATH=tests/integrations/flask - # run all tests with gevent - gevent: TESTPATH=tests - gcp: TESTPATH=tests/integrations/gcp - gql: TESTPATH=tests/integrations/gql - graphene: TESTPATH=tests/integrations/graphene - httpx: TESTPATH=tests/integrations/httpx - huey: TESTPATH=tests/integrations/huey - loguru: TESTPATH=tests/integrations/loguru - opentelemetry: TESTPATH=tests/integrations/opentelemetry - pure_eval: TESTPATH=tests/integrations/pure_eval - pymongo: TESTPATH=tests/integrations/pymongo - pyramid: TESTPATH=tests/integrations/pyramid - quart: TESTPATH=tests/integrations/quart - redis: TESTPATH=tests/integrations/redis - rediscluster: TESTPATH=tests/integrations/rediscluster - requests: TESTPATH=tests/integrations/requests - rq: TESTPATH=tests/integrations/rq - sanic: TESTPATH=tests/integrations/sanic - starlette: TESTPATH=tests/integrations/starlette - starlite: TESTPATH=tests/integrations/starlite - sqlalchemy: TESTPATH=tests/integrations/sqlalchemy - strawberry: TESTPATH=tests/integrations/strawberry - tornado: TESTPATH=tests/integrations/tornado - trytond: TESTPATH=tests/integrations/trytond - socket: TESTPATH=tests/integrations/socket - grpc: TESTPATH=tests/integrations/grpc COVERAGE_FILE=.coverage-{envname} passenv = @@ -614,17 +61,6 @@ basepython = commands = {py3.7,py3.8}-boto3: pip install urllib3<2.0.0 - ; https://github.com/pytest-dev/pytest/issues/5532 - {py3.5,py3.6,py3.7,py3.8,py3.9}-flask-v{0.11,0.12}: pip install pytest<5 - {py3.6,py3.7,py3.8,py3.9}-flask-v{0.11}: pip install Werkzeug<2 - ; https://github.com/pallets/flask/issues/4455 - {py3.7,py3.8,py3.9,py3.10,py3.11}-flask-v{0.11,0.12,1.0,1.1}: pip install "itsdangerous>=0.24,<2.0" "markupsafe<2.0.0" "jinja2<3.1.1" - ; https://github.com/more-itertools/more-itertools/issues/578 - py3.5-flask-v{0.11,0.12}: pip install more-itertools<8.11.0 - - ; use old pytest for old Python versions: - {py2.7,py3.5}: pip install pytest-forked==1.1.3 - ; Running `py.test` as an executable suffers from an import error ; when loading tests in scenarios. In particular, django fails to ; load the settings from the test module. From 57104ad813baf87bb8ffc27e58948b8944a7b0e6 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 14:36:38 +0100 Subject: [PATCH 02/17] Also removed common tests --- .github/workflows/test-common.yml | 115 ------------------------------ 1 file changed, 115 deletions(-) delete mode 100644 .github/workflows/test-common.yml diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml deleted file mode 100644 index 7204c5d7d7..0000000000 --- a/.github/workflows/test-common.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: Test common - -on: - push: - branches: - - master - - release/** - - 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 - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: common, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 30 - - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 common - 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 }}-common" --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 - - test-py27: - name: common, python 2.7, ubuntu-20.04 - runs-on: ubuntu-20.04 - container: python:2.7 - timeout-minutes: 30 - - steps: - - uses: actions/checkout@v4 - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - - name: Test common - 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 "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] - # 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 has failed. You may need to re-run it." && exit 1 - - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') - run: | - echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 From ae8bbaece1dfd96de8e6e061231d2b5ec72cb270 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 14:40:50 +0100 Subject: [PATCH 03/17] Only test lambda in python 3.11 --- tests/integrations/aws_lambda/test_aws.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integrations/aws_lambda/test_aws.py b/tests/integrations/aws_lambda/test_aws.py index 8904de1e52..38c5c62414 100644 --- a/tests/integrations/aws_lambda/test_aws.py +++ b/tests/integrations/aws_lambda/test_aws.py @@ -143,10 +143,10 @@ def lambda_client(): @pytest.fixture( params=[ - "python3.7", - "python3.8", - "python3.9", - "python3.10", + # "python3.7", + # "python3.8", + # "python3.9", + # "python3.10", "python3.11", ] ) From 325cb305b8796d7374fd5bbec900582b3861cc12 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 14:54:48 +0100 Subject: [PATCH 04/17] trigger ci From 3b815239a1d0b44fbe596ad5a31d3e68dfeabcad Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 15:12:43 +0100 Subject: [PATCH 05/17] trigger ci From ba140b8735b28ff9c07b231ae63438ef7f97ec0b Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 15:12:55 +0100 Subject: [PATCH 06/17] trigger ci From ef854ae125adeb4c5e1809fbae3112d6a415bec5 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 15:22:22 +0100 Subject: [PATCH 07/17] trigger ci From e0b46f961f550538cc00191d5b82adb18795077c Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 15:41:07 +0100 Subject: [PATCH 08/17] trigger ci From b439d7c1bb545e5ff1076dff148067216afe2e71 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 15:52:06 +0100 Subject: [PATCH 09/17] trigger ci From 497f7356e2a3ef49dd9b7780b21f886540dd399c Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 16:16:49 +0100 Subject: [PATCH 10/17] trigger ci From d65c8f966278cc8365728b4b6e1f8f4821404e6f Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 16:26:24 +0100 Subject: [PATCH 11/17] trigger ci From 46114c2b2f2633c087faa5a16d788a316e4e5fa3 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 16:36:08 +0100 Subject: [PATCH 12/17] trigger ci From 74c6aa28ce800fe4c9d8d663bd8c547b774ddeb8 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 16:42:53 +0100 Subject: [PATCH 13/17] trigger ci From 6de878f7caadb55ce5afa72ecac19ff7db0e4237 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 16:57:55 +0100 Subject: [PATCH 14/17] trigger ci From 754634ee9bcf13526a86e40d89ec01e9f5d45c16 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 17:05:46 +0100 Subject: [PATCH 15/17] trigger ci From 20f5ebf1783d682eaf4e1f0508b02f2380e36866 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 17:13:30 +0100 Subject: [PATCH 16/17] trigger ci From dc031b9dbf3f0d20533386baa67758279bba930b Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 13 Nov 2023 17:21:16 +0100 Subject: [PATCH 17/17] trigger ci