From 647af0eb6382395655c01751ee72150fa0a70256 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Tue, 17 Nov 2026 14:19:31 +0100 Subject: [PATCH 1/2] ci: Run steps in parallel --- .../workflows/test-integrations-agents.yml | 17 ++-- .../test-integrations-ai-workflow.yml | 25 +++--- .github/workflows/test-integrations-ai.yml | 73 ++++++++--------- .github/workflows/test-integrations-cloud.yml | 41 +++++----- .../workflows/test-integrations-common.yml | 9 ++- .github/workflows/test-integrations-dbs.yml | 57 ++++++------- .github/workflows/test-integrations-flags.yml | 33 ++++---- .../workflows/test-integrations-gevent.yml | 9 ++- .../workflows/test-integrations-graphql.yml | 33 ++++---- .github/workflows/test-integrations-mcp.yml | 17 ++-- .github/workflows/test-integrations-misc.yml | 73 ++++++++--------- .../workflows/test-integrations-network.yml | 41 +++++----- .github/workflows/test-integrations-tasks.yml | 65 +++++++-------- .github/workflows/test-integrations-web-1.yml | 33 ++++---- .github/workflows/test-integrations-web-2.yml | 81 ++++++++++--------- .../templates/test_group.jinja | 13 +-- 16 files changed, 318 insertions(+), 302 deletions(-) diff --git a/.github/workflows/test-integrations-agents.yml b/.github/workflows/test-integrations-agents.yml index 0536b428a4..b7073355ca 100644 --- a/.github/workflows/test-integrations-agents.yml +++ b/.github/workflows/test-integrations-agents.yml @@ -37,14 +37,15 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test openai_agents - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents" - - name: Test pydantic_ai - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai" + - parallel: + - name: Test openai_agents + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents" + - name: Test pydantic_ai + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-ai-workflow.yml b/.github/workflows/test-integrations-ai-workflow.yml index 9fb944d520..29703f444e 100644 --- a/.github/workflows/test-integrations-ai-workflow.yml +++ b/.github/workflows/test-integrations-ai-workflow.yml @@ -37,18 +37,19 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test langchain-base - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-base" - - name: Test langchain-notiktoken - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-notiktoken" - - name: Test langgraph - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph" + - parallel: + - name: Test langchain-base + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-base" + - name: Test langchain-notiktoken + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-notiktoken" + - name: Test langgraph + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-ai.yml b/.github/workflows/test-integrations-ai.yml index cd6f64fc04..f66b9e2dbd 100644 --- a/.github/workflows/test-integrations-ai.yml +++ b/.github/workflows/test-integrations-ai.yml @@ -37,42 +37,43 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test anthropic - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic" - - name: Test cohere - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-cohere" - - name: Test google_genai - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-google_genai" - - name: Test huggingface_hub - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub" - - name: Test litellm - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-litellm" - - name: Test mistral - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-mistral" - - name: Test openai-base - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-base" - - name: Test openai-notiktoken - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken" - - name: Test typesafe - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-typesafe" + - parallel: + - name: Test anthropic + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic" + - name: Test cohere + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-cohere" + - name: Test google_genai + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-google_genai" + - name: Test huggingface_hub + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub" + - name: Test litellm + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-litellm" + - name: Test mistral + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-mistral" + - name: Test openai-base + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-base" + - name: Test openai-notiktoken + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken" + - name: Test typesafe + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-typesafe" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-cloud.yml b/.github/workflows/test-integrations-cloud.yml index 3cb957c613..1cbd0f4f66 100644 --- a/.github/workflows/test-integrations-cloud.yml +++ b/.github/workflows/test-integrations-cloud.yml @@ -41,26 +41,27 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test aws_lambda - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda" - - name: Test boto3 - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3" - - name: Test chalice - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice" - - name: Test cloud_resource_context - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context" - - name: Test gcp - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp" + - parallel: + - name: Test aws_lambda + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda" + - name: Test boto3 + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3" + - name: Test chalice + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice" + - name: Test cloud_resource_context + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context" + - name: Test gcp + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-common.yml b/.github/workflows/test-integrations-common.yml index 9d071b7eae..cf19652d18 100644 --- a/.github/workflows/test-integrations-common.yml +++ b/.github/workflows/test-integrations-common.yml @@ -37,10 +37,11 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test common - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-common" + - parallel: + - name: Test common + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-common" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-dbs.yml b/.github/workflows/test-integrations-dbs.yml index d7d17f7eca..18ec851fd2 100644 --- a/.github/workflows/test-integrations-dbs.yml +++ b/.github/workflows/test-integrations-dbs.yml @@ -69,34 +69,35 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test aiomysql - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiomysql" - - name: Test asyncpg - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg" - - name: Test clickhouse_driver - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver" - - name: Test pymongo - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo" - - name: Test redis - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis" - - name: Test redis_py_cluster_legacy - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis_py_cluster_legacy" - - name: Test sqlalchemy - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy" + - parallel: + - name: Test aiomysql + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiomysql" + - name: Test asyncpg + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg" + - name: Test clickhouse_driver + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver" + - name: Test pymongo + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo" + - name: Test redis + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis" + - name: Test redis_py_cluster_legacy + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis_py_cluster_legacy" + - name: Test sqlalchemy + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-flags.yml b/.github/workflows/test-integrations-flags.yml index b7a99d1559..0fb0ac70a1 100644 --- a/.github/workflows/test-integrations-flags.yml +++ b/.github/workflows/test-integrations-flags.yml @@ -37,22 +37,23 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test launchdarkly - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-launchdarkly" - - name: Test openfeature - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-openfeature" - - name: Test statsig - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-statsig" - - name: Test unleash - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-unleash" + - parallel: + - name: Test launchdarkly + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-launchdarkly" + - name: Test openfeature + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-openfeature" + - name: Test statsig + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-statsig" + - name: Test unleash + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-unleash" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-gevent.yml b/.github/workflows/test-integrations-gevent.yml index 51f7f23848..896a8d3258 100644 --- a/.github/workflows/test-integrations-gevent.yml +++ b/.github/workflows/test-integrations-gevent.yml @@ -37,10 +37,11 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test gevent - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent" + - parallel: + - name: Test gevent + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-graphql.yml b/.github/workflows/test-integrations-graphql.yml index 7ec352fd73..071a051be2 100644 --- a/.github/workflows/test-integrations-graphql.yml +++ b/.github/workflows/test-integrations-graphql.yml @@ -37,22 +37,23 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test ariadne - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne" - - name: Test gql - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-gql" - - name: Test graphene - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene" - - name: Test strawberry - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry" + - parallel: + - name: Test ariadne + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne" + - name: Test gql + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-gql" + - name: Test graphene + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene" + - name: Test strawberry + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-mcp.yml b/.github/workflows/test-integrations-mcp.yml index 71d7274cca..b0a7c0903e 100644 --- a/.github/workflows/test-integrations-mcp.yml +++ b/.github/workflows/test-integrations-mcp.yml @@ -37,14 +37,15 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test mcp - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-mcp" - - name: Test fastmcp - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastmcp" + - parallel: + - name: Test mcp + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-mcp" + - name: Test fastmcp + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastmcp" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-misc.yml b/.github/workflows/test-integrations-misc.yml index 884034726c..1d6d72903e 100644 --- a/.github/workflows/test-integrations-misc.yml +++ b/.github/workflows/test-integrations-misc.yml @@ -37,42 +37,43 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test loguru - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru" - - name: Test opentelemetry - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry" - - name: Test otlp - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-otlp" - - name: Test potel - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-potel" - - name: Test pure_eval - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval" - - name: Test trytond - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond" - - name: Test typer - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-typer" - - name: Test integration_deactivation - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-integration_deactivation" - - name: Test shadowed_module - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-shadowed_module" + - parallel: + - name: Test loguru + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru" + - name: Test opentelemetry + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry" + - name: Test otlp + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-otlp" + - name: Test potel + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-potel" + - name: Test pure_eval + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval" + - name: Test trytond + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond" + - name: Test typer + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-typer" + - name: Test integration_deactivation + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-integration_deactivation" + - name: Test shadowed_module + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-shadowed_module" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-network.yml b/.github/workflows/test-integrations-network.yml index 3cce032345..185e2ad648 100644 --- a/.github/workflows/test-integrations-network.yml +++ b/.github/workflows/test-integrations-network.yml @@ -37,26 +37,27 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test grpc - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc" - - name: Test httpx0 - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx0" - - name: Test httpx2 - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx2" - - name: Test pyreqwest - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyreqwest" - - name: Test requests - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-requests" + - parallel: + - name: Test grpc + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc" + - name: Test httpx0 + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx0" + - name: Test httpx2 + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx2" + - name: Test pyreqwest + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyreqwest" + - name: Test requests + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-requests" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-tasks.yml b/.github/workflows/test-integrations-tasks.yml index 6d57f38b67..926f2ad50f 100644 --- a/.github/workflows/test-integrations-tasks.yml +++ b/.github/workflows/test-integrations-tasks.yml @@ -53,38 +53,39 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test arq - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq" - - name: Test beam - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam" - - name: Test celery - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery" - - name: Test dramatiq - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-dramatiq" - - name: Test huey - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey" - - name: Test ray - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-ray" - - name: Test rq - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-rq" - - name: Test spark - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-spark" + - parallel: + - name: Test arq + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq" + - name: Test beam + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam" + - name: Test celery + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery" + - name: Test dramatiq + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-dramatiq" + - name: Test huey + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey" + - name: Test ray + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-ray" + - name: Test rq + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-rq" + - name: Test spark + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-spark" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-web-1.yml b/.github/workflows/test-integrations-web-1.yml index 96da815367..f38b95442b 100644 --- a/.github/workflows/test-integrations-web-1.yml +++ b/.github/workflows/test-integrations-web-1.yml @@ -54,22 +54,23 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test django - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-django" - - name: Test flask - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask" - - name: Test starlette - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette" - - name: Test fastapi - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi" + - parallel: + - name: Test django + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-django" + - name: Test flask + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask" + - name: Test starlette + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette" + - name: Test fastapi + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/.github/workflows/test-integrations-web-2.yml b/.github/workflows/test-integrations-web-2.yml index 415f191aba..28917d2717 100644 --- a/.github/workflows/test-integrations-web-2.yml +++ b/.github/workflows/test-integrations-web-2.yml @@ -37,46 +37,47 @@ jobs: - name: Setup Test Env run: | uv sync - - name: Test aiohttp - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp" - - name: Test asgi - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi" - - name: Test bottle - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle" - - name: Test falcon - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon" - - name: Test litestar - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-litestar" - - name: Test pyramid - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid" - - name: Test quart - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-quart" - - name: Test sanic - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic" - - name: Test starlite - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite" - - name: Test tornado - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado" + - parallel: + - name: Test aiohttp + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp" + - name: Test asgi + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi" + - name: Test bottle + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle" + - name: Test falcon + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon" + - name: Test litestar + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-litestar" + - name: Test pyramid + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid" + - name: Test quart + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart" + - name: Test sanic + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic" + - name: Test starlite + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite" + - name: Test tornado + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado" - name: Upload coverage data if: ${{ !cancelled() }} continue-on-error: true diff --git a/scripts/split_tox_gh_actions/templates/test_group.jinja b/scripts/split_tox_gh_actions/templates/test_group.jinja index f0bb36f464..f468dbf9d1 100644 --- a/scripts/split_tox_gh_actions/templates/test_group.jinja +++ b/scripts/split_tox_gh_actions/templates/test_group.jinja @@ -101,12 +101,13 @@ run: | uv sync - {% for framework in frameworks %} - - name: Test {{ framework }} - run: | - set -x # print commands that are executed - ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" - {% endfor %} + - parallel: + {% for framework in frameworks %} + - name: Test {{ framework }} + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "{% raw %}py${{ matrix.python-version }}{% endraw %}-{{ framework }}" + {% endfor %} - name: Upload coverage data if: {% raw %}${{ !cancelled() }}{% endraw %} From e3b091ecf663a5f913adf817211ec41bc86630d7 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Tue, 17 Nov 2026 14:45:29 +0100 Subject: [PATCH 2/2] test flaky test fix --- tests/integrations/ray/test_ray.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integrations/ray/test_ray.py b/tests/integrations/ray/test_ray.py index aa8b00dc00..b255bc1a38 100644 --- a/tests/integrations/ray/test_ray.py +++ b/tests/integrations/ray/test_ray.py @@ -227,10 +227,10 @@ def test_tracing_in_ray_tasks(sentry_init, task_options, task, span_streaming): shutil.rmtree(ray_temp_dir, ignore_errors=True) sentry_sdk.flush() - client_envelope = sentry_sdk.get_client().transport.envelopes[0] client_spans = [ span - for item in client_envelope.items + for envelope in sentry_sdk.get_client().transport.envelopes + for item in envelope.items for span in item.payload.json["items"] ] assert client_spans[1]["name"] == "ray test parent" @@ -446,10 +446,10 @@ def increment(self): shutil.rmtree(ray_temp_dir, ignore_errors=True) sentry_sdk.flush() - client_envelope = sentry_sdk.get_client().transport.envelopes[0] client_spans = [ span - for item in client_envelope.items + for envelope in sentry_sdk.get_client().transport.envelopes + for item in envelope.items for span in item.payload.json["items"] ]