diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index 539a2d6931..46aec35dd4 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -26,7 +26,7 @@ jobs: test: name: common, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test common - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index 54df6e7b20..3db0a7b142 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -26,7 +26,7 @@ jobs: test: name: aiohttp, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test aiohttp - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-arq.yml b/.github/workflows/test-integration-arq.yml index e3d1fc36da..5b5ecc3a41 100644 --- a/.github/workflows/test-integration-arq.yml +++ b/.github/workflows/test-integration-arq.yml @@ -26,7 +26,7 @@ jobs: test: name: arq, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test arq - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 08927f015a..4e0e676151 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -26,7 +26,7 @@ jobs: test: name: asgi, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test asgi - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index f25f263f46..c9bc60409e 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -26,7 +26,7 @@ jobs: test: name: aws_lambda, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test aws_lambda - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + 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 }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "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-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 815967c78c..a87524fb06 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -26,7 +26,7 @@ jobs: test: name: beam, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test beam - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 2514f427c2..0c6cd55e9e 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -26,7 +26,7 @@ jobs: test: name: boto3, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test boto3 - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index bdd3c05f64..b8c7561a2d 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -26,7 +26,7 @@ jobs: test: name: bottle, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test bottle - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index d7be8208ac..21a4747d83 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -26,7 +26,7 @@ jobs: test: name: celery, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test celery - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 57a33160df..024193b64c 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -26,7 +26,7 @@ jobs: test: name: chalice, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test chalice - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-cloud_resource_context.yml b/.github/workflows/test-integration-cloud_resource_context.yml index afd7c8b5c9..95a3855b63 100644 --- a/.github/workflows/test-integration-cloud_resource_context.yml +++ b/.github/workflows/test-integration-cloud_resource_context.yml @@ -26,7 +26,7 @@ jobs: test: name: cloud_resource_context, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test cloud_resource_context - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 4e90a5725e..dbd032d6dc 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -26,7 +26,7 @@ jobs: test: name: django, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -67,16 +67,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test django - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 611db99fda..edabecbe11 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -26,7 +26,7 @@ jobs: test: name: falcon, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test falcon - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 93405edf6a..a7325c21de 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -26,7 +26,7 @@ jobs: test: name: fastapi, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test fastapi - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 9373179ae5..373e86c10d 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -26,7 +26,7 @@ jobs: test: name: flask, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test flask - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index 5db0a6905b..defd0e9b7d 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -26,7 +26,7 @@ jobs: test: name: gcp, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test gcp - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-gevent.yml b/.github/workflows/test-integration-gevent.yml index 20593d88ff..40acbce266 100644 --- a/.github/workflows/test-integration-gevent.yml +++ b/.github/workflows/test-integration-gevent.yml @@ -26,7 +26,7 @@ jobs: test: name: gevent, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test gevent - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-grpc.yml b/.github/workflows/test-integration-grpc.yml index 0122124a79..4680eca69b 100644 --- a/.github/workflows/test-integration-grpc.yml +++ b/.github/workflows/test-integration-grpc.yml @@ -26,7 +26,7 @@ jobs: test: name: grpc, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test grpc - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index aac81aa3e5..0e487aac0e 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -26,7 +26,7 @@ jobs: test: name: httpx, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test httpx - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-huey.yml b/.github/workflows/test-integration-huey.yml index 59dc3e3edb..22fda63543 100644 --- a/.github/workflows/test-integration-huey.yml +++ b/.github/workflows/test-integration-huey.yml @@ -26,7 +26,7 @@ jobs: test: name: huey, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test huey - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-loguru.yml b/.github/workflows/test-integration-loguru.yml index 3fe09a8213..98843f9867 100644 --- a/.github/workflows/test-integration-loguru.yml +++ b/.github/workflows/test-integration-loguru.yml @@ -26,7 +26,7 @@ jobs: test: name: loguru, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test loguru - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-loguru" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-opentelemetry.yml b/.github/workflows/test-integration-opentelemetry.yml index f493c42ebe..903ea9a249 100644 --- a/.github/workflows/test-integration-opentelemetry.yml +++ b/.github/workflows/test-integration-opentelemetry.yml @@ -26,7 +26,7 @@ jobs: test: name: opentelemetry, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test opentelemetry - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index d6a014b1f1..7c75fc6e62 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -26,7 +26,7 @@ jobs: test: name: pure_eval, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test pure_eval - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-pymongo.yml b/.github/workflows/test-integration-pymongo.yml index 2822443423..d5b2743a67 100644 --- a/.github/workflows/test-integration-pymongo.yml +++ b/.github/workflows/test-integration-pymongo.yml @@ -26,7 +26,7 @@ jobs: test: name: pymongo, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test pymongo - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 626bf920a9..bb57639c9c 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -26,7 +26,7 @@ jobs: test: name: pyramid, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test pyramid - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 08efc8cdc2..798749e76e 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -26,7 +26,7 @@ jobs: test: name: quart, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test quart - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 0e3f49f360..79998aaf6b 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -26,7 +26,7 @@ jobs: test: name: redis, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test redis - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 9b6ba22874..94fe58b12a 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -26,7 +26,7 @@ jobs: test: name: rediscluster, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test rediscluster - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index fe50c033a4..321813d08e 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -26,7 +26,7 @@ jobs: test: name: requests, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test requests - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 8b86f5849b..f12a9ed067 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -26,7 +26,7 @@ jobs: test: name: rq, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test rq - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 906f10b0ec..fc0984e2e5 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -26,7 +26,7 @@ jobs: test: name: sanic, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test sanic - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index fc844adf9c..7208e67abd 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -26,7 +26,7 @@ jobs: test: name: sqlalchemy, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test sqlalchemy - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index d6bb94dcb9..1d0b3879bc 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -26,7 +26,7 @@ jobs: test: name: starlette, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test starlette - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-starlite.yml b/.github/workflows/test-integration-starlite.yml index 6d9a8f5212..6c74cbe4f0 100644 --- a/.github/workflows/test-integration-starlite.yml +++ b/.github/workflows/test-integration-starlite.yml @@ -26,7 +26,7 @@ jobs: test: name: starlite, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test starlite - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-starlite" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index f5f6921261..69bee7ff17 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -26,7 +26,7 @@ jobs: test: name: tornado, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test tornado - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 64d2a0b9f6..44fd273144 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -26,7 +26,7 @@ jobs: test: name: trytond, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 strategy: fail-fast: false @@ -49,16 +49,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test trytond - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + uses: nick-fields/retry@v2 + with: + timeout_minutes: 15 + max_attempts: 2 + retry_wait_seconds: 5 + shell: bash + command: | + set -x # print commands that are executed + coverage erase - # Run tests - ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: diff --git a/scripts/split-tox-gh-actions/ci-yaml.txt b/scripts/split-tox-gh-actions/ci-yaml.txt index 24c8072e97..a30afff42f 100644 --- a/scripts/split-tox-gh-actions/ci-yaml.txt +++ b/scripts/split-tox-gh-actions/ci-yaml.txt @@ -26,7 +26,7 @@ jobs: test: name: {{ framework }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} - timeout-minutes: 45 + timeout-minutes: 30 {{ strategy_matrix }} {{ services }} @@ -41,16 +41,20 @@ jobs: pip install coverage "tox>=3,<4" - name: Test {{ framework }} - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase + 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 }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i + # Run tests + ./scripts/runtox.sh "py${{ matrix.python-version }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch && + coverage combine .coverage* && + coverage xml -i - uses: codecov/codecov-action@v3 with: