From dda83d8357aebf4489a2a580db0d019bd360cd88 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Mon, 4 Dec 2023 17:13:34 +0100 Subject: [PATCH 01/26] Reduce amount of py versions to test against --- tox.ini | 188 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 94 insertions(+), 94 deletions(-) diff --git a/tox.ini b/tox.ini index ce24beaa11..257413d776 100644 --- a/tox.ini +++ b/tox.ini @@ -23,23 +23,23 @@ envlist = # AIOHTTP {py3.7}-aiohttp-v{3.4} - {py3.7,py3.8,py3.9,py3.10,py3.11}-aiohttp-v{3.8} - {py3.8,py3.9,py3.10,py3.11}-aiohttp-latest + {py3.7,py3.9,py3.11}-aiohttp-v{3.8} + {py3.8,py3.10}-aiohttp-latest # Ariadne - {py3.8,py3.9,py3.10,py3.11}-ariadne-v{0.20} - {py3.8,py3.9,py3.10,py3.11,py3.12}-ariadne-latest + {py3.9,py3.11}-ariadne-v{0.20} + {py3.8,py3.10,py3.12}-ariadne-latest # Arq - {py3.7,py3.8,py3.9,py3.10,py3.11}-arq-v{0.23} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-arq-latest + {py3.7,py3.9,py3.11}-arq-v{0.23} + {py3.8,py3.10,py3.12}-arq-latest # Asgi - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-asgi + {py3.7,py3.9,py3.11,py3.12}-asgi # asyncpg - {py3.7,py3.8,py3.9,py3.10}-asyncpg-v{0.23} - {py3.8,py3.9,py3.10,py3.11,py3.12}-asyncpg-latest + {py3.8,py3.10}-asyncpg-v{0.23} + {py3.9,py3.11,py3.12}-asyncpg-latest # AWS Lambda # The aws_lambda tests deploy to the real AWS and have their own @@ -53,20 +53,20 @@ envlist = # Boto3 {py2.7,py3.6,py3.7}-boto3-v{1.12} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-v{1.21} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-v{1.29} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-latest + {py3.8,py3.10,py3.12}-boto3-v{1.21} + {py3.7,py3.9,py3.11,py3.12}-boto3-v{1.29} + {py3.8,py3.10,py3.12}-boto3-latest # Bottle - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-bottle-v{0.12} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-bottle-latest + {py2.7,py3.5,py3.7,py3.9}-bottle-v{0.12} + {py3.6,py3.8,py3.10,py3.11,py3.12}-bottle-latest # Celery {py2.7}-celery-v{3} - {py2.7,py3.5,py3.6,py3.7,py3.8}-celery-v{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} + {py2.7,py3.8}-celery-v{4} + {py3.6,py3.8}-celery-v{5.0} + {py3.7,py3.10}-celery-v{5.1,5.2} + {py3.8,py3.10,py3.11}-celery-v{5.3} {py3.8,py3.9,py3.10,py3.11}-celery-latest # Chalice @@ -83,32 +83,32 @@ envlist = # Django # - Django 1.x {py2.7,py3.5}-django-v{1.8} - {py2.7,py3.5,py3.6,py3.7}-django-v{1.11} + {py2.7,py3.5,py3.7}-django-v{1.11} # - Django 2.x - {py3.5,py3.6,py3.7}-django-v{2.0} - {py3.5,py3.6,py3.7,py3.8,py3.9}-django-v{2.2} + {py3.5,py3.7}-django-v{2.0} + {py3.5,py3.9}-django-v{2.2} # - Django 3.x - {py3.6,py3.7,py3.8,py3.9}-django-v{3.0} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-django-v{3.2} + {py3.6,py3.9}-django-v{3.0} + {py3.6,py3.8,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} + {py3.8,py3.10,py3.11,py3.12}-django-v{4.0,4.1,4.2} # - Django 5.x - {py3.10,py3.11,py3.12}-django-v{5.0} - {py3.10,py3.11,py3.12}-django-latest + {py3.10,py3.12}-django-v{5.0} + {py3.10,py3.12}-django-latest # Falcon - {py2.7,py3.5,py3.6,py3.7}-falcon-v{1,1.4,2} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-v{3} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-latest + {py2.7,py3.5,py3.7}-falcon-v{1,1.4,2} + {py3.5,py3.6,py3.8,py3.11,py3.12}-falcon-v{3} + {py3.7,py3.11,py3.12}-falcon-latest # FastAPI - {py3.7,py3.8,py3.9,py3.10}-fastapi-v{0.79} - {py3.8,py3.9,py3.10,py3.11,py3.12}-fastapi-latest + {py3.7,py3.9,py3.10}-fastapi-v{0.79} + {py3.8,py3.10,py3.11,py3.12}-fastapi-latest # Flask {py2.7,py3.5}-flask-v{0,0.11} - {py2.7,py3.5,py3.6,py3.7,py3.8}-flask-v{1} - {py3.8,py3.9,py3.10,py3.11,py3.12}-flask-v{2} + {py2.7,py3.8}-flask-v{1} + {py3.8,py3.11,py3.12}-flask-v{2} {py3.10,py3.11,py3.12}-flask-v{3} {py3.10,py3.11,py3.12}-flask-latest @@ -119,114 +119,114 @@ envlist = {py3.7}-gcp # GQL - {py3.7,py3.8,py3.9,py3.10,py3.11}-gql-v{3.4} - {py3.7,py3.8,py3.9,py3.10,py3.11}-gql-latest + {py3.8,py3.10,py3.11}-gql-v{3.4} + {py3.7,py3.9,py3.10,py3.11}-gql-latest # Graphene - {py3.7,py3.8,py3.9,py3.10,py3.11}-graphene-v{3.3} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-graphene-latest + {py3.7,py3.10,py3.11}-graphene-v{3.3} + {py3.8,py3.10,py3.11,py3.12}-graphene-latest # gRPC - {py3.7,py3.8,py3.9,py3.10}-grpc-v{1.21,1.30,1.40} - {py3.7,py3.8,py3.9,py3.10,py3.11}-grpc-v{1.50} - {py3.8,py3.9,py3.10,py3.11,py3.12}-grpc-latest + {py3.7,py3.10}-grpc-v{1.21,1.30,1.40} + {py3.8,py3.10,py3.11}-grpc-v{1.50} + {py3.9,py3.10,py3.11,py3.12}-grpc-latest # HTTPX - {py3.6,py3.7,py3.8,py3.9}-httpx-v{0.16,0.18} - {py3.6,py3.7,py3.8,py3.9,py3.10}-httpx-v{0.20,0.22} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-httpx-v{0.23,0.24} + {py3.6,py3.9}-httpx-v{0.16,0.18} + {py3.7,py3.9,py3.10}-httpx-v{0.20,0.22} + {py3.8,py3.11,py3.12}-httpx-v{0.23,0.24} {py3.9,py3.10,py3.11,py3.12}-httpx-v{0.25} {py3.9,py3.10,py3.11,py3.12}-httpx-latest # Huey - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-huey-v{2.0} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-huey-latest + {py2.7,py3.5,py3.8,py3.10,py3.11,py3.12}-huey-v{2.0} + {py3.5,py3.6,py3.8,py3.10,py3.11,py3.12}-huey-latest # Loguru - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-loguru-v{0.5} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-loguru-latest + {py3.5,py3.7,py3.9,py3.11,py3.12}-loguru-v{0.5} + {py3.6,py3.8,py3.10,py3.11,py3.12}-loguru-latest # OpenTelemetry (OTel) - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-opentelemetry + {py3.7,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 + {py3.5,py3.7,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.3,4.6} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pymongo-latest + {py2.7,py3.9}-pymongo-v{3.12} + {py3.6,py3.8,py3.10,py3.11}-pymongo-v{4.0} + {py3.7,py3.9,py3.11,py3.12}-pymongo-v{4.3,4.6} + {py3.8,py3.10,py3.11,py3.12}-pymongo-latest # Pyramid - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-pyramid-v{1.6} - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-v{1.10} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-v{2.0} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-latest + {py2.7,py3.5,py3.11}-pyramid-v{1.6} + {py2.7,py3.5,py3.11,py3.12}-pyramid-v{1.10} + {py3.6,py3.7,py3.9,py3.11,py3.12}-pyramid-v{2.0} + {py3.6,py3.8,py3.10,py3.11,py3.12}-pyramid-latest # Quart - {py3.7,py3.8,py3.9,py3.10,py3.11}-quart-v{0.16} - {py3.8,py3.9,py3.10,py3.11,py3.12}-quart-v{0.19} - {py3.8,py3.9,py3.10,py3.11,py3.12}-quart-latest + {py3.7,py3.11}-quart-v{0.16} + {py3.8,py3.10,py3.11,py3.12}-quart-v{0.19} + {py3.9,py3.10,py3.11,py3.12}-quart-latest # Redis - {py2.7,py3.7,py3.8}-redis-v{3} - {py3.7,py3.8,py3.9,py3.10,py3.11}-redis-v{4} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-redis-v{5} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-redis-latest + {py2.7,py3.8}-redis-v{3} + {py3.7,py3.11}-redis-v{4} + {py3.7,py3.9,py3.11,py3.12}-redis-v{5} + {py3.8,py3.10,py3.11,py3.12}-redis-latest # Redis Cluster - {py2.7,py3.7,py3.8}-rediscluster-v{1,2} + {py2.7,py3.8}-rediscluster-v{1,2} # no -latest, not developed anymore # Requests - {py2.7,py3.8,py3.9,py3.10,py3.11,py3.12}-requests + {py2.7,py3.8,py3.11,py3.12}-requests # RQ (Redis Queue) - {py2.7,py3.5,py3.6}-rq-v{0.6} - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-rq-v{0.13,1.0} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-rq-v{1.5,1.10} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-rq-v{1.15} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-rq-latest + {py2.7,py3.6}-rq-v{0.6} + {py2.7,py3.5,py3.9}-rq-v{0.13,1.0} + {py3.5,py3.6,py3.8,py3.10}-rq-v{1.5,1.10} + {py3.8,py3.10,py3.11,py3.12}-rq-v{1.15} + {py3.7,py3.9,py3.11,py3.12}-rq-latest # Sanic - {py3.5,py3.6,py3.7}-sanic-v{0.8} - {py3.6,py3.7,py3.8}-sanic-v{20} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{22} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{23} - {py3.8,py3.9,py3.10,py3.11}-sanic-latest + {py3.5,py3.7}-sanic-v{0.8} + {py3.6,py3.8}-sanic-v{20} + {py3.7,py3.9,py3.11}-sanic-v{22} + {py3.8,py3.10,py3.11}-sanic-v{23} + {py3.8,py3.10,py3.11}-sanic-latest # Starlette - {py3.7,py3.8,py3.9,py3.10}-starlette-v{0.19} - {py3.7,py3.8,py3.9,py3.10,py3.11}-starlette-v{0.20,0.24,0.28} - {py3.8,py3.9,py3.10,py3.11,py3.12}-starlette-v{0.32} - {py3.8,py3.9,py3.10,py3.11,py3.12}-starlette-latest + {py3.7,py3.10}-starlette-v{0.19} + {py3.7,py3.10,py3.11}-starlette-v{0.20,0.24,0.28} + {py3.8,py3.10,py3.11,py3.12}-starlette-v{0.32} + {py3.9,py3.10,py3.11,py3.12}-starlette-latest # Starlite - {py3.8,py3.9,py3.10,py3.11}-starlite-v{1.48,1.51} + {py3.8,py3.11}-starlite-v{1.48,1.51} # 1.51.14 is the last starlite version; the project continues as litestar # SQL Alchemy - {py2.7,py3.7,py3.8,py3.9}-sqlalchemy-v{1.2,1.4} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sqlalchemy-v{2.0} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-sqlalchemy-latest + {py2.7,py3.7,py3.9}-sqlalchemy-v{1.2,1.4} + {py3.7,py3.9,py3.11}-sqlalchemy-v{2.0} + {py3.8,py3.10,py3.11,py3.12}-sqlalchemy-latest # Strawberry - {py3.8,py3.9,py3.10,py3.11}-strawberry-v{0.209} - {py3.8,py3.9,py3.10,py3.11,py3.12}-strawberry-latest + {py3.8,py3.10,py3.11}-strawberry-v{0.209} + {py3.9,py3.11,py3.12}-strawberry-latest # Tornado - {py3.7,py3.8,py3.9}-tornado-v{5} - {py3.8,py3.9,py3.10,py3.11,py3.12}-tornado-v{6} - {py3.8,py3.9,py3.10,py3.11,py3.12}-tornado-latest + {py3.7,py3.9}-tornado-v{5} + {py3.8,py3.10,py3.11,py3.12}-tornado-v{6} + {py3.9,py3.11,py3.12}-tornado-latest # Trytond - {py3.5,py3.6}-trytond-v{4} - {py3.6,py3.7,py3.8}-trytond-v{5} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-trytond-v{6} - {py3.8,py3.9,py3.10,py3.11,py3.12}-trytond-v{7} - {py3.8,py3.9,py3.10,py3.11,py3.12}-trytond-latest + {py3.5}-trytond-v{4} + {py3.6,py3.8}-trytond-v{5} + {py3.6,py3.10,py3.11}-trytond-v{6} + {py3.8,py3.10,py3.11,py3.12}-trytond-v{7} + {py3.9,py3.10,py3.11,py3.12}-trytond-latest [testenv] deps = From 24e8188a6c8ebf541c50dd86296b8c55bfa6a479 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 09:43:01 +0100 Subject: [PATCH 02/26] Revert "Reduce amount of py versions to test against" This reverts commit dda83d8357aebf4489a2a580db0d019bd360cd88. --- tox.ini | 188 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 94 insertions(+), 94 deletions(-) diff --git a/tox.ini b/tox.ini index b9f34fc709..d93bc8ee1d 100644 --- a/tox.ini +++ b/tox.ini @@ -23,23 +23,23 @@ envlist = # AIOHTTP {py3.7}-aiohttp-v{3.4} - {py3.7,py3.9,py3.11}-aiohttp-v{3.8} - {py3.8,py3.10}-aiohttp-latest + {py3.7,py3.8,py3.9,py3.10,py3.11}-aiohttp-v{3.8} + {py3.8,py3.9,py3.10,py3.11}-aiohttp-latest # Ariadne - {py3.9,py3.11}-ariadne-v{0.20} - {py3.8,py3.10,py3.12}-ariadne-latest + {py3.8,py3.9,py3.10,py3.11}-ariadne-v{0.20} + {py3.8,py3.9,py3.10,py3.11,py3.12}-ariadne-latest # Arq - {py3.7,py3.9,py3.11}-arq-v{0.23} - {py3.8,py3.10,py3.12}-arq-latest + {py3.7,py3.8,py3.9,py3.10,py3.11}-arq-v{0.23} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-arq-latest # Asgi - {py3.7,py3.9,py3.11,py3.12}-asgi + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-asgi # asyncpg - {py3.8,py3.10}-asyncpg-v{0.23} - {py3.9,py3.11,py3.12}-asyncpg-latest + {py3.7,py3.8,py3.9,py3.10}-asyncpg-v{0.23} + {py3.8,py3.9,py3.10,py3.11,py3.12}-asyncpg-latest # AWS Lambda # The aws_lambda tests deploy to the real AWS and have their own @@ -53,20 +53,20 @@ envlist = # Boto3 {py2.7,py3.6,py3.7}-boto3-v{1.12} - {py3.8,py3.10,py3.12}-boto3-v{1.21} - {py3.7,py3.9,py3.11,py3.12}-boto3-v{1.29} - {py3.8,py3.10,py3.12}-boto3-latest + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-v{1.21} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-v{1.29} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-latest # Bottle - {py2.7,py3.5,py3.7,py3.9}-bottle-v{0.12} - {py3.6,py3.8,py3.10,py3.11,py3.12}-bottle-latest + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-bottle-v{0.12} + {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-bottle-latest # Celery {py2.7}-celery-v{3} - {py2.7,py3.8}-celery-v{4} - {py3.6,py3.8}-celery-v{5.0} - {py3.7,py3.10}-celery-v{5.1,5.2} - {py3.8,py3.10,py3.11}-celery-v{5.3} + {py2.7,py3.5,py3.6,py3.7,py3.8}-celery-v{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} {py3.8,py3.9,py3.10,py3.11}-celery-latest # Chalice @@ -83,32 +83,32 @@ envlist = # Django # - Django 1.x {py2.7,py3.5}-django-v{1.8} - {py2.7,py3.5,py3.7}-django-v{1.11} + {py2.7,py3.5,py3.6,py3.7}-django-v{1.11} # - Django 2.x - {py3.5,py3.7}-django-v{2.0} - {py3.5,py3.9}-django-v{2.2} + {py3.5,py3.6,py3.7}-django-v{2.0} + {py3.5,py3.6,py3.7,py3.8,py3.9}-django-v{2.2} # - Django 3.x - {py3.6,py3.9}-django-v{3.0} - {py3.6,py3.8,py3.10,py3.11}-django-v{3.2} + {py3.6,py3.7,py3.8,py3.9}-django-v{3.0} + {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-django-v{3.2} # - Django 4.x - {py3.8,py3.10,py3.11,py3.12}-django-v{4.0,4.1,4.2} + {py3.8,py3.9,py3.10,py3.11,py3.12}-django-v{4.0,4.1,4.2} # - Django 5.x - {py3.10,py3.12}-django-v{5.0} - {py3.10,py3.12}-django-latest + {py3.10,py3.11,py3.12}-django-v{5.0} + {py3.10,py3.11,py3.12}-django-latest # Falcon - {py2.7,py3.5,py3.7}-falcon-v{1,1.4,2} - {py3.5,py3.6,py3.8,py3.11,py3.12}-falcon-v{3} - {py3.7,py3.11,py3.12}-falcon-latest + {py2.7,py3.5,py3.6,py3.7}-falcon-v{1,1.4,2} + {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-v{3} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-latest # FastAPI - {py3.7,py3.9,py3.10}-fastapi-v{0.79} - {py3.8,py3.10,py3.11,py3.12}-fastapi-latest + {py3.7,py3.8,py3.9,py3.10}-fastapi-v{0.79} + {py3.8,py3.9,py3.10,py3.11,py3.12}-fastapi-latest # Flask {py2.7,py3.5}-flask-v{0,0.11} - {py2.7,py3.8}-flask-v{1} - {py3.8,py3.11,py3.12}-flask-v{2} + {py2.7,py3.5,py3.6,py3.7,py3.8}-flask-v{1} + {py3.8,py3.9,py3.10,py3.11,py3.12}-flask-v{2} {py3.10,py3.11,py3.12}-flask-v{3} {py3.10,py3.11,py3.12}-flask-latest @@ -119,114 +119,114 @@ envlist = {py3.7}-gcp # GQL - {py3.8,py3.10,py3.11}-gql-v{3.4} - {py3.7,py3.9,py3.10,py3.11}-gql-latest + {py3.7,py3.8,py3.9,py3.10,py3.11}-gql-v{3.4} + {py3.7,py3.8,py3.9,py3.10,py3.11}-gql-latest # Graphene - {py3.7,py3.10,py3.11}-graphene-v{3.3} - {py3.8,py3.10,py3.11,py3.12}-graphene-latest + {py3.7,py3.8,py3.9,py3.10,py3.11}-graphene-v{3.3} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-graphene-latest # gRPC - {py3.7,py3.10}-grpc-v{1.21,1.30,1.40} - {py3.8,py3.10,py3.11}-grpc-v{1.50} - {py3.9,py3.10,py3.11,py3.12}-grpc-latest + {py3.7,py3.8,py3.9,py3.10}-grpc-v{1.21,1.30,1.40} + {py3.7,py3.8,py3.9,py3.10,py3.11}-grpc-v{1.50} + {py3.8,py3.9,py3.10,py3.11,py3.12}-grpc-latest # HTTPX - {py3.6,py3.9}-httpx-v{0.16,0.18} - {py3.7,py3.9,py3.10}-httpx-v{0.20,0.22} - {py3.8,py3.11,py3.12}-httpx-v{0.23,0.24} + {py3.6,py3.7,py3.8,py3.9}-httpx-v{0.16,0.18} + {py3.6,py3.7,py3.8,py3.9,py3.10}-httpx-v{0.20,0.22} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-httpx-v{0.23,0.24} {py3.9,py3.10,py3.11,py3.12}-httpx-v{0.25} {py3.9,py3.10,py3.11,py3.12}-httpx-latest # Huey - {py2.7,py3.5,py3.8,py3.10,py3.11,py3.12}-huey-v{2.0} - {py3.5,py3.6,py3.8,py3.10,py3.11,py3.12}-huey-latest + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-huey-v{2.0} + {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-huey-latest # Loguru - {py3.5,py3.7,py3.9,py3.11,py3.12}-loguru-v{0.5} - {py3.6,py3.8,py3.10,py3.11,py3.12}-loguru-latest + {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-loguru-v{0.5} + {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-loguru-latest # OpenTelemetry (OTel) - {py3.7,py3.10,py3.11,py3.12}-opentelemetry + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-opentelemetry # pure_eval - {py3.5,py3.7,py3.9,py3.10,py3.11,py3.12}-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.9}-pymongo-v{3.12} - {py3.6,py3.8,py3.10,py3.11}-pymongo-v{4.0} - {py3.7,py3.9,py3.11,py3.12}-pymongo-v{4.3,4.6} - {py3.8,py3.10,py3.11,py3.12}-pymongo-latest + {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.3,4.6} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pymongo-latest # Pyramid - {py2.7,py3.5,py3.11}-pyramid-v{1.6} - {py2.7,py3.5,py3.11,py3.12}-pyramid-v{1.10} - {py3.6,py3.7,py3.9,py3.11,py3.12}-pyramid-v{2.0} - {py3.6,py3.8,py3.10,py3.11,py3.12}-pyramid-latest + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-pyramid-v{1.6} + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-v{1.10} + {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-v{2.0} + {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-latest # Quart - {py3.7,py3.11}-quart-v{0.16} - {py3.8,py3.10,py3.11,py3.12}-quart-v{0.19} - {py3.9,py3.10,py3.11,py3.12}-quart-latest + {py3.7,py3.8,py3.9,py3.10,py3.11}-quart-v{0.16} + {py3.8,py3.9,py3.10,py3.11,py3.12}-quart-v{0.19} + {py3.8,py3.9,py3.10,py3.11,py3.12}-quart-latest # Redis - {py2.7,py3.8}-redis-v{3} - {py3.7,py3.11}-redis-v{4} - {py3.7,py3.9,py3.11,py3.12}-redis-v{5} - {py3.8,py3.10,py3.11,py3.12}-redis-latest + {py2.7,py3.7,py3.8}-redis-v{3} + {py3.7,py3.8,py3.9,py3.10,py3.11}-redis-v{4} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-redis-v{5} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-redis-latest # Redis Cluster - {py2.7,py3.8}-rediscluster-v{1,2} + {py2.7,py3.7,py3.8}-rediscluster-v{1,2} # no -latest, not developed anymore # Requests - {py2.7,py3.8,py3.11,py3.12}-requests + {py2.7,py3.8,py3.9,py3.10,py3.11,py3.12}-requests # RQ (Redis Queue) - {py2.7,py3.6}-rq-v{0.6} - {py2.7,py3.5,py3.9}-rq-v{0.13,1.0} - {py3.5,py3.6,py3.8,py3.10}-rq-v{1.5,1.10} - {py3.8,py3.10,py3.11,py3.12}-rq-v{1.15} - {py3.7,py3.9,py3.11,py3.12}-rq-latest + {py2.7,py3.5,py3.6}-rq-v{0.6} + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-rq-v{0.13,1.0} + {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-rq-v{1.5,1.10} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-rq-v{1.15} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-rq-latest # Sanic - {py3.5,py3.7}-sanic-v{0.8} - {py3.6,py3.8}-sanic-v{20} - {py3.7,py3.9,py3.11}-sanic-v{22} - {py3.8,py3.10,py3.11}-sanic-v{23} - {py3.8,py3.10,py3.11}-sanic-latest + {py3.5,py3.6,py3.7}-sanic-v{0.8} + {py3.6,py3.7,py3.8}-sanic-v{20} + {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{22} + {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{23} + {py3.8,py3.9,py3.10,py3.11}-sanic-latest # Starlette - {py3.7,py3.10}-starlette-v{0.19} - {py3.7,py3.10,py3.11}-starlette-v{0.20,0.24,0.28} - {py3.8,py3.10,py3.11,py3.12}-starlette-v{0.32} - {py3.9,py3.10,py3.11,py3.12}-starlette-latest + {py3.7,py3.8,py3.9,py3.10}-starlette-v{0.19} + {py3.7,py3.8,py3.9,py3.10,py3.11}-starlette-v{0.20,0.24,0.28} + {py3.8,py3.9,py3.10,py3.11,py3.12}-starlette-v{0.32} + {py3.8,py3.9,py3.10,py3.11,py3.12}-starlette-latest # Starlite - {py3.8,py3.11}-starlite-v{1.48,1.51} + {py3.8,py3.9,py3.10,py3.11}-starlite-v{1.48,1.51} # 1.51.14 is the last starlite version; the project continues as litestar # SQL Alchemy - {py2.7,py3.7,py3.9}-sqlalchemy-v{1.2,1.4} - {py3.7,py3.9,py3.11}-sqlalchemy-v{2.0} - {py3.8,py3.10,py3.11,py3.12}-sqlalchemy-latest + {py2.7,py3.7,py3.8,py3.9}-sqlalchemy-v{1.2,1.4} + {py3.7,py3.8,py3.9,py3.10,py3.11}-sqlalchemy-v{2.0} + {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-sqlalchemy-latest # Strawberry - {py3.8,py3.10,py3.11}-strawberry-v{0.209} - {py3.9,py3.11,py3.12}-strawberry-latest + {py3.8,py3.9,py3.10,py3.11}-strawberry-v{0.209} + {py3.8,py3.9,py3.10,py3.11,py3.12}-strawberry-latest # Tornado - {py3.7,py3.9}-tornado-v{5} - {py3.8,py3.10,py3.11,py3.12}-tornado-v{6} - {py3.9,py3.11,py3.12}-tornado-latest + {py3.7,py3.8,py3.9}-tornado-v{5} + {py3.8,py3.9,py3.10,py3.11,py3.12}-tornado-v{6} + {py3.8,py3.9,py3.10,py3.11,py3.12}-tornado-latest # Trytond - {py3.5}-trytond-v{4} - {py3.6,py3.8}-trytond-v{5} - {py3.6,py3.10,py3.11}-trytond-v{6} - {py3.8,py3.10,py3.11,py3.12}-trytond-v{7} - {py3.9,py3.10,py3.11,py3.12}-trytond-latest + {py3.5,py3.6}-trytond-v{4} + {py3.6,py3.7,py3.8}-trytond-v{5} + {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-trytond-v{6} + {py3.8,py3.9,py3.10,py3.11,py3.12}-trytond-v{7} + {py3.8,py3.9,py3.10,py3.11,py3.12}-trytond-latest [testenv] deps = From b74ba3c4481214356ab74b8780d8a791c6dd4b50 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 09:52:43 +0100 Subject: [PATCH 03/26] less py versions, remove retry --- .github/workflows/test-common.yml | 40 ++-- .../workflows/test-integration-aiohttp.yml | 44 ++-- .../workflows/test-integration-ariadne.yml | 44 ++-- .github/workflows/test-integration-arq.yml | 44 ++-- .github/workflows/test-integration-asgi.yml | 22 +- .../workflows/test-integration-asyncpg.yml | 44 ++-- .../workflows/test-integration-aws_lambda.yml | 20 +- .github/workflows/test-integration-beam.yml | 42 ++-- .github/workflows/test-integration-boto3.yml | 64 ++---- .github/workflows/test-integration-bottle.yml | 64 ++---- .github/workflows/test-integration-celery.yml | 64 ++---- .../workflows/test-integration-chalice.yml | 44 ++-- .../test-integration-clickhouse_driver.yml | 44 ++-- ...est-integration-cloud_resource_context.yml | 22 +- .github/workflows/test-integration-django.yml | 60 ++---- .github/workflows/test-integration-falcon.yml | 64 ++---- .../workflows/test-integration-fastapi.yml | 44 ++-- .github/workflows/test-integration-flask.yml | 62 ++---- .github/workflows/test-integration-gcp.yml | 20 +- .github/workflows/test-integration-gevent.yml | 42 ++-- .github/workflows/test-integration-gql.yml | 44 ++-- .../workflows/test-integration-graphene.yml | 44 ++-- .github/workflows/test-integration-grpc.yml | 44 ++-- .github/workflows/test-integration-httpx.yml | 44 ++-- .github/workflows/test-integration-huey.yml | 64 ++---- .github/workflows/test-integration-loguru.yml | 44 ++-- .../test-integration-opentelemetry.yml | 22 +- .../workflows/test-integration-pure_eval.yml | 22 +- .../workflows/test-integration-pymongo.yml | 64 ++---- .../workflows/test-integration-pyramid.yml | 64 ++---- .github/workflows/test-integration-quart.yml | 44 ++-- .github/workflows/test-integration-redis.yml | 64 ++---- .../test-integration-rediscluster.yml | 40 ++-- .../workflows/test-integration-requests.yml | 42 ++-- .github/workflows/test-integration-rq.yml | 64 ++---- .github/workflows/test-integration-sanic.yml | 44 ++-- .../workflows/test-integration-sqlalchemy.yml | 64 ++---- .../workflows/test-integration-starlette.yml | 44 ++-- .../workflows/test-integration-starlite.yml | 22 +- .../workflows/test-integration-strawberry.yml | 44 ++-- .../workflows/test-integration-tornado.yml | 44 ++-- .../workflows/test-integration-trytond.yml | 44 ++-- .../split-tox-gh-actions/templates/test.jinja | 32 ++- tox.ini | 196 +++++++++--------- 44 files changed, 799 insertions(+), 1339 deletions(-) diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index 74d66bc8f6..6ea4405b7c 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index b6aeb55e6e..c2ab5697e3 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.7","3.9","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: run: | pip install coverage "tox>=3,<4" - name: Test aiohttp - uses: nick-fields/retry@v2 - with: - timeout_minutes: 15 - max_attempts: 2 - retry_wait_seconds: 5 - shell: bash - command: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-ariadne.yml b/.github/workflows/test-integration-ariadne.yml index 191dcd3301..268a32c892 100644 --- a/.github/workflows/test-integration-ariadne.yml +++ b/.github/workflows/test-integration-ariadne.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: run: | pip install coverage "tox>=3,<4" - name: Test ariadne - uses: nick-fields/retry@v2 - with: - timeout_minutes: 15 - max_attempts: 2 - retry_wait_seconds: 5 - shell: bash - command: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-arq.yml b/.github/workflows/test-integration-arq.yml index 276b69ddaa..10741fd614 100644 --- a/.github/workflows/test-integration-arq.yml +++ b/.github/workflows/test-integration-arq.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.7","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -78,19 +72,13 @@ jobs: run: | pip install coverage "tox>=3,<4" - name: Test arq - uses: nick-fields/retry@v2 - with: - timeout_minutes: 15 - max_attempts: 2 - retry_wait_seconds: 5 - shell: bash - command: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 940d01f43f..a4301ee894 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-asyncpg.yml b/.github/workflows/test-integration-asyncpg.yml index 66c112ad47..4e394f8ad5 100644 --- a/.github/workflows/test-integration-asyncpg.yml +++ b/.github/workflows/test-integration-asyncpg.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10"] + python-version: ["3.7","3.10"] # python3.6 reached EOL and is no longer being supported on # new versions of hosted runners on Github Actions # ubuntu-20.04 is the last version that supported python3.6 @@ -60,19 +60,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -84,7 +78,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -120,19 +114,13 @@ jobs: psql postgresql://postgres:sentry@localhost:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true psql postgresql://postgres:sentry@localhost:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - name: Test asyncpg - uses: nick-fields/retry@v2 - with: - timeout_minutes: 15 - max_attempts: 2 - retry_wait_seconds: 5 - shell: bash - command: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 33c3e3277a..7a5e8fe978 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -74,19 +74,13 @@ jobs: run: | pip install coverage "tox>=3,<4" - name: Test aws_lambda - 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 --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 41322686c4..69e209c320 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 34da054d64..1d0a646cba 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.6","3.7","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index e178400779..0b90f75102 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9"] + python-version: ["3.5","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 27597859e3..b583a29e71 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.5","3.6","3.7","3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index b5181ca3e0..e1ffff6511 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9"] + python-version: ["3.6","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10"] + python-version: ["3.7","3.10"] # python3.6 reached EOL and is no longer being supported on # new versions of hosted runners on Github Actions # ubuntu-20.04 is the last version that supported python3.6 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-clickhouse_driver.yml b/.github/workflows/test-integration-clickhouse_driver.yml index be976fb77f..f2ea78b050 100644 --- a/.github/workflows/test-integration-clickhouse_driver.yml +++ b/.github/workflows/test-integration-clickhouse_driver.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -40,19 +40,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -64,7 +58,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -80,19 +74,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-cloud_resource_context.yml b/.github/workflows/test-integration-cloud_resource_context.yml index b10c16b843..24e48bcf10 100644 --- a/.github/workflows/test-integration-cloud_resource_context.yml +++ b/.github/workflows/test-integration-cloud_resource_context.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.6","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 25830afb78..d815621d83 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -60,19 +60,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -109,19 +103,13 @@ jobs: psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true psql postgresql://postgres:sentry@postgres: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 --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -169,19 +157,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index a562c0b34f..dd4ef10628 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","3.6","3.7","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 8aff5bc0b5..d7d57ad0bd 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10"] + python-version: ["3.7","3.10"] # python3.6 reached EOL and is no longer being supported on # new versions of hosted runners on Github Actions # ubuntu-20.04 is the last version that supported python3.6 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index f598af0b1c..7201fa1b4d 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index 560089b5c3..adc55c19f4 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} diff --git a/.github/workflows/test-integration-gevent.yml b/.github/workflows/test-integration-gevent.yml index 81edfe772e..26fc037736 100644 --- a/.github/workflows/test-integration-gevent.yml +++ b/.github/workflows/test-integration-gevent.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.6","3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} diff --git a/.github/workflows/test-integration-gql.yml b/.github/workflows/test-integration-gql.yml index 7726d0cab9..08df94af2a 100644 --- a/.github/workflows/test-integration-gql.yml +++ b/.github/workflows/test-integration-gql.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.7","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.7","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-graphene.yml b/.github/workflows/test-integration-graphene.yml index 32d75edbdf..8e33252bda 100644 --- a/.github/workflows/test-integration-graphene.yml +++ b/.github/workflows/test-integration-graphene.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.7","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-grpc.yml b/.github/workflows/test-integration-grpc.yml index 30034591d7..ca8f48d9a8 100644 --- a/.github/workflows/test-integration-grpc.yml +++ b/.github/workflows/test-integration-grpc.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.7","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index 835f24b3ab..a7b6e4ba07 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.6","3.7","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9","3.10","3.11","3.12"] + python-version: ["3.9","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-huey.yml b/.github/workflows/test-integration-huey.yml index 1477111ecc..c0678f711f 100644 --- a/.github/workflows/test-integration-huey.yml +++ b/.github/workflows/test-integration-huey.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-loguru.yml b/.github/workflows/test-integration-loguru.yml index 1916f69b5a..0f211ac628 100644 --- a/.github/workflows/test-integration-loguru.yml +++ b/.github/workflows/test-integration-loguru.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-opentelemetry.yml b/.github/workflows/test-integration-opentelemetry.yml index e90015f9df..e1d16677d9 100644 --- a/.github/workflows/test-integration-opentelemetry.yml +++ b/.github/workflows/test-integration-opentelemetry.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.9","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index 7b025fe403..b8b48ee184 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} diff --git a/.github/workflows/test-integration-pymongo.yml b/.github/workflows/test-integration-pymongo.yml index 4de6c3adfc..e4383fe2a4 100644 --- a/.github/workflows/test-integration-pymongo.yml +++ b/.github/workflows/test-integration-pymongo.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.6","3.7","3.9","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index efa204ca9b..f5f21e2895 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","3.6","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.6","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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 14a8dff00f..c648842662 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.8","3.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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 1579299fec..e2e3b31713 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.8","3.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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index e235e277ad..47fa62586e 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index dd08b2c669..ecb5efc18f 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 32f24ce305..9f75475045 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","3.6","3.7","3.9","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index c359c3b4fa..45b771d845 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.5","3.6","3.7","3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index ea94aaa977..6ea7bc13de 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11"] + python-version: ["3.7","3.9","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -67,19 +61,13 @@ jobs: 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 --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 }} @@ -91,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.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 @@ -106,19 +94,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index e1de19e038..462b34d704 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.8","3.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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-starlite.yml b/.github/workflows/test-integration-starlite.yml index 276693feeb..ecb49e3edb 100644 --- a/.github/workflows/test-integration-starlite.yml +++ b/.github/workflows/test-integration-starlite.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} diff --git a/.github/workflows/test-integration-strawberry.yml b/.github/workflows/test-integration-strawberry.yml index 555ee2450a..3cdc406638 100644 --- a/.github/workflows/test-integration-strawberry.yml +++ b/.github/workflows/test-integration-strawberry.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11"] + python-version: ["3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index cb8eca56c1..13759fcec2 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.8","3.9","3.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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 11b94031b6..d633e26ecb 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","3.6","3.8","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 @@ -39,19 +39,13 @@ jobs: 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 --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 }} @@ -63,7 +57,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 @@ -78,19 +72,13 @@ jobs: 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-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/scripts/split-tox-gh-actions/templates/test.jinja b/scripts/split-tox-gh-actions/templates/test.jinja index 57e715f924..9912a27e36 100644 --- a/scripts/split-tox-gh-actions/templates/test.jinja +++ b/scripts/split-tox-gh-actions/templates/test.jinja @@ -73,26 +73,20 @@ {% endif %} - name: Test {{ framework }} - 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: | + set -x # print commands that are executed + coverage erase - # Run tests - {% if category == "py27" %} - ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - {% elif category == "pinned" %} - ./scripts/runtox.sh --exclude-latest "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - {% elif category == "latest" %} - ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - {% endif %} - coverage combine .coverage* && - coverage xml -i + # Run tests + {% if category == "py27" %} + ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + {% elif category == "pinned" %} + ./scripts/runtox.sh --exclude-latest "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + {% elif category == "latest" %} + ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + {% endif %} + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/tox.ini b/tox.ini index d93bc8ee1d..deccf9adb0 100644 --- a/tox.ini +++ b/tox.ini @@ -23,23 +23,23 @@ envlist = # AIOHTTP {py3.7}-aiohttp-v{3.4} - {py3.7,py3.8,py3.9,py3.10,py3.11}-aiohttp-v{3.8} - {py3.8,py3.9,py3.10,py3.11}-aiohttp-latest + {py3.7,py3.9,py3.11}-aiohttp-v{3.8} + {py3.8,py3.11}-aiohttp-latest # Ariadne - {py3.8,py3.9,py3.10,py3.11}-ariadne-v{0.20} - {py3.8,py3.9,py3.10,py3.11,py3.12}-ariadne-latest + {py3.8,py3.11}-ariadne-v{0.20} + {py3.8,py3.11,py3.12}-ariadne-latest # Arq - {py3.7,py3.8,py3.9,py3.10,py3.11}-arq-v{0.23} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-arq-latest + {py3.7,py3.11}-arq-v{0.23} + {py3.7,py3.11,py3.12}-arq-latest # Asgi - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-asgi + {py3.7,py3.11,py3.12}-asgi # asyncpg - {py3.7,py3.8,py3.9,py3.10}-asyncpg-v{0.23} - {py3.8,py3.9,py3.10,py3.11,py3.12}-asyncpg-latest + {py3.7,py3.10}-asyncpg-v{0.23} + {py3.8,py3.11,py3.12}-asyncpg-latest # AWS Lambda # The aws_lambda tests deploy to the real AWS and have their own @@ -49,184 +49,184 @@ envlist = # Beam {py3.7}-beam-v{2.12} - {py3.8,py3.9,py3.10,py3.11}-beam-latest + {py3.8,py3.11}-beam-latest # Boto3 {py2.7,py3.6,py3.7}-boto3-v{1.12} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-v{1.21} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-v{1.29} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-boto3-latest + {py3.7,py3.11,py3.12}-boto3-v{1.21} + {py3.7,py3.11,py3.12}-boto3-v{1.29} + {py3.7,py3.11,py3.12}-boto3-latest # Bottle - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-bottle-v{0.12} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-bottle-latest + {py2.7,py3.5,py3.9}-bottle-v{0.12} + {py3.5,py3.11,py3.12}-bottle-latest # Celery {py2.7}-celery-v{3} - {py2.7,py3.5,py3.6,py3.7,py3.8}-celery-v{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} - {py3.8,py3.9,py3.10,py3.11}-celery-latest + {py2.7,py3.5,py3.8}-celery-v{4} + {py3.6,py3.8}-celery-v{5.0} + {py3.7,py3.10}-celery-v{5.1,5.2} + {py3.8,py3.11}-celery-v{5.3} + {py3.8,py3.11}-celery-latest # Chalice - {py3.6,py3.7,py3.8,py3.9}-chalice-v{1.16} - {py3.7,py3.8,py3.9,py3.10}-chalice-latest + {py3.6,py3.9}-chalice-v{1.16} + {py3.7,py3.10}-chalice-latest # Clickhouse Driver - {py3.8,py3.9,py3.10,py3.11}-clickhouse_driver-v{0.2.0} - {py3.8,py3.9,py3.10,py3.11,py3.12}-clickhouse_driver-latest + {py3.8,py3.11}-clickhouse_driver-v{0.2.0} + {py3.8,py3.11,py3.12}-clickhouse_driver-latest # Cloud Resource Context - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-cloud_resource_context + {py3.6,py3.11,py3.12}-cloud_resource_context # Django # - Django 1.x {py2.7,py3.5}-django-v{1.8} - {py2.7,py3.5,py3.6,py3.7}-django-v{1.11} + {py2.7,py3.5,py3.7}-django-v{1.11} # - Django 2.x - {py3.5,py3.6,py3.7}-django-v{2.0} - {py3.5,py3.6,py3.7,py3.8,py3.9}-django-v{2.2} + {py3.5,py3.7}-django-v{2.0} + {py3.5,py3.9}-django-v{2.2} # - Django 3.x - {py3.6,py3.7,py3.8,py3.9}-django-v{3.0} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-django-v{3.2} + {py3.6,py3.9}-django-v{3.0} + {py3.6,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} + {py3.8,py3.11,py3.12}-django-v{4.0,4.1,4.2} # - Django 5.x {py3.10,py3.11,py3.12}-django-v{5.0} {py3.10,py3.11,py3.12}-django-latest # Falcon - {py2.7,py3.5,py3.6,py3.7}-falcon-v{1,1.4,2} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-v{3} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-falcon-latest + {py2.7,py3.5,py3.7}-falcon-v{1,1.4,2} + {py3.5,py3.6,py3.11,py3.12}-falcon-v{3} + {py3.7,py3.11,py3.12}-falcon-latest # FastAPI - {py3.7,py3.8,py3.9,py3.10}-fastapi-v{0.79} - {py3.8,py3.9,py3.10,py3.11,py3.12}-fastapi-latest + {py3.7,py3.10}-fastapi-v{0.79} + {py3.8,py3.11,py3.12}-fastapi-latest # Flask {py2.7,py3.5}-flask-v{0,0.11} - {py2.7,py3.5,py3.6,py3.7,py3.8}-flask-v{1} - {py3.8,py3.9,py3.10,py3.11,py3.12}-flask-v{2} + {py2.7,py3.5,py3.8}-flask-v{1} + {py3.8,py3.11,py3.12}-flask-v{2} {py3.10,py3.11,py3.12}-flask-v{3} {py3.10,py3.11,py3.12}-flask-latest # Gevent - {py2.7,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-gevent + {py2.7,py3.6,py3.8,py3.10,py3.11}-gevent # GCP {py3.7}-gcp # GQL - {py3.7,py3.8,py3.9,py3.10,py3.11}-gql-v{3.4} - {py3.7,py3.8,py3.9,py3.10,py3.11}-gql-latest + {py3.7,py3.11}-gql-v{3.4} + {py3.7,py3.11}-gql-latest # Graphene - {py3.7,py3.8,py3.9,py3.10,py3.11}-graphene-v{3.3} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-graphene-latest + {py3.7,py3.11}-graphene-v{3.3} + {py3.7,py3.11,py3.12}-graphene-latest # gRPC - {py3.7,py3.8,py3.9,py3.10}-grpc-v{1.21,1.30,1.40} - {py3.7,py3.8,py3.9,py3.10,py3.11}-grpc-v{1.50} - {py3.8,py3.9,py3.10,py3.11,py3.12}-grpc-latest + {py3.7,py3.10}-grpc-v{1.21,1.30,1.40} + {py3.7,py3.11}-grpc-v{1.50} + {py3.8,py3.11,py3.12}-grpc-latest # HTTPX - {py3.6,py3.7,py3.8,py3.9}-httpx-v{0.16,0.18} - {py3.6,py3.7,py3.8,py3.9,py3.10}-httpx-v{0.20,0.22} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-httpx-v{0.23,0.24} - {py3.9,py3.10,py3.11,py3.12}-httpx-v{0.25} - {py3.9,py3.10,py3.11,py3.12}-httpx-latest + {py3.6,py3.9}-httpx-v{0.16,0.18} + {py3.6,py3.10}-httpx-v{0.20,0.22} + {py3.7,py3.11,py3.12}-httpx-v{0.23,0.24} + {py3.9,py3.11,py3.12}-httpx-v{0.25} + {py3.9,py3.11,py3.12}-httpx-latest # Huey - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-huey-v{2.0} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-huey-latest + {py2.7,py3.5,py3.11,py3.12}-huey-v{2.0} + {py3.5,py3.11,py3.12}-huey-latest # Loguru - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-loguru-v{0.5} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-loguru-latest + {py3.5,py3.11,py3.12}-loguru-v{0.5} + {py3.5,py3.11,py3.12}-loguru-latest # OpenTelemetry (OTel) - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-opentelemetry + {py3.7,py3.9,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 + {py3.5,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.3,4.6} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pymongo-latest + {py2.7,py3.6,py3.9}-pymongo-v{3.12} + {py3.6,py3.11}-pymongo-v{4.0} + {py3.7,py3.11,py3.12}-pymongo-v{4.3,4.6} + {py3.7,py3.11,py3.12}-pymongo-latest # Pyramid - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-pyramid-v{1.6} - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-v{1.10} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-v{2.0} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-pyramid-latest + {py2.7,py3.5,py3.11}-pyramid-v{1.6} + {py2.7,py3.5,py3.11,py3.12}-pyramid-v{1.10} + {py3.6,py3.11,py3.12}-pyramid-v{2.0} + {py3.6,py3.11,py3.12}-pyramid-latest # Quart - {py3.7,py3.8,py3.9,py3.10,py3.11}-quart-v{0.16} - {py3.8,py3.9,py3.10,py3.11,py3.12}-quart-v{0.19} - {py3.8,py3.9,py3.10,py3.11,py3.12}-quart-latest + {py3.7,py3.11}-quart-v{0.16} + {py3.8,py3.11,py3.12}-quart-v{0.19} + {py3.8,py3.11,py3.12}-quart-latest # Redis {py2.7,py3.7,py3.8}-redis-v{3} - {py3.7,py3.8,py3.9,py3.10,py3.11}-redis-v{4} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-redis-v{5} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-redis-latest + {py3.7,py3.8,py3.11}-redis-v{4} + {py3.7,py3.11,py3.12}-redis-v{5} + {py3.7,py3.11,py3.12}-redis-latest # Redis Cluster {py2.7,py3.7,py3.8}-rediscluster-v{1,2} # no -latest, not developed anymore # Requests - {py2.7,py3.8,py3.9,py3.10,py3.11,py3.12}-requests + {py2.7,py3.8,py3.11,py3.12}-requests # RQ (Redis Queue) {py2.7,py3.5,py3.6}-rq-v{0.6} - {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-rq-v{0.13,1.0} - {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-rq-v{1.5,1.10} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-rq-v{1.15} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-rq-latest + {py2.7,py3.5,py3.9}-rq-v{0.13,1.0} + {py3.5,py3.11}-rq-v{1.5,1.10} + {py3.7,py3.11,py3.12}-rq-v{1.15} + {py3.7,py3.11,py3.12}-rq-latest # Sanic - {py3.5,py3.6,py3.7}-sanic-v{0.8} - {py3.6,py3.7,py3.8}-sanic-v{20} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{22} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sanic-v{23} - {py3.8,py3.9,py3.10,py3.11}-sanic-latest + {py3.5,py3.7}-sanic-v{0.8} + {py3.6,py3.8}-sanic-v{20} + {py3.7,py3.11}-sanic-v{22} + {py3.7,py3.11}-sanic-v{23} + {py3.8,py3.11}-sanic-latest # Starlette - {py3.7,py3.8,py3.9,py3.10}-starlette-v{0.19} - {py3.7,py3.8,py3.9,py3.10,py3.11}-starlette-v{0.20,0.24,0.28} - {py3.8,py3.9,py3.10,py3.11,py3.12}-starlette-v{0.32} - {py3.8,py3.9,py3.10,py3.11,py3.12}-starlette-latest + {py3.7,py3.10}-starlette-v{0.19} + {py3.7,py3.11}-starlette-v{0.20,0.24,0.28} + {py3.8,py3.11,py3.12}-starlette-v{0.32} + {py3.8,py3.11,py3.12}-starlette-latest # Starlite - {py3.8,py3.9,py3.10,py3.11}-starlite-v{1.48,1.51} + {py3.8,py3.11}-starlite-v{1.48,1.51} # 1.51.14 is the last starlite version; the project continues as litestar # SQL Alchemy - {py2.7,py3.7,py3.8,py3.9}-sqlalchemy-v{1.2,1.4} - {py3.7,py3.8,py3.9,py3.10,py3.11}-sqlalchemy-v{2.0} - {py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-sqlalchemy-latest + {py2.7,py3.7,py3.9}-sqlalchemy-v{1.2,1.4} + {py3.7,py3.11}-sqlalchemy-v{2.0} + {py3.7,py3.11,py3.12}-sqlalchemy-latest # Strawberry - {py3.8,py3.9,py3.10,py3.11}-strawberry-v{0.209} - {py3.8,py3.9,py3.10,py3.11,py3.12}-strawberry-latest + {py3.8,py3.11}-strawberry-v{0.209} + {py3.8,py3.11,py3.12}-strawberry-latest # Tornado - {py3.7,py3.8,py3.9}-tornado-v{5} - {py3.8,py3.9,py3.10,py3.11,py3.12}-tornado-v{6} - {py3.8,py3.9,py3.10,py3.11,py3.12}-tornado-latest + {py3.7,py3.9}-tornado-v{5} + {py3.8,py3.11,py3.12}-tornado-v{6} + {py3.8,py3.11,py3.12}-tornado-latest # Trytond {py3.5,py3.6}-trytond-v{4} - {py3.6,py3.7,py3.8}-trytond-v{5} - {py3.6,py3.7,py3.8,py3.9,py3.10,py3.11}-trytond-v{6} - {py3.8,py3.9,py3.10,py3.11,py3.12}-trytond-v{7} - {py3.8,py3.9,py3.10,py3.11,py3.12}-trytond-latest + {py3.6,py3.8}-trytond-v{5} + {py3.6,py3.11}-trytond-v{6} + {py3.8,py3.11,py3.12}-trytond-v{7} + {py3.8,py3.11,py3.12}-trytond-latest [testenv] deps = From 0a86a5ffe36403bcb8701d60712a25f6df004871 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 12:28:42 +0100 Subject: [PATCH 04/26] Group tests together --- .../workflows/test-integration-aiohttp.yml | 96 --- .../workflows/test-integration-ariadne.yml | 96 --- .github/workflows/test-integration-arq.yml | 96 --- .github/workflows/test-integration-asgi.yml | 63 -- .../workflows/test-integration-asyncpg.yml | 138 ---- .../workflows/test-integration-aws_lambda.yml | 98 --- .github/workflows/test-integration-beam.yml | 96 --- .github/workflows/test-integration-boto3.yml | 122 --- .github/workflows/test-integration-bottle.yml | 122 --- .github/workflows/test-integration-celery.yml | 122 --- .../workflows/test-integration-chalice.yml | 96 --- .../test-integration-clickhouse_driver.yml | 98 --- ...est-integration-cloud_resource_context.yml | 63 -- .github/workflows/test-integration-django.yml | 185 ----- .github/workflows/test-integration-falcon.yml | 122 --- .../workflows/test-integration-fastapi.yml | 96 --- .github/workflows/test-integration-flask.yml | 122 --- .github/workflows/test-integration-gcp.yml | 63 -- .github/workflows/test-integration-gevent.yml | 89 -- .github/workflows/test-integration-gql.yml | 96 --- .../workflows/test-integration-graphene.yml | 96 --- .github/workflows/test-integration-grpc.yml | 96 --- .github/workflows/test-integration-httpx.yml | 96 --- .github/workflows/test-integration-huey.yml | 122 --- .github/workflows/test-integration-loguru.yml | 96 --- .../test-integration-opentelemetry.yml | 63 -- .../workflows/test-integration-pure_eval.yml | 63 -- .../workflows/test-integration-pymongo.yml | 122 --- .../workflows/test-integration-pyramid.yml | 122 --- .github/workflows/test-integration-quart.yml | 96 --- .github/workflows/test-integration-redis.yml | 122 --- .../test-integration-rediscluster.yml | 89 -- .../workflows/test-integration-requests.yml | 89 -- .github/workflows/test-integration-rq.yml | 122 --- .github/workflows/test-integration-sanic.yml | 96 --- .../workflows/test-integration-sqlalchemy.yml | 122 --- .../workflows/test-integration-starlette.yml | 96 --- .../workflows/test-integration-starlite.yml | 63 -- .../workflows/test-integration-strawberry.yml | 96 --- .../workflows/test-integration-tornado.yml | 96 --- .../workflows/test-integration-trytond.yml | 96 --- .../test-integrations-cloud-computing.yml | 339 ++++++++ ...ommon.yml => test-integrations-common.yml} | 14 +- .../test-integrations-data-processing.yml | 426 ++++++++++ .../workflows/test-integrations-databases.yml | 558 +++++++++++++ .../workflows/test-integrations-graphql.yml | 294 +++++++ .../test-integrations-miscellaneous.yml | 228 ++++++ .../test-integrations-networking.yml | 272 +++++++ .../test-integrations-web-frameworks-1.yml | 548 +++++++++++++ .../test-integrations-web-frameworks-2.yml | 767 ++++++++++++++++++ .../split-tox-gh-actions.py | 162 +++- .../split-tox-gh-actions/templates/base.jinja | 18 +- .../templates/check_required.jinja | 10 +- .../split-tox-gh-actions/templates/test.jinja | 2 +- 54 files changed, 3584 insertions(+), 4192 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-aws_lambda.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 create mode 100644 .github/workflows/test-integrations-cloud-computing.yml rename .github/workflows/{test-common.yml => test-integrations-common.yml} (89%) create mode 100644 .github/workflows/test-integrations-data-processing.yml create mode 100644 .github/workflows/test-integrations-databases.yml create mode 100644 .github/workflows/test-integrations-graphql.yml create mode 100644 .github/workflows/test-integrations-miscellaneous.yml create mode 100644 .github/workflows/test-integrations-networking.yml create mode 100644 .github/workflows/test-integrations-web-frameworks-1.yml create mode 100644 .github/workflows/test-integrations-web-frameworks-2.yml diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml deleted file mode 100644 index c2ab5697e3..0000000000 --- a/.github/workflows/test-integration-aiohttp.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: aiohttp pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.9","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-latest: - timeout-minutes: 30 - name: aiohttp latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All aiohttp tests passed or skipped - needs: test-pinned - # 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-pinned.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 268a32c892..0000000000 --- a/.github/workflows/test-integration-ariadne.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: ariadne pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 ariadne - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-latest: - timeout-minutes: 30 - name: ariadne latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All ariadne tests passed or skipped - needs: test-pinned - # 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-pinned.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 10741fd614..0000000000 --- a/.github/workflows/test-integration-arq.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: arq pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 arq - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-latest: - timeout-minutes: 30 - name: arq latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All arq tests passed or skipped - needs: test-pinned - # 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-pinned.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 a4301ee894..0000000000 --- a/.github/workflows/test-integration-asgi.yml +++ /dev/null @@ -1,63 +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-pinned: - timeout-minutes: 30 - name: asgi pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - 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-pinned - # 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-pinned.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 4e394f8ad5..0000000000 --- a/.github/workflows/test-integration-asyncpg.yml +++ /dev/null @@ -1,138 +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-pinned: - timeout-minutes: 30 - name: asyncpg pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.10"] - # python3.6 reached EOL and is no longer being supported on - # new versions of hosted runners on Github Actions - # ubuntu-20.04 is the last version that supported python3.6 - # 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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-latest: - timeout-minutes: 30 - name: asyncpg latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All asyncpg tests passed or skipped - needs: test-pinned - # 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-pinned.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-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml deleted file mode 100644 index 7a5e8fe978..0000000000 --- a/.github/workflows/test-integration-aws_lambda.yml +++ /dev/null @@ -1,98 +0,0 @@ -name: Test aws_lambda -on: - push: - branches: - - master - - release/** - # XXX: We are using `pull_request_target` instead of `pull_request` because we want - # this to run on forks with access to the secrets necessary to run the test suite. - # Prefer to use `pull_request` when possible. - pull_request_target: - types: [labeled, opened, reopened, synchronize] -# 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 - # `write` is needed to remove the `Trigger: tests using secrets` label - pull-requests: write -env: - SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID: ${{ secrets.SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID }} - SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY }} - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless -jobs: - check-permissions: - name: permissions check - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - with: - persist-credentials: false - - name: Check permissions on PR - if: github.event_name == 'pull_request_target' - run: | - python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \ - --repo-id ${{ github.event.repository.id }} \ - --pr ${{ github.event.number }} \ - --event ${{ github.event.action }} \ - --username "$ARG_USERNAME" \ - --label-names "$ARG_LABEL_NAMES" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # these can contain special characters - ARG_USERNAME: ${{ github.event.pull_request.user.login }} - ARG_LABEL_NAMES: ${{ toJSON(github.event.pull_request.labels.*.name) }} - - name: Check permissions on repo branch - if: github.event_name == 'push' - run: true - test-pinned: - needs: check-permissions - timeout-minutes: 30 - name: aws_lambda pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test aws_lambda - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All aws_lambda tests passed or skipped - needs: test-pinned - # 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-pinned.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 69e209c320..0000000000 --- a/.github/workflows/test-integration-beam.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: beam pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - 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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: beam latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 beam - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All beam tests passed or skipped - needs: test-pinned - # 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-pinned.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 1d0a646cba..0000000000 --- a/.github/workflows/test-integration-boto3.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: boto3 pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","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 boto3 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: boto3 py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test boto3 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: boto3 latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 boto3 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All boto3 tests passed or skipped - needs: [test-pinned, 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-pinned.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 0b90f75102..0000000000 --- a/.github/workflows/test-integration-bottle.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: bottle pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 bottle - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: bottle py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test bottle - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: bottle latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All bottle tests passed or skipped - needs: [test-pinned, 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-pinned.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 b583a29e71..0000000000 --- a/.github/workflows/test-integration-celery.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: celery pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: celery py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test celery - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: celery latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All celery tests passed or skipped - needs: [test-pinned, 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-pinned.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 e1ffff6511..0000000000 --- a/.github/workflows/test-integration-chalice.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: chalice pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 chalice - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: chalice latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.10"] - # python3.6 reached EOL and is no longer being supported on - # new versions of hosted runners on Github Actions - # ubuntu-20.04 is the last version that supported python3.6 - # 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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All chalice tests passed or skipped - needs: test-pinned - # 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-pinned.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 f2ea78b050..0000000000 --- a/.github/workflows/test-integration-clickhouse_driver.yml +++ /dev/null @@ -1,98 +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-pinned: - timeout-minutes: 30 - name: clickhouse_driver pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test clickhouse_driver - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: clickhouse_driver latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All clickhouse_driver tests passed or skipped - needs: test-pinned - # 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-pinned.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 24e48bcf10..0000000000 --- a/.github/workflows/test-integration-cloud_resource_context.yml +++ /dev/null @@ -1,63 +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-pinned: - timeout-minutes: 30 - name: cloud_resource_context pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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-pinned - # 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-pinned.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 d815621d83..0000000000 --- a/.github/workflows/test-integration-django.yml +++ /dev/null @@ -1,185 +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-pinned: - timeout-minutes: 30 - name: django pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - 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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: django py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - 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" - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - - name: Test django - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: django latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All django tests passed or skipped - needs: [test-pinned, 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-pinned.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 dd4ef10628..0000000000 --- a/.github/workflows/test-integration-falcon.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: falcon pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: falcon py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test falcon - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: falcon latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All falcon tests passed or skipped - needs: [test-pinned, 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-pinned.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 d7d57ad0bd..0000000000 --- a/.github/workflows/test-integration-fastapi.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: fastapi pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.10"] - # python3.6 reached EOL and is no longer being supported on - # new versions of hosted runners on Github Actions - # ubuntu-20.04 is the last version that supported python3.6 - # 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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: fastapi latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All fastapi tests passed or skipped - needs: test-pinned - # 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-pinned.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 7201fa1b4d..0000000000 --- a/.github/workflows/test-integration-flask.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: flask pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: flask py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test flask - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: flask latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All flask tests passed or skipped - needs: [test-pinned, 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-pinned.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 adc55c19f4..0000000000 --- a/.github/workflows/test-integration-gcp.yml +++ /dev/null @@ -1,63 +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-pinned: - timeout-minutes: 30 - name: gcp pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - 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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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-pinned - # 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-pinned.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 26fc037736..0000000000 --- a/.github/workflows/test-integration-gevent.yml +++ /dev/null @@ -1,89 +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-pinned: - timeout-minutes: 30 - name: gevent pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: gevent py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test gevent - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - check_required_tests: - name: All gevent tests passed or skipped - needs: [test-pinned, 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-pinned.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 08df94af2a..0000000000 --- a/.github/workflows/test-integration-gql.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: gql pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: gql latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All gql tests passed or skipped - needs: test-pinned - # 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-pinned.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 8e33252bda..0000000000 --- a/.github/workflows/test-integration-graphene.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: graphene pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 graphene - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: graphene latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All graphene tests passed or skipped - needs: test-pinned - # 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-pinned.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 ca8f48d9a8..0000000000 --- a/.github/workflows/test-integration-grpc.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: grpc pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 grpc - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: grpc latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All grpc tests passed or skipped - needs: test-pinned - # 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-pinned.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 a7b6e4ba07..0000000000 --- a/.github/workflows/test-integration-httpx.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: httpx pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: httpx latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.9","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All httpx tests passed or skipped - needs: test-pinned - # 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-pinned.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 c0678f711f..0000000000 --- a/.github/workflows/test-integration-huey.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: huey pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: huey py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test huey - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: huey latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All huey tests passed or skipped - needs: [test-pinned, 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-pinned.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 0f211ac628..0000000000 --- a/.github/workflows/test-integration-loguru.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: loguru pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: loguru latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All loguru tests passed or skipped - needs: test-pinned - # 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-pinned.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 e1d16677d9..0000000000 --- a/.github/workflows/test-integration-opentelemetry.yml +++ /dev/null @@ -1,63 +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-pinned: - timeout-minutes: 30 - name: opentelemetry pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.9","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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-pinned - # 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-pinned.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 b8b48ee184..0000000000 --- a/.github/workflows/test-integration-pure_eval.yml +++ /dev/null @@ -1,63 +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-pinned: - timeout-minutes: 30 - name: pure_eval pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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-pinned - # 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-pinned.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 e4383fe2a4..0000000000 --- a/.github/workflows/test-integration-pymongo.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: pymongo pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","3.9","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: pymongo py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test pymongo - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: pymongo latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All pymongo tests passed or skipped - needs: [test-pinned, 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-pinned.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 f5f21e2895..0000000000 --- a/.github/workflows/test-integration-pyramid.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: pyramid pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: pyramid py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test pyramid - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: pyramid latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All pyramid tests passed or skipped - needs: [test-pinned, 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-pinned.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 c648842662..0000000000 --- a/.github/workflows/test-integration-quart.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: quart pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: quart latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All quart tests passed or skipped - needs: test-pinned - # 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-pinned.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 e2e3b31713..0000000000 --- a/.github/workflows/test-integration-redis.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: redis pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: redis py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test redis - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: redis latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All redis tests passed or skipped - needs: [test-pinned, 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-pinned.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 47fa62586e..0000000000 --- a/.github/workflows/test-integration-rediscluster.yml +++ /dev/null @@ -1,89 +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-pinned: - timeout-minutes: 30 - name: rediscluster pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 rediscluster - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: rediscluster py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test rediscluster - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - check_required_tests: - name: All rediscluster tests passed or skipped - needs: [test-pinned, 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-pinned.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 ecb5efc18f..0000000000 --- a/.github/workflows/test-integration-requests.yml +++ /dev/null @@ -1,89 +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-pinned: - timeout-minutes: 30 - name: requests pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: requests py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test requests - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - check_required_tests: - name: All requests tests passed or skipped - needs: [test-pinned, 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-pinned.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 9f75475045..0000000000 --- a/.github/workflows/test-integration-rq.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: rq pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.9","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: rq py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test rq - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: rq latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All rq tests passed or skipped - needs: [test-pinned, 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-pinned.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 45b771d845..0000000000 --- a/.github/workflows/test-integration-sanic.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: sanic pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: sanic latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All sanic tests passed or skipped - needs: test-pinned - # 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-pinned.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 6ea7bc13de..0000000000 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ /dev/null @@ -1,122 +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-pinned: - timeout-minutes: 30 - name: sqlalchemy pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.9","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 sqlalchemy - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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: - timeout-minutes: 30 - name: sqlalchemy py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test sqlalchemy - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-latest: - timeout-minutes: 30 - name: sqlalchemy latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All sqlalchemy tests passed or skipped - needs: [test-pinned, 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-pinned.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 462b34d704..0000000000 --- a/.github/workflows/test-integration-starlette.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: starlette pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: starlette latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All starlette tests passed or skipped - needs: test-pinned - # 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-pinned.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 ecb49e3edb..0000000000 --- a/.github/workflows/test-integration-starlite.yml +++ /dev/null @@ -1,63 +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-pinned: - timeout-minutes: 30 - name: starlite pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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-pinned - # 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-pinned.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 3cdc406638..0000000000 --- a/.github/workflows/test-integration-strawberry.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: strawberry pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 strawberry - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: strawberry latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All strawberry tests passed or skipped - needs: test-pinned - # 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-pinned.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 13759fcec2..0000000000 --- a/.github/workflows/test-integration-tornado.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: tornado pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","3.9","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: tornado latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All tornado tests passed or skipped - needs: test-pinned - # 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-pinned.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 d633e26ecb..0000000000 --- a/.github/workflows/test-integration-trytond.yml +++ /dev/null @@ -1,96 +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-pinned: - timeout-minutes: 30 - name: trytond pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-latest: - timeout-minutes: 30 - name: trytond latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - check_required_tests: - name: All trytond tests passed or skipped - needs: test-pinned - # 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-pinned.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-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml new file mode 100644 index 0000000000..fbf9536fa7 --- /dev/null +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -0,0 +1,339 @@ +name: Test Cloud Computing +on: + push: + branches: + - master + - release/** + # XXX: We are using `pull_request_target` instead of `pull_request` because we want + # this to run on forks with access to the secrets necessary to run the test suite. + # Prefer to use `pull_request` when possible. + pull_request_target: + types: [labeled, opened, reopened, synchronize] +# 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 + # `write` is needed to remove the `Trigger: tests using secrets` label + pull-requests: write +env: + SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID: ${{ secrets.SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID }} + SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY }} + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless +jobs: + check-permissions: + name: permissions check + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + persist-credentials: false + - name: Check permissions on PR + if: github.event_name == 'pull_request_target' + run: | + python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \ + --repo-id ${{ github.event.repository.id }} \ + --pr ${{ github.event.number }} \ + --event ${{ github.event.action }} \ + --username "$ARG_USERNAME" \ + --label-names "$ARG_LABEL_NAMES" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # these can contain special characters + ARG_USERNAME: ${{ github.event.pull_request.user.login }} + ARG_LABEL_NAMES: ${{ toJSON(github.event.pull_request.labels.*.name) }} + - name: Check permissions on repo branch + if: github.event_name == 'push' + run: true + test-aws_lambda-pinned: + needs: check-permissions + timeout-minutes: 30 + name: aws_lambda pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test aws_lambda + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-boto3-pinned: + needs: check-permissions + timeout-minutes: 30 + name: boto3 pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.6","3.7","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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-boto3-py27: + needs: check-permissions + timeout-minutes: 30 + name: boto3 py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test boto3 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-boto3-latest: + needs: check-permissions + timeout-minutes: 30 + name: boto3 latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-chalice-pinned: + needs: check-permissions + timeout-minutes: 30 + name: chalice pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.6","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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-chalice-latest: + needs: check-permissions + timeout-minutes: 30 + name: chalice latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.10"] + # python3.6 reached EOL and is no longer being supported on + # new versions of hosted runners on Github Actions + # ubuntu-20.04 is the last version that supported python3.6 + # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 + os: [ubuntu-20.04] + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-cloud_resource_context-pinned: + needs: check-permissions + timeout-minutes: 30 + name: cloud_resource_context pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.6","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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-gcp-pinned: + needs: check-permissions + timeout-minutes: 30 + name: gcp pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + 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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 Cloud Computing tests passed + needs: [test-aws_lambda-pinned, test-boto3-pinned, test-boto3-latest, test-boto3-py27, test-chalice-pinned, test-chalice-latest, test-cloud_resource_context-pinned, test-gcp-pinned] + # 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-pinned.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-common.yml b/.github/workflows/test-integrations-common.yml similarity index 89% rename from .github/workflows/test-common.yml rename to .github/workflows/test-integrations-common.yml index 6ea4405b7c..1787b52855 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -1,4 +1,4 @@ -name: Test common +name: Test Common on: push: branches: @@ -17,7 +17,7 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-pinned: + test-common-pinned: timeout-minutes: 30 name: common pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -50,7 +50,7 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-py27: + test-common-py27: timeout-minutes: 30 name: common py27, python 2.7 runs-on: ubuntu-20.04 @@ -73,8 +73,8 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml check_required_tests: - name: All common tests passed or skipped - needs: [test-pinned, test-py27] + name: All Common tests passed + needs: [test-common-pinned, test-common-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 @@ -83,7 +83,3 @@ jobs: if: contains(needs.test-pinned.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-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml new file mode 100644 index 0000000000..8c042ab751 --- /dev/null +++ b/.github/workflows/test-integrations-data-processing.yml @@ -0,0 +1,426 @@ +name: Test Data Processing +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-arq-pinned: + timeout-minutes: 30 + name: arq pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 arq + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-arq-latest: + timeout-minutes: 30 + name: arq latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-beam-pinned: + timeout-minutes: 30 + name: beam pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-beam-latest: + timeout-minutes: 30 + name: beam latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 beam + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-celery-pinned: + timeout-minutes: 30 + name: celery pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","3.7","3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-celery-py27: + timeout-minutes: 30 + name: celery py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test celery + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-celery-latest: + timeout-minutes: 30 + name: celery latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-huey-pinned: + timeout-minutes: 30 + name: huey pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-huey-py27: + timeout-minutes: 30 + name: huey py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test huey + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-huey-latest: + timeout-minutes: 30 + name: huey latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-rq-pinned: + timeout-minutes: 30 + name: rq pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","3.7","3.9","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-rq-py27: + timeout-minutes: 30 + name: rq py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test rq + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-rq-latest: + timeout-minutes: 30 + name: rq latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + check_required_tests: + name: All Data Processing tests passed + needs: [test-arq-pinned, test-arq-latest, test-beam-pinned, test-beam-latest, test-celery-pinned, test-celery-latest, test-celery-py27, test-huey-pinned, test-huey-latest, test-huey-py27, test-rq-pinned, test-rq-latest, test-rq-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-pinned.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-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml new file mode 100644 index 0000000000..44c8381457 --- /dev/null +++ b/.github/workflows/test-integrations-databases.yml @@ -0,0 +1,558 @@ +name: Test Databases +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-asyncpg-pinned: + timeout-minutes: 30 + name: asyncpg pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.10"] + # python3.6 reached EOL and is no longer being supported on + # new versions of hosted runners on Github Actions + # ubuntu-20.04 is the last version that supported python3.6 + # 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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-asyncpg-latest: + timeout-minutes: 30 + name: asyncpg latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-clickhouse_driver-pinned: + timeout-minutes: 30 + name: clickhouse_driver pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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] + 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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 clickhouse_driver + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-clickhouse_driver-latest: + timeout-minutes: 30 + name: clickhouse_driver latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 clickhouse_driver + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-pymongo-pinned: + timeout-minutes: 30 + name: pymongo pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.6","3.7","3.9","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 pymongo + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-pymongo-py27: + timeout-minutes: 30 + name: pymongo py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + 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 + - uses: getsentry/action-clickhouse-in-ci@v1 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test pymongo + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-pymongo-latest: + timeout-minutes: 30 + name: pymongo latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 pymongo + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-sqlalchemy-pinned: + timeout-minutes: 30 + name: sqlalchemy pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.9","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] + 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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 sqlalchemy + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-sqlalchemy-py27: + timeout-minutes: 30 + name: sqlalchemy py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + 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 + - uses: getsentry/action-clickhouse-in-ci@v1 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test sqlalchemy + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-sqlalchemy-latest: + timeout-minutes: 30 + name: sqlalchemy latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 sqlalchemy + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + check_required_tests: + name: All Databases tests passed + needs: [test-asyncpg-pinned, test-asyncpg-latest, test-clickhouse_driver-pinned, test-clickhouse_driver-latest, test-pymongo-pinned, test-pymongo-latest, test-pymongo-py27, test-sqlalchemy-pinned, test-sqlalchemy-latest, test-sqlalchemy-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-pinned.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-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml new file mode 100644 index 0000000000..00ad2ac285 --- /dev/null +++ b/.github/workflows/test-integrations-graphql.yml @@ -0,0 +1,294 @@ +name: Test GraphQL +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-ariadne-pinned: + timeout-minutes: 30 + name: ariadne pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 ariadne + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-ariadne-latest: + timeout-minutes: 30 + name: ariadne latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-gql-pinned: + timeout-minutes: 30 + name: gql pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-gql-latest: + timeout-minutes: 30 + name: gql latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-graphene-pinned: + timeout-minutes: 30 + name: graphene pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 graphene + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-graphene-latest: + timeout-minutes: 30 + name: graphene latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-strawberry-pinned: + timeout-minutes: 30 + name: strawberry pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 strawberry + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-strawberry-latest: + timeout-minutes: 30 + name: strawberry latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + check_required_tests: + name: All GraphQL tests passed + needs: [test-ariadne-pinned, test-ariadne-latest, test-gql-pinned, test-gql-latest, test-graphene-pinned, test-graphene-latest, test-strawberry-pinned, test-strawberry-latest] + # 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-pinned.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-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml new file mode 100644 index 0000000000..2e6b3cafa2 --- /dev/null +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -0,0 +1,228 @@ +name: Test Miscellaneous +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-loguru-pinned: + timeout-minutes: 30 + name: loguru pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-loguru-latest: + timeout-minutes: 30 + name: loguru latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-opentelemetry-pinned: + timeout-minutes: 30 + name: opentelemetry pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.9","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-pure_eval-pinned: + timeout-minutes: 30 + name: pure_eval pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-trytond-pinned: + timeout-minutes: 30 + name: trytond pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-trytond-latest: + timeout-minutes: 30 + name: trytond latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + check_required_tests: + name: All Miscellaneous tests passed + needs: [test-loguru-pinned, test-loguru-latest, test-opentelemetry-pinned, test-pure_eval-pinned, test-trytond-pinned, test-trytond-latest] + # 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-pinned.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-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml new file mode 100644 index 0000000000..40973d99cb --- /dev/null +++ b/.github/workflows/test-integrations-networking.yml @@ -0,0 +1,272 @@ +name: Test Networking +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-gevent-pinned: + timeout-minutes: 30 + name: gevent pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.6","3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-gevent-py27: + timeout-minutes: 30 + name: gevent py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test gevent + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-grpc-pinned: + timeout-minutes: 30 + name: grpc pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 grpc + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-grpc-latest: + timeout-minutes: 30 + name: grpc latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-httpx-pinned: + timeout-minutes: 30 + name: httpx pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.6","3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-httpx-latest: + timeout-minutes: 30 + name: httpx latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.9","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-requests-pinned: + timeout-minutes: 30 + name: requests pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-requests-py27: + timeout-minutes: 30 + name: requests py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test requests + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 + check_required_tests: + name: All Networking tests passed + needs: [test-gevent-pinned, test-gevent-py27, test-grpc-pinned, test-grpc-latest, test-httpx-pinned, test-httpx-latest, test-requests-pinned, test-requests-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-pinned.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-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml new file mode 100644 index 0000000000..53c236a24f --- /dev/null +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -0,0 +1,548 @@ +name: Test Web Frameworks 1 +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-django-pinned: + timeout-minutes: 30 + name: django pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + 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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-django-py27: + timeout-minutes: 30 + name: django py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + 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" + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test django + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-django-latest: + timeout-minutes: 30 + name: django latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-fastapi-pinned: + timeout-minutes: 30 + name: fastapi pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.10"] + # python3.6 reached EOL and is no longer being supported on + # new versions of hosted runners on Github Actions + # ubuntu-20.04 is the last version that supported python3.6 + # 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 fastapi + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-fastapi-latest: + timeout-minutes: 30 + name: fastapi latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 fastapi + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-flask-pinned: + timeout-minutes: 30 + name: flask pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.8","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 flask + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-flask-py27: + timeout-minutes: 30 + name: flask py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + 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" + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test flask + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-flask-latest: + timeout-minutes: 30 + name: flask latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["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 flask + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-starlette-pinned: + timeout-minutes: 30 + name: starlette pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.8","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 starlette + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-starlette-latest: + timeout-minutes: 30 + name: starlette latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 starlette + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + check_required_tests: + name: All Web Frameworks 1 tests passed + needs: [test-django-pinned, test-django-latest, test-django-py27, test-fastapi-pinned, test-fastapi-latest, test-flask-pinned, test-flask-latest, test-flask-py27, test-starlette-pinned, test-starlette-latest] + # 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-pinned.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-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml new file mode 100644 index 0000000000..a06b464bee --- /dev/null +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -0,0 +1,767 @@ +name: Test Web Frameworks 2 +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-aiohttp-pinned: + timeout-minutes: 30 + name: aiohttp pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.9","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-aiohttp-latest: + timeout-minutes: 30 + name: aiohttp latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-asgi-pinned: + timeout-minutes: 30 + name: asgi pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-bottle-pinned: + timeout-minutes: 30 + name: bottle pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","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 bottle + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-bottle-py27: + timeout-minutes: 30 + name: bottle py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test bottle + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-bottle-latest: + timeout-minutes: 30 + name: bottle latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-falcon-pinned: + timeout-minutes: 30 + name: falcon pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-falcon-py27: + timeout-minutes: 30 + name: falcon py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test falcon + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-falcon-latest: + timeout-minutes: 30 + name: falcon latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-pyramid-pinned: + timeout-minutes: 30 + name: pyramid pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-pyramid-py27: + timeout-minutes: 30 + name: pyramid py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test pyramid + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-pyramid-latest: + timeout-minutes: 30 + name: pyramid latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.6","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-quart-pinned: + timeout-minutes: 30 + name: quart pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-quart-latest: + timeout-minutes: 30 + name: quart latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-redis-pinned: + timeout-minutes: 30 + name: redis pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-redis-py27: + timeout-minutes: 30 + name: redis py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test redis + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-redis-latest: + timeout-minutes: 30 + name: redis latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-rediscluster-pinned: + timeout-minutes: 30 + name: rediscluster pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["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 rediscluster + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-rediscluster-py27: + timeout-minutes: 30 + name: rediscluster py27, python 2.7 + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test rediscluster + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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-sanic-pinned: + timeout-minutes: 30 + name: sanic pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","3.7","3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-sanic-latest: + timeout-minutes: 30 + name: sanic latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-starlite-pinned: + timeout-minutes: 30 + name: starlite pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-tornado-pinned: + timeout-minutes: 30 + name: tornado pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.8","3.9","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-tornado-latest: + timeout-minutes: 30 + name: tornado latest, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.8","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 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + check_required_tests: + name: All Web Frameworks 2 tests passed + needs: [test-aiohttp-pinned, test-aiohttp-latest, test-asgi-pinned, test-bottle-pinned, test-bottle-latest, test-bottle-py27, test-falcon-pinned, test-falcon-latest, test-falcon-py27, test-pyramid-pinned, test-pyramid-latest, test-pyramid-py27, test-quart-pinned, test-quart-latest, test-redis-pinned, test-redis-latest, test-redis-py27, test-rediscluster-pinned, test-rediscluster-py27, test-sanic-pinned, test-sanic-latest, test-starlite-pinned, test-tornado-pinned, test-tornado-latest] + # 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-pinned.result, 'failure') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 98695713f7..7735d84452 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -1,7 +1,7 @@ """Split Tox to GitHub Actions This is a small script to split a tox.ini config file into multiple GitHub actions configuration files. -This way each framework defined in tox.ini will get its own GitHub actions configuration file +This way each group of frameworks defined in tox.ini will get its own GitHub actions configuration file which allows them to be run in parallel in GitHub actions. This will generate/update several configuration files, that need to be commited to Git afterwards. @@ -18,6 +18,7 @@ import hashlib import sys from collections import defaultdict +from functools import reduce from glob import glob from pathlib import Path @@ -28,22 +29,89 @@ TOX_FILE = Path(__file__).resolve().parent.parent.parent / "tox.ini" TEMPLATE_DIR = Path(__file__).resolve().parent / "templates" -FRAMEWORKS_NEEDING_POSTGRES = [ +FRAMEWORKS_NEEDING_POSTGRES = { "django", "asyncpg", -] +} -FRAMEWORKS_NEEDING_CLICKHOUSE = [ +FRAMEWORKS_NEEDING_CLICKHOUSE = { "clickhouse_driver", -] +} -FRAMEWORKS_NEEDING_AWS = [ +FRAMEWORKS_NEEDING_AWS = { "aws_lambda", -] +} -FRAMEWORKS_NEEDING_GITHUB_SECRETS = [ +FRAMEWORKS_NEEDING_GITHUB_SECRETS = { "aws_lambda", -] +} + +# Frameworks grouped here will be tested together to not hog all GitHub runners. +# If you add or remove a group, make sure to git rm the generated YAML file as +# well. +GROUPS = { + "Common": [ + "common", + ], + "Cloud Computing": [ + "aws_lambda", + "boto3", + "chalice", + "cloud_resource_context", + "gcp", + ], + "Data Processing": [ + "arq", + "beam", + "celery", + "huey", + "rq", + ], + "Databases": [ + "asyncpg", + "clickhouse_driver", + "pymongo", + "sqlalchemy", + ], + "GraphQL": [ + "ariadne", + "gql", + "graphene", + "strawberry", + ], + "Networking": [ + "gevent", + "grpc", + "httpx", + "requests", + ], + "Web Frameworks 1": [ + "django", + "fastapi", + "flask", + "starlette", + ], + "Web Frameworks 2": [ + "aiohttp", + "asgi", + "bottle", + "falcon", + "pyramid", + "quart", + "redis", + "rediscluster", + "sanic", + "starlite", + "tornado", + ], + "Miscellaneous": [ + "loguru", + "opentelemetry", + "pure_eval", + "trytond", + ], +} + ENV = Environment( loader=FileSystemLoader(TEMPLATE_DIR), @@ -58,14 +126,24 @@ def main(fail_on_changes): print("Parsing tox.ini...") py_versions_pinned, py_versions_latest = parse_tox() + if fail_on_changes: + print("Checking if all frameworks belong in a group...") + missing_frameworks = find_frameworks_missing_from_groups( + py_versions_pinned, py_versions_latest + ) + if missing_frameworks: + raise RuntimeError( + "Please add the following frameworks to the corresponding group " + "in `GROUPS` in `scripts/split-tox-gh-actions/split-tox-gh-actions.py: " + + ", ".join(missing_frameworks) + ) + print("Rendering templates...") - for framework in py_versions_pinned: + for group, frameworks in GROUPS.items(): contents = render_template( - framework, - py_versions_pinned[framework], - py_versions_latest[framework], + group, frameworks, py_versions_pinned, py_versions_latest ) - filename = write_file(contents, framework) + filename = write_file(contents, group) print(f"Created {filename}") if fail_on_changes: @@ -124,6 +202,12 @@ def parse_tox(): return py_versions_pinned, py_versions_latest +def find_frameworks_missing_from_groups(py_versions_pinned, py_versions_latest): + frameworks_in_a_group = _union(GROUPS.values()) + all_frameworks = set(py_versions_pinned.keys()) | set(py_versions_latest.keys()) + return all_frameworks - frameworks_in_a_group + + def _normalize_py_versions(py_versions): normalized = defaultdict(set) normalized |= { @@ -148,21 +232,43 @@ def get_files_hash(): return hasher.hexdigest() -def render_template(framework, py_versions_pinned, py_versions_latest): +def _union(seq): + return reduce(lambda x, y: set(x) | set(y), seq) + + +def render_template(group, frameworks, py_versions_pinned, py_versions_latest): template = ENV.get_template("base.jinja") + needs = [] + for framework in frameworks: + if py_versions_pinned[framework]: + needs.append(f"test-{framework}-pinned") + if py_versions_latest[framework]: + needs.append(f"test-{framework}-latest") + if "2.7" in py_versions_pinned[framework]: + needs.append(f"test-{framework}-py27") + context = { - "framework": framework, - "needs_aws_credentials": framework in FRAMEWORKS_NEEDING_AWS, - "needs_clickhouse": framework in FRAMEWORKS_NEEDING_CLICKHOUSE, - "needs_postgres": framework in FRAMEWORKS_NEEDING_POSTGRES, - "needs_github_secrets": framework in FRAMEWORKS_NEEDING_GITHUB_SECRETS, + "group": group, + "frameworks": frameworks, + "needs_aws_credentials": bool(set(frameworks) & FRAMEWORKS_NEEDING_AWS), + "needs_clickhouse": bool(set(frameworks) & FRAMEWORKS_NEEDING_CLICKHOUSE), + "needs_postgres": bool(set(frameworks) & FRAMEWORKS_NEEDING_POSTGRES), + "needs_github_secrets": bool( + set(frameworks) & FRAMEWORKS_NEEDING_GITHUB_SECRETS + ), "py_versions": { - # formatted for including in the matrix - "pinned": [f'"{v}"' for v in py_versions_pinned if v != "2.7"], - "py27": ['"2.7"'] if "2.7" in py_versions_pinned else [], - "latest": [f'"{v}"' for v in py_versions_latest], + framework: { + # already formatted for including in the matrix + "pinned": [ + f'"{v}"' for v in py_versions_pinned[framework] if v != "2.7" + ], + "py27": ['"2.7"'] if "2.7" in py_versions_pinned[framework] else [], + "latest": [f'"{v}"' for v in py_versions_latest[framework]], + } + for framework in frameworks }, + "needs": str(needs).replace("'", ""), } rendered = template.render(context) rendered = postprocess_template(rendered) @@ -173,11 +279,9 @@ def postprocess_template(rendered): return "\n".join([line for line in rendered.split("\n") if line.strip()]) + "\n" -def write_file(contents, framework): - if framework == "common": - outfile = OUT_DIR / f"test-{framework}.yml" - else: - outfile = OUT_DIR / f"test-integration-{framework}.yml" +def write_file(contents, group): + group = group.lower().replace(" ", "-") + outfile = OUT_DIR / f"test-integrations-{group}.yml" with open(outfile, "w") as file: file.write(contents) diff --git a/scripts/split-tox-gh-actions/templates/base.jinja b/scripts/split-tox-gh-actions/templates/base.jinja index efa61b1f8b..c6ccf338e2 100644 --- a/scripts/split-tox-gh-actions/templates/base.jinja +++ b/scripts/split-tox-gh-actions/templates/base.jinja @@ -1,4 +1,4 @@ -name: Test {{ framework }} +name: Test {{ group }} on: push: @@ -45,22 +45,26 @@ jobs: {% include "check_permissions.jinja" %} {% endif %} -{% if py_versions.pinned %} -{% with category="pinned", versions=py_versions.pinned %} +{% for framework in frameworks %} + +{% if py_versions.get(framework).pinned %} +{% with category="pinned", versions=py_versions.get(framework).pinned %} {% include "test.jinja" %} {% endwith %} {% endif %} -{% if py_versions.py27 %} -{% with category="py27", versions=py_versions.py27 %} +{% if py_versions.get(framework).py27 %} +{% with category="py27", versions=py_versions.get(framework).py27 %} {% include "test.jinja" %} {% endwith %} {% endif %} -{% if py_versions.latest %} -{% with category="latest", versions=py_versions.latest %} +{% if py_versions.get(framework).latest %} +{% with category="latest", versions=py_versions.get(framework).latest %} {% include "test.jinja" %} {% endwith %} {% endif %} +{% endfor %} + {% include "check_required.jinja" %} diff --git a/scripts/split-tox-gh-actions/templates/check_required.jinja b/scripts/split-tox-gh-actions/templates/check_required.jinja index f79b5a9491..3476c4f5a5 100644 --- a/scripts/split-tox-gh-actions/templates/check_required.jinja +++ b/scripts/split-tox-gh-actions/templates/check_required.jinja @@ -1,12 +1,6 @@ check_required_tests: - name: All {{ framework }} tests passed or skipped - {% if py_versions.pinned and py_versions.py27 %} - needs: [test-pinned, test-py27] - {% elif py_versions.pinned %} - needs: test-pinned - {% elif py_versions.py27 %} - needs: test-py27 - {% endif %} + name: All {{ group }} tests passed + needs: {{ needs }} # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/scripts/split-tox-gh-actions/templates/test.jinja b/scripts/split-tox-gh-actions/templates/test.jinja index 9912a27e36..760f9789a0 100644 --- a/scripts/split-tox-gh-actions/templates/test.jinja +++ b/scripts/split-tox-gh-actions/templates/test.jinja @@ -1,4 +1,4 @@ - test-{{ category }}: + test-{{ framework }}-{{ category }}: {% if needs_github_secrets %} needs: check-permissions {% endif %} From c7233859ff2bc0facfe2692dab83bf319b069f68 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 12:30:55 +0100 Subject: [PATCH 05/26] Separate AWS Lambda --- .../test-integrations-aws-lambda.yml | 98 +++++++++++++++++++ .../test-integrations-cloud-computing.yml | 93 +----------------- .../split-tox-gh-actions.py | 6 +- 3 files changed, 105 insertions(+), 92 deletions(-) create mode 100644 .github/workflows/test-integrations-aws-lambda.yml diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml new file mode 100644 index 0000000000..59155a3bda --- /dev/null +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -0,0 +1,98 @@ +name: Test AWS Lambda +on: + push: + branches: + - master + - release/** + # XXX: We are using `pull_request_target` instead of `pull_request` because we want + # this to run on forks with access to the secrets necessary to run the test suite. + # Prefer to use `pull_request` when possible. + pull_request_target: + types: [labeled, opened, reopened, synchronize] +# 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 + # `write` is needed to remove the `Trigger: tests using secrets` label + pull-requests: write +env: + SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID: ${{ secrets.SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID }} + SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY }} + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless +jobs: + check-permissions: + name: permissions check + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 + with: + persist-credentials: false + - name: Check permissions on PR + if: github.event_name == 'pull_request_target' + run: | + python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \ + --repo-id ${{ github.event.repository.id }} \ + --pr ${{ github.event.number }} \ + --event ${{ github.event.action }} \ + --username "$ARG_USERNAME" \ + --label-names "$ARG_LABEL_NAMES" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # these can contain special characters + ARG_USERNAME: ${{ github.event.pull_request.user.login }} + ARG_LABEL_NAMES: ${{ toJSON(github.event.pull_request.labels.*.name) }} + - name: Check permissions on repo branch + if: github.event_name == 'push' + run: true + test-aws_lambda-pinned: + needs: check-permissions + timeout-minutes: 30 + name: aws_lambda pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test aws_lambda + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + check_required_tests: + name: All AWS Lambda tests passed + needs: [test-aws_lambda-pinned] + # 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-pinned.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-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index fbf9536fa7..e817166d35 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -4,11 +4,7 @@ on: branches: - master - release/** - # XXX: We are using `pull_request_target` instead of `pull_request` because we want - # this to run on forks with access to the secrets necessary to run the test suite. - # Prefer to use `pull_request` when possible. - pull_request_target: - types: [labeled, opened, reopened, synchronize] + 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: @@ -16,77 +12,12 @@ concurrency: cancel-in-progress: true permissions: contents: read - # `write` is needed to remove the `Trigger: tests using secrets` label - pull-requests: write env: - SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID: ${{ secrets.SENTRY_PYTHON_TEST_AWS_ACCESS_KEY_ID }} - SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY: ${{ secrets.SENTRY_PYTHON_TEST_AWS_SECRET_ACCESS_KEY }} BUILD_CACHE_KEY: ${{ github.sha }} CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - check-permissions: - name: permissions check - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - with: - persist-credentials: false - - name: Check permissions on PR - if: github.event_name == 'pull_request_target' - run: | - python3 -uS .github/workflows/scripts/trigger_tests_on_label.py \ - --repo-id ${{ github.event.repository.id }} \ - --pr ${{ github.event.number }} \ - --event ${{ github.event.action }} \ - --username "$ARG_USERNAME" \ - --label-names "$ARG_LABEL_NAMES" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # these can contain special characters - ARG_USERNAME: ${{ github.event.pull_request.user.login }} - ARG_LABEL_NAMES: ${{ toJSON(github.event.pull_request.labels.*.name) }} - - name: Check permissions on repo branch - if: github.event_name == 'push' - run: true - test-aws_lambda-pinned: - needs: check-permissions - timeout-minutes: 30 - name: aws_lambda pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test aws_lambda - run: | - set -x # print commands that are executed - coverage erase - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml test-boto3-pinned: - needs: check-permissions timeout-minutes: 30 name: boto3 pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -101,8 +32,6 @@ jobs: os: [ubuntu-20.04] steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -122,15 +51,12 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-boto3-py27: - needs: check-permissions timeout-minutes: 30 name: boto3 py27, python 2.7 runs-on: ubuntu-20.04 container: python:2.7 steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Setup Test Env run: | pip install coverage "tox>=3,<4" @@ -147,7 +73,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-boto3-latest: - needs: check-permissions timeout-minutes: 30 name: boto3 latest, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -162,8 +87,6 @@ jobs: os: [ubuntu-20.04] steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -183,7 +106,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-chalice-pinned: - needs: check-permissions timeout-minutes: 30 name: chalice pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -198,8 +120,6 @@ jobs: os: [ubuntu-20.04] steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -219,7 +139,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-chalice-latest: - needs: check-permissions timeout-minutes: 30 name: chalice latest, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -234,8 +153,6 @@ jobs: os: [ubuntu-20.04] steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -255,7 +172,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-cloud_resource_context-pinned: - needs: check-permissions timeout-minutes: 30 name: cloud_resource_context pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -270,8 +186,6 @@ jobs: os: [ubuntu-20.04] steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -291,7 +205,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-gcp-pinned: - needs: check-permissions timeout-minutes: 30 name: gcp pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -306,8 +219,6 @@ jobs: os: [ubuntu-20.04] steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -328,7 +239,7 @@ jobs: files: coverage.xml check_required_tests: name: All Cloud Computing tests passed - needs: [test-aws_lambda-pinned, test-boto3-pinned, test-boto3-latest, test-boto3-py27, test-chalice-pinned, test-chalice-latest, test-cloud_resource_context-pinned, test-gcp-pinned] + needs: [test-boto3-pinned, test-boto3-latest, test-boto3-py27, test-chalice-pinned, test-chalice-latest, test-cloud_resource_context-pinned, test-gcp-pinned] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 7735d84452..6001fcf196 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -53,8 +53,12 @@ "Common": [ "common", ], - "Cloud Computing": [ + "AWS Lambda": [ + # this is separate from Cloud Computing because only this one test suite + # needs to run with access to GitHub secrets "aws_lambda", + ], + "Cloud Computing": [ "boto3", "chalice", "cloud_resource_context", From 7b7819facf0e43709467a9b4838a31e4e9622cdf Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:13:44 +0100 Subject: [PATCH 06/26] run tests as steps, not jobs --- .../test-integrations-aws-lambda.yml | 67 +- .../test-integrations-cloud-computing.yml | 176 ++--- .../workflows/test-integrations-common.yml | 43 +- .../test-integrations-data-processing.yml | 302 ++------- .../workflows/test-integrations-databases.yml | 390 ++--------- .../workflows/test-integrations-graphql.yml | 210 ++---- .../test-integrations-miscellaneous.yml | 168 ++--- .../test-integrations-networking.yml | 188 ++--- .../test-integrations-web-frameworks-1.yml | 385 ++--------- .../test-integrations-web-frameworks-2.yml | 641 ++++-------------- .../split-tox-gh-actions.py | 27 +- .../split-tox-gh-actions/templates/base.jinja | 22 +- 12 files changed, 608 insertions(+), 2011 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index 59155a3bda..8e2cf40c6c 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -50,9 +50,9 @@ jobs: if: github.event_name == 'push' run: true test-aws_lambda-pinned: - needs: check-permissions + name: AWS Lambda (pinned) timeout-minutes: 30 - name: aws_lambda pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} + needs: check-permissions runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -73,7 +73,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test aws_lambda + - name: Test aws_lambda pinned run: | set -x # print commands that are executed coverage erase @@ -85,6 +85,67 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml + test-aws_lambda-py27: + name: AWS Lambda (py27) + timeout-minutes: 30 + needs: check-permissions + runs-on: ubuntu-20.04 + container: python:2.7 + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test aws_lambda py27 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-aws_lambda" --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-aws_lambda-latest: + name: AWS Lambda (latest) + timeout-minutes: 30 + needs: check-permissions + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test aws_lambda latest + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All AWS Lambda tests passed needs: [test-aws_lambda-pinned] diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index e817166d35..ab3a86c31f 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-boto3-pinned: + test-cloud_computing-pinned: + name: Cloud Computing (pinned) timeout-minutes: 30 - name: boto3 pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.11","3.12"] + python-version: ["2.7","3.6","3.7","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 @@ -38,7 +38,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test boto3 + - name: Test boto3 pinned run: | set -x # print commands that are executed coverage erase @@ -46,13 +46,37 @@ jobs: ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i + - name: Test chalice pinned + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test cloud_resource_context pinned + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test gcp pinned + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 - test-boto3-py27: + test-cloud_computing-py27: + name: Cloud Computing (py27) timeout-minutes: 30 - name: boto3 py27, python 2.7 runs-on: ubuntu-20.04 container: python:2.7 steps: @@ -60,7 +84,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test boto3 + - name: Test boto3 py27 run: | set -x # print commands that are executed coverage erase @@ -68,84 +92,42 @@ jobs: ./scripts/runtox.sh --exclude-latest "py2.7-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-boto3-latest: - timeout-minutes: 30 - name: boto3 latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 boto3 + - name: Test chalice py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-chalice-pinned: - timeout-minutes: 30 - name: chalice pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 + - name: Test cloud_resource_context py27 run: | - pip install coverage "tox>=3,<4" - - name: Test chalice + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test gcp py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-chalice-latest: + test-cloud_computing-latest: + name: Cloud Computing (latest) timeout-minutes: 30 - name: chalice latest, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.10"] + python-version: ["2.7","3.6","3.7","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 @@ -159,78 +141,36 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test chalice + - name: Test boto3 latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-cloud_resource_context-pinned: - timeout-minutes: 30 - name: cloud_resource_context pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 + - name: Test chalice latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-gcp-pinned: - timeout-minutes: 30 - name: gcp pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - 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 + - name: Test cloud_resource_context latest run: | - pip install coverage "tox>=3,<4" - - name: Test gcp + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test gcp latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 1787b52855..62efb8a828 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -18,13 +18,13 @@ env: ${{ github.workspace }}/dist-serverless jobs: test-common-pinned: + name: Common (pinned) timeout-minutes: 30 - name: common pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["2.7","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 @@ -38,7 +38,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test common + - name: Test common pinned run: | set -x # print commands that are executed coverage erase @@ -51,8 +51,8 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-common-py27: + name: Common (py27) timeout-minutes: 30 - name: common py27, python 2.7 runs-on: ubuntu-20.04 container: python:2.7 steps: @@ -60,7 +60,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test common + - name: Test common py27 run: | set -x # print commands that are executed coverage erase @@ -72,6 +72,39 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml + test-common-latest: + name: Common (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 latest + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-common-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Common tests passed needs: [test-common-pinned, test-common-py27] diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 8c042ab751..9c731abdc3 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-arq-pinned: + test-data_processing-pinned: + name: Data Processing (pinned) timeout-minutes: 30 - name: arq pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.11"] + python-version: ["2.7","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 @@ -38,7 +38,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test arq + - name: Test arq pinned run: | set -x # print commands that are executed coverage erase @@ -46,145 +46,45 @@ jobs: ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-arq-latest: - timeout-minutes: 30 - name: arq latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 + - name: Test beam pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-beam-pinned: - timeout-minutes: 30 - name: beam pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - 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 + - name: Test celery pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-beam-latest: - timeout-minutes: 30 - name: beam latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 beam + - name: Test huey pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-celery-pinned: - timeout-minutes: 30 - name: celery pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.8","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 + - name: Test rq pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-celery-py27: + test-data_processing-py27: + name: Data Processing (py27) timeout-minutes: 30 - name: celery py27, python 2.7 runs-on: ubuntu-20.04 container: python:2.7 steps: @@ -192,95 +92,31 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test celery + - name: Test arq py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-celery-latest: - timeout-minutes: 30 - name: celery latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test beam py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-huey-pinned: - timeout-minutes: 30 - name: huey pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 + - name: Test celery py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-huey-py27: - timeout-minutes: 30 - name: huey py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test huey + - name: Test huey py27 run: | set -x # print commands that are executed coverage erase @@ -288,51 +124,26 @@ jobs: ./scripts/runtox.sh --exclude-latest "py2.7-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-huey-latest: - timeout-minutes: 30 - name: huey latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 + - name: Test rq py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-rq-pinned: + test-data_processing-latest: + name: Data Processing (latest) timeout-minutes: 30 - name: rq pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.9","3.11","3.12"] + python-version: ["2.7","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 @@ -346,62 +157,39 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test rq + - name: Test arq latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-rq-py27: - timeout-minutes: 30 - name: rq py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env + - name: Test beam latest run: | - pip install coverage "tox>=3,<4" - - name: Test rq + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test celery latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-rq-latest: - timeout-minutes: 30 - name: rq latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 + - name: Test huey latest run: | - pip install coverage "tox>=3,<4" - - name: Test rq + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test rq latest run: | set -x # print commands that are executed coverage erase diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 44c8381457..5b3f1f88ab 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-asyncpg-pinned: + test-databases-pinned: + name: Databases (pinned) timeout-minutes: 30 - name: asyncpg pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.10"] + python-version: ["2.7","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 @@ -60,7 +60,7 @@ jobs: 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 + - name: Test asyncpg pinned run: | set -x # print commands that are executed coverage erase @@ -68,188 +68,39 @@ jobs: ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-asyncpg-latest: - timeout-minutes: 30 - name: asyncpg latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - 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 + - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-clickhouse_driver-pinned: - timeout-minutes: 30 - name: clickhouse_driver pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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] - 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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - 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 clickhouse_driver + - name: Test pymongo pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-clickhouse_driver-latest: - timeout-minutes: 30 - name: clickhouse_driver latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - 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 clickhouse_driver + - name: Test sqlalchemy pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-pymongo-pinned: + test-databases-py27: + name: Databases (py27) timeout-minutes: 30 - name: pymongo pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","3.9","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] + runs-on: ubuntu-20.04 + container: python:2.7 services: postgres: image: postgres @@ -268,63 +119,32 @@ jobs: 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 + SENTRY_PYTHON_TEST_POSTGRES_HOST: postgres 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" - 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 pymongo + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test asyncpg py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-pymongo-py27: - timeout-minutes: 30 - name: pymongo py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - 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 - - uses: getsentry/action-clickhouse-in-ci@v1 - - name: Setup Test Env + - name: Test clickhouse_driver py27 run: | - pip install coverage "tox>=3,<4" - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - - name: Test pymongo + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pymongo py27 run: | set -x # print commands that are executed coverage erase @@ -332,73 +152,26 @@ jobs: ./scripts/runtox.sh --exclude-latest "py2.7-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-pymongo-latest: - timeout-minutes: 30 - name: pymongo latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - 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 pymongo + - name: Test sqlalchemy py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-sqlalchemy-pinned: + test-databases-latest: + name: Databases (latest) timeout-minutes: 30 - name: sqlalchemy pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.9","3.11"] + python-version: ["2.7","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 @@ -434,106 +207,31 @@ jobs: 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 sqlalchemy + - name: Test asyncpg latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-sqlalchemy-py27: - timeout-minutes: 30 - name: sqlalchemy py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - 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 - - uses: getsentry/action-clickhouse-in-ci@v1 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - - name: Test sqlalchemy + - name: Test clickhouse_driver latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-sqlalchemy-latest: - timeout-minutes: 30 - name: sqlalchemy latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - name: Setup Test Env + - name: Test pymongo latest 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 sqlalchemy + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test sqlalchemy latest run: | set -x # print commands that are executed coverage erase diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 00ad2ac285..43c1cea6b6 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-ariadne-pinned: + test-graphql-pinned: + name: GraphQL (pinned) timeout-minutes: 30 - name: ariadne pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.8","3.11"] + python-version: ["3.7","3.8","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 @@ -38,7 +38,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test ariadne + - name: Test ariadne pinned run: | set -x # print commands that are executed coverage erase @@ -46,183 +46,88 @@ jobs: ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-ariadne-latest: - timeout-minutes: 30 - name: ariadne latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test gql pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-gql-pinned: - timeout-minutes: 30 - name: gql pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 + - name: Test graphene pinned run: | - pip install coverage "tox>=3,<4" - - name: Test gql + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test strawberry pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-gql-latest: + test-graphql-py27: + name: GraphQL (py27) timeout-minutes: 30 - name: gql latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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] + runs-on: ubuntu-20.04 + container: python:2.7 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 + - name: Test ariadne py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-graphene-pinned: - timeout-minutes: 30 - name: graphene pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 graphene + - name: Test gql py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-graphene-latest: - timeout-minutes: 30 - name: graphene latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 + - name: Test graphene py27 run: | - pip install coverage "tox>=3,<4" - - name: Test graphene + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test strawberry py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-strawberry-pinned: + test-graphql-latest: + name: GraphQL (latest) timeout-minutes: 30 - name: strawberry pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.8","3.11"] + python-version: ["3.7","3.8","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 @@ -236,40 +141,31 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test strawberry + - name: Test ariadne latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-strawberry-latest: - timeout-minutes: 30 - name: strawberry latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test gql latest run: | - pip install coverage "tox>=3,<4" - - name: Test strawberry + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test graphene latest + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test strawberry latest run: | set -x # print commands that are executed coverage erase diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 2e6b3cafa2..9b1f825cbe 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-loguru-pinned: + test-miscellaneous-pinned: + name: Miscellaneous (pinned) timeout-minutes: 30 - name: loguru pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.5","3.11","3.12"] + python-version: ["3.5","3.6","3.7","3.8","3.9","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 @@ -38,7 +38,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test loguru + - name: Test loguru pinned run: | set -x # print commands that are executed coverage erase @@ -46,117 +46,88 @@ jobs: ./scripts/runtox.sh --exclude-latest "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 - test-loguru-latest: - timeout-minutes: 30 - name: loguru latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 + - name: Test opentelemetry pinned run: | - pip install coverage "tox>=3,<4" - - name: Test loguru + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pure_eval pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test trytond pinned + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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 - test-opentelemetry-pinned: + test-miscellaneous-py27: + name: Miscellaneous (py27) timeout-minutes: 30 - name: opentelemetry pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.9","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] + runs-on: ubuntu-20.04 + container: python:2.7 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 + - name: Test loguru py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-pure_eval-pinned: - timeout-minutes: 30 - name: pure_eval pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 + - name: Test opentelemetry py27 run: | - pip install coverage "tox>=3,<4" - - name: Test pure_eval + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pure_eval py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test trytond py27 + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-trytond-pinned: + test-miscellaneous-latest: + name: Miscellaneous (latest) timeout-minutes: 30 - name: trytond pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.8","3.11","3.12"] + python-version: ["3.5","3.6","3.7","3.8","3.9","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 @@ -170,40 +141,31 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test trytond + - name: Test loguru latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-trytond-latest: - timeout-minutes: 30 - name: trytond latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test opentelemetry latest run: | - pip install coverage "tox>=3,<4" - - name: Test trytond + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pure_eval latest + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test trytond latest run: | set -x # print commands that are executed coverage erase diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 40973d99cb..6c6263f7ee 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-gevent-pinned: + test-networking-pinned: + name: Networking (pinned) timeout-minutes: 30 - name: gevent pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.6","3.8","3.10","3.11"] + python-version: ["2.7","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 @@ -38,7 +38,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test gevent + - name: Test gevent pinned run: | set -x # print commands that are executed coverage erase @@ -46,13 +46,37 @@ jobs: ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i + - name: Test grpc pinned + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test httpx pinned + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test requests pinned + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "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-gevent-py27: + test-networking-py27: + name: Networking (py27) timeout-minutes: 30 - name: gevent py27, python 2.7 runs-on: ubuntu-20.04 container: python:2.7 steps: @@ -60,7 +84,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test gevent + - name: Test gevent py27 run: | set -x # print commands that are executed coverage erase @@ -68,117 +92,42 @@ jobs: ./scripts/runtox.sh --exclude-latest "py2.7-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-grpc-pinned: - timeout-minutes: 30 - name: grpc pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 grpc + - name: Test grpc py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-grpc-latest: - timeout-minutes: 30 - name: grpc latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test httpx py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-httpx-pinned: - timeout-minutes: 30 - name: httpx pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","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 + - name: Test requests py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-httpx-latest: + test-networking-latest: + name: Networking (latest) timeout-minutes: 30 - name: httpx latest, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.9","3.11","3.12"] + python-version: ["2.7","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 @@ -192,67 +141,36 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test httpx + - name: Test gevent latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-requests-pinned: - timeout-minutes: 30 - name: requests pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test grpc latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-requests-py27: - timeout-minutes: 30 - name: requests py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env + - name: Test httpx latest run: | - pip install coverage "tox>=3,<4" - - name: Test requests + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test requests latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 53c236a24f..fa1b967625 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-django-pinned: + test-web_frameworks_1-pinned: + name: Web Frameworks 1 (pinned) timeout-minutes: 30 - name: django pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["2.7","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 @@ -59,7 +59,7 @@ jobs: 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 + - name: Test django pinned run: | set -x # print commands that are executed coverage erase @@ -67,174 +67,39 @@ jobs: ./scripts/runtox.sh --exclude-latest "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-django-py27: - timeout-minutes: 30 - name: django py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - 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" - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - - name: Test django + - name: Test fastapi pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-django-latest: - timeout-minutes: 30 - name: django latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 + - name: Test flask pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-fastapi-pinned: - timeout-minutes: 30 - name: fastapi pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.10"] - # python3.6 reached EOL and is no longer being supported on - # new versions of hosted runners on Github Actions - # ubuntu-20.04 is the last version that supported python3.6 - # 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 fastapi + - name: Test starlette pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-fastapi-latest: + test-web_frameworks_1-py27: + name: Web Frameworks 1 (py27) timeout-minutes: 30 - name: fastapi latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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] + runs-on: ubuntu-20.04 + container: python:2.7 services: postgres: image: postgres @@ -253,115 +118,31 @@ jobs: 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 + SENTRY_PYTHON_TEST_POSTGRES_HOST: postgres 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 fastapi + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test django py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-flask-pinned: - timeout-minutes: 30 - name: flask pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.8","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 flask + - name: Test fastapi py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-flask-py27: - timeout-minutes: 30 - name: flask py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - 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" - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - - name: Test flask + - name: Test flask py27 run: | set -x # print commands that are executed coverage erase @@ -369,72 +150,26 @@ jobs: ./scripts/runtox.sh --exclude-latest "py2.7-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-flask-latest: - timeout-minutes: 30 - name: flask latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 flask + - name: Test starlette py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-starlette-pinned: + test-web_frameworks_1-latest: + name: Web Frameworks 1 (latest) timeout-minutes: 30 - name: starlette pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.10","3.11","3.12"] + python-version: ["2.7","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 @@ -469,61 +204,31 @@ jobs: 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 starlette + - name: Test django latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-starlette-latest: - timeout-minutes: 30 - name: starlette latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test fastapi latest 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 starlette + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test flask latest + run: | + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test starlette latest run: | set -x # print commands that are executed coverage erase diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index a06b464bee..2dd3028722 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-aiohttp-pinned: + test-web_frameworks_2-pinned: + name: Web Frameworks 2 (pinned) timeout-minutes: 30 - name: aiohttp pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.9","3.11"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","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 @@ -38,7 +38,7 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test aiohttp + - name: Test aiohttp pinned run: | set -x # print commands that are executed coverage erase @@ -46,200 +46,93 @@ jobs: ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-aiohttp-latest: - timeout-minutes: 30 - name: aiohttp latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test asgi pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-asgi-pinned: - timeout-minutes: 30 - name: asgi pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 + - name: Test bottle pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-bottle-pinned: - timeout-minutes: 30 - name: bottle pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 + - name: Test falcon pinned run: | - pip install coverage "tox>=3,<4" - - name: Test bottle + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pyramid pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-bottle-py27: - timeout-minutes: 30 - name: bottle py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env + - name: Test quart pinned run: | - pip install coverage "tox>=3,<4" - - name: Test bottle + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test redis pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-bottle-latest: - timeout-minutes: 30 - name: bottle latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","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 + - name: Test rediscluster pinned run: | - pip install coverage "tox>=3,<4" - - name: Test bottle + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test sanic pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-falcon-pinned: - timeout-minutes: 30 - name: falcon pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","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 + - name: Test starlite pinned run: | - pip install coverage "tox>=3,<4" - - name: Test falcon + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test tornado pinned run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-falcon-py27: + test-web_frameworks_2-py27: + name: Web Frameworks 2 (py27) timeout-minutes: 30 - name: falcon py27, python 2.7 runs-on: ubuntu-20.04 container: python:2.7 steps: @@ -247,95 +140,39 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test falcon + - name: Test aiohttp py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-falcon-latest: - timeout-minutes: 30 - name: falcon latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 + - name: Test asgi py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-pyramid-pinned: - timeout-minutes: 30 - name: pyramid pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","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 + - name: Test bottle py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-pyramid-py27: - timeout-minutes: 30 - name: pyramid py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env + - name: Test falcon py27 run: | - pip install coverage "tox>=3,<4" - - name: Test pyramid + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pyramid py27 run: | set -x # print commands that are executed coverage erase @@ -343,205 +180,66 @@ jobs: ./scripts/runtox.sh --exclude-latest "py2.7-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-pyramid-latest: - timeout-minutes: 30 - name: pyramid latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","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 + - name: Test quart py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-quart-pinned: - timeout-minutes: 30 - name: quart pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","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 + - name: Test redis py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-quart-latest: - timeout-minutes: 30 - name: quart latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test rediscluster py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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-redis-pinned: - timeout-minutes: 30 - name: redis pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","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 + - name: Test sanic py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-redis-py27: - timeout-minutes: 30 - name: redis py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test redis + - name: Test starlite py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-redis-latest: - timeout-minutes: 30 - name: redis latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","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 + - name: Test tornado py27 run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-rediscluster-pinned: + test-web_frameworks_2-latest: + name: Web Frameworks 2 (latest) timeout-minutes: 30 - name: rediscluster pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["3.7","3.8"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","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 @@ -555,194 +253,87 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test rediscluster + - name: Test aiohttp latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-rediscluster-py27: - timeout-minutes: 30 - name: rediscluster py27, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test rediscluster + - name: Test asgi latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-sanic-pinned: - timeout-minutes: 30 - name: sanic pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.8","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 + - name: Test bottle latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-sanic-latest: - timeout-minutes: 30 - name: sanic latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test falcon latest run: | - pip install coverage "tox>=3,<4" - - name: Test sanic + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pyramid latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-starlite-pinned: - timeout-minutes: 30 - name: starlite pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test quart latest run: | - pip install coverage "tox>=3,<4" - - name: Test starlite + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test redis latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-tornado-pinned: - timeout-minutes: 30 - name: tornado pinned, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","3.9","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 + - name: Test rediscluster latest run: | - pip install coverage "tox>=3,<4" - - name: Test tornado + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test sanic latest run: | set -x # print commands that are executed coverage erase # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-tornado-latest: - timeout-minutes: 30 - name: tornado latest, python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.8","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 + - name: Test starlite latest run: | - pip install coverage "tox>=3,<4" - - name: Test tornado + set -x # print commands that are executed + coverage erase + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test tornado latest run: | set -x # print commands that are executed coverage erase diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 6001fcf196..4555d7325b 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -213,14 +213,22 @@ def find_frameworks_missing_from_groups(py_versions_pinned, py_versions_latest): def _normalize_py_versions(py_versions): - normalized = defaultdict(set) - normalized |= { - framework: sorted( - [py.replace("py", "") for py in versions], + if isinstance(py_versions, dict): + normalized = defaultdict(set) + normalized |= { + framework: sorted( + [py.replace("py", "") for py in versions], + key=lambda v: tuple(map(int, v.split("."))), + ) + for framework, versions in py_versions.items() + } + + elif isinstance(py_versions, set): + normalized = sorted( + [py.replace("py", "") for py in py_versions], key=lambda v: tuple(map(int, v.split("."))), ) - for framework, versions in py_versions.items() - } + return normalized @@ -243,6 +251,7 @@ def _union(seq): def render_template(group, frameworks, py_versions_pinned, py_versions_latest): template = ENV.get_template("base.jinja") + group_py_versions = set() needs = [] for framework in frameworks: if py_versions_pinned[framework]: @@ -252,6 +261,9 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): if "2.7" in py_versions_pinned[framework]: needs.append(f"test-{framework}-py27") + group_py_versions |= set(py_versions_pinned[framework]) + group_py_versions |= set(py_versions_latest[framework]) + context = { "group": group, "frameworks": frameworks, @@ -261,6 +273,9 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): "needs_github_secrets": bool( set(frameworks) & FRAMEWORKS_NEEDING_GITHUB_SECRETS ), + "versions": [ + f'"{version}"' for version in _normalize_py_versions(group_py_versions) + ], "py_versions": { framework: { # already formatted for including in the matrix diff --git a/scripts/split-tox-gh-actions/templates/base.jinja b/scripts/split-tox-gh-actions/templates/base.jinja index c6ccf338e2..7f76543147 100644 --- a/scripts/split-tox-gh-actions/templates/base.jinja +++ b/scripts/split-tox-gh-actions/templates/base.jinja @@ -45,26 +45,16 @@ jobs: {% include "check_permissions.jinja" %} {% endif %} -{% for framework in frameworks %} - -{% if py_versions.get(framework).pinned %} -{% with category="pinned", versions=py_versions.get(framework).pinned %} -{% include "test.jinja" %} +{% with category="pinned" %} +{% include "test_group.jinja" %} {% endwith %} -{% endif %} -{% if py_versions.get(framework).py27 %} -{% with category="py27", versions=py_versions.get(framework).py27 %} -{% include "test.jinja" %} +{% with category="py27" %} +{% include "test_group.jinja" %} {% endwith %} -{% endif %} -{% if py_versions.get(framework).latest %} -{% with category="latest", versions=py_versions.get(framework).latest %} -{% include "test.jinja" %} +{% with category="latest" %} +{% include "test_group.jinja" %} {% endwith %} -{% endif %} - -{% endfor %} {% include "check_required.jinja" %} From 5bdeeb145a8b3db45dc6d8de793818436e3c94b7 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:33:36 +0100 Subject: [PATCH 07/26] wip --- .../test-integrations-aws-lambda.yml | 6 +--- .../test-integrations-cloud-computing.yml | 15 +------- .../workflows/test-integrations-common.yml | 6 +--- .../test-integrations-data-processing.yml | 18 +--------- .../workflows/test-integrations-databases.yml | 15 +------- .../workflows/test-integrations-graphql.yml | 15 +------- .../test-integrations-miscellaneous.yml | 15 +------- .../test-integrations-networking.yml | 15 +------- .../test-integrations-web-frameworks-1.yml | 15 +------- .../test-integrations-web-frameworks-2.yml | 36 +------------------ .../split-tox-gh-actions.py | 2 +- .../templates/check_required.jinja | 10 ++++-- 12 files changed, 18 insertions(+), 150 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index 8e2cf40c6c..ec65ff69bf 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -76,7 +76,6 @@ jobs: - name: Test aws_lambda pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -101,7 +100,6 @@ jobs: - name: Test aws_lambda py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -137,7 +135,6 @@ jobs: - name: Test aws_lambda latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -148,12 +145,11 @@ jobs: files: coverage.xml check_required_tests: name: All AWS Lambda tests passed - needs: [test-aws_lambda-pinned] # 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-pinned.result, 'failure') + if: contains(needs.test-aws_lambda-pinned.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-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index ab3a86c31f..e5667902eb 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -41,7 +41,6 @@ jobs: - name: Test boto3 pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -49,7 +48,6 @@ jobs: - name: Test chalice pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -57,7 +55,6 @@ jobs: - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -65,7 +62,6 @@ jobs: - name: Test gcp pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -87,7 +83,6 @@ jobs: - name: Test boto3 py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -95,7 +90,6 @@ jobs: - name: Test chalice py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -103,7 +97,6 @@ jobs: - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -111,7 +104,6 @@ jobs: - name: Test gcp py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -144,7 +136,6 @@ jobs: - name: Test boto3 latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -152,7 +143,6 @@ jobs: - name: Test chalice latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -160,7 +150,6 @@ jobs: - name: Test cloud_resource_context latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -168,7 +157,6 @@ jobs: - name: Test gcp latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -179,12 +167,11 @@ jobs: files: coverage.xml check_required_tests: name: All Cloud Computing tests passed - needs: [test-boto3-pinned, test-boto3-latest, test-boto3-py27, test-chalice-pinned, test-chalice-latest, test-cloud_resource_context-pinned, test-gcp-pinned] # 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-pinned.result, 'failure') + if: contains(needs.test-cloud_computing-pinned.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-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 62efb8a828..04f8159aea 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -41,7 +41,6 @@ jobs: - name: Test common pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -63,7 +62,6 @@ jobs: - name: Test common py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -96,7 +94,6 @@ jobs: - name: Test common latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-common-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -107,12 +104,11 @@ jobs: files: coverage.xml check_required_tests: name: All Common tests passed - needs: [test-common-pinned, test-common-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-pinned.result, 'failure') + if: contains(needs.test-common-pinned.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-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 9c731abdc3..0bb2a10708 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -41,7 +41,6 @@ jobs: - name: Test arq pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -49,7 +48,6 @@ jobs: - name: Test beam pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -57,7 +55,6 @@ jobs: - name: Test celery pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -65,7 +62,6 @@ jobs: - name: Test huey pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -73,7 +69,6 @@ jobs: - name: Test rq pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -95,7 +90,6 @@ jobs: - name: Test arq py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -103,7 +97,6 @@ jobs: - name: Test beam py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -111,7 +104,6 @@ jobs: - name: Test celery py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -119,7 +111,6 @@ jobs: - name: Test huey py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -127,7 +118,6 @@ jobs: - name: Test rq py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -160,7 +150,6 @@ jobs: - name: Test arq latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -168,7 +157,6 @@ jobs: - name: Test beam latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -176,7 +164,6 @@ jobs: - name: Test celery latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -184,7 +171,6 @@ jobs: - name: Test huey latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -192,7 +178,6 @@ jobs: - name: Test rq latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -203,12 +188,11 @@ jobs: files: coverage.xml check_required_tests: name: All Data Processing tests passed - needs: [test-arq-pinned, test-arq-latest, test-beam-pinned, test-beam-latest, test-celery-pinned, test-celery-latest, test-celery-py27, test-huey-pinned, test-huey-latest, test-huey-py27, test-rq-pinned, test-rq-latest, test-rq-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-pinned.result, 'failure') + if: contains(needs.test-data_processing-pinned.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-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 5b3f1f88ab..b9bee6b9ee 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -63,7 +63,6 @@ jobs: - name: Test asyncpg pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -71,7 +70,6 @@ jobs: - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -79,7 +77,6 @@ jobs: - name: Test pymongo pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -87,7 +84,6 @@ jobs: - name: Test sqlalchemy pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -131,7 +127,6 @@ jobs: - name: Test asyncpg py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -139,7 +134,6 @@ jobs: - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -147,7 +141,6 @@ jobs: - name: Test pymongo py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -155,7 +148,6 @@ jobs: - name: Test sqlalchemy py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -210,7 +202,6 @@ jobs: - name: Test asyncpg latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -218,7 +209,6 @@ jobs: - name: Test clickhouse_driver latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -226,7 +216,6 @@ jobs: - name: Test pymongo latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -234,7 +223,6 @@ jobs: - name: Test sqlalchemy latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -245,12 +233,11 @@ jobs: files: coverage.xml check_required_tests: name: All Databases tests passed - needs: [test-asyncpg-pinned, test-asyncpg-latest, test-clickhouse_driver-pinned, test-clickhouse_driver-latest, test-pymongo-pinned, test-pymongo-latest, test-pymongo-py27, test-sqlalchemy-pinned, test-sqlalchemy-latest, test-sqlalchemy-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-pinned.result, 'failure') + if: contains(needs.test-databases-pinned.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-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 43c1cea6b6..5a9ad9eec0 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -41,7 +41,6 @@ jobs: - name: Test ariadne pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -49,7 +48,6 @@ jobs: - name: Test gql pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -57,7 +55,6 @@ jobs: - name: Test graphene pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -65,7 +62,6 @@ jobs: - name: Test strawberry pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -87,7 +83,6 @@ jobs: - name: Test ariadne py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -95,7 +90,6 @@ jobs: - name: Test gql py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -103,7 +97,6 @@ jobs: - name: Test graphene py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -111,7 +104,6 @@ jobs: - name: Test strawberry py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -144,7 +136,6 @@ jobs: - name: Test ariadne latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -152,7 +143,6 @@ jobs: - name: Test gql latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -160,7 +150,6 @@ jobs: - name: Test graphene latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -168,7 +157,6 @@ jobs: - name: Test strawberry latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -179,12 +167,11 @@ jobs: files: coverage.xml check_required_tests: name: All GraphQL tests passed - needs: [test-ariadne-pinned, test-ariadne-latest, test-gql-pinned, test-gql-latest, test-graphene-pinned, test-graphene-latest, test-strawberry-pinned, test-strawberry-latest] # 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-pinned.result, 'failure') + if: contains(needs.test-graphql-pinned.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-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 9b1f825cbe..41a61ba306 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -41,7 +41,6 @@ jobs: - name: Test loguru pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -49,7 +48,6 @@ jobs: - name: Test opentelemetry pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -57,7 +55,6 @@ jobs: - name: Test pure_eval pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -65,7 +62,6 @@ jobs: - name: Test trytond pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -87,7 +83,6 @@ jobs: - name: Test loguru py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -95,7 +90,6 @@ jobs: - name: Test opentelemetry py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -103,7 +97,6 @@ jobs: - name: Test pure_eval py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -111,7 +104,6 @@ jobs: - name: Test trytond py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -144,7 +136,6 @@ jobs: - name: Test loguru latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -152,7 +143,6 @@ jobs: - name: Test opentelemetry latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -160,7 +150,6 @@ jobs: - name: Test pure_eval latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -168,7 +157,6 @@ jobs: - name: Test trytond latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -179,12 +167,11 @@ jobs: files: coverage.xml check_required_tests: name: All Miscellaneous tests passed - needs: [test-loguru-pinned, test-loguru-latest, test-opentelemetry-pinned, test-pure_eval-pinned, test-trytond-pinned, test-trytond-latest] # 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-pinned.result, 'failure') + if: contains(needs.test-miscellaneous-pinned.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-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 6c6263f7ee..18ac12609d 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -41,7 +41,6 @@ jobs: - name: Test gevent pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -49,7 +48,6 @@ jobs: - name: Test grpc pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -57,7 +55,6 @@ jobs: - name: Test httpx pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -65,7 +62,6 @@ jobs: - name: Test requests pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -87,7 +83,6 @@ jobs: - name: Test gevent py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -95,7 +90,6 @@ jobs: - name: Test grpc py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -103,7 +97,6 @@ jobs: - name: Test httpx py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -111,7 +104,6 @@ jobs: - name: Test requests py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -144,7 +136,6 @@ jobs: - name: Test gevent latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -152,7 +143,6 @@ jobs: - name: Test grpc latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -160,7 +150,6 @@ jobs: - name: Test httpx latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -168,7 +157,6 @@ jobs: - name: Test requests latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -179,12 +167,11 @@ jobs: files: coverage.xml check_required_tests: name: All Networking tests passed - needs: [test-gevent-pinned, test-gevent-py27, test-grpc-pinned, test-grpc-latest, test-httpx-pinned, test-httpx-latest, test-requests-pinned, test-requests-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-pinned.result, 'failure') + if: contains(needs.test-networking-pinned.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-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index fa1b967625..33c43dc637 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -62,7 +62,6 @@ jobs: - name: Test django pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -70,7 +69,6 @@ jobs: - name: Test fastapi pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -78,7 +76,6 @@ jobs: - name: Test flask pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -86,7 +83,6 @@ jobs: - name: Test starlette pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -129,7 +125,6 @@ jobs: - name: Test django py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -137,7 +132,6 @@ jobs: - name: Test fastapi py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -145,7 +139,6 @@ jobs: - name: Test flask py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -153,7 +146,6 @@ jobs: - name: Test starlette py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -207,7 +199,6 @@ jobs: - name: Test django latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -215,7 +206,6 @@ jobs: - name: Test fastapi latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -223,7 +213,6 @@ jobs: - name: Test flask latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -231,7 +220,6 @@ jobs: - name: Test starlette latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -242,12 +230,11 @@ jobs: files: coverage.xml check_required_tests: name: All Web Frameworks 1 tests passed - needs: [test-django-pinned, test-django-latest, test-django-py27, test-fastapi-pinned, test-fastapi-latest, test-flask-pinned, test-flask-latest, test-flask-py27, test-starlette-pinned, test-starlette-latest] # 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-pinned.result, 'failure') + if: contains(needs.test-web_frameworks_1-pinned.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-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 2dd3028722..857f785619 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -41,7 +41,6 @@ jobs: - name: Test aiohttp pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -49,7 +48,6 @@ jobs: - name: Test asgi pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -57,7 +55,6 @@ jobs: - name: Test bottle pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -65,7 +62,6 @@ jobs: - name: Test falcon pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -73,7 +69,6 @@ jobs: - name: Test pyramid pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -81,7 +76,6 @@ jobs: - name: Test quart pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -89,7 +83,6 @@ jobs: - name: Test redis pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -97,7 +90,6 @@ jobs: - name: Test rediscluster pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -105,7 +97,6 @@ jobs: - name: Test sanic pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -113,7 +104,6 @@ jobs: - name: Test starlite pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -121,7 +111,6 @@ jobs: - name: Test tornado pinned run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -143,7 +132,6 @@ jobs: - name: Test aiohttp py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -151,7 +139,6 @@ jobs: - name: Test asgi py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -159,7 +146,6 @@ jobs: - name: Test bottle py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -167,7 +153,6 @@ jobs: - name: Test falcon py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -175,7 +160,6 @@ jobs: - name: Test pyramid py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -183,7 +167,6 @@ jobs: - name: Test quart py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -191,7 +174,6 @@ jobs: - name: Test redis py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -199,7 +181,6 @@ jobs: - name: Test rediscluster py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -207,7 +188,6 @@ jobs: - name: Test sanic py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -215,7 +195,6 @@ jobs: - name: Test starlite py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -223,7 +202,6 @@ jobs: - name: Test tornado py27 run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -256,7 +234,6 @@ jobs: - name: Test aiohttp latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -264,7 +241,6 @@ jobs: - name: Test asgi latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -272,7 +248,6 @@ jobs: - name: Test bottle latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -280,7 +255,6 @@ jobs: - name: Test falcon latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -288,7 +262,6 @@ jobs: - name: Test pyramid latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -296,7 +269,6 @@ jobs: - name: Test quart latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -304,7 +276,6 @@ jobs: - name: Test redis latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -312,7 +283,6 @@ jobs: - name: Test rediscluster latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -320,7 +290,6 @@ jobs: - name: Test sanic latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -328,7 +297,6 @@ jobs: - name: Test starlite latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -336,7 +304,6 @@ jobs: - name: Test tornado latest run: | set -x # print commands that are executed - coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && @@ -347,12 +314,11 @@ jobs: files: coverage.xml check_required_tests: name: All Web Frameworks 2 tests passed - needs: [test-aiohttp-pinned, test-aiohttp-latest, test-asgi-pinned, test-bottle-pinned, test-bottle-latest, test-bottle-py27, test-falcon-pinned, test-falcon-latest, test-falcon-py27, test-pyramid-pinned, test-pyramid-latest, test-pyramid-py27, test-quart-pinned, test-quart-latest, test-redis-pinned, test-redis-latest, test-redis-py27, test-rediscluster-pinned, test-rediscluster-py27, test-sanic-pinned, test-sanic-latest, test-starlite-pinned, test-tornado-pinned, test-tornado-latest] # 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-pinned.result, 'failure') + if: contains(needs.test-web_frameworks_2-pinned.result, 'failure') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 4555d7325b..c5b0cc7bf3 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -273,7 +273,7 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): "needs_github_secrets": bool( set(frameworks) & FRAMEWORKS_NEEDING_GITHUB_SECRETS ), - "versions": [ + "all_versions": [ f'"{version}"' for version in _normalize_py_versions(group_py_versions) ], "py_versions": { diff --git a/scripts/split-tox-gh-actions/templates/check_required.jinja b/scripts/split-tox-gh-actions/templates/check_required.jinja index 3476c4f5a5..36ef40e71c 100644 --- a/scripts/split-tox-gh-actions/templates/check_required.jinja +++ b/scripts/split-tox-gh-actions/templates/check_required.jinja @@ -1,17 +1,21 @@ check_required_tests: name: All {{ group }} tests passed - needs: {{ needs }} + {% if py_versions.pinned and py_versions.py27 %} + needs: [test-{{ group | replace(" ", "_") | lower }}-pinned, test-{{ group | replace(" ", "_") | lower }}-py27] + {% elif py_versions.pinned %} + needs: test-{{ group | replace(" ", "_") | lower }}-pinned + {% endif %} # 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-pinned.result, 'failure') + if: contains(needs.test-{{ group | replace(" ", "_") | lower }}-pinned.result, 'failure') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 {% if py_versions.py27 %} - name: Check for 2.7 failures - if: contains(needs.test-py27.result, 'failure') + if: contains(needs.test-{{ group | replace(" ", "_") | lower }}-py27.result, 'failure') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 {% endif %} From f1adb0b373f09689e179bd70e47a10c2745b9c65 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:40:10 +0100 Subject: [PATCH 08/26] wip --- .../test-integrations-aws-lambda.yml | 94 ------ .../test-integrations-cloud-computing.yml | 148 --------- .../workflows/test-integrations-common.yml | 85 ----- .../test-integrations-data-processing.yml | 169 ---------- .../workflows/test-integrations-databases.yml | 214 ------------- .../workflows/test-integrations-graphql.yml | 148 --------- .../test-integrations-miscellaneous.yml | 148 --------- .../test-integrations-networking.yml | 148 --------- .../test-integrations-web-frameworks-1.yml | 211 ------------- .../test-integrations-web-frameworks-2.yml | 295 ------------------ .../split-tox-gh-actions.py | 10 +- .../split-tox-gh-actions/templates/base.jinja | 6 + .../split-tox-gh-actions/templates/test.jinja | 94 ------ 13 files changed, 11 insertions(+), 1759 deletions(-) delete mode 100644 scripts/split-tox-gh-actions/templates/test.jinja diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index ec65ff69bf..e336d31229 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -49,100 +49,6 @@ jobs: - name: Check permissions on repo branch if: github.event_name == 'push' run: true - test-aws_lambda-pinned: - name: AWS Lambda (pinned) - timeout-minutes: 30 - needs: check-permissions - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test aws_lambda pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-aws_lambda-py27: - name: AWS Lambda (py27) - timeout-minutes: 30 - needs: check-permissions - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test aws_lambda py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-aws_lambda" --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-aws_lambda-latest: - name: AWS Lambda (latest) - timeout-minutes: 30 - needs: check-permissions - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["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 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test aws_lambda latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All AWS Lambda tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index e5667902eb..89d500d477 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -17,154 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-cloud_computing-pinned: - name: Cloud Computing (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","3.6","3.7","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 boto3 pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test chalice pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test cloud_resource_context pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test gcp pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-cloud_computing-py27: - name: Cloud Computing (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test boto3 py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test chalice py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test cloud_resource_context py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test gcp py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-cloud_computing-latest: - name: Cloud Computing (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","3.6","3.7","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 boto3 latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test chalice latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test cloud_resource_context latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test gcp latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Cloud Computing tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 04f8159aea..cbe83c6056 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -17,91 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-common-pinned: - name: Common (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml - test-common-py27: - name: Common (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test common py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-common-latest: - name: Common (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-common-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Common tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 0bb2a10708..f7b7865966 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -17,175 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-data_processing-pinned: - name: Data Processing (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 arq pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test beam pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test celery pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test huey pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test rq pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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-data_processing-py27: - name: Data Processing (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test arq py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test beam py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test celery py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test huey py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test rq py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-data_processing-latest: - name: Data Processing (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 arq latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test beam latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test celery latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test huey latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test rq latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Data Processing tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index b9bee6b9ee..934c41a16f 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -17,220 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-databases-pinned: - name: Databases (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - 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 pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test clickhouse_driver pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pymongo pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test sqlalchemy pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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-databases-py27: - name: Databases (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - 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 - - uses: getsentry/action-clickhouse-in-ci@v1 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - - name: Test asyncpg py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test clickhouse_driver py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pymongo py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test sqlalchemy py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-databases-latest: - name: Databases (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 }} - - uses: getsentry/action-clickhouse-in-ci@v1 - - 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 latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test clickhouse_driver latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pymongo latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test sqlalchemy latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Databases tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 5a9ad9eec0..9b47c744db 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -17,154 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-graphql-pinned: - name: GraphQL (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","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 pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test gql pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test graphene pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test strawberry pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-graphql-py27: - name: GraphQL (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test ariadne py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test gql py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test graphene py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test strawberry py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-graphql-latest: - name: GraphQL (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.7","3.8","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 latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test gql latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test graphene latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test strawberry latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All GraphQL tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 41a61ba306..69eb506057 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -17,154 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-miscellaneous-pinned: - name: Miscellaneous (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","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 pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test opentelemetry pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pure_eval pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test trytond pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-miscellaneous-py27: - name: Miscellaneous (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test loguru py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test opentelemetry py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pure_eval py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test trytond py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-miscellaneous-latest: - name: Miscellaneous (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","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 latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test opentelemetry latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pure_eval latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test trytond latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Miscellaneous tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 18ac12609d..8674c14ed9 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -17,154 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-networking-pinned: - name: Networking (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 gevent pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test grpc pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test httpx pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test requests pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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-networking-py27: - name: Networking (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test gevent py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test grpc py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test httpx py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test requests py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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-networking-latest: - name: Networking (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 gevent latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test grpc latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test httpx latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test requests latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Networking tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 33c43dc637..91203b6676 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -17,217 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-web_frameworks_1-pinned: - name: Web Frameworks 1 (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test fastapi pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test flask pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test starlette pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-web_frameworks_1-py27: - name: Web Frameworks 1 (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - 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" - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - - name: Test django py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test fastapi py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test flask py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test starlette py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-web_frameworks_1-latest: - name: Web Frameworks 1 (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","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 latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test fastapi latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test flask latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test starlette latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Web Frameworks 1 tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 857f785619..382a47e275 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -17,301 +17,6 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-web_frameworks_2-pinned: - name: Web Frameworks 2 (pinned) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","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 aiohttp pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test asgi pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test bottle pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test falcon pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pyramid pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test quart pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test redis pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test rediscluster pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test sanic pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test starlite pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test tornado pinned - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "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 - test-web_frameworks_2-py27: - name: Web Frameworks 2 (py27) - timeout-minutes: 30 - runs-on: ubuntu-20.04 - container: python:2.7 - steps: - - uses: actions/checkout@v4 - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - - name: Test aiohttp py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test asgi py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test bottle py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test falcon py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pyramid py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test quart py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test redis py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test rediscluster py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test sanic py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test starlite py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test tornado py27 - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-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 - test-web_frameworks_2-latest: - name: Web Frameworks 2 (latest) - timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","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 aiohttp latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test asgi latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test bottle latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test falcon latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test pyramid latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test quart latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test redis latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test rediscluster latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test sanic latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test starlite latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - name: Test tornado latest - run: | - set -x # print commands that are executed - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && - coverage xml -i - - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.xml check_required_tests: name: All Web Frameworks 2 tests passed # Always run this, even if a dependent job failed diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index c5b0cc7bf3..4b96e7b31f 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -251,15 +251,15 @@ def _union(seq): def render_template(group, frameworks, py_versions_pinned, py_versions_latest): template = ENV.get_template("base.jinja") + categories = set() group_py_versions = set() - needs = [] for framework in frameworks: if py_versions_pinned[framework]: - needs.append(f"test-{framework}-pinned") + categories.add("pinned") if py_versions_latest[framework]: - needs.append(f"test-{framework}-latest") + categories.add("latest") if "2.7" in py_versions_pinned[framework]: - needs.append(f"test-{framework}-py27") + categories.add("py2.7") group_py_versions |= set(py_versions_pinned[framework]) group_py_versions |= set(py_versions_latest[framework]) @@ -267,6 +267,7 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): context = { "group": group, "frameworks": frameworks, + "categories": categories, "needs_aws_credentials": bool(set(frameworks) & FRAMEWORKS_NEEDING_AWS), "needs_clickhouse": bool(set(frameworks) & FRAMEWORKS_NEEDING_CLICKHOUSE), "needs_postgres": bool(set(frameworks) & FRAMEWORKS_NEEDING_POSTGRES), @@ -287,7 +288,6 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): } for framework in frameworks }, - "needs": str(needs).replace("'", ""), } rendered = template.render(context) rendered = postprocess_template(rendered) diff --git a/scripts/split-tox-gh-actions/templates/base.jinja b/scripts/split-tox-gh-actions/templates/base.jinja index 7f76543147..d0054ef02c 100644 --- a/scripts/split-tox-gh-actions/templates/base.jinja +++ b/scripts/split-tox-gh-actions/templates/base.jinja @@ -45,16 +45,22 @@ jobs: {% include "check_permissions.jinja" %} {% endif %} +{% if categories.pinned %} {% with category="pinned" %} {% include "test_group.jinja" %} {% endwith %} +{% endif %} +{% if categories.py27 %} {% with category="py27" %} {% include "test_group.jinja" %} {% endwith %} +{% endif %} +{% if categories.latest %} {% with category="latest" %} {% include "test_group.jinja" %} {% endwith %} +{% endif %} {% include "check_required.jinja" %} diff --git a/scripts/split-tox-gh-actions/templates/test.jinja b/scripts/split-tox-gh-actions/templates/test.jinja deleted file mode 100644 index 760f9789a0..0000000000 --- a/scripts/split-tox-gh-actions/templates/test.jinja +++ /dev/null @@ -1,94 +0,0 @@ - test-{{ framework }}-{{ category }}: - {% if needs_github_secrets %} - needs: check-permissions - {% endif %} - timeout-minutes: 30 - {% if category == "py27" %} - name: {{ framework }} {{ category }}, python 2.7 - runs-on: ubuntu-20.04 - container: python:2.7 - {% else %} - name: {{ framework }} {{ category }}, {% raw %}python ${{ matrix.python-version }}, ${{ matrix.os }}{% endraw %} - runs-on: {% raw %}${{ matrix.os }}{% endraw %} - strategy: - fail-fast: false - matrix: - python-version: [{{ versions|join(",") }}] - # 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] - {% endif %} - {% if needs_postgres %} - 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: {% if category == "py27" %}postgres{% else %}localhost{% endif %} - {% endif %} - - steps: - - uses: actions/checkout@v4 - {% if needs_github_secrets %} - {% raw %} - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - {% endraw %} - {% endif %} - {% if category != "py27" %} - - uses: actions/setup-python@v4 - with: - python-version: {% raw %}${{ matrix.python-version }}{% endraw %} - {% endif %} - {% if needs_clickhouse %} - - uses: getsentry/action-clickhouse-in-ci@v1 - {% endif %} - - - name: Setup Test Env - run: | - pip install coverage "tox>=3,<4" - {% if needs_postgres %} - {% if category == "py27" %} - psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true - psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true - {% else %} - 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 - {% endif %} - {% endif %} - - - name: Test {{ framework }} - run: | - set -x # print commands that are executed - coverage erase - - # Run tests - {% if category == "py27" %} - ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - {% elif category == "pinned" %} - ./scripts/runtox.sh --exclude-latest "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - {% elif category == "latest" %} - ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - {% endif %} - coverage combine .coverage* && - coverage xml -i - - - uses: codecov/codecov-action@v3 - with: - token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %} - files: coverage.xml From 15e6b42b3f2fb8ed31fc29ac9283b82e4dc0995a Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:41:41 +0100 Subject: [PATCH 09/26] fix --- .../test-integrations-aws-lambda.yml | 35 +++ .../test-integrations-cloud-computing.yml | 155 +++++++++ .../workflows/test-integrations-common.yml | 63 ++++ .../test-integrations-data-processing.yml | 175 +++++++++++ .../workflows/test-integrations-databases.yml | 221 +++++++++++++ .../workflows/test-integrations-graphql.yml | 106 +++++++ .../test-integrations-miscellaneous.yml | 106 +++++++ .../test-integrations-networking.yml | 155 +++++++++ .../test-integrations-web-frameworks-1.yml | 218 +++++++++++++ .../test-integrations-web-frameworks-2.yml | 295 ++++++++++++++++++ .../split-tox-gh-actions/templates/base.jinja | 18 +- 11 files changed, 1531 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index e336d31229..aed6c90c30 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -49,6 +49,41 @@ jobs: - name: Check permissions on repo branch if: github.event_name == 'push' run: true + test-aws_lambda-pinned: + name: AWS Lambda (pinned) + timeout-minutes: 30 + needs: check-permissions + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["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 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + - name: Test aws_lambda pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All AWS Lambda tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index 89d500d477..b82ddcd0b9 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -17,6 +17,161 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-cloud_computing-pinned: + name: Cloud Computing (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","3.6","3.7","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 boto3 pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test chalice pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test cloud_resource_context pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test gcp pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-cloud_computing-latest: + name: Cloud Computing (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","3.6","3.7","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 boto3 latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test chalice latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test cloud_resource_context latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test gcp latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-cloud_computing-py2.7: + name: Cloud Computing (py2.7) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","3.6","3.7","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 boto3 py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test chalice py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test cloud_resource_context py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test gcp py2.7 + run: | + set -x # print commands that are executed + # Run tests + 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 Computing tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index cbe83c6056..0897feee00 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -17,6 +17,69 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-common-pinned: + name: Common (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-common-py2.7: + name: Common (py2.7) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Common tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index f7b7865966..495180e1d1 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -17,6 +17,181 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-data_processing-pinned: + name: Data Processing (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 arq pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test beam pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test celery pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test huey pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test rq pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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-data_processing-latest: + name: Data Processing (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 arq latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test beam latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test celery latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test huey latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test rq latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-data_processing-py2.7: + name: Data Processing (py2.7) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 arq py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test beam py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test celery py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test huey py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test rq py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Data Processing tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 934c41a16f..78633cc528 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -17,6 +17,227 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-databases-pinned: + name: Databases (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test clickhouse_driver pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pymongo pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test sqlalchemy pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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-databases-latest: + name: Databases (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test clickhouse_driver latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pymongo latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test sqlalchemy latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-databases-py2.7: + name: Databases (py2.7) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 }} + - uses: getsentry/action-clickhouse-in-ci@v1 + - 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 py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test clickhouse_driver py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test pymongo py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test sqlalchemy py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Databases tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 9b47c744db..33888571d9 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -17,6 +17,112 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-graphql-pinned: + name: GraphQL (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.8","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 pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test gql pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test graphene pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test strawberry pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-graphql-latest: + name: GraphQL (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.7","3.8","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 latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test gql latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test graphene latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test strawberry latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All GraphQL tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 69eb506057..998cc795e1 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -17,6 +17,112 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-miscellaneous-pinned: + name: Miscellaneous (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","3.7","3.8","3.9","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 pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test opentelemetry pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pure_eval pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test trytond pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-miscellaneous-latest: + name: Miscellaneous (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.5","3.6","3.7","3.8","3.9","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 latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test opentelemetry latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pure_eval latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test trytond latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Miscellaneous tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 8674c14ed9..574b59a07d 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -17,6 +17,161 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-networking-pinned: + name: Networking (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 gevent pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test grpc pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test httpx pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test requests pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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-networking-latest: + name: Networking (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 gevent latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test grpc latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test httpx latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test requests latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-networking-py2.7: + name: Networking (py2.7) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 gevent py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test grpc py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test httpx py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test requests py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Networking tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 91203b6676..2893cba39b 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -17,6 +17,224 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-web_frameworks_1-pinned: + name: Web Frameworks 1 (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test fastapi pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test flask pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test starlette pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-web_frameworks_1-latest: + name: Web Frameworks 1 (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test fastapi latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test flask latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test starlette latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-web_frameworks_1-py2.7: + name: Web Frameworks 1 (py2.7) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","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 py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test fastapi py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test flask py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test starlette py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Web Frameworks 1 tests passed # Always run this, even if a dependent job failed diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 382a47e275..f3195001ad 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -17,6 +17,301 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: + test-web_frameworks_2-pinned: + name: Web Frameworks 2 (pinned) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","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 aiohttp pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test asgi pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test bottle pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test falcon pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pyramid pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test quart pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test redis pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test rediscluster pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test sanic pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test starlite pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test tornado pinned + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh --exclude-latest "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 + test-web_frameworks_2-latest: + name: Web Frameworks 2 (latest) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","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 aiohttp latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test asgi latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test bottle latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test falcon latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test pyramid latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test quart latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test redis latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test rediscluster latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test sanic latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test starlite latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - name: Test tornado latest + run: | + set -x # print commands that are executed + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml + test-web_frameworks_2-py2.7: + name: Web Frameworks 2 (py2.7) + timeout-minutes: 30 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","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 aiohttp py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test asgi py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test bottle py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test falcon py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test pyramid py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test quart py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test redis py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test rediscluster py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test sanic py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test starlite py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - name: Test tornado py2.7 + run: | + set -x # print commands that are executed + # Run tests + coverage combine .coverage* && + coverage xml -i + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage.xml check_required_tests: name: All Web Frameworks 2 tests passed # Always run this, even if a dependent job failed diff --git a/scripts/split-tox-gh-actions/templates/base.jinja b/scripts/split-tox-gh-actions/templates/base.jinja index d0054ef02c..ff43f845d8 100644 --- a/scripts/split-tox-gh-actions/templates/base.jinja +++ b/scripts/split-tox-gh-actions/templates/base.jinja @@ -45,22 +45,8 @@ jobs: {% include "check_permissions.jinja" %} {% endif %} -{% if categories.pinned %} -{% with category="pinned" %} +{% for category in categories %} {% include "test_group.jinja" %} -{% endwith %} -{% endif %} - -{% if categories.py27 %} -{% with category="py27" %} -{% include "test_group.jinja" %} -{% endwith %} -{% endif %} - -{% if categories.latest %} -{% with category="latest" %} -{% include "test_group.jinja" %} -{% endwith %} -{% endif %} +{% endfor %} {% include "check_required.jinja" %} From 774fb5f913cc8391a5b363e04430c722fea1f4d8 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:46:24 +0100 Subject: [PATCH 10/26] fix --- .../test-integrations-cloud-computing.yml | 48 ++++---- .../workflows/test-integrations-common.yml | 6 +- .../test-integrations-data-processing.yml | 56 +++++----- .../workflows/test-integrations-databases.yml | 48 ++++---- .../workflows/test-integrations-graphql.yml | 40 +++---- .../test-integrations-miscellaneous.yml | 40 +++---- .../test-integrations-networking.yml | 48 ++++---- .../test-integrations-web-frameworks-1.yml | 48 ++++---- .../test-integrations-web-frameworks-2.yml | 104 +++++++++--------- .../split-tox-gh-actions.py | 12 +- 10 files changed, 226 insertions(+), 224 deletions(-) diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index b82ddcd0b9..ee4bae9505 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-cloud_computing-pinned: - name: Cloud Computing (pinned) + test-cloud_computing-latest: + name: Cloud Computing (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.9","3.10","3.11","3.12"] + python-version: ["3.6","3.7","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 @@ -38,46 +38,46 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test boto3 pinned + - name: Test boto3 latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test chalice pinned + - name: Test chalice latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test cloud_resource_context pinned + - name: Test cloud_resource_context latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test gcp pinned + - name: Test gcp latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-cloud_computing-latest: - name: Cloud Computing (latest) + test-cloud_computing-pinned: + name: Cloud Computing (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.9","3.10","3.11","3.12"] + python-version: ["3.6","3.7","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 @@ -91,46 +91,46 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test boto3 latest + - name: Test boto3 pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test chalice latest + - name: Test chalice pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test cloud_resource_context latest + - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test gcp latest + - name: Test gcp pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-cloud_computing-py2.7: + test-cloud_computing-py27: name: Cloud Computing (py2.7) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.9","3.10","3.11","3.12"] + python-version: ["3.6","3.7","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 diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 0897feee00..f8038bd3c3 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -49,14 +49,14 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-common-py2.7: + test-common-py27: name: Common (py2.7) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 495180e1d1..3107c2b28a 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-data_processing-pinned: - name: Data Processing (pinned) + test-data_processing-latest: + name: Data Processing (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -38,53 +38,53 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test arq pinned + - name: Test arq latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test beam pinned + - name: Test beam latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test celery pinned + - name: Test celery latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test huey pinned + - name: Test huey latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test rq pinned + - name: Test rq latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-data_processing-latest: - name: Data Processing (latest) + test-data_processing-pinned: + name: Data Processing (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -98,53 +98,53 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test arq latest + - name: Test arq pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test beam latest + - name: Test beam pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test celery latest + - name: Test celery pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test huey latest + - name: Test huey pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test rq latest + - name: Test rq pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-data_processing-py2.7: + test-data_processing-py27: name: Data Processing (py2.7) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 78633cc528..bdb91457f5 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-databases-pinned: - name: Databases (pinned) + test-databases-latest: + name: Databases (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -60,46 +60,46 @@ jobs: 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 pinned + - name: Test asyncpg latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test clickhouse_driver pinned + - name: Test clickhouse_driver latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pymongo pinned + - name: Test pymongo latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test sqlalchemy pinned + - name: Test sqlalchemy latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-databases-latest: - name: Databases (latest) + test-databases-pinned: + name: Databases (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -135,46 +135,46 @@ jobs: 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 latest + - name: Test asyncpg pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test clickhouse_driver latest + - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pymongo latest + - name: Test pymongo pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test sqlalchemy latest + - name: Test sqlalchemy pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-databases-py2.7: + test-databases-py27: name: Databases (py2.7) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 33888571d9..217bbf80cb 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -17,8 +17,8 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-graphql-pinned: - name: GraphQL (pinned) + test-graphql-latest: + name: GraphQL (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: @@ -38,40 +38,40 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test ariadne pinned + - name: Test ariadne latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test gql pinned + - name: Test gql latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test graphene pinned + - name: Test graphene latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test strawberry pinned + - name: Test strawberry latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-graphql-latest: - name: GraphQL (latest) + test-graphql-pinned: + name: GraphQL (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: @@ -91,32 +91,32 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test ariadne latest + - name: Test ariadne pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test gql latest + - name: Test gql pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test graphene latest + - name: Test graphene pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test strawberry latest + - name: Test strawberry pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 998cc795e1..bd0313fd3a 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -17,8 +17,8 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-miscellaneous-pinned: - name: Miscellaneous (pinned) + test-miscellaneous-latest: + name: Miscellaneous (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: @@ -38,40 +38,40 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test loguru pinned + - name: Test loguru latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test opentelemetry pinned + - name: Test opentelemetry latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pure_eval pinned + - name: Test pure_eval latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test trytond pinned + - name: Test trytond latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-miscellaneous-latest: - name: Miscellaneous (latest) + test-miscellaneous-pinned: + name: Miscellaneous (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: @@ -91,32 +91,32 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test loguru latest + - name: Test loguru pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test opentelemetry latest + - name: Test opentelemetry pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pure_eval latest + - name: Test pure_eval pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test trytond latest + - name: Test trytond pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 574b59a07d..29fec5c1bf 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-networking-pinned: - name: Networking (pinned) + test-networking-latest: + name: Networking (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -38,46 +38,46 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test gevent pinned + - name: Test gevent latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test grpc pinned + - name: Test grpc latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test httpx pinned + - name: Test httpx latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test requests pinned + - name: Test requests latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-networking-latest: - name: Networking (latest) + test-networking-pinned: + name: Networking (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -91,46 +91,46 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test gevent latest + - name: Test gevent pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test grpc latest + - name: Test grpc pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test httpx latest + - name: Test httpx pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test requests latest + - name: Test requests pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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-networking-py2.7: + test-networking-py27: name: Networking (py2.7) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 2893cba39b..8a3b4a3744 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-web_frameworks_1-pinned: - name: Web Frameworks 1 (pinned) + test-web_frameworks_1-latest: + name: Web Frameworks 1 (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -59,46 +59,46 @@ jobs: 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 pinned + - name: Test django latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test fastapi pinned + - name: Test fastapi latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test flask pinned + - name: Test flask latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test starlette pinned + - name: Test starlette latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-web_frameworks_1-latest: - name: Web Frameworks 1 (latest) + test-web_frameworks_1-pinned: + name: Web Frameworks 1 (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 @@ -133,46 +133,46 @@ jobs: 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 latest + - name: Test django pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test fastapi latest + - name: Test fastapi pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test flask latest + - name: Test flask pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test starlette latest + - name: Test starlette pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-web_frameworks_1-py2.7: + test-web_frameworks_1-py27: name: Web Frameworks 1 (py2.7) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + 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 diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index f3195001ad..4313921cb0 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -17,14 +17,14 @@ env: CACHED_BUILD_PATHS: | ${{ github.workspace }}/dist-serverless jobs: - test-web_frameworks_2-pinned: - name: Web Frameworks 2 (pinned) + test-web_frameworks_2-latest: + name: Web Frameworks 2 (latest) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.11","3.12"] + python-version: ["3.5","3.6","3.7","3.8","3.9","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 @@ -38,95 +38,95 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test aiohttp pinned + - name: Test aiohttp latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test asgi pinned + - name: Test asgi latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test bottle pinned + - name: Test bottle latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test falcon pinned + - name: Test falcon latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pyramid pinned + - name: Test pyramid latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test quart pinned + - name: Test quart latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test redis pinned + - name: Test redis latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test rediscluster pinned + - name: Test rediscluster latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test sanic pinned + - name: Test sanic latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test starlite pinned + - name: Test starlite latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test tornado pinned + - name: Test tornado latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml - test-web_frameworks_2-latest: - name: Web Frameworks 2 (latest) + test-web_frameworks_2-pinned: + name: Web Frameworks 2 (pinned) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.11","3.12"] + python-version: ["3.5","3.6","3.7","3.8","3.9","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 @@ -140,95 +140,95 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" - - name: Test aiohttp latest + - name: Test aiohttp pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test asgi latest + - name: Test asgi pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test bottle latest + - name: Test bottle pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test falcon latest + - name: Test falcon pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pyramid latest + - name: Test pyramid pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test quart latest + - name: Test quart pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test redis latest + - name: Test redis pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test rediscluster latest + - name: Test rediscluster pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test sanic latest + - name: Test sanic pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test starlite latest + - name: Test starlite pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test tornado latest + - name: Test tornado pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "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 - test-web_frameworks_2-py2.7: + test-web_frameworks_2-py27: name: Web Frameworks 2 (py2.7) timeout-minutes: 30 runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.11","3.12"] + python-version: ["3.5","3.6","3.7","3.8","3.9","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 diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 4b96e7b31f..5cd632d972 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -252,7 +252,7 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): template = ENV.get_template("base.jinja") categories = set() - group_py_versions = set() + matrix_py_versions = set() for framework in frameworks: if py_versions_pinned[framework]: categories.add("pinned") @@ -261,13 +261,15 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): if "2.7" in py_versions_pinned[framework]: categories.add("py2.7") - group_py_versions |= set(py_versions_pinned[framework]) - group_py_versions |= set(py_versions_latest[framework]) + matrix_py_versions |= set(py_versions_pinned[framework]) + matrix_py_versions |= set(py_versions_latest[framework]) + + matrix_py_versions.discard("2.7") context = { "group": group, "frameworks": frameworks, - "categories": categories, + "categories": sorted(categories), "needs_aws_credentials": bool(set(frameworks) & FRAMEWORKS_NEEDING_AWS), "needs_clickhouse": bool(set(frameworks) & FRAMEWORKS_NEEDING_CLICKHOUSE), "needs_postgres": bool(set(frameworks) & FRAMEWORKS_NEEDING_POSTGRES), @@ -275,7 +277,7 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): set(frameworks) & FRAMEWORKS_NEEDING_GITHUB_SECRETS ), "all_versions": [ - f'"{version}"' for version in _normalize_py_versions(group_py_versions) + f'"{version}"' for version in _normalize_py_versions(matrix_py_versions) ], "py_versions": { framework: { From 83ddfc7348d6b271e0a50850e71a881954354cf0 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:48:35 +0100 Subject: [PATCH 11/26] another fix --- .../test-integrations-cloud-computing.yml | 29 ++++------- .../workflows/test-integrations-common.yml | 20 ++------ .../test-integrations-data-processing.yml | 32 +++++------- .../workflows/test-integrations-databases.yml | 35 ++++++------- .../test-integrations-networking.yml | 29 ++++------- .../test-integrations-web-frameworks-1.yml | 35 ++++++------- .../test-integrations-web-frameworks-2.yml | 50 +++++++++---------- .../split-tox-gh-actions.py | 2 +- 8 files changed, 94 insertions(+), 138 deletions(-) diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index ee4bae9505..b1350b2442 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -124,48 +124,41 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-cloud_computing-py27: - name: Cloud Computing (py2.7) + name: Cloud Computing (py27) timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.6","3.7","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] + runs-on: ubuntu-20.04 + container: python:2.7 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 py2.7 + - name: Test boto3 py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test chalice py2.7 + - name: Test chalice py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test cloud_resource_context py2.7 + - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test gcp py2.7 + - name: Test gcp py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index f8038bd3c3..219fc56890 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -50,30 +50,20 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-common-py27: - name: Common (py2.7) + name: Common (py27) timeout-minutes: 30 - runs-on: ${{ matrix.os }} - 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] + runs-on: ubuntu-20.04 + container: python:2.7 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 py2.7 + - name: Test common py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 3107c2b28a..100f1cda1a 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -138,54 +138,48 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-data_processing-py27: - name: Data Processing (py2.7) + name: Data Processing (py27) timeout-minutes: 30 - runs-on: ${{ matrix.os }} - 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] + runs-on: ubuntu-20.04 + container: python:2.7 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 py2.7 + - name: Test arq py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test beam py2.7 + - name: Test beam py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test celery py2.7 + - name: Test celery py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test huey py2.7 + - name: Test huey py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test rq py2.7 + - name: Test rq py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index bdb91457f5..64be20ce92 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -168,18 +168,10 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-databases-py27: - name: Databases (py2.7) + name: Databases (py27) timeout-minutes: 30 - runs-on: ${{ matrix.os }} - 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] + runs-on: ubuntu-20.04 + container: python:2.7 services: postgres: image: postgres @@ -198,40 +190,41 @@ jobs: 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 + SENTRY_PYTHON_TEST_POSTGRES_HOST: postgres 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" - 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 py2.7 + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test asyncpg py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test clickhouse_driver py2.7 + - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pymongo py2.7 + - name: Test pymongo py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test sqlalchemy py2.7 + - name: Test sqlalchemy py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 29fec5c1bf..da5972e959 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -124,48 +124,41 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-networking-py27: - name: Networking (py2.7) + name: Networking (py27) timeout-minutes: 30 - runs-on: ${{ matrix.os }} - 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] + runs-on: ubuntu-20.04 + container: python:2.7 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 py2.7 + - name: Test gevent py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test grpc py2.7 + - name: Test grpc py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test httpx py2.7 + - name: Test httpx py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test requests py2.7 + - name: Test requests py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 8a3b4a3744..a7df1def94 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -166,18 +166,10 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-web_frameworks_1-py27: - name: Web Frameworks 1 (py2.7) + name: Web Frameworks 1 (py27) timeout-minutes: 30 - runs-on: ${{ matrix.os }} - 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] + runs-on: ubuntu-20.04 + container: python:2.7 services: postgres: image: postgres @@ -196,39 +188,40 @@ jobs: 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 + SENTRY_PYTHON_TEST_POSTGRES_HOST: postgres 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 py2.7 + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Test django py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test fastapi py2.7 + - name: Test fastapi py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test flask py2.7 + - name: Test flask py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test starlette py2.7 + - name: Test starlette py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 4313921cb0..0555990206 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -222,90 +222,90 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml test-web_frameworks_2-py27: - name: Web Frameworks 2 (py2.7) + name: Web Frameworks 2 (py27) timeout-minutes: 30 - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","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] + runs-on: ubuntu-20.04 + container: python:2.7 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 py2.7 + - name: Test aiohttp py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test asgi py2.7 + - name: Test asgi py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test bottle py2.7 + - name: Test bottle py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test falcon py2.7 + - name: Test falcon py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test pyramid py2.7 + - name: Test pyramid py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test quart py2.7 + - name: Test quart py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test redis py2.7 + - name: Test redis py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test rediscluster py2.7 + - name: Test rediscluster py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test sanic py2.7 + - name: Test sanic py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test starlite py2.7 + - name: Test starlite py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - - name: Test tornado py2.7 + - name: Test tornado py27 run: | set -x # print commands that are executed # Run tests + ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && coverage combine .coverage* && coverage xml -i - uses: codecov/codecov-action@v3 diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 5cd632d972..f7eaa4ae4b 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -259,7 +259,7 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): if py_versions_latest[framework]: categories.add("latest") if "2.7" in py_versions_pinned[framework]: - categories.add("py2.7") + categories.add("py27") matrix_py_versions |= set(py_versions_pinned[framework]) matrix_py_versions |= set(py_versions_latest[framework]) From 417a9fb67223b85a4257006bc4e4aad63b14eba8 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:52:34 +0100 Subject: [PATCH 12/26] fix needs --- .github/workflows/test-integrations-aws-lambda.yml | 1 + .github/workflows/test-integrations-cloud-computing.yml | 1 + .github/workflows/test-integrations-common.yml | 1 + .github/workflows/test-integrations-data-processing.yml | 1 + .github/workflows/test-integrations-databases.yml | 1 + .github/workflows/test-integrations-graphql.yml | 1 + .github/workflows/test-integrations-miscellaneous.yml | 1 + .github/workflows/test-integrations-networking.yml | 1 + .github/workflows/test-integrations-web-frameworks-1.yml | 1 + .github/workflows/test-integrations-web-frameworks-2.yml | 1 + scripts/split-tox-gh-actions/templates/check_required.jinja | 4 ++-- 11 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index aed6c90c30..b2e0058a09 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -86,6 +86,7 @@ jobs: files: coverage.xml check_required_tests: name: All AWS Lambda tests passed + needs: test-aws_lambda-pinned # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index b1350b2442..07523f2768 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -167,6 +167,7 @@ jobs: files: coverage.xml check_required_tests: name: All Cloud Computing tests passed + needs: [test-cloud_computing-pinned, test-cloud_computing-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 219fc56890..eab849f176 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -72,6 +72,7 @@ jobs: files: coverage.xml check_required_tests: name: All Common tests passed + needs: [test-common-pinned, test-common-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 100f1cda1a..87afbc42b6 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -188,6 +188,7 @@ jobs: files: coverage.xml check_required_tests: name: All Data Processing tests passed + needs: [test-data_processing-pinned, test-data_processing-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 64be20ce92..520a84f1c9 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -233,6 +233,7 @@ jobs: files: coverage.xml check_required_tests: name: All Databases tests passed + needs: [test-databases-pinned, test-databases-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 217bbf80cb..506fbe0727 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -125,6 +125,7 @@ jobs: files: coverage.xml check_required_tests: name: All GraphQL tests passed + needs: test-graphql-pinned # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index bd0313fd3a..cbebe5cb1d 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -125,6 +125,7 @@ jobs: files: coverage.xml check_required_tests: name: All Miscellaneous tests passed + needs: test-miscellaneous-pinned # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index da5972e959..fb91bf138b 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -167,6 +167,7 @@ jobs: files: coverage.xml check_required_tests: name: All Networking tests passed + needs: [test-networking-pinned, test-networking-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index a7df1def94..5b62a4519f 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -230,6 +230,7 @@ jobs: files: coverage.xml check_required_tests: name: All Web Frameworks 1 tests passed + needs: [test-web_frameworks_1-pinned, test-web_frameworks_1-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 0555990206..c971d25991 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -314,6 +314,7 @@ jobs: files: coverage.xml check_required_tests: name: All Web Frameworks 2 tests passed + needs: [test-web_frameworks_2-pinned, test-web_frameworks_2-py27] # Always run this, even if a dependent job failed if: always() runs-on: ubuntu-20.04 diff --git a/scripts/split-tox-gh-actions/templates/check_required.jinja b/scripts/split-tox-gh-actions/templates/check_required.jinja index 36ef40e71c..e3628b68bd 100644 --- a/scripts/split-tox-gh-actions/templates/check_required.jinja +++ b/scripts/split-tox-gh-actions/templates/check_required.jinja @@ -1,8 +1,8 @@ check_required_tests: name: All {{ group }} tests passed - {% if py_versions.pinned and py_versions.py27 %} + {% if "pinned" in categories and "py27" in categories %} needs: [test-{{ group | replace(" ", "_") | lower }}-pinned, test-{{ group | replace(" ", "_") | lower }}-py27] - {% elif py_versions.pinned %} + {% elif "pinned" in categories %} needs: test-{{ group | replace(" ", "_") | lower }}-pinned {% endif %} # Always run this, even if a dependent job failed From f4e4783453e1bff68ad8e4d51d9e82248bd58459 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 13:54:12 +0100 Subject: [PATCH 13/26] missing template --- .../templates/test_group.jinja | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 scripts/split-tox-gh-actions/templates/test_group.jinja diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja new file mode 100644 index 0000000000..ac8ab4afce --- /dev/null +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -0,0 +1,97 @@ + test-{{ group | replace(" ", "_") | lower }}-{{ category }}: + name: {{ group }} ({{ category }}) + timeout-minutes: 30 + + {% if needs_github_secrets %} + needs: check-permissions + {% endif %} + + {% if category == "py27" %} + runs-on: ubuntu-20.04 + container: python:2.7 + {% else %} + runs-on: {% raw %}${{ matrix.os }}{% endraw %} + strategy: + fail-fast: false + matrix: + python-version: [{{ all_versions|join(",") }}] + # 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] + {% endif %} + + {% if needs_postgres %} + 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: {% if category == "py27" %}postgres{% else %}localhost{% endif %} + {% endif %} + + steps: + - uses: actions/checkout@v4 + {% if needs_github_secrets %} + {% raw %} + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} + {% endraw %} + {% endif %} + {% if category != "py27" %} + - uses: actions/setup-python@v4 + with: + python-version: {% raw %}${{ matrix.python-version }}{% endraw %} + {% endif %} + {% if needs_clickhouse %} + - uses: getsentry/action-clickhouse-in-ci@v1 + {% endif %} + + - name: Setup Test Env + run: | + pip install coverage "tox>=3,<4" + {% if needs_postgres %} + {% if category == "py27" %} + psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true + psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + {% else %} + 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 + {% endif %} + {% endif %} + + {% for framework in frameworks %} + - name: Test {{ framework }} {{ category }} + run: | + set -x # print commands that are executed + + # Run tests + {% if category == "py27" %} + ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + {% elif category == "pinned" %} + ./scripts/runtox.sh --exclude-latest "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + {% elif category == "latest" %} + ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + {% endif %} + coverage combine .coverage* && + coverage xml -i + {% endfor %} + + - uses: codecov/codecov-action@v3 + with: + token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %} + files: coverage.xml From f2f6ff7e7f510a67fd126b550f1a40674bfe544f Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:27:00 +0100 Subject: [PATCH 14/26] add early exit --- scripts/runtox.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/runtox.sh b/scripts/runtox.sh index 6090da7a92..dbbb4f2e10 100755 --- a/scripts/runtox.sh +++ b/scripts/runtox.sh @@ -35,4 +35,9 @@ else ENV="$($TOXPATH -l | grep -- "$searchstring" | tr $'\n' ',')" fi +if [ -z "${ENV}" ]; then + echo "No targets found. Skipping." + exit 0 +fi + exec $TOXPATH -vv -e "$ENV" -- "${@:2}" From 7bce8566ee14ee182dc96b1b4831e403ebe276d3 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:30:40 +0100 Subject: [PATCH 15/26] consider skipped tests failed --- .github/workflows/test-integrations-aws-lambda.yml | 2 +- .github/workflows/test-integrations-cloud-computing.yml | 2 +- .github/workflows/test-integrations-common.yml | 2 +- .github/workflows/test-integrations-data-processing.yml | 2 +- .github/workflows/test-integrations-databases.yml | 2 +- .github/workflows/test-integrations-graphql.yml | 2 +- .github/workflows/test-integrations-miscellaneous.yml | 2 +- .github/workflows/test-integrations-networking.yml | 2 +- .github/workflows/test-integrations-web-frameworks-1.yml | 2 +- .github/workflows/test-integrations-web-frameworks-2.yml | 2 +- scripts/split-tox-gh-actions/templates/check_required.jinja | 6 ++++-- 11 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index b2e0058a09..dc971bfae0 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -92,6 +92,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-aws_lambda-pinned.result, 'failure') + if: contains(needs.test-aws_lambda-pinned.result, 'failure') || contains(needs.test-aws_lambda-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index 07523f2768..a4edd52af2 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -173,6 +173,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-cloud_computing-pinned.result, 'failure') + if: contains(needs.test-cloud_computing-pinned.result, 'failure') || contains(needs.test-cloud_computing-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index eab849f176..e4d8ee1c6a 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -78,6 +78,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-common-pinned.result, 'failure') + if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 87afbc42b6..2d2410cdf7 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -194,6 +194,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-data_processing-pinned.result, 'failure') + if: contains(needs.test-data_processing-pinned.result, 'failure') || contains(needs.test-data_processing-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 520a84f1c9..b5eca970d9 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -239,6 +239,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-databases-pinned.result, 'failure') + if: contains(needs.test-databases-pinned.result, 'failure') || contains(needs.test-databases-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 506fbe0727..c90a78bcb1 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -131,6 +131,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-graphql-pinned.result, 'failure') + if: contains(needs.test-graphql-pinned.result, 'failure') || contains(needs.test-graphql-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index cbebe5cb1d..97803836d8 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -131,6 +131,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-miscellaneous-pinned.result, 'failure') + if: contains(needs.test-miscellaneous-pinned.result, 'failure') || contains(needs.test-miscellaneous-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index fb91bf138b..0092eb43ef 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -173,6 +173,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-networking-pinned.result, 'failure') + if: contains(needs.test-networking-pinned.result, 'failure') || contains(needs.test-networking-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 5b62a4519f..63072cd120 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -236,6 +236,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-web_frameworks_1-pinned.result, 'failure') + if: contains(needs.test-web_frameworks_1-pinned.result, 'failure') || contains(needs.test-web_frameworks_1-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index c971d25991..56a239602f 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -320,6 +320,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-web_frameworks_2-pinned.result, 'failure') + if: contains(needs.test-web_frameworks_2-pinned.result, 'failure') || contains(needs.test-web_frameworks_2-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/scripts/split-tox-gh-actions/templates/check_required.jinja b/scripts/split-tox-gh-actions/templates/check_required.jinja index e3628b68bd..edb957268e 100644 --- a/scripts/split-tox-gh-actions/templates/check_required.jinja +++ b/scripts/split-tox-gh-actions/templates/check_required.jinja @@ -1,3 +1,4 @@ + {% with lowercase_group=group | replace(" ", "_") | lower %} check_required_tests: name: All {{ group }} tests passed {% if "pinned" in categories and "py27" in categories %} @@ -10,12 +11,13 @@ runs-on: ubuntu-20.04 steps: - name: Check for failures - if: contains(needs.test-{{ group | replace(" ", "_") | lower }}-pinned.result, 'failure') + if: contains(needs.test-{{ lowercase_group }}-pinned.result, 'failure') || contains(needs.test-{{ lowercase_group }}-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 {% if py_versions.py27 %} - name: Check for 2.7 failures - if: contains(needs.test-{{ group | replace(" ", "_") | lower }}-py27.result, 'failure') + if: contains(needs.test-{{ lowercase_group }}-py27.result, 'failure') || contains(needs.test-{{ lowercase_group }}-py27.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 {% endif %} + {% endwith %} From 8ee42bd0b8267d12b568a1e182d0e9168ca36ce6 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:32:14 +0100 Subject: [PATCH 16/26] wip --- .../workflows/test-integrations-cloud-computing.yml | 4 ++++ .github/workflows/test-integrations-common.yml | 4 ++++ .../workflows/test-integrations-data-processing.yml | 4 ++++ .github/workflows/test-integrations-databases.yml | 4 ++++ .github/workflows/test-integrations-networking.yml | 4 ++++ .../workflows/test-integrations-web-frameworks-1.yml | 4 ++++ .../workflows/test-integrations-web-frameworks-2.yml | 4 ++++ scripts/split-tox-gh-actions/split-tox-gh-actions.py | 11 ----------- .../templates/check_required.jinja | 2 +- 9 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index a4edd52af2..213e6b9538 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -176,3 +176,7 @@ jobs: if: contains(needs.test-cloud_computing-pinned.result, 'failure') || contains(needs.test-cloud_computing-pinned.result, 'skipped') 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-cloud_computing-py27.result, 'failure') || contains(needs.test-cloud_computing-py27.result, 'skipped') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index e4d8ee1c6a..d0d664f50a 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -81,3 +81,7 @@ jobs: if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped') 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-common-py27.result, 'failure') || contains(needs.test-common-py27.result, 'skipped') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 2d2410cdf7..0c0bdf51a3 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -197,3 +197,7 @@ jobs: if: contains(needs.test-data_processing-pinned.result, 'failure') || contains(needs.test-data_processing-pinned.result, 'skipped') 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-data_processing-py27.result, 'failure') || contains(needs.test-data_processing-py27.result, 'skipped') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index b5eca970d9..f1cc961cf7 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -242,3 +242,7 @@ jobs: if: contains(needs.test-databases-pinned.result, 'failure') || contains(needs.test-databases-pinned.result, 'skipped') 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-databases-py27.result, 'failure') || contains(needs.test-databases-py27.result, 'skipped') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 0092eb43ef..562ab7c331 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -176,3 +176,7 @@ jobs: if: contains(needs.test-networking-pinned.result, 'failure') || contains(needs.test-networking-pinned.result, 'skipped') 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-networking-py27.result, 'failure') || contains(needs.test-networking-py27.result, 'skipped') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 63072cd120..4d727bd7e0 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -239,3 +239,7 @@ jobs: if: contains(needs.test-web_frameworks_1-pinned.result, 'failure') || contains(needs.test-web_frameworks_1-pinned.result, 'skipped') 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-web_frameworks_1-py27.result, 'failure') || contains(needs.test-web_frameworks_1-py27.result, 'skipped') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 56a239602f..65cf61a41c 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -323,3 +323,7 @@ jobs: if: contains(needs.test-web_frameworks_2-pinned.result, 'failure') || contains(needs.test-web_frameworks_2-pinned.result, 'skipped') 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-web_frameworks_2-py27.result, 'failure') || contains(needs.test-web_frameworks_2-py27.result, 'skipped') + run: | + echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index f7eaa4ae4b..2d60bf5719 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -279,17 +279,6 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): "all_versions": [ f'"{version}"' for version in _normalize_py_versions(matrix_py_versions) ], - "py_versions": { - framework: { - # already formatted for including in the matrix - "pinned": [ - f'"{v}"' for v in py_versions_pinned[framework] if v != "2.7" - ], - "py27": ['"2.7"'] if "2.7" in py_versions_pinned[framework] else [], - "latest": [f'"{v}"' for v in py_versions_latest[framework]], - } - for framework in frameworks - }, } rendered = template.render(context) rendered = postprocess_template(rendered) diff --git a/scripts/split-tox-gh-actions/templates/check_required.jinja b/scripts/split-tox-gh-actions/templates/check_required.jinja index edb957268e..31f4732ba9 100644 --- a/scripts/split-tox-gh-actions/templates/check_required.jinja +++ b/scripts/split-tox-gh-actions/templates/check_required.jinja @@ -14,7 +14,7 @@ if: contains(needs.test-{{ lowercase_group }}-pinned.result, 'failure') || contains(needs.test-{{ lowercase_group }}-pinned.result, 'skipped') run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 - {% if py_versions.py27 %} + {% if "py27" in categories %} - name: Check for 2.7 failures if: contains(needs.test-{{ lowercase_group }}-py27.result, 'failure') || contains(needs.test-{{ lowercase_group }}-py27.result, 'skipped') run: | From 98b4cd88576241d516f51f766e41182395c6513a Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:35:27 +0100 Subject: [PATCH 17/26] refactor a bit --- scripts/split-tox-gh-actions/templates/base.jinja | 2 ++ scripts/split-tox-gh-actions/templates/check_required.jinja | 2 -- scripts/split-tox-gh-actions/templates/test_group.jinja | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/split-tox-gh-actions/templates/base.jinja b/scripts/split-tox-gh-actions/templates/base.jinja index ff43f845d8..3af4b69618 100644 --- a/scripts/split-tox-gh-actions/templates/base.jinja +++ b/scripts/split-tox-gh-actions/templates/base.jinja @@ -1,3 +1,4 @@ +{% with lowercase_group=group | replace(" ", "_") | lower %} name: Test {{ group }} on: @@ -50,3 +51,4 @@ jobs: {% endfor %} {% include "check_required.jinja" %} +{% endwith %} diff --git a/scripts/split-tox-gh-actions/templates/check_required.jinja b/scripts/split-tox-gh-actions/templates/check_required.jinja index 31f4732ba9..f5aa11212f 100644 --- a/scripts/split-tox-gh-actions/templates/check_required.jinja +++ b/scripts/split-tox-gh-actions/templates/check_required.jinja @@ -1,4 +1,3 @@ - {% with lowercase_group=group | replace(" ", "_") | lower %} check_required_tests: name: All {{ group }} tests passed {% if "pinned" in categories and "py27" in categories %} @@ -20,4 +19,3 @@ run: | echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1 {% endif %} - {% endwith %} diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index ac8ab4afce..8b14232b01 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -1,4 +1,4 @@ - test-{{ group | replace(" ", "_") | lower }}-{{ category }}: + test-{{ lowercase_group }}-{{ category }}: name: {{ group }} ({{ category }}) timeout-minutes: 30 From 27f5d4c2401697cd1adc22a99809b645407cd99c Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:37:47 +0100 Subject: [PATCH 18/26] wip --- .../test-integrations-aws-lambda.yml | 4 +- .../test-integrations-cloud-computing.yml | 48 +++---- .../workflows/test-integrations-common.yml | 8 +- .../test-integrations-data-processing.yml | 60 ++++---- .../workflows/test-integrations-databases.yml | 48 +++---- .../workflows/test-integrations-graphql.yml | 32 ++--- .../test-integrations-miscellaneous.yml | 32 ++--- .../test-integrations-networking.yml | 48 +++---- .../test-integrations-web-frameworks-1.yml | 48 +++---- .../test-integrations-web-frameworks-2.yml | 132 +++++++++--------- .../templates/test_group.jinja | 8 +- 11 files changed, 234 insertions(+), 234 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index dc971bfae0..149607c559 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -77,8 +77,8 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index 213e6b9538..f11d537fc5 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -42,29 +42,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test chalice latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test cloud_resource_context latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test gcp latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -95,29 +95,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test chalice pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test gcp pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: @@ -137,29 +137,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test chalice py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test gcp py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index d0d664f50a..4868c00991 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -42,8 +42,8 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -63,8 +63,8 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 0c0bdf51a3..740751abb2 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -42,36 +42,36 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test beam latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test celery latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test huey latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test rq latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -102,36 +102,36 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test beam pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test celery pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test huey pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test rq pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: @@ -151,36 +151,36 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test beam py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test celery py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test huey py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test rq py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index f1cc961cf7..2fc96d91c1 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -64,29 +64,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test clickhouse_driver latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pymongo latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test sqlalchemy latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -139,29 +139,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pymongo pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test sqlalchemy pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: @@ -203,29 +203,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pymongo py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test sqlalchemy py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index c90a78bcb1..65a1907b1a 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -42,29 +42,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test gql latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test graphene latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test strawberry latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -95,29 +95,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test gql pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test graphene pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test strawberry pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 97803836d8..14b582a8d4 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -42,29 +42,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test opentelemetry latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pure_eval latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test trytond latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -95,29 +95,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test opentelemetry pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pure_eval pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test trytond pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 562ab7c331..b0f6f362fe 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -42,29 +42,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test grpc latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test httpx latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test requests latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -95,29 +95,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test grpc pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test httpx pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test requests pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: @@ -137,29 +137,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test grpc py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test httpx py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test requests py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 4d727bd7e0..544bd23aee 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -63,29 +63,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test fastapi latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test flask latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test starlette latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -137,29 +137,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test fastapi pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test flask pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test starlette pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: @@ -200,29 +200,29 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test fastapi py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test flask py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test starlette py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 65cf61a41c..e1620715cd 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -42,78 +42,78 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test asgi latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test bottle latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test falcon latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pyramid latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test quart latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test redis latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test rediscluster latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test sanic latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test starlite latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test tornado latest run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -144,78 +144,78 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test asgi pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test bottle pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test falcon pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pyramid pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test quart pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test redis pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test rediscluster pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test sanic pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test starlite pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test tornado pinned run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "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: @@ -235,78 +235,78 @@ jobs: run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test asgi py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test bottle py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test falcon py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test pyramid py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test quart py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test redis py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test rediscluster py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test sanic py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test starlite py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - name: Test tornado py27 run: | set -x # print commands that are executed # Run tests - ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && - coverage combine .coverage* && + ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 8b14232b01..25fc23983e 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -81,13 +81,13 @@ # Run tests {% if category == "py27" %} - ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% elif category == "pinned" %} - ./scripts/runtox.sh --exclude-latest "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh --exclude-latest "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% elif category == "latest" %} - ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% endif %} - coverage combine .coverage* && + coverage combine .coverage* coverage xml -i {% endfor %} From 01b763d4169c9704361fc14ca1d0156e7044725c Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:48:23 +0100 Subject: [PATCH 19/26] wip --- .../test-integrations-aws-lambda.yml | 2 +- .../test-integrations-cloud-computing.yml | 24 +++---- .../workflows/test-integrations-common.yml | 4 +- .../test-integrations-data-processing.yml | 30 ++++----- .../workflows/test-integrations-databases.yml | 24 +++---- .../workflows/test-integrations-graphql.yml | 16 ++--- .../test-integrations-miscellaneous.yml | 16 ++--- .../test-integrations-networking.yml | 24 +++---- .../test-integrations-web-frameworks-1.yml | 24 +++---- .../test-integrations-web-frameworks-2.yml | 66 +++++++++---------- .../templates/test_group.jinja | 2 +- 11 files changed, 116 insertions(+), 116 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index 149607c559..9801f599be 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -78,7 +78,7 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index f11d537fc5..c933d8b474 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -43,28 +43,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test chalice latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test cloud_resource_context latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test gcp latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -96,28 +96,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test chalice pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test gcp pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -138,28 +138,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test chalice py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test gcp py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 4868c00991..f567e463d2 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -43,7 +43,7 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -64,7 +64,7 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 740751abb2..40f3a1c2db 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -43,35 +43,35 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test beam latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test celery latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test huey latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test rq latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -103,35 +103,35 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test beam pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test celery pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test huey pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test rq pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -152,35 +152,35 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test beam py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test celery py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test huey py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test rq py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 2fc96d91c1..fbe14b9295 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -65,28 +65,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test clickhouse_driver latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pymongo latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test sqlalchemy latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -140,28 +140,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pymongo pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test sqlalchemy pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -204,28 +204,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pymongo py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test sqlalchemy py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 65a1907b1a..6cf7a6ef3d 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -43,28 +43,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test gql latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test graphene latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test strawberry latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -96,28 +96,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test gql pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test graphene pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test strawberry pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 14b582a8d4..e4c505f545 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -43,28 +43,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test opentelemetry latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pure_eval latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test trytond latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -96,28 +96,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test opentelemetry pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pure_eval pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test trytond pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index b0f6f362fe..df9fb23a6b 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -43,28 +43,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test grpc latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test httpx latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test requests latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -96,28 +96,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test grpc pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test httpx pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test requests pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -138,28 +138,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test grpc py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test httpx py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test requests py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 544bd23aee..8b51e33401 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -64,28 +64,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test fastapi latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test flask latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test starlette latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -138,28 +138,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test fastapi pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test flask pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test starlette pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -201,28 +201,28 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test fastapi py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test flask py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test starlette py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index e1620715cd..e3a98f4519 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -43,77 +43,77 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test asgi latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test bottle latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test falcon latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pyramid latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test quart latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test redis latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test rediscluster latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test sanic latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test starlite latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test tornado latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -145,77 +145,77 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test asgi pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test bottle pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test falcon pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pyramid pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test quart pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test redis pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test rediscluster pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test sanic pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test starlite pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test tornado pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: @@ -236,77 +236,77 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test asgi py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test bottle py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test falcon py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test pyramid py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test quart py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test redis py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test rediscluster py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test sanic py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test starlite py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - name: Test tornado py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 25fc23983e..3c4f443b22 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -87,7 +87,7 @@ {% elif category == "latest" %} ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% endif %} - coverage combine .coverage* + [ -e .coverage ] && coverage combine .coverage* coverage xml -i {% endfor %} From 0339bb166bd5abc00313cdf1368b585394f486ca Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:51:46 +0100 Subject: [PATCH 20/26] wip --- .../test-integrations-aws-lambda.yml | 2 +- .../test-integrations-cloud-computing.yml | 24 +++---- .../workflows/test-integrations-common.yml | 4 +- .../test-integrations-data-processing.yml | 30 ++++----- .../workflows/test-integrations-databases.yml | 24 +++---- .../workflows/test-integrations-graphql.yml | 16 ++--- .../test-integrations-miscellaneous.yml | 16 ++--- .../test-integrations-networking.yml | 24 +++---- .../test-integrations-web-frameworks-1.yml | 24 +++---- .../test-integrations-web-frameworks-2.yml | 66 +++++++++---------- .../templates/test_group.jinja | 2 +- 11 files changed, 116 insertions(+), 116 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index 9801f599be..ca3ac566f0 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -79,7 +79,7 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index c933d8b474..a9bfae30b2 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -44,28 +44,28 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test chalice latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test cloud_resource_context latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test gcp latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -97,28 +97,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test chalice pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test gcp pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -139,28 +139,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test chalice py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test gcp py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index f567e463d2..76dcf309c8 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -44,7 +44,7 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -65,7 +65,7 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 40f3a1c2db..48c067c54b 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -44,35 +44,35 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test beam latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test celery latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test huey latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test rq latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -104,35 +104,35 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test beam pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test celery pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test huey pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test rq pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -153,35 +153,35 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test beam py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test celery py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test huey py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test rq py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index fbe14b9295..20a0319ac0 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -66,28 +66,28 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test clickhouse_driver latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pymongo latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test sqlalchemy latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -141,28 +141,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pymongo pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test sqlalchemy pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -205,28 +205,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pymongo py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test sqlalchemy py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 6cf7a6ef3d..8b9f30a83c 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -44,28 +44,28 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test gql latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test graphene latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test strawberry latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -97,28 +97,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test gql pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test graphene pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test strawberry pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index e4c505f545..dee23d3b37 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -44,28 +44,28 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test opentelemetry latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pure_eval latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test trytond latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -97,28 +97,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test opentelemetry pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pure_eval pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test trytond pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index df9fb23a6b..62cb13c49c 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -44,28 +44,28 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test grpc latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test httpx latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test requests latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -97,28 +97,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test grpc pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test httpx pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test requests pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -139,28 +139,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test grpc py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test httpx py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test requests py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 8b51e33401..004fbae57e 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -65,28 +65,28 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test fastapi latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test flask latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test starlette latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -139,28 +139,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test fastapi pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test flask pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test starlette pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -202,28 +202,28 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test fastapi py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test flask py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test starlette py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index e3a98f4519..c9efc21682 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -44,77 +44,77 @@ jobs: # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test asgi latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test bottle latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test falcon latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pyramid latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test quart latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test redis latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test rediscluster latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test sanic latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test starlite latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test tornado latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -146,77 +146,77 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test asgi pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test bottle pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test falcon pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pyramid pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test quart pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test redis pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test rediscluster pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test sanic pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test starlite pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test tornado pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -237,77 +237,77 @@ jobs: # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test asgi py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test bottle py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test falcon py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test pyramid py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test quart py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test redis py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test rediscluster py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test sanic py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test starlite py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - name: Test tornado py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 3c4f443b22..9a09192d31 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -88,7 +88,7 @@ ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% endif %} [ -e .coverage ] && coverage combine .coverage* - coverage xml -i + [ -e .coverage ] && coverage xml -i {% endfor %} - uses: codecov/codecov-action@v3 From 3e913fe215f66743e49cf17750a57ffbff9d0fd7 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 14:54:49 +0100 Subject: [PATCH 21/26] proper if --- .../test-integrations-aws-lambda.yml | 6 +- .../test-integrations-cloud-computing.yml | 72 ++++--- .../workflows/test-integrations-common.yml | 12 +- .../test-integrations-data-processing.yml | 90 +++++--- .../workflows/test-integrations-databases.yml | 72 ++++--- .../workflows/test-integrations-graphql.yml | 48 +++-- .../test-integrations-miscellaneous.yml | 48 +++-- .../test-integrations-networking.yml | 72 ++++--- .../test-integrations-web-frameworks-1.yml | 72 ++++--- .../test-integrations-web-frameworks-2.yml | 198 ++++++++++++------ .../templates/test_group.jinja | 6 +- 11 files changed, 464 insertions(+), 232 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index ca3ac566f0..b1948f62ec 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -78,8 +78,10 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index a9bfae30b2..1a05ae2936 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -43,29 +43,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test chalice latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test cloud_resource_context latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test gcp latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -96,29 +104,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test chalice pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test gcp pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -138,29 +154,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test chalice py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test gcp py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 76dcf309c8..34d3ea810d 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -43,8 +43,10 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -64,8 +66,10 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 48c067c54b..c5c1833740 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -43,36 +43,46 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test beam latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test celery latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test huey latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test rq latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -103,36 +113,46 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test beam pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test celery pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test huey pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test rq pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -152,36 +172,46 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test beam py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test celery py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test huey py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test rq py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 20a0319ac0..d4375b4d2f 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -65,29 +65,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test clickhouse_driver latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pymongo latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test sqlalchemy latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -140,29 +148,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pymongo pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test sqlalchemy pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -204,29 +220,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pymongo py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test sqlalchemy py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 8b9f30a83c..4753dfe96c 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -43,29 +43,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test gql latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test graphene latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test strawberry latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -96,29 +104,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test gql pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test graphene pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test strawberry pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index dee23d3b37..9485bb9e9a 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -43,29 +43,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test opentelemetry latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pure_eval latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test trytond latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -96,29 +104,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test opentelemetry pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pure_eval pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test trytond pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 62cb13c49c..37e45a449a 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -43,29 +43,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test grpc latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test httpx latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test requests latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -96,29 +104,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test grpc pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test httpx pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test requests pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -138,29 +154,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test grpc py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test httpx py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test requests py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index 004fbae57e..dc9caa63d7 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -64,29 +64,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test fastapi latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test flask latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test starlette latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -138,29 +146,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test fastapi pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test flask pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test starlette pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -201,29 +217,37 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test fastapi py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test flask py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test starlette py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index c9efc21682..fbaceb7192 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -43,78 +43,100 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test asgi latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test bottle latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test falcon latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pyramid latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test quart latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test redis latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test rediscluster latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test sanic latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test starlite latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test tornado latest run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -145,78 +167,100 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test asgi pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test bottle pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test falcon pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pyramid pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test quart pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test redis pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test rediscluster pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test sanic pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test starlite pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test tornado pinned run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -236,78 +280,100 @@ jobs: set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test asgi py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test bottle py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test falcon py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test pyramid py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test quart py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test redis py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test rediscluster py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test sanic py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test starlite py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - name: Test tornado py27 run: | set -x # print commands that are executed # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 9a09192d31..6cc861e592 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -87,8 +87,10 @@ {% elif category == "latest" %} ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% endif %} - [ -e .coverage ] && coverage combine .coverage* - [ -e .coverage ] && coverage xml -i + if [ -e .coverage ]; then + coverage combine .coverage* + coverage xml -i + fi {% endfor %} - uses: codecov/codecov-action@v3 From 7262debcedff736b8041c1bcb6b456835e7f4dd4 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 15:19:34 +0100 Subject: [PATCH 22/26] coverage erase --- .../test-integrations-aws-lambda.yml | 1 + .../test-integrations-cloud-computing.yml | 12 +++++++ .../workflows/test-integrations-common.yml | 2 ++ .../test-integrations-data-processing.yml | 15 +++++++++ .../workflows/test-integrations-databases.yml | 12 +++++++ .../workflows/test-integrations-graphql.yml | 8 +++++ .../test-integrations-miscellaneous.yml | 8 +++++ .../test-integrations-networking.yml | 12 +++++++ .../test-integrations-web-frameworks-1.yml | 12 +++++++ .../test-integrations-web-frameworks-2.yml | 33 +++++++++++++++++++ .../templates/test_group.jinja | 2 ++ 11 files changed, 117 insertions(+) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index b1948f62ec..7aa63153bc 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -76,6 +76,7 @@ jobs: - name: Test aws_lambda pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index 1a05ae2936..629af4f051 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -41,6 +41,7 @@ jobs: - name: Test boto3 latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -50,6 +51,7 @@ jobs: - name: Test chalice latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -59,6 +61,7 @@ jobs: - name: Test cloud_resource_context latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -68,6 +71,7 @@ jobs: - name: Test gcp latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -102,6 +106,7 @@ jobs: - name: Test boto3 pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -111,6 +116,7 @@ jobs: - name: Test chalice pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -120,6 +126,7 @@ jobs: - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -129,6 +136,7 @@ jobs: - name: Test gcp pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -152,6 +160,7 @@ jobs: - name: Test boto3 py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -161,6 +170,7 @@ jobs: - name: Test chalice py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -170,6 +180,7 @@ jobs: - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -179,6 +190,7 @@ jobs: - name: Test gcp py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 34d3ea810d..0fa90805a7 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -41,6 +41,7 @@ jobs: - name: Test common pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -64,6 +65,7 @@ jobs: - name: Test common py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index c5c1833740..baf7c0c6cc 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -41,6 +41,7 @@ jobs: - name: Test arq latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -50,6 +51,7 @@ jobs: - name: Test beam latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -59,6 +61,7 @@ jobs: - name: Test celery latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -68,6 +71,7 @@ jobs: - name: Test huey latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -77,6 +81,7 @@ jobs: - name: Test rq latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -111,6 +116,7 @@ jobs: - name: Test arq pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -120,6 +126,7 @@ jobs: - name: Test beam pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -129,6 +136,7 @@ jobs: - name: Test celery pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -138,6 +146,7 @@ jobs: - name: Test huey pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -147,6 +156,7 @@ jobs: - name: Test rq pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -170,6 +180,7 @@ jobs: - name: Test arq py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -179,6 +190,7 @@ jobs: - name: Test beam py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -188,6 +200,7 @@ jobs: - name: Test celery py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -197,6 +210,7 @@ jobs: - name: Test huey py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -206,6 +220,7 @@ jobs: - name: Test rq py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index d4375b4d2f..2cb1fd4495 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -63,6 +63,7 @@ jobs: - name: Test asyncpg latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -72,6 +73,7 @@ jobs: - name: Test clickhouse_driver latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -81,6 +83,7 @@ jobs: - name: Test pymongo latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -90,6 +93,7 @@ jobs: - name: Test sqlalchemy latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -146,6 +150,7 @@ jobs: - name: Test asyncpg pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -155,6 +160,7 @@ jobs: - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -164,6 +170,7 @@ jobs: - name: Test pymongo pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -173,6 +180,7 @@ jobs: - name: Test sqlalchemy pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -218,6 +226,7 @@ jobs: - name: Test asyncpg py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -227,6 +236,7 @@ jobs: - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -236,6 +246,7 @@ jobs: - name: Test pymongo py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -245,6 +256,7 @@ jobs: - name: Test sqlalchemy py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 4753dfe96c..7a793d5efc 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -41,6 +41,7 @@ jobs: - name: Test ariadne latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -50,6 +51,7 @@ jobs: - name: Test gql latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -59,6 +61,7 @@ jobs: - name: Test graphene latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -68,6 +71,7 @@ jobs: - name: Test strawberry latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -102,6 +106,7 @@ jobs: - name: Test ariadne pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -111,6 +116,7 @@ jobs: - name: Test gql pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -120,6 +126,7 @@ jobs: - name: Test graphene pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -129,6 +136,7 @@ jobs: - name: Test strawberry pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 9485bb9e9a..c17a71ccd0 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -41,6 +41,7 @@ jobs: - name: Test loguru latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -50,6 +51,7 @@ jobs: - name: Test opentelemetry latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -59,6 +61,7 @@ jobs: - name: Test pure_eval latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -68,6 +71,7 @@ jobs: - name: Test trytond latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -102,6 +106,7 @@ jobs: - name: Test loguru pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -111,6 +116,7 @@ jobs: - name: Test opentelemetry pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -120,6 +126,7 @@ jobs: - name: Test pure_eval pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -129,6 +136,7 @@ jobs: - name: Test trytond pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 37e45a449a..9d31e507af 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -41,6 +41,7 @@ jobs: - name: Test gevent latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -50,6 +51,7 @@ jobs: - name: Test grpc latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -59,6 +61,7 @@ jobs: - name: Test httpx latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -68,6 +71,7 @@ jobs: - name: Test requests latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -102,6 +106,7 @@ jobs: - name: Test gevent pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -111,6 +116,7 @@ jobs: - name: Test grpc pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -120,6 +126,7 @@ jobs: - name: Test httpx pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -129,6 +136,7 @@ jobs: - name: Test requests pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -152,6 +160,7 @@ jobs: - name: Test gevent py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -161,6 +170,7 @@ jobs: - name: Test grpc py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -170,6 +180,7 @@ jobs: - name: Test httpx py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -179,6 +190,7 @@ jobs: - name: Test requests py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index dc9caa63d7..c729516e95 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -62,6 +62,7 @@ jobs: - name: Test django latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -71,6 +72,7 @@ jobs: - name: Test fastapi latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -80,6 +82,7 @@ jobs: - name: Test flask latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -89,6 +92,7 @@ jobs: - name: Test starlette latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -144,6 +148,7 @@ jobs: - name: Test django pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -153,6 +158,7 @@ jobs: - name: Test fastapi pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -162,6 +168,7 @@ jobs: - name: Test flask pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -171,6 +178,7 @@ jobs: - name: Test starlette pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -215,6 +223,7 @@ jobs: - name: Test django py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -224,6 +233,7 @@ jobs: - name: Test fastapi py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -233,6 +243,7 @@ jobs: - name: Test flask py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -242,6 +253,7 @@ jobs: - name: Test starlette py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index fbaceb7192..66c952ae2f 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -41,6 +41,7 @@ jobs: - name: Test aiohttp latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -50,6 +51,7 @@ jobs: - name: Test asgi latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -59,6 +61,7 @@ jobs: - name: Test bottle latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -68,6 +71,7 @@ jobs: - name: Test falcon latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -77,6 +81,7 @@ jobs: - name: Test pyramid latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -86,6 +91,7 @@ jobs: - name: Test quart latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -95,6 +101,7 @@ jobs: - name: Test redis latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -104,6 +111,7 @@ jobs: - name: Test rediscluster latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -113,6 +121,7 @@ jobs: - name: Test sanic latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -122,6 +131,7 @@ jobs: - name: Test starlite latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -131,6 +141,7 @@ jobs: - name: Test tornado latest run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -165,6 +176,7 @@ jobs: - name: Test aiohttp pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -174,6 +186,7 @@ jobs: - name: Test asgi pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -183,6 +196,7 @@ jobs: - name: Test bottle pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -192,6 +206,7 @@ jobs: - name: Test falcon pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -201,6 +216,7 @@ jobs: - name: Test pyramid pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -210,6 +226,7 @@ jobs: - name: Test quart pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -219,6 +236,7 @@ jobs: - name: Test redis pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -228,6 +246,7 @@ jobs: - name: Test rediscluster pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -237,6 +256,7 @@ jobs: - name: Test sanic pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -246,6 +266,7 @@ jobs: - name: Test starlite pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -255,6 +276,7 @@ jobs: - name: Test tornado pinned run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -278,6 +300,7 @@ jobs: - name: Test aiohttp py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -287,6 +310,7 @@ jobs: - name: Test asgi py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -296,6 +320,7 @@ jobs: - name: Test bottle py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -305,6 +330,7 @@ jobs: - name: Test falcon py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -314,6 +340,7 @@ jobs: - name: Test pyramid py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -323,6 +350,7 @@ jobs: - name: Test quart py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -332,6 +360,7 @@ jobs: - name: Test redis py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -341,6 +370,7 @@ jobs: - name: Test rediscluster py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -350,6 +380,7 @@ jobs: - name: Test sanic py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -359,6 +390,7 @@ jobs: - name: Test starlite py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then @@ -368,6 +400,7 @@ jobs: - name: Test tornado py27 run: | set -x # print commands that are executed + coverage erase # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch if [ -e .coverage ]; then diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 6cc861e592..6e7b93e0d9 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -79,6 +79,8 @@ run: | set -x # print commands that are executed + coverage erase + # Run tests {% if category == "py27" %} ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch From bece639fad641e128493913e6fe7c566766906f0 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 15:26:48 +0100 Subject: [PATCH 23/26] skip empty py versions --- .../test-integrations-cloud-computing.yml | 4 ++-- .../test-integrations-data-processing.yml | 2 +- .../workflows/test-integrations-databases.yml | 2 +- .github/workflows/test-integrations-graphql.yml | 2 +- .../test-integrations-miscellaneous.yml | 2 +- .../workflows/test-integrations-networking.yml | 2 +- .../test-integrations-web-frameworks-1.yml | 2 +- .../test-integrations-web-frameworks-2.yml | 2 +- .../split-tox-gh-actions/split-tox-gh-actions.py | 16 +++++++++------- .../templates/test_group.jinja | 2 +- 10 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index 629af4f051..b5c4a782d6 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.9","3.10","3.11","3.12"] + python-version: ["3.7","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 @@ -89,7 +89,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.9","3.10","3.11","3.12"] + python-version: ["3.6","3.7","3.9","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 diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index baf7c0c6cc..23d2b1beb6 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.5","3.7","3.8","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 diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index 2cb1fd4495..c943de52db 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.7","3.8","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 diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 7a793d5efc..4ac08e2a8a 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -89,7 +89,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7","3.8","3.11","3.12"] + python-version: ["3.7","3.8","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 diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index c17a71ccd0..62fad718a2 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.11","3.12"] + python-version: ["3.5","3.8","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 diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 9d31e507af..3141b6f8c7 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","3.9","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 diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index c729516e95..fadee09aef 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"] + python-version: ["3.8","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 diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 66c952ae2f..6ebabf6b9a 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.5","3.6","3.7","3.8","3.9","3.11","3.12"] + python-version: ["3.5","3.6","3.7","3.8","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 diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 2d60bf5719..2168609c5f 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -252,7 +252,7 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): template = ENV.get_template("base.jinja") categories = set() - matrix_py_versions = set() + matrix_py_versions = defaultdict(set) for framework in frameworks: if py_versions_pinned[framework]: categories.add("pinned") @@ -261,10 +261,11 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): if "2.7" in py_versions_pinned[framework]: categories.add("py27") - matrix_py_versions |= set(py_versions_pinned[framework]) - matrix_py_versions |= set(py_versions_latest[framework]) + matrix_py_versions["pinned"] |= set(py_versions_pinned[framework]) + matrix_py_versions["latest"] |= set(py_versions_latest[framework]) - matrix_py_versions.discard("2.7") + matrix_py_versions["pinned"].discard("2.7") + matrix_py_versions["latest"].discard("2.7") context = { "group": group, @@ -276,9 +277,10 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): "needs_github_secrets": bool( set(frameworks) & FRAMEWORKS_NEEDING_GITHUB_SECRETS ), - "all_versions": [ - f'"{version}"' for version in _normalize_py_versions(matrix_py_versions) - ], + "versions": { + category: [f'"{version}"' for version in _normalize_py_versions(versions)] + for category, versions in matrix_py_versions.items() + }, } rendered = template.render(context) rendered = postprocess_template(rendered) diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 6e7b93e0d9..91e51df381 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -14,7 +14,7 @@ strategy: fail-fast: false matrix: - python-version: [{{ all_versions|join(",") }}] + python-version: [{{ versions.get(category)|join(",") }}] # 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 From 516a70c1281b058cf16ebb47a712f800aac21bee Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 15:46:45 +0100 Subject: [PATCH 24/26] fix coverage --- .../test-integrations-aws-lambda.yml | 13 +- .../test-integrations-cloud-computing.yml | 93 ++------ .../workflows/test-integrations-common.yml | 26 ++- .../test-integrations-data-processing.yml | 111 ++------- .../workflows/test-integrations-databases.yml | 93 ++------ .../workflows/test-integrations-graphql.yml | 62 ++--- .../test-integrations-miscellaneous.yml | 62 ++--- .../test-integrations-networking.yml | 93 ++------ .../test-integrations-web-frameworks-1.yml | 93 ++------ .../test-integrations-web-frameworks-2.yml | 219 ++---------------- .../templates/test_group.jinja | 16 +- 11 files changed, 184 insertions(+), 697 deletions(-) diff --git a/.github/workflows/test-integrations-aws-lambda.yml b/.github/workflows/test-integrations-aws-lambda.yml index 7aa63153bc..1b3a064541 100644 --- a/.github/workflows/test-integrations-aws-lambda.yml +++ b/.github/workflows/test-integrations-aws-lambda.yml @@ -73,16 +73,17 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test aws_lambda pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-cloud-computing.yml b/.github/workflows/test-integrations-cloud-computing.yml index b5c4a782d6..2f4950c4ff 100644 --- a/.github/workflows/test-integrations-cloud-computing.yml +++ b/.github/workflows/test-integrations-cloud-computing.yml @@ -38,46 +38,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test boto3 latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test chalice latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test cloud_resource_context latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test gcp latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -103,46 +86,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test boto3 pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test chalice pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test cloud_resource_context pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test gcp pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -157,46 +123,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test boto3 py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test chalice py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test cloud_resource_context py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test gcp py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 0fa90805a7..c72e0e9e28 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -38,16 +38,17 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test common pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -62,16 +63,17 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test common py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-data-processing.yml b/.github/workflows/test-integrations-data-processing.yml index 23d2b1beb6..0b19c3b4d2 100644 --- a/.github/workflows/test-integrations-data-processing.yml +++ b/.github/workflows/test-integrations-data-processing.yml @@ -38,56 +38,33 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test arq latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test beam latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test celery latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test huey latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test rq latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -113,56 +90,33 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test arq pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test beam pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test celery pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test huey pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test rq pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -177,56 +131,33 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test arq py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test beam py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test celery py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test huey py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test rq py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-databases.yml b/.github/workflows/test-integrations-databases.yml index c943de52db..0530a06de2 100644 --- a/.github/workflows/test-integrations-databases.yml +++ b/.github/workflows/test-integrations-databases.yml @@ -60,46 +60,29 @@ jobs: 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: Erase coverage + run: | + coverage erase - name: Test asyncpg latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test clickhouse_driver latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pymongo latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test sqlalchemy latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -147,46 +130,29 @@ jobs: 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: Erase coverage + run: | + coverage erase - name: Test asyncpg pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test clickhouse_driver pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pymongo pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test sqlalchemy pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -223,46 +189,29 @@ jobs: pip install coverage "tox>=3,<4" psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Erase coverage + run: | + coverage erase - name: Test asyncpg py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test clickhouse_driver py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pymongo py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test sqlalchemy py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 4ac08e2a8a..dc3ff48862 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -38,46 +38,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test ariadne latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test gql latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test graphene latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test strawberry latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -103,46 +86,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test ariadne pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-ariadne" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test gql pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gql" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test graphene pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-graphene" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test strawberry pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-strawberry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-miscellaneous.yml b/.github/workflows/test-integrations-miscellaneous.yml index 62fad718a2..4dd06a9508 100644 --- a/.github/workflows/test-integrations-miscellaneous.yml +++ b/.github/workflows/test-integrations-miscellaneous.yml @@ -38,46 +38,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test loguru latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test opentelemetry latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pure_eval latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test trytond latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -103,46 +86,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test loguru pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test opentelemetry pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pure_eval pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test trytond pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-networking.yml b/.github/workflows/test-integrations-networking.yml index 3141b6f8c7..315d5125ea 100644 --- a/.github/workflows/test-integrations-networking.yml +++ b/.github/workflows/test-integrations-networking.yml @@ -38,46 +38,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test gevent latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test grpc latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test httpx latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test requests latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-requests-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -103,46 +86,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test gevent pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test grpc pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test httpx pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test requests pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -157,46 +123,29 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test gevent py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test grpc py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test httpx py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test requests py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-web-frameworks-1.yml b/.github/workflows/test-integrations-web-frameworks-1.yml index fadee09aef..ab9703cc5f 100644 --- a/.github/workflows/test-integrations-web-frameworks-1.yml +++ b/.github/workflows/test-integrations-web-frameworks-1.yml @@ -59,46 +59,29 @@ jobs: 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: Erase coverage + run: | + coverage erase - name: Test django latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-django-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test fastapi latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test flask latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-flask-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test starlette latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -145,46 +128,29 @@ jobs: 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: Erase coverage + run: | + coverage erase - name: Test django pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test fastapi pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test flask pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test starlette pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -220,46 +186,29 @@ jobs: pip install coverage "tox>=3,<4" psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true + - name: Erase coverage + run: | + coverage erase - name: Test django py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test fastapi py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test flask py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test starlette py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test-integrations-web-frameworks-2.yml b/.github/workflows/test-integrations-web-frameworks-2.yml index 6ebabf6b9a..aaf29fab73 100644 --- a/.github/workflows/test-integrations-web-frameworks-2.yml +++ b/.github/workflows/test-integrations-web-frameworks-2.yml @@ -38,116 +38,57 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test aiohttp latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test asgi latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test bottle latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test falcon latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pyramid latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test quart latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-quart-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test redis latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-redis-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test rediscluster latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test sanic latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test starlite latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test tornado latest run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -173,116 +114,57 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test aiohttp pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test asgi pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test bottle pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test falcon pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pyramid pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test quart pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test redis pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test rediscluster pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test sanic pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test starlite pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test tornado pinned run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -297,116 +179,57 @@ jobs: - name: Setup Test Env run: | pip install coverage "tox>=3,<4" + - name: Erase coverage + run: | + coverage erase - name: Test aiohttp py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test asgi py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test bottle py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test falcon py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test pyramid py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test quart py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test redis py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test rediscluster py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test sanic py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test starlite py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi - name: Test tornado py27 run: | set -x # print commands that are executed - coverage erase - # Run tests ./scripts/runtox.sh --exclude-latest "py2.7-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 91e51df381..3fd82d8b79 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -74,14 +74,15 @@ {% endif %} {% endif %} + - name: Erase coverage + run: | + coverage erase + {% for framework in frameworks %} - name: Test {{ framework }} {{ category }} run: | set -x # print commands that are executed - coverage erase - - # Run tests {% if category == "py27" %} ./scripts/runtox.sh --exclude-latest "py2.7-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% elif category == "pinned" %} @@ -89,12 +90,13 @@ {% elif category == "latest" %} ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch {% endif %} - if [ -e .coverage ]; then - coverage combine .coverage* - coverage xml -i - fi {% endfor %} + - name: Generate coverage XML + run: | + coverage combine .coverage* + coverage xml -i + - uses: codecov/codecov-action@v3 with: token: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %} From e2b4f868d2276b26a740fbb418868c854452aea7 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 5 Dec 2023 16:14:36 +0100 Subject: [PATCH 25/26] small cleanup; --- .../split-tox-gh-actions/split-tox-gh-actions.py | 15 +++++++-------- .../templates/test_group.jinja | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 2168609c5f..09143ff91c 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -252,20 +252,19 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): template = ENV.get_template("base.jinja") categories = set() - matrix_py_versions = defaultdict(set) + py_versions = defaultdict(set) for framework in frameworks: if py_versions_pinned[framework]: categories.add("pinned") + py_versions["pinned"] |= set(py_versions_pinned[framework]) if py_versions_latest[framework]: categories.add("latest") + py_versions["latest"] |= set(py_versions_latest[framework]) if "2.7" in py_versions_pinned[framework]: categories.add("py27") - matrix_py_versions["pinned"] |= set(py_versions_pinned[framework]) - matrix_py_versions["latest"] |= set(py_versions_latest[framework]) - - matrix_py_versions["pinned"].discard("2.7") - matrix_py_versions["latest"].discard("2.7") + py_versions["pinned"].discard("2.7") + py_versions["latest"].discard("2.7") context = { "group": group, @@ -277,9 +276,9 @@ def render_template(group, frameworks, py_versions_pinned, py_versions_latest): "needs_github_secrets": bool( set(frameworks) & FRAMEWORKS_NEEDING_GITHUB_SECRETS ), - "versions": { + "py_versions": { category: [f'"{version}"' for version in _normalize_py_versions(versions)] - for category, versions in matrix_py_versions.items() + for category, versions in py_versions.items() }, } rendered = template.render(context) diff --git a/scripts/split-tox-gh-actions/templates/test_group.jinja b/scripts/split-tox-gh-actions/templates/test_group.jinja index 3fd82d8b79..764fad23e3 100644 --- a/scripts/split-tox-gh-actions/templates/test_group.jinja +++ b/scripts/split-tox-gh-actions/templates/test_group.jinja @@ -14,7 +14,7 @@ strategy: fail-fast: false matrix: - python-version: [{{ versions.get(category)|join(",") }}] + python-version: [{{ py_versions.get(category)|join(",") }}] # 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 From 7ef754062c9a2ae0d87c33b6bb68f1e4ead12cea Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Wed, 6 Dec 2023 12:46:17 +0100 Subject: [PATCH 26/26] small refactor --- .../split-tox-gh-actions/split-tox-gh-actions.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py index 09143ff91c..011ad497ae 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -213,21 +213,21 @@ def find_frameworks_missing_from_groups(py_versions_pinned, py_versions_latest): def _normalize_py_versions(py_versions): + def replace_and_sort(versions): + return sorted( + [py.replace("py", "") for py in versions], + key=lambda v: tuple(map(int, v.split("."))), + ) + if isinstance(py_versions, dict): normalized = defaultdict(set) normalized |= { - framework: sorted( - [py.replace("py", "") for py in versions], - key=lambda v: tuple(map(int, v.split("."))), - ) + framework: replace_and_sort(versions) for framework, versions in py_versions.items() } elif isinstance(py_versions, set): - normalized = sorted( - [py.replace("py", "") for py in py_versions], - key=lambda v: tuple(map(int, v.split("."))), - ) + normalized = replace_and_sort(py_versions) return normalized