From bbfbb941a2fd22115b7dadd322864a1847a32778 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 13:43:01 +0200 Subject: [PATCH 01/78] Trying tox-gh --- .github/workflows/ci.yml | 2 +- tox.ini | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 772caeb12f..4acad3878d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,7 @@ jobs: PGHOST: localhost PGPASSWORD: sentry run: | - pip install codecov tox + pip install codecov tox tox-gh - name: Run Tests env: diff --git a/tox.ini b/tox.ini index 3d11ad0c0d..c9d9fc7907 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,17 @@ # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. +[gh] +python = + 2.7 = py2.7 + 3.4 = py3.4 + 3.5 = py3.5 + 3.6 = py3.6 + 3.7 = py3.7 + 3.8 = py3.8 + 3.9 = py3.9, + 3.10 = py3.10, pypy + [tox] envlist = # === Core === From 4723dd73c354ad5518a1b0a5f8a1c66436c071fb Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 15:34:24 +0200 Subject: [PATCH 02/78] Splitting out django tests --- .github/workflows/test-django.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test-django.yml diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml new file mode 100644 index 0000000000..285d3d2921 --- /dev/null +++ b/.github/workflows/test-django.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - master + - release/** + - antonpirker/** + + pull_request: + +permissions: + contents: read + +jobs: + test: + name: Test Django ${{ matrix.python-version }} / Python ${{ matrix.python-version }} + runs-on: ${{ matrix.linux-version }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + linux-version: [ubuntu-latest] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + django-version: [1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Run Tests + run: | + echo "Running the tests" From 88dce73c5852d466531a0c176f34e1915ef7cb73 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 15:36:18 +0200 Subject: [PATCH 03/78] Better name --- .github/workflows/test-django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 285d3d2921..d68d403b09 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -1,4 +1,4 @@ -name: CI +name: Test Django on: push: From d2cd775d4a433429f50dc30b3c0ac466a6562194 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 15:48:08 +0200 Subject: [PATCH 04/78] Tailored matrix --- .github/workflows/test-django.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index d68d403b09..a752bfbad8 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -14,21 +14,32 @@ permissions: jobs: test: - name: Test Django ${{ matrix.python-version }} / Python ${{ matrix.python-version }} + name: Test Django ${{ matrix.django-version }} / Python ${{ matrix.python-version }} runs-on: ${{ matrix.linux-version }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - linux-version: [ubuntu-latest] - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] - django-version: [1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} + os: [ubuntu-latest] + python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10] + django: [1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1] + include: + - { os: ubuntu-latest, python: 2.7, django: 1.8 } + - { os: ubuntu-latest, python: 2.7, django: 1.9 } + - { os: ubuntu-latest, python: 2.7, django: 1.10 } + - { os: ubuntu-latest, python: 2.7, django: 1.11 } + - { os: ubuntu-latest, python: 3.5, django: 1.8 } + - { os: ubuntu-latest, python: 3.5, django: 1.9 } + - { os: ubuntu-latest, python: 3.5, django: 1.10 } + - { os: ubuntu-latest, python: 3.5, django: 1.11 } + - { os: ubuntu-latest, python: 3.5, django: 2.0 } + - { os: ubuntu-latest, python: 3.5, django: 2.1 } + steps: + # - uses: actions/checkout@v3 + # - uses: actions/setup-python@v4 + # with: + # python-version: ${{ matrix.python-version }} - name: Run Tests run: | echo "Running the tests" From 14094c874a08fd7455dee1f242a796bc25fad693 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 15:55:55 +0200 Subject: [PATCH 05/78] Better naming --- .github/workflows/test-django.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index a752bfbad8..8384647989 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -15,26 +15,26 @@ permissions: jobs: test: name: Test Django ${{ matrix.django-version }} / Python ${{ matrix.python-version }} - runs-on: ${{ matrix.linux-version }} + runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: os: [ubuntu-latest] - python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10] - django: [1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10] + django-version: [1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1] include: - - { os: ubuntu-latest, python: 2.7, django: 1.8 } - - { os: ubuntu-latest, python: 2.7, django: 1.9 } - - { os: ubuntu-latest, python: 2.7, django: 1.10 } - - { os: ubuntu-latest, python: 2.7, django: 1.11 } + - { os: ubuntu-latest, python-version: 2.7, django-version: 1.8 } + - { os: ubuntu-latest, python-version: 2.7, django-version: 1.9 } + - { os: ubuntu-latest, python-version: 2.7, django-version: 1.10 } + - { os: ubuntu-latest, python-version: 2.7, django-version: 1.11 } - - { os: ubuntu-latest, python: 3.5, django: 1.8 } - - { os: ubuntu-latest, python: 3.5, django: 1.9 } - - { os: ubuntu-latest, python: 3.5, django: 1.10 } - - { os: ubuntu-latest, python: 3.5, django: 1.11 } - - { os: ubuntu-latest, python: 3.5, django: 2.0 } - - { os: ubuntu-latest, python: 3.5, django: 2.1 } + - { os: ubuntu-latest, python-version: 3.5, django-version: 1.8 } + - { os: ubuntu-latest, python-version: 3.5, django-version: 1.9 } + - { os: ubuntu-latest, python-version: 3.5, django-version: 1.10 } + - { os: ubuntu-latest, python-version: 3.5, django-version: 1.11 } + - { os: ubuntu-latest, python-version: 3.5, django-version: 2.0 } + - { os: ubuntu-latest, python-version: 3.5, django-version: 2.1 } steps: # - uses: actions/checkout@v3 # - uses: actions/setup-python@v4 From c59b6794a1516d2b0eaa6c0172f2c028ab87bd03 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 16:03:40 +0200 Subject: [PATCH 06/78] Fixed naming --- .github/workflows/test-django.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 8384647989..0fdf54f7c1 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -21,8 +21,8 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10] - django-version: [1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + django-version: ["1.8", "1.9", "1.10", "1.11", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] include: - { os: ubuntu-latest, python-version: 2.7, django-version: 1.8 } - { os: ubuntu-latest, python-version: 2.7, django-version: 1.9 } @@ -42,4 +42,4 @@ jobs: # python-version: ${{ matrix.python-version }} - name: Run Tests run: | - echo "Running the tests" + echo "Running tests for Django ${{ matrix.django-version }} / Python ${{ matrix.python-version }}" From ed2f8b48d035bcd1bcf3b3518d7980e5559354e2 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 17:09:58 +0200 Subject: [PATCH 07/78] Matrix stuff --- .github/workflows/test-django.yml | 45 ++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 0fdf54f7c1..c59a11e25a 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -23,18 +23,39 @@ jobs: os: [ubuntu-latest] python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] django-version: ["1.8", "1.9", "1.10", "1.11", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] - include: - - { os: ubuntu-latest, python-version: 2.7, django-version: 1.8 } - - { os: ubuntu-latest, python-version: 2.7, django-version: 1.9 } - - { os: ubuntu-latest, python-version: 2.7, django-version: 1.10 } - - { os: ubuntu-latest, python-version: 2.7, django-version: 1.11 } - - - { os: ubuntu-latest, python-version: 3.5, django-version: 1.8 } - - { os: ubuntu-latest, python-version: 3.5, django-version: 1.9 } - - { os: ubuntu-latest, python-version: 3.5, django-version: 1.10 } - - { os: ubuntu-latest, python-version: 3.5, django-version: 1.11 } - - { os: ubuntu-latest, python-version: 3.5, django-version: 2.0 } - - { os: ubuntu-latest, python-version: 3.5, django-version: 2.1 } + exclude: + - python-version: "2.7" + django-version: "2.0" + - python-version: "2.7" + django-version: "2.1" + - python-version: "2.7" + django-version: "2.2" + - python-version: "2.7" + django-version: "3.0" + - python-version: "2.7" + django-version: "3.1" + - python-version: "2.7" + django-version: "3.2" + - python-version: "2.7" + django-version: "3.3" + - python-version: "2.7" + django-version: "4.0" + - python-version: "2.7" + django-version: "4.1" + - python-version: "3.5" + django-version: "2.2" + - python-version: "3.5" + django-version: "3.0" + - python-version: "3.5" + django-version: "3.1" + - python-version: "3.5" + django-version: "3.2" + - python-version: "3.5" + django-version: "3.3" + - python-version: "3.5" + django-version: "4.0" + - python-version: "3.5" + django-version: "4.1" steps: # - uses: actions/checkout@v3 # - uses: actions/setup-python@v4 From daeaa8a759f0d4b439aa6a5763f4b3cac518bd4a Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 17:16:13 +0200 Subject: [PATCH 08/78] Matrix stuff 2 --- .github/workflows/test-django.yml | 97 ++++++++++++++++++++----------- 1 file changed, 62 insertions(+), 35 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index c59a11e25a..e01f6ef846 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -21,41 +21,68 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] - django-version: ["1.8", "1.9", "1.10", "1.11", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] - exclude: - - python-version: "2.7" - django-version: "2.0" - - python-version: "2.7" - django-version: "2.1" - - python-version: "2.7" - django-version: "2.2" - - python-version: "2.7" - django-version: "3.0" - - python-version: "2.7" - django-version: "3.1" - - python-version: "2.7" - django-version: "3.2" - - python-version: "2.7" - django-version: "3.3" - - python-version: "2.7" - django-version: "4.0" - - python-version: "2.7" - django-version: "4.1" - - python-version: "3.5" - django-version: "2.2" - - python-version: "3.5" - django-version: "3.0" - - python-version: "3.5" - django-version: "3.1" - - python-version: "3.5" - django-version: "3.2" - - python-version: "3.5" - django-version: "3.3" - - python-version: "3.5" - django-version: "4.0" - - python-version: "3.5" - django-version: "4.1" + python-version: ["3.7", "3.8", "3.9", "3.10"] + django-version: ["2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] + include: + - python-version: "2.7" + django-version: "1.8" + - python-version: "2.7" + django-version: "1.9" + - python-version: "2.7" + django-version: "1.10" + - python-version: "2.7" + django-version: "1.11" + - python-version: "3.5" + django-version: "1.8" + - python-version: "3.5" + django-version: "1.9" + - python-version: "3.5" + django-version: "1.10" + - python-version: "3.5" + django-version: "1.11" + - python-version: "3.5" + django-version: "2.0" + - python-version: "3.5" + django-version: "2.1" + - python-version: "3.6" + django-version: "2.0" + - python-version: "3.6" + django-version: "2.1" + # python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + # django-version: ["1.8", "1.9", "1.10", "1.11", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] + # exclude: + # - python-version: "2.7" + # django-version: "2.0" + # - python-version: "2.7" + # django-version: "2.1" + # - python-version: "2.7" + # django-version: "2.2" + # - python-version: "2.7" + # django-version: "3.0" + # - python-version: "2.7" + # django-version: "3.1" + # - python-version: "2.7" + # django-version: "3.2" + # - python-version: "2.7" + # django-version: "3.3" + # - python-version: "2.7" + # django-version: "4.0" + # - python-version: "2.7" + # django-version: "4.1" + # - python-version: "3.5" + # django-version: "2.2" + # - python-version: "3.5" + # django-version: "3.0" + # - python-version: "3.5" + # django-version: "3.1" + # - python-version: "3.5" + # django-version: "3.2" + # - python-version: "3.5" + # django-version: "3.3" + # - python-version: "3.5" + # django-version: "4.0" + # - python-version: "3.5" + # django-version: "4.1" steps: # - uses: actions/checkout@v3 # - uses: actions/setup-python@v4 From 0d2c0e73fa22f4f6817c6f6f927d29265b736d08 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 17:18:15 +0200 Subject: [PATCH 09/78] Cleanup --- .github/workflows/test-django.yml | 38 +++---------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index e01f6ef846..5cf23c54d8 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -24,6 +24,7 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10"] django-version: ["2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] include: + # Python 2.7 - python-version: "2.7" django-version: "1.8" - python-version: "2.7" @@ -32,6 +33,7 @@ jobs: django-version: "1.10" - python-version: "2.7" django-version: "1.11" + # Python 3.5 - python-version: "3.5" django-version: "1.8" - python-version: "3.5" @@ -44,45 +46,11 @@ jobs: django-version: "2.0" - python-version: "3.5" django-version: "2.1" + # Python 3.6 - python-version: "3.6" django-version: "2.0" - python-version: "3.6" django-version: "2.1" - # python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] - # django-version: ["1.8", "1.9", "1.10", "1.11", "2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] - # exclude: - # - python-version: "2.7" - # django-version: "2.0" - # - python-version: "2.7" - # django-version: "2.1" - # - python-version: "2.7" - # django-version: "2.2" - # - python-version: "2.7" - # django-version: "3.0" - # - python-version: "2.7" - # django-version: "3.1" - # - python-version: "2.7" - # django-version: "3.2" - # - python-version: "2.7" - # django-version: "3.3" - # - python-version: "2.7" - # django-version: "4.0" - # - python-version: "2.7" - # django-version: "4.1" - # - python-version: "3.5" - # django-version: "2.2" - # - python-version: "3.5" - # django-version: "3.0" - # - python-version: "3.5" - # django-version: "3.1" - # - python-version: "3.5" - # django-version: "3.2" - # - python-version: "3.5" - # django-version: "3.3" - # - python-version: "3.5" - # django-version: "4.0" - # - python-version: "3.5" - # django-version: "4.1" steps: # - uses: actions/checkout@v3 # - uses: actions/setup-python@v4 From 95da9da39e35feb63ea0c75a94fe64f5bea1e9c2 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 17:20:38 +0200 Subject: [PATCH 10/78] Fixed include matric --- .github/workflows/test-django.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 5cf23c54d8..8d39d16633 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -27,30 +27,42 @@ jobs: # Python 2.7 - python-version: "2.7" django-version: "1.8" + os: ubuntu-latest - python-version: "2.7" django-version: "1.9" + os: ubuntu-latest - python-version: "2.7" django-version: "1.10" + os: ubuntu-latest - python-version: "2.7" django-version: "1.11" + os: ubuntu-latest # Python 3.5 - python-version: "3.5" django-version: "1.8" + os: ubuntu-latest - python-version: "3.5" django-version: "1.9" + os: ubuntu-latest - python-version: "3.5" django-version: "1.10" + os: ubuntu-latest - python-version: "3.5" django-version: "1.11" + os: ubuntu-latest - python-version: "3.5" django-version: "2.0" + os: ubuntu-latest - python-version: "3.5" django-version: "2.1" + os: ubuntu-latest # Python 3.6 - python-version: "3.6" django-version: "2.0" + os: ubuntu-latest - python-version: "3.6" django-version: "2.1" + os: ubuntu-latest steps: # - uses: actions/checkout@v3 # - uses: actions/setup-python@v4 From d3958a9d1339b385e35899668f418940d9561b7f Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 17:26:12 +0200 Subject: [PATCH 11/78] Actually try to run the tests again. --- .github/workflows/test-django.yml | 61 ++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 8d39d16633..00aed912fd 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -63,11 +63,62 @@ jobs: - python-version: "3.6" django-version: "2.1" os: ubuntu-latest + + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + steps: - # - uses: actions/checkout@v3 - # - uses: actions/setup-python@v4 - # with: - # python-version: ${{ matrix.python-version }} + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox tox-gh + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 run: | - echo "Running tests for Django ${{ matrix.django-version }} / Python ${{ matrix.python-version }}" + coverage erase + ./scripts/runtox.sh 'py${{ matrix.python-version }}-django-${{ matrix.django-version }}' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml From 59c8f7947769ce1c08c24f5e517558c9e1e055e2 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 17:33:39 +0200 Subject: [PATCH 12/78] Better call to tox --- .github/workflows/test-django.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 00aed912fd..803ec6bce1 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -117,8 +117,9 @@ jobs: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 run: | - coverage erase - ./scripts/runtox.sh 'py${{ matrix.python-version }}-django-${{ matrix.django-version }}' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i - codecov --file coverage.xml + # coverage erase + # ./scripts/runtox.sh 'py${{ matrix.python-version }}-django-${{ matrix.django-version }}' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + tox -e 'py${{ matrix.python-version }}-django-${{ matrix.django-version }}' + # coverage combine .coverage* + # coverage xml -i + # codecov --file coverage.xml From fb99fa1dbc0912c33d3a3e0d57237b4c0e26bb33 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 6 Sep 2022 17:41:51 +0200 Subject: [PATCH 13/78] Removed some Django versions --- .github/workflows/test-django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 803ec6bce1..b2f3593512 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -22,7 +22,7 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.7", "3.8", "3.9", "3.10"] - django-version: ["2.0", "2.1", "2.2", "3.0", "3.1", "3.2", "3.3", "4.0", "4.1"] + django-version: ["2.0", "2.1", "2.2", "3.0", "3.1", "3.2"] include: # Python 2.7 - python-version: "2.7" From f04133da575603385a03f2e6e5670731a2a4ae2e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 8 Sep 2022 16:23:14 +0200 Subject: [PATCH 14/78] Trying new matrix format --- .github/workflows/test-django.yml | 87 ++++++++++++++++--------------- 1 file changed, 46 insertions(+), 41 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index b2f3593512..e863c8b330 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -21,48 +21,53 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["3.7", "3.8", "3.9", "3.10"] - django-version: ["2.0", "2.1", "2.2", "3.0", "3.1", "3.2"] + django-version: ["3.2"] + python-version: ["3.10"] include: - # Python 2.7 - - python-version: "2.7" - django-version: "1.8" - os: ubuntu-latest - - python-version: "2.7" - django-version: "1.9" - os: ubuntu-latest - - python-version: "2.7" - django-version: "1.10" - os: ubuntu-latest - - python-version: "2.7" - django-version: "1.11" - os: ubuntu-latest - # Python 3.5 - - python-version: "3.5" - django-version: "1.8" - os: ubuntu-latest - - python-version: "3.5" - django-version: "1.9" - os: ubuntu-latest - - python-version: "3.5" - django-version: "1.10" - os: ubuntu-latest - - python-version: "3.5" - django-version: "1.11" - os: ubuntu-latest - - python-version: "3.5" - django-version: "2.0" - os: ubuntu-latest - - python-version: "3.5" - django-version: "2.1" - os: ubuntu-latest - # Python 3.6 - - python-version: "3.6" - django-version: "2.0" - os: ubuntu-latest - - python-version: "3.6" - django-version: "2.1" - os: ubuntu-latest + - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.8", python-version: "py2.7"} + - { os: "ubuntu-latest", django-version: "1.8", python-version: "py3.5"} + - { os: "ubuntu-latest", django-version: "1.9", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.9", python-version: "py2.7"} + - { os: "ubuntu-latest", django-version: "1.9", python-version: "py3.5"} + - { os: "ubuntu-latest", django-version: "1.10", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.10", python-version: "py2.7"} + - { os: "ubuntu-latest", django-version: "1.10", python-version: "py3.5"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "py2.7"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "py3.5"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "py3.6"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "py3.7"} + - { os: "ubuntu-latest", django-version: "2.0", python-version: "py3.5"} + - { os: "ubuntu-latest", django-version: "2.0", python-version: "py3.6"} + - { os: "ubuntu-latest", django-version: "2.0", python-version: "py3.7"} + - { os: "ubuntu-latest", django-version: "2.1", python-version: "py3.5"} + - { os: "ubuntu-latest", django-version: "2.1", python-version: "py3.6"} + - { os: "ubuntu-latest", django-version: "2.1", python-version: "py3.7"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.5"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.6"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.7"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.8"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.9"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.6"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.7"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.8"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.9"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.6"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.7"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.8"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.9"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.6"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.7"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.8"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.9"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.10"} + - { os: "ubuntu-latest", django-version: "4.0", python-version: "py3.8"} + - { os: "ubuntu-latest", django-version: "4.0", python-version: "py3.9"} + - { os: "ubuntu-latest", django-version: "4.0", python-version: "py3.10"} + - { os: "ubuntu-latest", django-version: "4.1", python-version: "py3.8"} + - { os: "ubuntu-latest", django-version: "4.1", python-version: "py3.9"} + - { os: "ubuntu-latest", django-version: "4.1", python-version: "py3.10"} services: # Label used to access the service container From b3f5137d29d54d7cde19d96e7e96c05fa2190871 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 8 Sep 2022 16:28:46 +0200 Subject: [PATCH 15/78] Fixed python version string --- .github/workflows/test-django.yml | 92 +++++++++++++++---------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index e863c8b330..fc5004b0b7 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -21,53 +21,53 @@ jobs: strategy: matrix: os: [ubuntu-latest] - django-version: ["3.2"] - python-version: ["3.10"] + python-version: [] + django-version: [] include: - - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy"} - - { os: "ubuntu-latest", django-version: "1.8", python-version: "py2.7"} - - { os: "ubuntu-latest", django-version: "1.8", python-version: "py3.5"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: "pypy"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: "py2.7"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: "py3.5"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: "pypy"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: "py2.7"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: "py3.5"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "pypy"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "py2.7"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "py3.5"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "py3.6"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "py3.7"} - - { os: "ubuntu-latest", django-version: "2.0", python-version: "py3.5"} - - { os: "ubuntu-latest", django-version: "2.0", python-version: "py3.6"} - - { os: "ubuntu-latest", django-version: "2.0", python-version: "py3.7"} - - { os: "ubuntu-latest", django-version: "2.1", python-version: "py3.5"} - - { os: "ubuntu-latest", django-version: "2.1", python-version: "py3.6"} - - { os: "ubuntu-latest", django-version: "2.1", python-version: "py3.7"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.5"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.6"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.7"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.8"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "py3.9"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.6"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.7"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.8"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "py3.9"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.6"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.7"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.8"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "py3.9"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.6"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.7"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.8"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.9"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "py3.10"} - - { os: "ubuntu-latest", django-version: "4.0", python-version: "py3.8"} - - { os: "ubuntu-latest", django-version: "4.0", python-version: "py3.9"} - - { os: "ubuntu-latest", django-version: "4.0", python-version: "py3.10"} - - { os: "ubuntu-latest", django-version: "4.1", python-version: "py3.8"} - - { os: "ubuntu-latest", django-version: "4.1", python-version: "py3.9"} - - { os: "ubuntu-latest", django-version: "4.1", python-version: "py3.10"} + - { os: "ubuntu-latest", django-version: "1.8", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} + - { os: "ubuntu-latest", django-version: "1.8", python-version: "3.5"} + - { os: "ubuntu-latest", django-version: "1.9", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.9", python-version: "2.7"} + - { os: "ubuntu-latest", django-version: "1.9", python-version: "3.5"} + - { os: "ubuntu-latest", django-version: "1.10", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.10", python-version: "2.7"} + - { os: "ubuntu-latest", django-version: "1.10", python-version: "3.5"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "2.7"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.5"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.6"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.7"} + - { os: "ubuntu-latest", django-version: "2.0", python-version: "3.5"} + - { os: "ubuntu-latest", django-version: "2.0", python-version: "3.6"} + - { os: "ubuntu-latest", django-version: "2.0", python-version: "3.7"} + - { os: "ubuntu-latest", django-version: "2.1", python-version: "3.5"} + - { os: "ubuntu-latest", django-version: "2.1", python-version: "3.6"} + - { os: "ubuntu-latest", django-version: "2.1", python-version: "3.7"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.5"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.6"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.7"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.8"} + - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.9"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.6"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.7"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.8"} + - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.9"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.6"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.7"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.8"} + - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.9"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.6"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.7"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.8"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.9"} + - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.10"} + - { os: "ubuntu-latest", django-version: "4.0", python-version: "3.8"} + - { os: "ubuntu-latest", django-version: "4.0", python-version: "3.9"} + - { os: "ubuntu-latest", django-version: "4.0", python-version: "3.10"} + - { os: "ubuntu-latest", django-version: "4.1", python-version: "3.8"} + - { os: "ubuntu-latest", django-version: "4.1", python-version: "3.9"} + - { os: "ubuntu-latest", django-version: "4.1", python-version: "3.10"} services: # Label used to access the service container From 1af02c3a8824a487b2d5806edfd6efdb410bf53d Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 8 Sep 2022 16:31:21 +0200 Subject: [PATCH 16/78] Fixed matrix again --- .github/workflows/test-django.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index fc5004b0b7..1bbc19fbed 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -21,19 +21,19 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [] - django-version: [] + python-version: ["py3.10"] + django-version: ["3.1"] include: - - { os: "ubuntu-latest", django-version: "1.8", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.9", python-version: "pypy"} - { os: "ubuntu-latest", django-version: "1.9", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.9", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.10", python-version: "pypy"} - { os: "ubuntu-latest", django-version: "1.10", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.10", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: ""} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "pypy"} - { os: "ubuntu-latest", django-version: "1.11", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.5"} - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.6"} From 4d7ce294d3de4c5d38477de9f7de68178603ad1e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 8 Sep 2022 16:34:00 +0200 Subject: [PATCH 17/78] Cleanup --- .github/workflows/ci.yml | 2 +- .github/workflows/test-django.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4acad3878d..772caeb12f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,7 +95,7 @@ jobs: PGHOST: localhost PGPASSWORD: sentry run: | - pip install codecov tox tox-gh + pip install codecov tox - name: Run Tests env: diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 1bbc19fbed..cad78e9412 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["py3.10"] + python-version: ["3.10"] django-version: ["3.1"] include: - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy"} @@ -115,7 +115,7 @@ jobs: PGHOST: localhost PGPASSWORD: sentry run: | - pip install codecov tox tox-gh + pip install codecov tox - name: Run Tests env: From a51f12d26f23c0275861b85525f50a5e0931d001 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 8 Sep 2022 16:34:28 +0200 Subject: [PATCH 18/78] Cleanup Django test environments definistion --- tox.ini | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index c9d9fc7907..86d367cdc9 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,6 @@ envlist = py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10} pypy - # === Integrations === # General format is {pythonversion}-{integrationname}-{frameworkversion} # 1 blank line between different integrations @@ -31,10 +30,18 @@ envlist = # {py3.7}-django-{3.2} # {py3.7,py3.10}-django-{3.2,4.0} + # Django 1.x {pypy,py2.7,py3.5}-django-{1.8,1.9,1.10} - {pypy,py2.7}-django-{1.8,1.9,1.10,1.11} + {pypy,py2.7,py3.5,py3.6,py3.7}-django-{1.11} + # Django 2.x {py3.5,py3.6,py3.7}-django-{2.0,2.1} - {py3.7,py3.8,py3.9,py3.10}-django-{2.2,3.0,3.1,3.2} + {py3.5,py3.6,py3.7,py3.8,py3.9}-django-{2.2} + # Django 3.x + {py3.6,py3.7,py3.8,py3.9}-django-{3.0,3.1} + {py3.6,py3.7,py3.8,py3.9,py3.10}-django-{3.2} + # Django 4.x + {py3.8,py3.9,py3.10}-django-{4.0,4.1} + {pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.11,0.12,1.0} {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-flask-1.1 From d8d4143366fe31e12766caabcd74650021728512 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 8 Sep 2022 16:41:22 +0200 Subject: [PATCH 19/78] Fixed pypy definition --- .github/workflows/test-django.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index cad78e9412..ceaad95bd1 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -24,16 +24,16 @@ jobs: python-version: ["3.10"] django-version: ["3.1"] include: - - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.9", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.9", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.9", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.10", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.10", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.10", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "pypy"} + - { os: "ubuntu-latest", django-version: "1.11", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.11", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.5"} - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.6"} From ecbce4a58e61bf4699d86b8ed8db233f8fe7ad22 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 09:28:42 +0200 Subject: [PATCH 20/78] First splitting everything --- .github/workflows/test-django.yml | 51 +++++++++++++++++++------------ tox.ini | 3 +- 2 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index ceaad95bd1..f46593f3fb 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -1,28 +1,32 @@ -name: Test Django +name: Test django on: push: branches: - master - release/** - - antonpirker/** pull_request: permissions: contents: read +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + jobs: test: - name: Test Django ${{ matrix.django-version }} / Python ${{ matrix.python-version }} - runs-on: ${{ matrix.os }} + name: Run Tests + runs-on: ${{ matrix.linux-version }} timeout-minutes: 45 continue-on-error: true strategy: matrix: os: [ubuntu-latest] - python-version: ["3.10"] - django-version: ["3.1"] + python-version: ["pypy2.7"] + django-version: ["1.8"] include: - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} @@ -62,13 +66,6 @@ jobs: - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.8"} - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.9"} - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.10"} - - { os: "ubuntu-latest", django-version: "4.0", python-version: "3.8"} - - { os: "ubuntu-latest", django-version: "4.0", python-version: "3.9"} - - { os: "ubuntu-latest", django-version: "4.0", python-version: "3.10"} - - { os: "ubuntu-latest", django-version: "4.1", python-version: "3.8"} - - { os: "ubuntu-latest", django-version: "4.1", python-version: "3.9"} - - { os: "ubuntu-latest", django-version: "4.1", python-version: "3.10"} - services: # Label used to access the service container redis: @@ -121,10 +118,26 @@ jobs: env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 + shell: bash run: | - # coverage erase - # ./scripts/runtox.sh 'py${{ matrix.python-version }}-django-${{ matrix.django-version }}' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - tox -e 'py${{ matrix.python-version }}-django-${{ matrix.django-version }}' - # coverage combine .coverage* - # coverage xml -i - # codecov --file coverage.xml + set -x # print commands + coverage erase + + if [ "${{ matrix.python-version }}" == "pypy2.7" ]; + then + pyverion="pypy" + else + pyversion="py${{ matrix.python-version }}" + fi + + if [ ${{ matrix.django-version }} == "lastest" ]; + then + frversion="" + else + frversion="-${{ matrix.django-version }}" + if + + ./scripts/runtox.sh '$pyversion-django$frversion' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml diff --git a/tox.ini b/tox.ini index 86d367cdc9..32fc4245a9 100644 --- a/tox.ini +++ b/tox.ini @@ -40,8 +40,7 @@ envlist = {py3.6,py3.7,py3.8,py3.9}-django-{3.0,3.1} {py3.6,py3.7,py3.8,py3.9,py3.10}-django-{3.2} # Django 4.x - {py3.8,py3.9,py3.10}-django-{4.0,4.1} - + #{py3.8,py3.9,py3.10}-django-{4.0,4.1} {pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.11,0.12,1.0} {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-flask-1.1 From b5729e26119a4201216df98732ee716edccc1fa1 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 09:34:38 +0200 Subject: [PATCH 21/78] Fixed typo --- .github/workflows/test-django.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index f46593f3fb..b513665374 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -19,7 +19,7 @@ env: jobs: test: name: Run Tests - runs-on: ${{ matrix.linux-version }} + runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: @@ -27,7 +27,7 @@ jobs: os: [ubuntu-latest] python-version: ["pypy2.7"] django-version: ["1.8"] - include: + include: - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "3.5"} @@ -128,8 +128,8 @@ jobs: pyverion="pypy" else pyversion="py${{ matrix.python-version }}" - fi - + fi + if [ ${{ matrix.django-version }} == "lastest" ]; then frversion="" @@ -140,4 +140,4 @@ jobs: ./scripts/runtox.sh '$pyversion-django$frversion' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml + codecov --file coverage.xml \ No newline at end of file From 9fc5f7215c27f043d2f697f73f5cd5c48bff079e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 09:55:38 +0200 Subject: [PATCH 22/78] Try to get nice env name --- .github/workflows/test-django.yml | 27 ++++++++------------------- scripts/tox_env_name.py | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 19 deletions(-) create mode 100755 scripts/tox_env_name.py diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index b513665374..c981e3a71e 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -121,23 +121,12 @@ jobs: shell: bash run: | set -x # print commands - coverage erase + #coverage erase - if [ "${{ matrix.python-version }}" == "pypy2.7" ]; - then - pyverion="pypy" - else - pyversion="py${{ matrix.python-version }}" - fi - - if [ ${{ matrix.django-version }} == "lastest" ]; - then - frversion="" - else - frversion="-${{ matrix.django-version }}" - if - - ./scripts/runtox.sh '$pyversion-django$frversion' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i - codecov --file coverage.xml \ No newline at end of file + envname=$(python ./scripts/tox_env_name.sh ${{ matrix.python-version }} django ${{ matrix.django-version }}) + echo '$envname' + echo "---------------" + #./scripts/runtox.sh '$envname' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + #coverage combine .coverage* + #coverage xml -i + #codecov --file coverage.xml \ No newline at end of file diff --git a/scripts/tox_env_name.py b/scripts/tox_env_name.py new file mode 100755 index 0000000000..b5cbf66e63 --- /dev/null +++ b/scripts/tox_env_name.py @@ -0,0 +1,26 @@ +import sys + + +def main(): + python_version = sys.argv[1] + framework = sys.argv[2] + framework_version = sys.argv[3] + + py_version = "" + fr_version = "" + + if python_version == "pypy2.7": + py_version = "pypy" + else: + py_version = "py" + python_version + + if framework_version == "latest" or framework_version == "": + fr_version = "" + else: + fr_version = "-" + framework_version + + print(py_version + "-" + framework + fr_version) + + +if __name__ == "__main__": + main() From bea6a1b2c7465f09402d651d8489de601cc27179 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 09:57:50 +0200 Subject: [PATCH 23/78] Fixed typo --- .github/workflows/test-django.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index c981e3a71e..77fbf9fe16 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -27,7 +27,7 @@ jobs: os: [ubuntu-latest] python-version: ["pypy2.7"] django-version: ["1.8"] - include: + include: - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "3.5"} @@ -129,4 +129,4 @@ jobs: #./scripts/runtox.sh '$envname' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch #coverage combine .coverage* #coverage xml -i - #codecov --file coverage.xml \ No newline at end of file + #codecov --file coverage.xml From e9abdbf209d97cf90f6c8c7e8351df746a1671a4 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 10:00:19 +0200 Subject: [PATCH 24/78] Regenerated file --- .github/workflows/test-django.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 77fbf9fe16..2a4a68fa26 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -27,7 +27,7 @@ jobs: os: [ubuntu-latest] python-version: ["pypy2.7"] django-version: ["1.8"] - include: + include: - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} - { os: "ubuntu-latest", django-version: "1.8", python-version: "3.5"} @@ -123,10 +123,10 @@ jobs: set -x # print commands #coverage erase - envname=$(python ./scripts/tox_env_name.sh ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) echo '$envname' echo "---------------" #./scripts/runtox.sh '$envname' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch #coverage combine .coverage* #coverage xml -i - #codecov --file coverage.xml + #codecov --file coverage.xml \ No newline at end of file From 27a51845271c8cec2eefcfeff82da3a458a6ce16 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 10:04:36 +0200 Subject: [PATCH 25/78] Reactivated tests --- .github/workflows/test-django.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 2a4a68fa26..17d9f050c6 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -120,13 +120,11 @@ jobs: timeout-minutes: 45 shell: bash run: | - set -x # print commands - #coverage erase + set -x # print commands that are executed + coverage erase envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) - echo '$envname' - echo "---------------" - #./scripts/runtox.sh '$envname' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - #coverage combine .coverage* - #coverage xml -i - #codecov --file coverage.xml \ No newline at end of file + ./scripts/runtox.sh '$envname' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file From dbfeb34bcf2885423ed3e8398f94a77c7fa79e51 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 10:08:19 +0200 Subject: [PATCH 26/78] Fixed shell var unpacking --- .github/workflows/test-django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 17d9f050c6..a92f4bc8a7 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -124,7 +124,7 @@ jobs: coverage erase envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) - ./scripts/runtox.sh '$envname' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file From 977de5a9da151b3c6a889a6bfbc2b00e56655f30 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 10:26:10 +0200 Subject: [PATCH 27/78] All the new config files --- .github/workflows/test-aiohttp.yml | 97 ++++++++++ .github/workflows/test-asgi.yml | 96 ++++++++++ .github/workflows/test-aws_lambda.yml | 93 ++++++++++ .github/workflows/test-beam.yml | 96 ++++++++++ .github/workflows/test-boto3.yml | 124 +++++++++++++ .github/workflows/test-bottle.yml | 100 +++++++++++ .github/workflows/test-celery.yml | 119 ++++++++++++ .github/workflows/test-chalice.yml | 107 +++++++++++ .github/workflows/test-falcon.yml | 105 +++++++++++ .github/workflows/test-fastapi.yml | 96 ++++++++++ .github/workflows/test-flask.yml | 128 +++++++++++++ .github/workflows/test-gcp.yml | 93 ++++++++++ .github/workflows/test-httpx.yml | 102 +++++++++++ .github/workflows/test-pure_eval.yml | 98 ++++++++++ .github/workflows/test-pyramid.yml | 132 ++++++++++++++ .github/workflows/test-quart.yml | 96 ++++++++++ .github/workflows/test-redis.yml | 96 ++++++++++ .github/workflows/test-rediscluster.yml | 104 +++++++++++ .github/workflows/test-requests.yml | 95 ++++++++++ .github/workflows/test-rq.yml | 170 ++++++++++++++++++ .github/workflows/test-sanic.yml | 107 +++++++++++ .github/workflows/test-sqlalchemy.yml | 102 +++++++++++ .github/workflows/test-starlette.yml | 100 +++++++++++ .github/workflows/test-tornado.yml | 99 ++++++++++ .github/workflows/test-trytond.yml | 112 ++++++++++++ scripts/split-tox-gh-actions/ci-template.yml | 88 +++++++++ .../split-tox-gh-actions.py | 164 +++++++++++++++++ 27 files changed, 2919 insertions(+) create mode 100644 .github/workflows/test-aiohttp.yml create mode 100644 .github/workflows/test-asgi.yml create mode 100644 .github/workflows/test-aws_lambda.yml create mode 100644 .github/workflows/test-beam.yml create mode 100644 .github/workflows/test-boto3.yml create mode 100644 .github/workflows/test-bottle.yml create mode 100644 .github/workflows/test-celery.yml create mode 100644 .github/workflows/test-chalice.yml create mode 100644 .github/workflows/test-falcon.yml create mode 100644 .github/workflows/test-fastapi.yml create mode 100644 .github/workflows/test-flask.yml create mode 100644 .github/workflows/test-gcp.yml create mode 100644 .github/workflows/test-httpx.yml create mode 100644 .github/workflows/test-pure_eval.yml create mode 100644 .github/workflows/test-pyramid.yml create mode 100644 .github/workflows/test-quart.yml create mode 100644 .github/workflows/test-redis.yml create mode 100644 .github/workflows/test-rediscluster.yml create mode 100644 .github/workflows/test-requests.yml create mode 100644 .github/workflows/test-rq.yml create mode 100644 .github/workflows/test-sanic.yml create mode 100644 .github/workflows/test-sqlalchemy.yml create mode 100644 .github/workflows/test-starlette.yml create mode 100644 .github/workflows/test-tornado.yml create mode 100644 .github/workflows/test-trytond.yml create mode 100644 scripts/split-tox-gh-actions/ci-template.yml create mode 100755 scripts/split-tox-gh-actions/split-tox-gh-actions.py diff --git a/.github/workflows/test-aiohttp.yml b/.github/workflows/test-aiohttp.yml new file mode 100644 index 0000000000..f6cebbc817 --- /dev/null +++ b/.github/workflows/test-aiohttp.yml @@ -0,0 +1,97 @@ +name: Test aiohttp + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + aiohttp-version: ["3.5"] + include: + - { os: "ubuntu-latest", aiohttp-version: "3.5", python-version: "3.7"} + - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.7"} + - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.8"} + - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.9"} + - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aiohttp ${{ matrix.aiohttp-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-asgi.yml b/.github/workflows/test-asgi.yml new file mode 100644 index 0000000000..5f051e0eca --- /dev/null +++ b/.github/workflows/test-asgi.yml @@ -0,0 +1,96 @@ +name: Test asgi + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + asgi-version: ["lastest"] + include: + - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.7"} + - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.8"} + - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.9"} + - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} asgi ${{ matrix.asgi-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-aws_lambda.yml b/.github/workflows/test-aws_lambda.yml new file mode 100644 index 0000000000..549def9ecb --- /dev/null +++ b/.github/workflows/test-aws_lambda.yml @@ -0,0 +1,93 @@ +name: Test aws_lambda + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + aws_lambda-version: ["lastest"] + include: + - { os: "ubuntu-latest", aws_lambda-version: "latest", python-version: "3.7"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aws_lambda ${{ matrix.aws_lambda-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-beam.yml b/.github/workflows/test-beam.yml new file mode 100644 index 0000000000..bb777d53bb --- /dev/null +++ b/.github/workflows/test-beam.yml @@ -0,0 +1,96 @@ +name: Test beam + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + beam-version: ["2.12"] + include: + - { os: "ubuntu-latest", beam-version: "2.12", python-version: "3.7"} + - { os: "ubuntu-latest", beam-version: "2.13", python-version: "3.7"} + - { os: "ubuntu-latest", beam-version: "2.32", python-version: "3.7"} + - { os: "ubuntu-latest", beam-version: "2.33", python-version: "3.7"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} beam ${{ matrix.beam-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-boto3.yml b/.github/workflows/test-boto3.yml new file mode 100644 index 0000000000..290d7fca4c --- /dev/null +++ b/.github/workflows/test-boto3.yml @@ -0,0 +1,124 @@ +name: Test boto3 + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["2.7"] + boto3-version: ["1.9"] + include: + - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "3.8"} + - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "3.8"} + - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "3.8"} + - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "3.8"} + - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "3.8"} + - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "3.8"} + - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "3.8"} + - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "2.7"} + - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.6"} + - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.7"} + - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.8"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} boto3 ${{ matrix.boto3-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-bottle.yml b/.github/workflows/test-bottle.yml new file mode 100644 index 0000000000..484514c902 --- /dev/null +++ b/.github/workflows/test-bottle.yml @@ -0,0 +1,100 @@ +name: Test bottle + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7"] + bottle-version: ["0.12"] + include: + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "pypy2.7"} + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "2.7"} + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.5"} + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.6"} + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.7"} + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.8"} + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.9"} + - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} bottle ${{ matrix.bottle-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-celery.yml b/.github/workflows/test-celery.yml new file mode 100644 index 0000000000..dd7567258e --- /dev/null +++ b/.github/workflows/test-celery.yml @@ -0,0 +1,119 @@ +name: Test celery + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7"] + celery-version: ["3"] + include: + - { os: "ubuntu-latest", celery-version: "3", python-version: "pypy2.7"} + - { os: "ubuntu-latest", celery-version: "3", python-version: "2.7"} + - { os: "ubuntu-latest", celery-version: "4.1", python-version: "pypy2.7"} + - { os: "ubuntu-latest", celery-version: "4.1", python-version: "2.7"} + - { os: "ubuntu-latest", celery-version: "4.1", python-version: "3.5"} + - { os: "ubuntu-latest", celery-version: "4.1", python-version: "3.6"} + - { os: "ubuntu-latest", celery-version: "4.2", python-version: "pypy2.7"} + - { os: "ubuntu-latest", celery-version: "4.2", python-version: "2.7"} + - { os: "ubuntu-latest", celery-version: "4.2", python-version: "3.5"} + - { os: "ubuntu-latest", celery-version: "4.2", python-version: "3.6"} + - { os: "ubuntu-latest", celery-version: "4.3", python-version: "pypy2.7"} + - { os: "ubuntu-latest", celery-version: "4.3", python-version: "2.7"} + - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.5"} + - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.6"} + - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.7"} + - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.8"} + - { os: "ubuntu-latest", celery-version: "4.4", python-version: "pypy2.7"} + - { os: "ubuntu-latest", celery-version: "4.4", python-version: "2.7"} + - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.5"} + - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.6"} + - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.7"} + - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.8"} + - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.6"} + - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.7"} + - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.8"} + - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.9"} + - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} celery ${{ matrix.celery-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-chalice.yml b/.github/workflows/test-chalice.yml new file mode 100644 index 0000000000..fff98d1888 --- /dev/null +++ b/.github/workflows/test-chalice.yml @@ -0,0 +1,107 @@ +name: Test chalice + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.6"] + chalice-version: ["1.16"] + include: + - { os: "ubuntu-latest", chalice-version: "1.16", python-version: "3.6"} + - { os: "ubuntu-latest", chalice-version: "1.16", python-version: "3.7"} + - { os: "ubuntu-latest", chalice-version: "1.16", python-version: "3.8"} + - { os: "ubuntu-latest", chalice-version: "1.17", python-version: "3.6"} + - { os: "ubuntu-latest", chalice-version: "1.17", python-version: "3.7"} + - { os: "ubuntu-latest", chalice-version: "1.17", python-version: "3.8"} + - { os: "ubuntu-latest", chalice-version: "1.18", python-version: "3.6"} + - { os: "ubuntu-latest", chalice-version: "1.18", python-version: "3.7"} + - { os: "ubuntu-latest", chalice-version: "1.18", python-version: "3.8"} + - { os: "ubuntu-latest", chalice-version: "1.19", python-version: "3.6"} + - { os: "ubuntu-latest", chalice-version: "1.19", python-version: "3.7"} + - { os: "ubuntu-latest", chalice-version: "1.19", python-version: "3.8"} + - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.6"} + - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.7"} + - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.8"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} chalice ${{ matrix.chalice-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-falcon.yml b/.github/workflows/test-falcon.yml new file mode 100644 index 0000000000..9058200fc6 --- /dev/null +++ b/.github/workflows/test-falcon.yml @@ -0,0 +1,105 @@ +name: Test falcon + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7"] + falcon-version: ["1.4"] + include: + - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "pypy2.7"} + - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "2.7"} + - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "3.5"} + - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "3.6"} + - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "3.7"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "pypy2.7"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "2.7"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.5"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.6"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.7"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.8"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.9"} + - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} falcon ${{ matrix.falcon-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-fastapi.yml b/.github/workflows/test-fastapi.yml new file mode 100644 index 0000000000..d93229f32e --- /dev/null +++ b/.github/workflows/test-fastapi.yml @@ -0,0 +1,96 @@ +name: Test fastapi + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + fastapi-version: ["lastest"] + include: + - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.7"} + - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.8"} + - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.9"} + - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} fastapi ${{ matrix.fastapi-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-flask.yml b/.github/workflows/test-flask.yml new file mode 100644 index 0000000000..43e2a1f8f5 --- /dev/null +++ b/.github/workflows/test-flask.yml @@ -0,0 +1,128 @@ +name: Test flask + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7"] + flask-version: ["0.11"] + include: + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "pypy2.7"} + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "2.7"} + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.4"} + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.5"} + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.6"} + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.7"} + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.8"} + - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.9"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "pypy2.7"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "2.7"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.4"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.5"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.6"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.7"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.8"} + - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.9"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "pypy2.7"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "2.7"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.4"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.5"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.6"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.7"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.8"} + - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.9"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "pypy2.7"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "2.7"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.5"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.6"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.7"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.8"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.9"} + - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.10"} + - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.6"} + - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.8"} + - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.9"} + - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} flask ${{ matrix.flask-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-gcp.yml b/.github/workflows/test-gcp.yml new file mode 100644 index 0000000000..5fbd9bb17f --- /dev/null +++ b/.github/workflows/test-gcp.yml @@ -0,0 +1,93 @@ +name: Test gcp + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + gcp-version: ["lastest"] + include: + - { os: "ubuntu-latest", gcp-version: "latest", python-version: "3.7"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} gcp ${{ matrix.gcp-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-httpx.yml b/.github/workflows/test-httpx.yml new file mode 100644 index 0000000000..abbf9cb29c --- /dev/null +++ b/.github/workflows/test-httpx.yml @@ -0,0 +1,102 @@ +name: Test httpx + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.6"] + httpx-version: ["0.16"] + include: + - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.6"} + - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.7"} + - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.8"} + - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.9"} + - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.10"} + - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.6"} + - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.7"} + - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.8"} + - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.9"} + - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} httpx ${{ matrix.httpx-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-pure_eval.yml b/.github/workflows/test-pure_eval.yml new file mode 100644 index 0000000000..fba7fc3ce8 --- /dev/null +++ b/.github/workflows/test-pure_eval.yml @@ -0,0 +1,98 @@ +name: Test pure_eval + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.5"] + pure_eval-version: ["lastest"] + include: + - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.5"} + - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.6"} + - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.7"} + - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.8"} + - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.9"} + - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pure_eval ${{ matrix.pure_eval-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-pyramid.yml b/.github/workflows/test-pyramid.yml new file mode 100644 index 0000000000..83db4d4246 --- /dev/null +++ b/.github/workflows/test-pyramid.yml @@ -0,0 +1,132 @@ +name: Test pyramid + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7"] + pyramid-version: ["1.6"] + include: + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "pypy2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.5"} + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.6"} + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.7"} + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.8"} + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.9"} + - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.10"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "pypy2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.5"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.6"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.7"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.8"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.9"} + - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.10"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "pypy2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.5"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.6"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.7"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.8"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.9"} + - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.10"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "pypy2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.5"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.6"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.7"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.8"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.9"} + - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.10"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "pypy2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "2.7"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.5"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.6"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.7"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.8"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.9"} + - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pyramid ${{ matrix.pyramid-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-quart.yml b/.github/workflows/test-quart.yml new file mode 100644 index 0000000000..2b9e7bb658 --- /dev/null +++ b/.github/workflows/test-quart.yml @@ -0,0 +1,96 @@ +name: Test quart + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + quart-version: ["lastest"] + include: + - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.7"} + - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.8"} + - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.9"} + - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} quart ${{ matrix.quart-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml new file mode 100644 index 0000000000..7cf65ed21c --- /dev/null +++ b/.github/workflows/test-redis.yml @@ -0,0 +1,96 @@ +name: Test redis + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["2.7"] + redis-version: ["lastest"] + include: + - { os: "ubuntu-latest", redis-version: "latest", python-version: "2.7"} + - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.7"} + - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.8"} + - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.9"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} redis ${{ matrix.redis-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-rediscluster.yml b/.github/workflows/test-rediscluster.yml new file mode 100644 index 0000000000..acf65bdf0a --- /dev/null +++ b/.github/workflows/test-rediscluster.yml @@ -0,0 +1,104 @@ +name: Test rediscluster + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["2.7"] + rediscluster-version: ["1"] + include: + - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "2.7"} + - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "3.7"} + - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "3.8"} + - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "3.9"} + - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "2.7"} + - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "3.7"} + - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "3.8"} + - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "3.9"} + - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "2.7"} + - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.7"} + - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.8"} + - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.9"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rediscluster ${{ matrix.rediscluster-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-requests.yml b/.github/workflows/test-requests.yml new file mode 100644 index 0000000000..d63cc5f7f3 --- /dev/null +++ b/.github/workflows/test-requests.yml @@ -0,0 +1,95 @@ +name: Test requests + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["2.7"] + requests-version: ["lastest"] + include: + - { os: "ubuntu-latest", requests-version: "latest", python-version: "2.7"} + - { os: "ubuntu-latest", requests-version: "latest", python-version: "3.8"} + - { os: "ubuntu-latest", requests-version: "latest", python-version: "3.9"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} requests ${{ matrix.requests-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-rq.yml b/.github/workflows/test-rq.yml new file mode 100644 index 0000000000..9dc40f1689 --- /dev/null +++ b/.github/workflows/test-rq.yml @@ -0,0 +1,170 @@ +name: Test rq + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7"] + rq-version: ["0.6"] + include: + - { os: "ubuntu-latest", rq-version: "0.6", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.6", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.6", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.6", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.7", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.7", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.7", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.7", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.8", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.8", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.8", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.8", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.9", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.9", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.9", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.9", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.10", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.10", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.10", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.10", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.11", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.11", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.11", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.11", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.12", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.12", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "0.13", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "0.13", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "1.0", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "1.0", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "1.1", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "1.1", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "1.2", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "1.2", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "1.3", python-version: "pypy2.7"} + - { os: "ubuntu-latest", rq-version: "1.3", python-version: "2.7"} + - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.10"} + - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.5"} + - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.6"} + - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.7"} + - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.8"} + - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.9"} + - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rq ${{ matrix.rq-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-sanic.yml b/.github/workflows/test-sanic.yml new file mode 100644 index 0000000000..b64eda82ac --- /dev/null +++ b/.github/workflows/test-sanic.yml @@ -0,0 +1,107 @@ +name: Test sanic + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.5"] + sanic-version: ["0.8"] + include: + - { os: "ubuntu-latest", sanic-version: "0.8", python-version: "3.5"} + - { os: "ubuntu-latest", sanic-version: "0.8", python-version: "3.6"} + - { os: "ubuntu-latest", sanic-version: "0.8", python-version: "3.7"} + - { os: "ubuntu-latest", sanic-version: "18", python-version: "3.5"} + - { os: "ubuntu-latest", sanic-version: "18", python-version: "3.6"} + - { os: "ubuntu-latest", sanic-version: "18", python-version: "3.7"} + - { os: "ubuntu-latest", sanic-version: "19", python-version: "3.6"} + - { os: "ubuntu-latest", sanic-version: "19", python-version: "3.7"} + - { os: "ubuntu-latest", sanic-version: "20", python-version: "3.6"} + - { os: "ubuntu-latest", sanic-version: "20", python-version: "3.7"} + - { os: "ubuntu-latest", sanic-version: "20", python-version: "3.8"} + - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.7"} + - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.8"} + - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.9"} + - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sanic ${{ matrix.sanic-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-sqlalchemy.yml b/.github/workflows/test-sqlalchemy.yml new file mode 100644 index 0000000000..75717fef8c --- /dev/null +++ b/.github/workflows/test-sqlalchemy.yml @@ -0,0 +1,102 @@ +name: Test sqlalchemy + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["2.7"] + sqlalchemy-version: ["1.2"] + include: + - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "2.7"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.7"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.8"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.9"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.10"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "2.7"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.7"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.8"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.9"} + - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sqlalchemy ${{ matrix.sqlalchemy-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-starlette.yml b/.github/workflows/test-starlette.yml new file mode 100644 index 0000000000..3cf3aeab93 --- /dev/null +++ b/.github/workflows/test-starlette.yml @@ -0,0 +1,100 @@ +name: Test starlette + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + starlette-version: ["0.19.1"] + include: + - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.7"} + - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.8"} + - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.9"} + - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.10"} + - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.7"} + - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.8"} + - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.9"} + - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} starlette ${{ matrix.starlette-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-tornado.yml b/.github/workflows/test-tornado.yml new file mode 100644 index 0000000000..8695e10baa --- /dev/null +++ b/.github/workflows/test-tornado.yml @@ -0,0 +1,99 @@ +name: Test tornado + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.7"] + tornado-version: ["5"] + include: + - { os: "ubuntu-latest", tornado-version: "5", python-version: "3.7"} + - { os: "ubuntu-latest", tornado-version: "5", python-version: "3.8"} + - { os: "ubuntu-latest", tornado-version: "5", python-version: "3.9"} + - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.7"} + - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.8"} + - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.9"} + - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} tornado ${{ matrix.tornado-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-trytond.yml b/.github/workflows/test-trytond.yml new file mode 100644 index 0000000000..09fa64921d --- /dev/null +++ b/.github/workflows/test-trytond.yml @@ -0,0 +1,112 @@ +name: Test trytond + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["3.5"] + trytond-version: ["4.6"] + include: + - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.5"} + - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.6"} + - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.7"} + - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.8"} + - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.9"} + - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.5"} + - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.6"} + - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.7"} + - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.8"} + - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.9"} + - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.5"} + - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.6"} + - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.7"} + - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.8"} + - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.9"} + - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.6"} + - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.7"} + - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.8"} + - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.9"} + - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.10"} + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} trytond ${{ matrix.trytond-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml new file mode 100644 index 0000000000..af67a99c98 --- /dev/null +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -0,0 +1,88 @@ +name: Test {{ framework }} + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Run Tests + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true +{{ strategy_matrix }} + + services: + # Label used to access the service container + redis: + # Docker Hub image + image: redis + # Set health checks to wait until redis has started + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + # Maps port 6379 on service container to the host + - 6379:6379 + + 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 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} {{ framework }} ${{ matrix.{{ framework }}-version }}) + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file diff --git a/scripts/split-tox-gh-actions/split-tox-gh-actions.py b/scripts/split-tox-gh-actions/split-tox-gh-actions.py new file mode 100755 index 0000000000..67424d28c3 --- /dev/null +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -0,0 +1,164 @@ +import configparser +from multiprocessing.sharedctypes import Value + +header = [ + " strategy:", + "\n matrix:", + "\n os: [ubuntu-latest]", + '\n python-version: ["{{ python-version }}"]', + '\n {{ framework }}-version: ["{{ framework-version }}"]', + "\n include: ", +] + +TOX_FILE = "/Users/antonpirker/code/sentry-python/tox.ini" +TEMPLATE_FILE = ( + "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-template.yml" +) + +OUT_DIR = "/Users/antonpirker/code/sentry-python/.github/workflows/" + + +def write_yaml_file( + template, + current_framework, + gh_frameworks, + init_python_version, + init_framework_version, +): + # render template for print + out_lines = [] + for template_line in template: + if template_line == "{{ strategy_matrix }}\n": + h = header.copy() + + for l in h: + l = ( + l.replace("{{ framework }}", current_framework) + .replace( + "{{ python-version }}", + init_python_version.replace("py", "") + if init_python_version != "pypy" + else "pypy2.7", + ) + .replace("{{ framework-version }}", init_framework_version) + ) + out_lines.append(l) + + # write gh frameworks + for fr in gh_frameworks: + out_lines.append(fr) + else: + out_lines.append( + template_line.replace("{{ framework }}", current_framework) + ) + + # write rendered template + outfile_name = OUT_DIR + f"test-{current_framework}.yml" + f = open(outfile_name, "w") + f.writelines(out_lines) + f.close() + + +def main(): + print(f"Splitting tox.init into separate GitHub actions workflows") + + print("Read template") + f = open(TEMPLATE_FILE, "r") + template = f.readlines() + f.close() + + print("Read tox.ini") + # read tox.ini + config = configparser.ConfigParser() + config.read(TOX_FILE) + lines = [x for x in config["tox"]["envlist"].split("\n") if len(x) > 0] + + current_framework = None + python_versions = [] + framework_versions = [] + gh_frameworks = [] + + init_python_version = None + init_framework_version = None + + for line in lines: + # normalize lines + line = line.strip().lower() + + # ignore comments + if line.startswith("#"): + continue + + try: + # parse tox environment + try: + (raw_python_versions, framework, raw_framework_versions) = line.split( + "-" + ) + except ValueError: + ( + raw_python_versions, + framework, + ) = line.split("-") + raw_framework_versions = "" + + if current_framework is None: + current_framework = framework + + if current_framework != framework: + write_yaml_file( + template, + current_framework, + gh_frameworks, + init_python_version, + init_framework_version, + ) + + current_framework = framework + python_versions = [] + framework_versions = [] + gh_frameworks = [] + init_python_version = None + init_framework_version = None + + # collect environments + for python_version in ( + raw_python_versions.replace("{", "").replace("}", "").split(",") + ): + if python_version not in python_versions: + python_versions.append(python_version) + if not init_python_version: + init_python_version = python_version + + for framework_version in ( + raw_framework_versions.replace("{", "").replace("}", "").split(",") + ): + if framework_version not in framework_versions: + framework_versions.append(framework_version) + if not init_framework_version: + init_framework_version = framework_version + if not init_framework_version: + init_framework_version = "lastest" + + for fr in framework_versions: + for py in python_versions: + py = py.replace("py", "") if py != "pypy" else "pypy2.7" + s = f'\n - {{ os: "ubuntu-latest", {current_framework}-version: "{fr or "latest"}", python-version: "{py}"}}' + gh_frameworks.append(s) + python_versions = [] + framework_versions = [] + + except ValueError as err: + print(f"ERROR reading line {line}") + + write_yaml_file( + template, + current_framework, + gh_frameworks, + init_python_version, + init_framework_version, + ) + + +if __name__ == "__main__": + main() From 396731765768b306bde37c40d3206a5a99940fc8 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 12:47:13 +0200 Subject: [PATCH 28/78] Deactivate redis/postgres everywhere to see where it is not needed. --- scripts/split-tox-gh-actions/ci-template.yml | 62 ++++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index af67a99c98..eef80bafb7 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -24,39 +24,39 @@ jobs: continue-on-error: true {{ strategy_matrix }} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 From d42134d2a5f159b6e651ef82b5b7c9afbd0d8a9e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 12:49:24 +0200 Subject: [PATCH 29/78] Regenerate github actions config --- .github/workflows/test-aiohttp.yml | 62 +++++++++--------- .github/workflows/test-asgi.yml | 64 +++++++++---------- .github/workflows/test-aws_lambda.yml | 64 +++++++++---------- .github/workflows/test-beam.yml | 62 +++++++++--------- .github/workflows/test-boto3.yml | 62 +++++++++--------- .github/workflows/test-bottle.yml | 62 +++++++++--------- .github/workflows/test-celery.yml | 62 +++++++++--------- .github/workflows/test-chalice.yml | 62 +++++++++--------- .github/workflows/test-django.yml | 62 +++++++++--------- .github/workflows/test-falcon.yml | 62 +++++++++--------- .github/workflows/test-fastapi.yml | 64 +++++++++---------- .github/workflows/test-flask.yml | 62 +++++++++--------- .github/workflows/test-gcp.yml | 64 +++++++++---------- .github/workflows/test-httpx.yml | 62 +++++++++--------- .github/workflows/test-pure_eval.yml | 64 +++++++++---------- .github/workflows/test-pyramid.yml | 62 +++++++++--------- .github/workflows/test-quart.yml | 64 +++++++++---------- .github/workflows/test-redis.yml | 64 +++++++++---------- .github/workflows/test-rediscluster.yml | 62 +++++++++--------- .github/workflows/test-requests.yml | 64 +++++++++---------- .github/workflows/test-rq.yml | 62 +++++++++--------- .github/workflows/test-sanic.yml | 62 +++++++++--------- .github/workflows/test-sqlalchemy.yml | 62 +++++++++--------- .github/workflows/test-starlette.yml | 62 +++++++++--------- .github/workflows/test-tornado.yml | 62 +++++++++--------- .github/workflows/test-trytond.yml | 62 +++++++++--------- .../split-tox-gh-actions.py | 2 +- 27 files changed, 815 insertions(+), 815 deletions(-) diff --git a/.github/workflows/test-aiohttp.yml b/.github/workflows/test-aiohttp.yml index f6cebbc817..1fd6968827 100644 --- a/.github/workflows/test-aiohttp.yml +++ b/.github/workflows/test-aiohttp.yml @@ -33,39 +33,39 @@ jobs: - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.8"} - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.9"} - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-asgi.yml b/.github/workflows/test-asgi.yml index 5f051e0eca..1f99913c1a 100644 --- a/.github/workflows/test-asgi.yml +++ b/.github/workflows/test-asgi.yml @@ -26,45 +26,45 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.7"] - asgi-version: ["lastest"] + asgi-version: ["latest"] include: - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.7"} - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.8"} - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.9"} - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-aws_lambda.yml b/.github/workflows/test-aws_lambda.yml index 549def9ecb..0d1b600542 100644 --- a/.github/workflows/test-aws_lambda.yml +++ b/.github/workflows/test-aws_lambda.yml @@ -26,42 +26,42 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.7"] - aws_lambda-version: ["lastest"] + aws_lambda-version: ["latest"] include: - { os: "ubuntu-latest", aws_lambda-version: "latest", python-version: "3.7"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-beam.yml b/.github/workflows/test-beam.yml index bb777d53bb..133b5b84e6 100644 --- a/.github/workflows/test-beam.yml +++ b/.github/workflows/test-beam.yml @@ -32,39 +32,39 @@ jobs: - { os: "ubuntu-latest", beam-version: "2.13", python-version: "3.7"} - { os: "ubuntu-latest", beam-version: "2.32", python-version: "3.7"} - { os: "ubuntu-latest", beam-version: "2.33", python-version: "3.7"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-boto3.yml b/.github/workflows/test-boto3.yml index 290d7fca4c..6a9252ae67 100644 --- a/.github/workflows/test-boto3.yml +++ b/.github/workflows/test-boto3.yml @@ -60,39 +60,39 @@ jobs: - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.6"} - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.7"} - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.8"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-bottle.yml b/.github/workflows/test-bottle.yml index 484514c902..a345b12f14 100644 --- a/.github/workflows/test-bottle.yml +++ b/.github/workflows/test-bottle.yml @@ -36,39 +36,39 @@ jobs: - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.8"} - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.9"} - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-celery.yml b/.github/workflows/test-celery.yml index dd7567258e..611616eaf0 100644 --- a/.github/workflows/test-celery.yml +++ b/.github/workflows/test-celery.yml @@ -55,39 +55,39 @@ jobs: - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.8"} - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.9"} - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-chalice.yml b/.github/workflows/test-chalice.yml index fff98d1888..7c7f951b61 100644 --- a/.github/workflows/test-chalice.yml +++ b/.github/workflows/test-chalice.yml @@ -43,39 +43,39 @@ jobs: - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.6"} - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.7"} - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.8"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index a92f4bc8a7..b57275eaf0 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -66,39 +66,39 @@ jobs: - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.8"} - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.9"} - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-falcon.yml b/.github/workflows/test-falcon.yml index 9058200fc6..8b902e7d3f 100644 --- a/.github/workflows/test-falcon.yml +++ b/.github/workflows/test-falcon.yml @@ -41,39 +41,39 @@ jobs: - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.8"} - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.9"} - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-fastapi.yml b/.github/workflows/test-fastapi.yml index d93229f32e..73a1cf468e 100644 --- a/.github/workflows/test-fastapi.yml +++ b/.github/workflows/test-fastapi.yml @@ -26,45 +26,45 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.7"] - fastapi-version: ["lastest"] + fastapi-version: ["latest"] include: - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.7"} - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.8"} - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.9"} - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-flask.yml b/.github/workflows/test-flask.yml index 43e2a1f8f5..6c7b00fd64 100644 --- a/.github/workflows/test-flask.yml +++ b/.github/workflows/test-flask.yml @@ -64,39 +64,39 @@ jobs: - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.8"} - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.9"} - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-gcp.yml b/.github/workflows/test-gcp.yml index 5fbd9bb17f..3d567cbca7 100644 --- a/.github/workflows/test-gcp.yml +++ b/.github/workflows/test-gcp.yml @@ -26,42 +26,42 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.7"] - gcp-version: ["lastest"] + gcp-version: ["latest"] include: - { os: "ubuntu-latest", gcp-version: "latest", python-version: "3.7"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-httpx.yml b/.github/workflows/test-httpx.yml index abbf9cb29c..527c0b0cda 100644 --- a/.github/workflows/test-httpx.yml +++ b/.github/workflows/test-httpx.yml @@ -38,39 +38,39 @@ jobs: - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.8"} - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.9"} - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-pure_eval.yml b/.github/workflows/test-pure_eval.yml index fba7fc3ce8..efc9ef728e 100644 --- a/.github/workflows/test-pure_eval.yml +++ b/.github/workflows/test-pure_eval.yml @@ -26,7 +26,7 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.5"] - pure_eval-version: ["lastest"] + pure_eval-version: ["latest"] include: - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.5"} - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.6"} @@ -34,39 +34,39 @@ jobs: - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.8"} - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.9"} - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-pyramid.yml b/.github/workflows/test-pyramid.yml index 83db4d4246..4151d312f4 100644 --- a/.github/workflows/test-pyramid.yml +++ b/.github/workflows/test-pyramid.yml @@ -68,39 +68,39 @@ jobs: - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.8"} - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.9"} - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-quart.yml b/.github/workflows/test-quart.yml index 2b9e7bb658..ab854102b1 100644 --- a/.github/workflows/test-quart.yml +++ b/.github/workflows/test-quart.yml @@ -26,45 +26,45 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["3.7"] - quart-version: ["lastest"] + quart-version: ["latest"] include: - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.7"} - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.8"} - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.9"} - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml index 7cf65ed21c..32c17b09ca 100644 --- a/.github/workflows/test-redis.yml +++ b/.github/workflows/test-redis.yml @@ -26,45 +26,45 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["2.7"] - redis-version: ["lastest"] + redis-version: ["latest"] include: - { os: "ubuntu-latest", redis-version: "latest", python-version: "2.7"} - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.7"} - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.8"} - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.9"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-rediscluster.yml b/.github/workflows/test-rediscluster.yml index acf65bdf0a..03d0b47ac2 100644 --- a/.github/workflows/test-rediscluster.yml +++ b/.github/workflows/test-rediscluster.yml @@ -40,39 +40,39 @@ jobs: - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.7"} - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.8"} - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.9"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-requests.yml b/.github/workflows/test-requests.yml index d63cc5f7f3..5dfee39b91 100644 --- a/.github/workflows/test-requests.yml +++ b/.github/workflows/test-requests.yml @@ -26,44 +26,44 @@ jobs: matrix: os: [ubuntu-latest] python-version: ["2.7"] - requests-version: ["lastest"] + requests-version: ["latest"] include: - { os: "ubuntu-latest", requests-version: "latest", python-version: "2.7"} - { os: "ubuntu-latest", requests-version: "latest", python-version: "3.8"} - { os: "ubuntu-latest", requests-version: "latest", python-version: "3.9"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-rq.yml b/.github/workflows/test-rq.yml index 9dc40f1689..33e9f864ae 100644 --- a/.github/workflows/test-rq.yml +++ b/.github/workflows/test-rq.yml @@ -106,39 +106,39 @@ jobs: - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.8"} - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.9"} - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-sanic.yml b/.github/workflows/test-sanic.yml index b64eda82ac..05989bbda3 100644 --- a/.github/workflows/test-sanic.yml +++ b/.github/workflows/test-sanic.yml @@ -43,39 +43,39 @@ jobs: - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.8"} - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.9"} - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-sqlalchemy.yml b/.github/workflows/test-sqlalchemy.yml index 75717fef8c..d0b3b774e8 100644 --- a/.github/workflows/test-sqlalchemy.yml +++ b/.github/workflows/test-sqlalchemy.yml @@ -38,39 +38,39 @@ jobs: - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.8"} - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.9"} - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-starlette.yml b/.github/workflows/test-starlette.yml index 3cf3aeab93..e9f7f9f858 100644 --- a/.github/workflows/test-starlette.yml +++ b/.github/workflows/test-starlette.yml @@ -36,39 +36,39 @@ jobs: - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.8"} - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.9"} - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-tornado.yml b/.github/workflows/test-tornado.yml index 8695e10baa..87e67c073a 100644 --- a/.github/workflows/test-tornado.yml +++ b/.github/workflows/test-tornado.yml @@ -35,39 +35,39 @@ jobs: - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.8"} - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.9"} - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-trytond.yml b/.github/workflows/test-trytond.yml index 09fa64921d..c31e3a9303 100644 --- a/.github/workflows/test-trytond.yml +++ b/.github/workflows/test-trytond.yml @@ -48,39 +48,39 @@ jobs: - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.8"} - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.9"} - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.10"} - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 + # services: + # # Label used to access the service container + # redis: + # # Docker Hub image + # image: redis + # # Set health checks to wait until redis has started + # options: >- + # --health-cmd "redis-cli ping" + # --health-interval 10s + # --health-timeout 5s + # --health-retries 5 + # ports: + # # Maps port 6379 on service container to the host + # - 6379:6379 - 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 + # 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 + # env: + # SENTRY_PYTHON_TEST_POSTGRES_USER: postgres + # SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry + # SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test steps: - uses: actions/checkout@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 67424d28c3..9e39b2a218 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -138,7 +138,7 @@ def main(): if not init_framework_version: init_framework_version = framework_version if not init_framework_version: - init_framework_version = "lastest" + init_framework_version = "latest" for fr in framework_versions: for py in python_versions: From 9cee5170519ee0e28b7f3ecae2dc34c23e594a0a Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 13:14:18 +0200 Subject: [PATCH 30/78] Removed setup-node --- scripts/split-tox-gh-actions/ci-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index eef80bafb7..80946d2ddb 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -60,7 +60,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} From efc9aec45f500ea1c8f787e917707cb4323755eb Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 13:52:57 +0200 Subject: [PATCH 31/78] Nicer GH actions names --- .github/workflows/test-aiohttp.yml | 16 +- .github/workflows/test-asgi.yml | 14 +- .github/workflows/test-aws_lambda.yml | 8 +- .github/workflows/test-beam.yml | 14 +- .github/workflows/test-boto3.yml | 70 ++++---- .github/workflows/test-bottle.yml | 22 +-- .github/workflows/test-celery.yml | 60 +++---- .github/workflows/test-chalice.yml | 36 ++-- .github/workflows/test-django.yml | 82 ++++----- .github/workflows/test-falcon.yml | 32 ++-- .github/workflows/test-fastapi.yml | 14 +- .github/workflows/test-flask.yml | 78 ++++----- .github/workflows/test-gcp.yml | 8 +- .github/workflows/test-httpx.yml | 26 +-- .github/workflows/test-pure_eval.yml | 18 +- .github/workflows/test-pyramid.yml | 86 +++++----- .github/workflows/test-quart.yml | 14 +- .github/workflows/test-redis.yml | 14 +- .github/workflows/test-rediscluster.yml | 30 ++-- .github/workflows/test-requests.yml | 12 +- .github/workflows/test-rq.yml | 162 +++++++++--------- .github/workflows/test-sanic.yml | 36 ++-- .github/workflows/test-sqlalchemy.yml | 26 +-- .github/workflows/test-starlette.yml | 22 +-- .github/workflows/test-tornado.yml | 20 +-- .github/workflows/test-trytond.yml | 46 ++--- scripts/split-tox-gh-actions/ci-template.yml | 4 +- .../split-tox-gh-actions.py | 2 +- 28 files changed, 486 insertions(+), 486 deletions(-) diff --git a/.github/workflows/test-aiohttp.yml b/.github/workflows/test-aiohttp.yml index 1fd6968827..5fc5143153 100644 --- a/.github/workflows/test-aiohttp.yml +++ b/.github/workflows/test-aiohttp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: aiohttp ${{ matrix.aiohttp-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,11 +28,11 @@ jobs: python-version: ["3.7"] aiohttp-version: ["3.5"] include: - - { os: "ubuntu-latest", aiohttp-version: "3.5", python-version: "3.7"} - - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.7"} - - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.8"} - - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.9"} - - { os: "ubuntu-latest", aiohttp-version: "3.6", python-version: "3.10"} + - { aiohttp-version: "3.5", python-version: "3.7", os: "ubuntu-latest" } + - { aiohttp-version: "3.6", python-version: "3.7", os: "ubuntu-latest" } + - { aiohttp-version: "3.6", python-version: "3.8", os: "ubuntu-latest" } + - { aiohttp-version: "3.6", python-version: "3.9", os: "ubuntu-latest" } + - { aiohttp-version: "3.6", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -69,7 +69,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -81,7 +81,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test aiohttp env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-asgi.yml b/.github/workflows/test-asgi.yml index 1f99913c1a..c8d418ac3d 100644 --- a/.github/workflows/test-asgi.yml +++ b/.github/workflows/test-asgi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: asgi ${{ matrix.asgi-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,10 +28,10 @@ jobs: python-version: ["3.7"] asgi-version: ["latest"] include: - - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.7"} - - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.8"} - - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.9"} - - { os: "ubuntu-latest", asgi-version: "latest", python-version: "3.10"} + - { asgi-version: "latest", python-version: "3.7", os: "ubuntu-latest" } + - { asgi-version: "latest", python-version: "3.8", os: "ubuntu-latest" } + - { asgi-version: "latest", python-version: "3.9", os: "ubuntu-latest" } + - { asgi-version: "latest", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -68,7 +68,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -80,7 +80,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test asgi env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-aws_lambda.yml b/.github/workflows/test-aws_lambda.yml index 0d1b600542..3ea241a683 100644 --- a/.github/workflows/test-aws_lambda.yml +++ b/.github/workflows/test-aws_lambda.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: aws_lambda ${{ matrix.aws_lambda-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,7 +28,7 @@ jobs: python-version: ["3.7"] aws_lambda-version: ["latest"] include: - - { os: "ubuntu-latest", aws_lambda-version: "latest", python-version: "3.7"} + - { aws_lambda-version: "latest", python-version: "3.7", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -65,7 +65,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -77,7 +77,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test aws_lambda env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-beam.yml b/.github/workflows/test-beam.yml index 133b5b84e6..29c447ab4d 100644 --- a/.github/workflows/test-beam.yml +++ b/.github/workflows/test-beam.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: beam ${{ matrix.beam-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,10 +28,10 @@ jobs: python-version: ["3.7"] beam-version: ["2.12"] include: - - { os: "ubuntu-latest", beam-version: "2.12", python-version: "3.7"} - - { os: "ubuntu-latest", beam-version: "2.13", python-version: "3.7"} - - { os: "ubuntu-latest", beam-version: "2.32", python-version: "3.7"} - - { os: "ubuntu-latest", beam-version: "2.33", python-version: "3.7"} + - { beam-version: "2.12", python-version: "3.7", os: "ubuntu-latest" } + - { beam-version: "2.13", python-version: "3.7", os: "ubuntu-latest" } + - { beam-version: "2.32", python-version: "3.7", os: "ubuntu-latest" } + - { beam-version: "2.33", python-version: "3.7", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -68,7 +68,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -80,7 +80,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test beam env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-boto3.yml b/.github/workflows/test-boto3.yml index 6a9252ae67..4ffbe487f4 100644 --- a/.github/workflows/test-boto3.yml +++ b/.github/workflows/test-boto3.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: boto3 ${{ matrix.boto3-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,38 +28,38 @@ jobs: python-version: ["2.7"] boto3-version: ["1.9"] include: - - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.9", python-version: "3.8"} - - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.10", python-version: "3.8"} - - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.11", python-version: "3.8"} - - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.12", python-version: "3.8"} - - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.13", python-version: "3.8"} - - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.14", python-version: "3.8"} - - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.15", python-version: "3.8"} - - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "2.7"} - - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.6"} - - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.7"} - - { os: "ubuntu-latest", boto3-version: "1.16", python-version: "3.8"} + - { boto3-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.9", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.9", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.9", python-version: "3.8", os: "ubuntu-latest" } + - { boto3-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.10", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.10", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.10", python-version: "3.8", os: "ubuntu-latest" } + - { boto3-version: "1.11", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.11", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.11", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.11", python-version: "3.8", os: "ubuntu-latest" } + - { boto3-version: "1.12", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.12", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.12", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.12", python-version: "3.8", os: "ubuntu-latest" } + - { boto3-version: "1.13", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.13", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.13", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.13", python-version: "3.8", os: "ubuntu-latest" } + - { boto3-version: "1.14", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.14", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.14", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.14", python-version: "3.8", os: "ubuntu-latest" } + - { boto3-version: "1.15", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.15", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.15", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.15", python-version: "3.8", os: "ubuntu-latest" } + - { boto3-version: "1.16", python-version: "2.7", os: "ubuntu-latest" } + - { boto3-version: "1.16", python-version: "3.6", os: "ubuntu-latest" } + - { boto3-version: "1.16", python-version: "3.7", os: "ubuntu-latest" } + - { boto3-version: "1.16", python-version: "3.8", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -96,7 +96,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -108,7 +108,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test boto3 env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-bottle.yml b/.github/workflows/test-bottle.yml index a345b12f14..0aaa003c84 100644 --- a/.github/workflows/test-bottle.yml +++ b/.github/workflows/test-bottle.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: bottle ${{ matrix.bottle-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,14 +28,14 @@ jobs: python-version: ["pypy2.7"] bottle-version: ["0.12"] include: - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "pypy2.7"} - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "2.7"} - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.5"} - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.6"} - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.7"} - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.8"} - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.9"} - - { os: "ubuntu-latest", bottle-version: "0.12", python-version: "3.10"} + - { bottle-version: "0.12", python-version: "pypy2.7", os: "ubuntu-latest" } + - { bottle-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } + - { bottle-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } + - { bottle-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } + - { bottle-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } + - { bottle-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } + - { bottle-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } + - { bottle-version: "0.12", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -72,7 +72,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -84,7 +84,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test bottle env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-celery.yml b/.github/workflows/test-celery.yml index 611616eaf0..740b30e1b1 100644 --- a/.github/workflows/test-celery.yml +++ b/.github/workflows/test-celery.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: celery ${{ matrix.celery-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,33 +28,33 @@ jobs: python-version: ["pypy2.7"] celery-version: ["3"] include: - - { os: "ubuntu-latest", celery-version: "3", python-version: "pypy2.7"} - - { os: "ubuntu-latest", celery-version: "3", python-version: "2.7"} - - { os: "ubuntu-latest", celery-version: "4.1", python-version: "pypy2.7"} - - { os: "ubuntu-latest", celery-version: "4.1", python-version: "2.7"} - - { os: "ubuntu-latest", celery-version: "4.1", python-version: "3.5"} - - { os: "ubuntu-latest", celery-version: "4.1", python-version: "3.6"} - - { os: "ubuntu-latest", celery-version: "4.2", python-version: "pypy2.7"} - - { os: "ubuntu-latest", celery-version: "4.2", python-version: "2.7"} - - { os: "ubuntu-latest", celery-version: "4.2", python-version: "3.5"} - - { os: "ubuntu-latest", celery-version: "4.2", python-version: "3.6"} - - { os: "ubuntu-latest", celery-version: "4.3", python-version: "pypy2.7"} - - { os: "ubuntu-latest", celery-version: "4.3", python-version: "2.7"} - - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.5"} - - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.6"} - - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.7"} - - { os: "ubuntu-latest", celery-version: "4.3", python-version: "3.8"} - - { os: "ubuntu-latest", celery-version: "4.4", python-version: "pypy2.7"} - - { os: "ubuntu-latest", celery-version: "4.4", python-version: "2.7"} - - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.5"} - - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.6"} - - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.7"} - - { os: "ubuntu-latest", celery-version: "4.4", python-version: "3.8"} - - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.6"} - - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.7"} - - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.8"} - - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.9"} - - { os: "ubuntu-latest", celery-version: "5.0", python-version: "3.10"} + - { celery-version: "3", python-version: "pypy2.7", os: "ubuntu-latest" } + - { celery-version: "3", python-version: "2.7", os: "ubuntu-latest" } + - { celery-version: "4.1", python-version: "pypy2.7", os: "ubuntu-latest" } + - { celery-version: "4.1", python-version: "2.7", os: "ubuntu-latest" } + - { celery-version: "4.1", python-version: "3.5", os: "ubuntu-latest" } + - { celery-version: "4.1", python-version: "3.6", os: "ubuntu-latest" } + - { celery-version: "4.2", python-version: "pypy2.7", os: "ubuntu-latest" } + - { celery-version: "4.2", python-version: "2.7", os: "ubuntu-latest" } + - { celery-version: "4.2", python-version: "3.5", os: "ubuntu-latest" } + - { celery-version: "4.2", python-version: "3.6", os: "ubuntu-latest" } + - { celery-version: "4.3", python-version: "pypy2.7", os: "ubuntu-latest" } + - { celery-version: "4.3", python-version: "2.7", os: "ubuntu-latest" } + - { celery-version: "4.3", python-version: "3.5", os: "ubuntu-latest" } + - { celery-version: "4.3", python-version: "3.6", os: "ubuntu-latest" } + - { celery-version: "4.3", python-version: "3.7", os: "ubuntu-latest" } + - { celery-version: "4.3", python-version: "3.8", os: "ubuntu-latest" } + - { celery-version: "4.4", python-version: "pypy2.7", os: "ubuntu-latest" } + - { celery-version: "4.4", python-version: "2.7", os: "ubuntu-latest" } + - { celery-version: "4.4", python-version: "3.5", os: "ubuntu-latest" } + - { celery-version: "4.4", python-version: "3.6", os: "ubuntu-latest" } + - { celery-version: "4.4", python-version: "3.7", os: "ubuntu-latest" } + - { celery-version: "4.4", python-version: "3.8", os: "ubuntu-latest" } + - { celery-version: "5.0", python-version: "3.6", os: "ubuntu-latest" } + - { celery-version: "5.0", python-version: "3.7", os: "ubuntu-latest" } + - { celery-version: "5.0", python-version: "3.8", os: "ubuntu-latest" } + - { celery-version: "5.0", python-version: "3.9", os: "ubuntu-latest" } + - { celery-version: "5.0", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -91,7 +91,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -103,7 +103,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test celery env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-chalice.yml b/.github/workflows/test-chalice.yml index 7c7f951b61..a49604c6da 100644 --- a/.github/workflows/test-chalice.yml +++ b/.github/workflows/test-chalice.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: chalice ${{ matrix.chalice-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,21 +28,21 @@ jobs: python-version: ["3.6"] chalice-version: ["1.16"] include: - - { os: "ubuntu-latest", chalice-version: "1.16", python-version: "3.6"} - - { os: "ubuntu-latest", chalice-version: "1.16", python-version: "3.7"} - - { os: "ubuntu-latest", chalice-version: "1.16", python-version: "3.8"} - - { os: "ubuntu-latest", chalice-version: "1.17", python-version: "3.6"} - - { os: "ubuntu-latest", chalice-version: "1.17", python-version: "3.7"} - - { os: "ubuntu-latest", chalice-version: "1.17", python-version: "3.8"} - - { os: "ubuntu-latest", chalice-version: "1.18", python-version: "3.6"} - - { os: "ubuntu-latest", chalice-version: "1.18", python-version: "3.7"} - - { os: "ubuntu-latest", chalice-version: "1.18", python-version: "3.8"} - - { os: "ubuntu-latest", chalice-version: "1.19", python-version: "3.6"} - - { os: "ubuntu-latest", chalice-version: "1.19", python-version: "3.7"} - - { os: "ubuntu-latest", chalice-version: "1.19", python-version: "3.8"} - - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.6"} - - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.7"} - - { os: "ubuntu-latest", chalice-version: "1.20", python-version: "3.8"} + - { chalice-version: "1.16", python-version: "3.6", os: "ubuntu-latest" } + - { chalice-version: "1.16", python-version: "3.7", os: "ubuntu-latest" } + - { chalice-version: "1.16", python-version: "3.8", os: "ubuntu-latest" } + - { chalice-version: "1.17", python-version: "3.6", os: "ubuntu-latest" } + - { chalice-version: "1.17", python-version: "3.7", os: "ubuntu-latest" } + - { chalice-version: "1.17", python-version: "3.8", os: "ubuntu-latest" } + - { chalice-version: "1.18", python-version: "3.6", os: "ubuntu-latest" } + - { chalice-version: "1.18", python-version: "3.7", os: "ubuntu-latest" } + - { chalice-version: "1.18", python-version: "3.8", os: "ubuntu-latest" } + - { chalice-version: "1.19", python-version: "3.6", os: "ubuntu-latest" } + - { chalice-version: "1.19", python-version: "3.7", os: "ubuntu-latest" } + - { chalice-version: "1.19", python-version: "3.8", os: "ubuntu-latest" } + - { chalice-version: "1.20", python-version: "3.6", os: "ubuntu-latest" } + - { chalice-version: "1.20", python-version: "3.7", os: "ubuntu-latest" } + - { chalice-version: "1.20", python-version: "3.8", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -91,7 +91,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test chalice env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index b57275eaf0..9cd9355b6c 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: django ${{ matrix.django-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,44 +28,44 @@ jobs: python-version: ["pypy2.7"] django-version: ["1.8"] include: - - { os: "ubuntu-latest", django-version: "1.8", python-version: "pypy2.7"} - - { os: "ubuntu-latest", django-version: "1.8", python-version: "2.7"} - - { os: "ubuntu-latest", django-version: "1.8", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: "pypy2.7"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: "2.7"} - - { os: "ubuntu-latest", django-version: "1.9", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: "pypy2.7"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: "2.7"} - - { os: "ubuntu-latest", django-version: "1.10", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "pypy2.7"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "2.7"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.6"} - - { os: "ubuntu-latest", django-version: "1.11", python-version: "3.7"} - - { os: "ubuntu-latest", django-version: "2.0", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "2.0", python-version: "3.6"} - - { os: "ubuntu-latest", django-version: "2.0", python-version: "3.7"} - - { os: "ubuntu-latest", django-version: "2.1", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "2.1", python-version: "3.6"} - - { os: "ubuntu-latest", django-version: "2.1", python-version: "3.7"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.5"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.6"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.7"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.8"} - - { os: "ubuntu-latest", django-version: "2.2", python-version: "3.9"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.6"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.7"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.8"} - - { os: "ubuntu-latest", django-version: "3.0", python-version: "3.9"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.6"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.7"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.8"} - - { os: "ubuntu-latest", django-version: "3.1", python-version: "3.9"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.6"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.7"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.8"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.9"} - - { os: "ubuntu-latest", django-version: "3.2", python-version: "3.10"} + - { django-version: "1.8", python-version: "pypy2.7", os: "ubuntu-latest" } + - { django-version: "1.8", python-version: "2.7", os: "ubuntu-latest" } + - { django-version: "1.8", python-version: "3.5", os: "ubuntu-latest" } + - { django-version: "1.9", python-version: "pypy2.7", os: "ubuntu-latest" } + - { django-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } + - { django-version: "1.9", python-version: "3.5", os: "ubuntu-latest" } + - { django-version: "1.10", python-version: "pypy2.7", os: "ubuntu-latest" } + - { django-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } + - { django-version: "1.10", python-version: "3.5", os: "ubuntu-latest" } + - { django-version: "1.11", python-version: "pypy2.7", os: "ubuntu-latest" } + - { django-version: "1.11", python-version: "2.7", os: "ubuntu-latest" } + - { django-version: "1.11", python-version: "3.5", os: "ubuntu-latest" } + - { django-version: "1.11", python-version: "3.6", os: "ubuntu-latest" } + - { django-version: "1.11", python-version: "3.7", os: "ubuntu-latest" } + - { django-version: "2.0", python-version: "3.5", os: "ubuntu-latest" } + - { django-version: "2.0", python-version: "3.6", os: "ubuntu-latest" } + - { django-version: "2.0", python-version: "3.7", os: "ubuntu-latest" } + - { django-version: "2.1", python-version: "3.5", os: "ubuntu-latest" } + - { django-version: "2.1", python-version: "3.6", os: "ubuntu-latest" } + - { django-version: "2.1", python-version: "3.7", os: "ubuntu-latest" } + - { django-version: "2.2", python-version: "3.5", os: "ubuntu-latest" } + - { django-version: "2.2", python-version: "3.6", os: "ubuntu-latest" } + - { django-version: "2.2", python-version: "3.7", os: "ubuntu-latest" } + - { django-version: "2.2", python-version: "3.8", os: "ubuntu-latest" } + - { django-version: "2.2", python-version: "3.9", os: "ubuntu-latest" } + - { django-version: "3.0", python-version: "3.6", os: "ubuntu-latest" } + - { django-version: "3.0", python-version: "3.7", os: "ubuntu-latest" } + - { django-version: "3.0", python-version: "3.8", os: "ubuntu-latest" } + - { django-version: "3.0", python-version: "3.9", os: "ubuntu-latest" } + - { django-version: "3.1", python-version: "3.6", os: "ubuntu-latest" } + - { django-version: "3.1", python-version: "3.7", os: "ubuntu-latest" } + - { django-version: "3.1", python-version: "3.8", os: "ubuntu-latest" } + - { django-version: "3.1", python-version: "3.9", os: "ubuntu-latest" } + - { django-version: "3.2", python-version: "3.6", os: "ubuntu-latest" } + - { django-version: "3.2", python-version: "3.7", os: "ubuntu-latest" } + - { django-version: "3.2", python-version: "3.8", os: "ubuntu-latest" } + - { django-version: "3.2", python-version: "3.9", os: "ubuntu-latest" } + - { django-version: "3.2", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -102,7 +102,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -114,7 +114,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test django env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-falcon.yml b/.github/workflows/test-falcon.yml index 8b902e7d3f..7a66bb019b 100644 --- a/.github/workflows/test-falcon.yml +++ b/.github/workflows/test-falcon.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: falcon ${{ matrix.falcon-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,19 +28,19 @@ jobs: python-version: ["pypy2.7"] falcon-version: ["1.4"] include: - - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "pypy2.7"} - - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "2.7"} - - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "3.5"} - - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "3.6"} - - { os: "ubuntu-latest", falcon-version: "1.4", python-version: "3.7"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "pypy2.7"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "2.7"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.5"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.6"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.7"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.8"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.9"} - - { os: "ubuntu-latest", falcon-version: "2.0", python-version: "3.10"} + - { falcon-version: "1.4", python-version: "pypy2.7", os: "ubuntu-latest" } + - { falcon-version: "1.4", python-version: "2.7", os: "ubuntu-latest" } + - { falcon-version: "1.4", python-version: "3.5", os: "ubuntu-latest" } + - { falcon-version: "1.4", python-version: "3.6", os: "ubuntu-latest" } + - { falcon-version: "1.4", python-version: "3.7", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "pypy2.7", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "2.7", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "3.5", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "3.6", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "3.7", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "3.8", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "3.9", os: "ubuntu-latest" } + - { falcon-version: "2.0", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -77,7 +77,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -89,7 +89,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test falcon env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-fastapi.yml b/.github/workflows/test-fastapi.yml index 73a1cf468e..3912484d8c 100644 --- a/.github/workflows/test-fastapi.yml +++ b/.github/workflows/test-fastapi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: fastapi ${{ matrix.fastapi-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,10 +28,10 @@ jobs: python-version: ["3.7"] fastapi-version: ["latest"] include: - - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.7"} - - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.8"} - - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.9"} - - { os: "ubuntu-latest", fastapi-version: "latest", python-version: "3.10"} + - { fastapi-version: "latest", python-version: "3.7", os: "ubuntu-latest" } + - { fastapi-version: "latest", python-version: "3.8", os: "ubuntu-latest" } + - { fastapi-version: "latest", python-version: "3.9", os: "ubuntu-latest" } + - { fastapi-version: "latest", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -68,7 +68,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -80,7 +80,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test fastapi env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-flask.yml b/.github/workflows/test-flask.yml index 6c7b00fd64..e7cc73e37e 100644 --- a/.github/workflows/test-flask.yml +++ b/.github/workflows/test-flask.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: flask ${{ matrix.flask-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,42 +28,42 @@ jobs: python-version: ["pypy2.7"] flask-version: ["0.11"] include: - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "pypy2.7"} - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "2.7"} - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.4"} - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.5"} - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.6"} - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.7"} - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.8"} - - { os: "ubuntu-latest", flask-version: "0.11", python-version: "3.9"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "pypy2.7"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "2.7"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.4"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.5"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.6"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.7"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.8"} - - { os: "ubuntu-latest", flask-version: "0.12", python-version: "3.9"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "pypy2.7"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "2.7"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.4"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.5"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.6"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.7"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.8"} - - { os: "ubuntu-latest", flask-version: "1.0", python-version: "3.9"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "pypy2.7"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "2.7"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.5"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.6"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.7"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.8"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.9"} - - { os: "ubuntu-latest", flask-version: "1.1", python-version: "3.10"} - - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.6"} - - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.8"} - - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.9"} - - { os: "ubuntu-latest", flask-version: "2.0", python-version: "3.10"} + - { flask-version: "0.11", python-version: "pypy2.7", os: "ubuntu-latest" } + - { flask-version: "0.11", python-version: "2.7", os: "ubuntu-latest" } + - { flask-version: "0.11", python-version: "3.4", os: "ubuntu-latest" } + - { flask-version: "0.11", python-version: "3.5", os: "ubuntu-latest" } + - { flask-version: "0.11", python-version: "3.6", os: "ubuntu-latest" } + - { flask-version: "0.11", python-version: "3.7", os: "ubuntu-latest" } + - { flask-version: "0.11", python-version: "3.8", os: "ubuntu-latest" } + - { flask-version: "0.11", python-version: "3.9", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "pypy2.7", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "3.4", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } + - { flask-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "pypy2.7", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "2.7", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "3.4", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "3.5", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "3.6", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "3.7", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "3.8", os: "ubuntu-latest" } + - { flask-version: "1.0", python-version: "3.9", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "pypy2.7", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "2.7", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "3.5", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "3.6", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "3.7", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "3.8", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "3.9", os: "ubuntu-latest" } + - { flask-version: "1.1", python-version: "3.10", os: "ubuntu-latest" } + - { flask-version: "2.0", python-version: "3.6", os: "ubuntu-latest" } + - { flask-version: "2.0", python-version: "3.8", os: "ubuntu-latest" } + - { flask-version: "2.0", python-version: "3.9", os: "ubuntu-latest" } + - { flask-version: "2.0", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -100,7 +100,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -112,7 +112,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test flask env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-gcp.yml b/.github/workflows/test-gcp.yml index 3d567cbca7..45c2b6e79d 100644 --- a/.github/workflows/test-gcp.yml +++ b/.github/workflows/test-gcp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: gcp ${{ matrix.gcp-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,7 +28,7 @@ jobs: python-version: ["3.7"] gcp-version: ["latest"] include: - - { os: "ubuntu-latest", gcp-version: "latest", python-version: "3.7"} + - { gcp-version: "latest", python-version: "3.7", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -65,7 +65,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -77,7 +77,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test gcp env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-httpx.yml b/.github/workflows/test-httpx.yml index 527c0b0cda..ba2555dcfa 100644 --- a/.github/workflows/test-httpx.yml +++ b/.github/workflows/test-httpx.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: httpx ${{ matrix.httpx-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,16 +28,16 @@ jobs: python-version: ["3.6"] httpx-version: ["0.16"] include: - - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.6"} - - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.7"} - - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.8"} - - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.9"} - - { os: "ubuntu-latest", httpx-version: "0.16", python-version: "3.10"} - - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.6"} - - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.7"} - - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.8"} - - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.9"} - - { os: "ubuntu-latest", httpx-version: "0.17", python-version: "3.10"} + - { httpx-version: "0.16", python-version: "3.6", os: "ubuntu-latest" } + - { httpx-version: "0.16", python-version: "3.7", os: "ubuntu-latest" } + - { httpx-version: "0.16", python-version: "3.8", os: "ubuntu-latest" } + - { httpx-version: "0.16", python-version: "3.9", os: "ubuntu-latest" } + - { httpx-version: "0.16", python-version: "3.10", os: "ubuntu-latest" } + - { httpx-version: "0.17", python-version: "3.6", os: "ubuntu-latest" } + - { httpx-version: "0.17", python-version: "3.7", os: "ubuntu-latest" } + - { httpx-version: "0.17", python-version: "3.8", os: "ubuntu-latest" } + - { httpx-version: "0.17", python-version: "3.9", os: "ubuntu-latest" } + - { httpx-version: "0.17", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -74,7 +74,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -86,7 +86,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test httpx env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-pure_eval.yml b/.github/workflows/test-pure_eval.yml index efc9ef728e..101836d738 100644 --- a/.github/workflows/test-pure_eval.yml +++ b/.github/workflows/test-pure_eval.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: pure_eval ${{ matrix.pure_eval-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,12 +28,12 @@ jobs: python-version: ["3.5"] pure_eval-version: ["latest"] include: - - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.5"} - - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.6"} - - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.7"} - - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.8"} - - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.9"} - - { os: "ubuntu-latest", pure_eval-version: "latest", python-version: "3.10"} + - { pure_eval-version: "latest", python-version: "3.5", os: "ubuntu-latest" } + - { pure_eval-version: "latest", python-version: "3.6", os: "ubuntu-latest" } + - { pure_eval-version: "latest", python-version: "3.7", os: "ubuntu-latest" } + - { pure_eval-version: "latest", python-version: "3.8", os: "ubuntu-latest" } + - { pure_eval-version: "latest", python-version: "3.9", os: "ubuntu-latest" } + - { pure_eval-version: "latest", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -70,7 +70,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -82,7 +82,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test pure_eval env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-pyramid.yml b/.github/workflows/test-pyramid.yml index 4151d312f4..b737ebde96 100644 --- a/.github/workflows/test-pyramid.yml +++ b/.github/workflows/test-pyramid.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: pyramid ${{ matrix.pyramid-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,46 +28,46 @@ jobs: python-version: ["pypy2.7"] pyramid-version: ["1.6"] include: - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "pypy2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.5"} - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.6"} - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.7"} - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.8"} - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.9"} - - { os: "ubuntu-latest", pyramid-version: "1.6", python-version: "3.10"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "pypy2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.5"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.6"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.7"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.8"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.9"} - - { os: "ubuntu-latest", pyramid-version: "1.7", python-version: "3.10"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "pypy2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.5"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.6"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.7"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.8"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.9"} - - { os: "ubuntu-latest", pyramid-version: "1.8", python-version: "3.10"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "pypy2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.5"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.6"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.7"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.8"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.9"} - - { os: "ubuntu-latest", pyramid-version: "1.9", python-version: "3.10"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "pypy2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "2.7"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.5"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.6"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.7"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.8"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.9"} - - { os: "ubuntu-latest", pyramid-version: "1.10", python-version: "3.10"} + - { pyramid-version: "1.6", python-version: "pypy2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.6", python-version: "2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.6", python-version: "3.5", os: "ubuntu-latest" } + - { pyramid-version: "1.6", python-version: "3.6", os: "ubuntu-latest" } + - { pyramid-version: "1.6", python-version: "3.7", os: "ubuntu-latest" } + - { pyramid-version: "1.6", python-version: "3.8", os: "ubuntu-latest" } + - { pyramid-version: "1.6", python-version: "3.9", os: "ubuntu-latest" } + - { pyramid-version: "1.6", python-version: "3.10", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "pypy2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "3.5", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "3.6", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "3.7", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "3.8", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "3.9", os: "ubuntu-latest" } + - { pyramid-version: "1.7", python-version: "3.10", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "pypy2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "3.5", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "3.6", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "3.7", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "3.8", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "3.9", os: "ubuntu-latest" } + - { pyramid-version: "1.8", python-version: "3.10", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "pypy2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "3.5", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "3.6", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "3.7", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "3.8", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "3.9", os: "ubuntu-latest" } + - { pyramid-version: "1.9", python-version: "3.10", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "pypy2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "3.5", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "3.6", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "3.7", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "3.8", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "3.9", os: "ubuntu-latest" } + - { pyramid-version: "1.10", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -104,7 +104,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -116,7 +116,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test pyramid env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-quart.yml b/.github/workflows/test-quart.yml index ab854102b1..eb7836402d 100644 --- a/.github/workflows/test-quart.yml +++ b/.github/workflows/test-quart.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: quart ${{ matrix.quart-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,10 +28,10 @@ jobs: python-version: ["3.7"] quart-version: ["latest"] include: - - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.7"} - - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.8"} - - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.9"} - - { os: "ubuntu-latest", quart-version: "latest", python-version: "3.10"} + - { quart-version: "latest", python-version: "3.7", os: "ubuntu-latest" } + - { quart-version: "latest", python-version: "3.8", os: "ubuntu-latest" } + - { quart-version: "latest", python-version: "3.9", os: "ubuntu-latest" } + - { quart-version: "latest", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -68,7 +68,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -80,7 +80,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test quart env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml index 32c17b09ca..9e4513288b 100644 --- a/.github/workflows/test-redis.yml +++ b/.github/workflows/test-redis.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: redis ${{ matrix.redis-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,10 +28,10 @@ jobs: python-version: ["2.7"] redis-version: ["latest"] include: - - { os: "ubuntu-latest", redis-version: "latest", python-version: "2.7"} - - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.7"} - - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.8"} - - { os: "ubuntu-latest", redis-version: "latest", python-version: "3.9"} + - { redis-version: "latest", python-version: "2.7", os: "ubuntu-latest" } + - { redis-version: "latest", python-version: "3.7", os: "ubuntu-latest" } + - { redis-version: "latest", python-version: "3.8", os: "ubuntu-latest" } + - { redis-version: "latest", python-version: "3.9", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -68,7 +68,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -80,7 +80,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test redis env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-rediscluster.yml b/.github/workflows/test-rediscluster.yml index 03d0b47ac2..22b1e70482 100644 --- a/.github/workflows/test-rediscluster.yml +++ b/.github/workflows/test-rediscluster.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: rediscluster ${{ matrix.rediscluster-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,18 +28,18 @@ jobs: python-version: ["2.7"] rediscluster-version: ["1"] include: - - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "2.7"} - - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "3.7"} - - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "3.8"} - - { os: "ubuntu-latest", rediscluster-version: "1", python-version: "3.9"} - - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "2.7"} - - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "3.7"} - - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "3.8"} - - { os: "ubuntu-latest", rediscluster-version: "2.1.0", python-version: "3.9"} - - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "2.7"} - - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.7"} - - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.8"} - - { os: "ubuntu-latest", rediscluster-version: "2", python-version: "3.9"} + - { rediscluster-version: "1", python-version: "2.7", os: "ubuntu-latest" } + - { rediscluster-version: "1", python-version: "3.7", os: "ubuntu-latest" } + - { rediscluster-version: "1", python-version: "3.8", os: "ubuntu-latest" } + - { rediscluster-version: "1", python-version: "3.9", os: "ubuntu-latest" } + - { rediscluster-version: "2.1.0", python-version: "2.7", os: "ubuntu-latest" } + - { rediscluster-version: "2.1.0", python-version: "3.7", os: "ubuntu-latest" } + - { rediscluster-version: "2.1.0", python-version: "3.8", os: "ubuntu-latest" } + - { rediscluster-version: "2.1.0", python-version: "3.9", os: "ubuntu-latest" } + - { rediscluster-version: "2", python-version: "2.7", os: "ubuntu-latest" } + - { rediscluster-version: "2", python-version: "3.7", os: "ubuntu-latest" } + - { rediscluster-version: "2", python-version: "3.8", os: "ubuntu-latest" } + - { rediscluster-version: "2", python-version: "3.9", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -76,7 +76,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -88,7 +88,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test rediscluster env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-requests.yml b/.github/workflows/test-requests.yml index 5dfee39b91..540fa3dc6f 100644 --- a/.github/workflows/test-requests.yml +++ b/.github/workflows/test-requests.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: requests ${{ matrix.requests-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,9 +28,9 @@ jobs: python-version: ["2.7"] requests-version: ["latest"] include: - - { os: "ubuntu-latest", requests-version: "latest", python-version: "2.7"} - - { os: "ubuntu-latest", requests-version: "latest", python-version: "3.8"} - - { os: "ubuntu-latest", requests-version: "latest", python-version: "3.9"} + - { requests-version: "latest", python-version: "2.7", os: "ubuntu-latest" } + - { requests-version: "latest", python-version: "3.8", os: "ubuntu-latest" } + - { requests-version: "latest", python-version: "3.9", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -67,7 +67,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -79,7 +79,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test requests env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-rq.yml b/.github/workflows/test-rq.yml index 33e9f864ae..d8a5e9ce38 100644 --- a/.github/workflows/test-rq.yml +++ b/.github/workflows/test-rq.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: rq ${{ matrix.rq-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,84 +28,84 @@ jobs: python-version: ["pypy2.7"] rq-version: ["0.6"] include: - - { os: "ubuntu-latest", rq-version: "0.6", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.6", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.6", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.6", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.7", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.7", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.7", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.7", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.8", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.8", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.8", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.8", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.9", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.9", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.9", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.9", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.10", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.10", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.10", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.10", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.11", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.11", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.11", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.11", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.12", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.12", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "0.12", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "0.13", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "0.13", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "0.13", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "1.0", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "1.0", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "1.0", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "1.1", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "1.1", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "1.1", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "1.2", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "1.2", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "1.2", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "1.3", python-version: "pypy2.7"} - - { os: "ubuntu-latest", rq-version: "1.3", python-version: "2.7"} - - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "1.3", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "1.4", python-version: "3.10"} - - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.5"} - - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.6"} - - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.7"} - - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.8"} - - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.9"} - - { os: "ubuntu-latest", rq-version: "1.5", python-version: "3.10"} + - { rq-version: "0.6", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.6", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.6", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.6", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.7", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.7", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.7", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.7", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.8", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.8", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.8", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.8", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.9", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.9", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.9", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.9", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.10", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.10", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.10", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.10", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.11", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.11", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.11", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.11", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.12", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "0.13", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "0.13", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "0.13", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "0.13", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "0.13", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "0.13", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "0.13", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "1.0", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "1.0", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "1.0", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "1.0", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "1.0", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "1.0", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "1.0", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "1.1", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "1.1", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "1.1", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "1.1", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "1.1", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "1.1", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "1.1", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "1.2", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "1.2", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "1.2", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "1.2", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "1.2", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "1.2", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "1.2", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "1.3", python-version: "pypy2.7", os: "ubuntu-latest" } + - { rq-version: "1.3", python-version: "2.7", os: "ubuntu-latest" } + - { rq-version: "1.3", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "1.3", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "1.3", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "1.3", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "1.3", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "1.4", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "1.4", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "1.4", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "1.4", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "1.4", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "1.4", python-version: "3.10", os: "ubuntu-latest" } + - { rq-version: "1.5", python-version: "3.5", os: "ubuntu-latest" } + - { rq-version: "1.5", python-version: "3.6", os: "ubuntu-latest" } + - { rq-version: "1.5", python-version: "3.7", os: "ubuntu-latest" } + - { rq-version: "1.5", python-version: "3.8", os: "ubuntu-latest" } + - { rq-version: "1.5", python-version: "3.9", os: "ubuntu-latest" } + - { rq-version: "1.5", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -142,7 +142,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -154,7 +154,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test rq env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-sanic.yml b/.github/workflows/test-sanic.yml index 05989bbda3..fc102ad312 100644 --- a/.github/workflows/test-sanic.yml +++ b/.github/workflows/test-sanic.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: sanic ${{ matrix.sanic-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,21 +28,21 @@ jobs: python-version: ["3.5"] sanic-version: ["0.8"] include: - - { os: "ubuntu-latest", sanic-version: "0.8", python-version: "3.5"} - - { os: "ubuntu-latest", sanic-version: "0.8", python-version: "3.6"} - - { os: "ubuntu-latest", sanic-version: "0.8", python-version: "3.7"} - - { os: "ubuntu-latest", sanic-version: "18", python-version: "3.5"} - - { os: "ubuntu-latest", sanic-version: "18", python-version: "3.6"} - - { os: "ubuntu-latest", sanic-version: "18", python-version: "3.7"} - - { os: "ubuntu-latest", sanic-version: "19", python-version: "3.6"} - - { os: "ubuntu-latest", sanic-version: "19", python-version: "3.7"} - - { os: "ubuntu-latest", sanic-version: "20", python-version: "3.6"} - - { os: "ubuntu-latest", sanic-version: "20", python-version: "3.7"} - - { os: "ubuntu-latest", sanic-version: "20", python-version: "3.8"} - - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.7"} - - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.8"} - - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.9"} - - { os: "ubuntu-latest", sanic-version: "21", python-version: "3.10"} + - { sanic-version: "0.8", python-version: "3.5", os: "ubuntu-latest" } + - { sanic-version: "0.8", python-version: "3.6", os: "ubuntu-latest" } + - { sanic-version: "0.8", python-version: "3.7", os: "ubuntu-latest" } + - { sanic-version: "18", python-version: "3.5", os: "ubuntu-latest" } + - { sanic-version: "18", python-version: "3.6", os: "ubuntu-latest" } + - { sanic-version: "18", python-version: "3.7", os: "ubuntu-latest" } + - { sanic-version: "19", python-version: "3.6", os: "ubuntu-latest" } + - { sanic-version: "19", python-version: "3.7", os: "ubuntu-latest" } + - { sanic-version: "20", python-version: "3.6", os: "ubuntu-latest" } + - { sanic-version: "20", python-version: "3.7", os: "ubuntu-latest" } + - { sanic-version: "20", python-version: "3.8", os: "ubuntu-latest" } + - { sanic-version: "21", python-version: "3.7", os: "ubuntu-latest" } + - { sanic-version: "21", python-version: "3.8", os: "ubuntu-latest" } + - { sanic-version: "21", python-version: "3.9", os: "ubuntu-latest" } + - { sanic-version: "21", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -79,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -91,7 +91,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test sanic env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-sqlalchemy.yml b/.github/workflows/test-sqlalchemy.yml index d0b3b774e8..a68f78f8ab 100644 --- a/.github/workflows/test-sqlalchemy.yml +++ b/.github/workflows/test-sqlalchemy.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: sqlalchemy ${{ matrix.sqlalchemy-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,16 +28,16 @@ jobs: python-version: ["2.7"] sqlalchemy-version: ["1.2"] include: - - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "2.7"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.7"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.8"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.9"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.2", python-version: "3.10"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "2.7"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.7"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.8"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.9"} - - { os: "ubuntu-latest", sqlalchemy-version: "1.3", python-version: "3.10"} + - { sqlalchemy-version: "1.2", python-version: "2.7", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.2", python-version: "3.7", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.2", python-version: "3.8", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.2", python-version: "3.9", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.2", python-version: "3.10", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.3", python-version: "2.7", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.3", python-version: "3.7", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.3", python-version: "3.8", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.3", python-version: "3.9", os: "ubuntu-latest" } + - { sqlalchemy-version: "1.3", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -74,7 +74,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -86,7 +86,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test sqlalchemy env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-starlette.yml b/.github/workflows/test-starlette.yml index e9f7f9f858..77128732e6 100644 --- a/.github/workflows/test-starlette.yml +++ b/.github/workflows/test-starlette.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: starlette ${{ matrix.starlette-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,14 +28,14 @@ jobs: python-version: ["3.7"] starlette-version: ["0.19.1"] include: - - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.7"} - - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.8"} - - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.9"} - - { os: "ubuntu-latest", starlette-version: "0.19.1", python-version: "3.10"} - - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.7"} - - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.8"} - - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.9"} - - { os: "ubuntu-latest", starlette-version: "0.20", python-version: "3.10"} + - { starlette-version: "0.19.1", python-version: "3.7", os: "ubuntu-latest" } + - { starlette-version: "0.19.1", python-version: "3.8", os: "ubuntu-latest" } + - { starlette-version: "0.19.1", python-version: "3.9", os: "ubuntu-latest" } + - { starlette-version: "0.19.1", python-version: "3.10", os: "ubuntu-latest" } + - { starlette-version: "0.20", python-version: "3.7", os: "ubuntu-latest" } + - { starlette-version: "0.20", python-version: "3.8", os: "ubuntu-latest" } + - { starlette-version: "0.20", python-version: "3.9", os: "ubuntu-latest" } + - { starlette-version: "0.20", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -72,7 +72,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -84,7 +84,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test starlette env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-tornado.yml b/.github/workflows/test-tornado.yml index 87e67c073a..c20e3822a3 100644 --- a/.github/workflows/test-tornado.yml +++ b/.github/workflows/test-tornado.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: tornado ${{ matrix.tornado-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,13 +28,13 @@ jobs: python-version: ["3.7"] tornado-version: ["5"] include: - - { os: "ubuntu-latest", tornado-version: "5", python-version: "3.7"} - - { os: "ubuntu-latest", tornado-version: "5", python-version: "3.8"} - - { os: "ubuntu-latest", tornado-version: "5", python-version: "3.9"} - - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.7"} - - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.8"} - - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.9"} - - { os: "ubuntu-latest", tornado-version: "6", python-version: "3.10"} + - { tornado-version: "5", python-version: "3.7", os: "ubuntu-latest" } + - { tornado-version: "5", python-version: "3.8", os: "ubuntu-latest" } + - { tornado-version: "5", python-version: "3.9", os: "ubuntu-latest" } + - { tornado-version: "6", python-version: "3.7", os: "ubuntu-latest" } + - { tornado-version: "6", python-version: "3.8", os: "ubuntu-latest" } + - { tornado-version: "6", python-version: "3.9", os: "ubuntu-latest" } + - { tornado-version: "6", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -71,7 +71,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -83,7 +83,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test tornado env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/.github/workflows/test-trytond.yml b/.github/workflows/test-trytond.yml index c31e3a9303..604ec6880e 100644 --- a/.github/workflows/test-trytond.yml +++ b/.github/workflows/test-trytond.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: trytond ${{ matrix.trytond-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -28,26 +28,26 @@ jobs: python-version: ["3.5"] trytond-version: ["4.6"] include: - - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.5"} - - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.6"} - - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.7"} - - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.8"} - - { os: "ubuntu-latest", trytond-version: "4.6", python-version: "3.9"} - - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.5"} - - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.6"} - - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.7"} - - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.8"} - - { os: "ubuntu-latest", trytond-version: "5.0", python-version: "3.9"} - - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.5"} - - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.6"} - - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.7"} - - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.8"} - - { os: "ubuntu-latest", trytond-version: "5.2", python-version: "3.9"} - - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.6"} - - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.7"} - - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.8"} - - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.9"} - - { os: "ubuntu-latest", trytond-version: "5.4", python-version: "3.10"} + - { trytond-version: "4.6", python-version: "3.5", os: "ubuntu-latest" } + - { trytond-version: "4.6", python-version: "3.6", os: "ubuntu-latest" } + - { trytond-version: "4.6", python-version: "3.7", os: "ubuntu-latest" } + - { trytond-version: "4.6", python-version: "3.8", os: "ubuntu-latest" } + - { trytond-version: "4.6", python-version: "3.9", os: "ubuntu-latest" } + - { trytond-version: "5.0", python-version: "3.5", os: "ubuntu-latest" } + - { trytond-version: "5.0", python-version: "3.6", os: "ubuntu-latest" } + - { trytond-version: "5.0", python-version: "3.7", os: "ubuntu-latest" } + - { trytond-version: "5.0", python-version: "3.8", os: "ubuntu-latest" } + - { trytond-version: "5.0", python-version: "3.9", os: "ubuntu-latest" } + - { trytond-version: "5.2", python-version: "3.5", os: "ubuntu-latest" } + - { trytond-version: "5.2", python-version: "3.6", os: "ubuntu-latest" } + - { trytond-version: "5.2", python-version: "3.7", os: "ubuntu-latest" } + - { trytond-version: "5.2", python-version: "3.8", os: "ubuntu-latest" } + - { trytond-version: "5.2", python-version: "3.9", os: "ubuntu-latest" } + - { trytond-version: "5.4", python-version: "3.6", os: "ubuntu-latest" } + - { trytond-version: "5.4", python-version: "3.7", os: "ubuntu-latest" } + - { trytond-version: "5.4", python-version: "3.8", os: "ubuntu-latest" } + - { trytond-version: "5.4", python-version: "3.9", os: "ubuntu-latest" } + - { trytond-version: "5.4", python-version: "3.10", os: "ubuntu-latest" } # services: # # Label used to access the service container # redis: @@ -84,7 +84,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -96,7 +96,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test trytond env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 80946d2ddb..3069c0076f 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: Run Tests + name: {{ framework }} ${{ matrix.{{ framework }}-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -72,7 +72,7 @@ jobs: run: | pip install codecov tox - - name: Run Tests + - name: Test {{ framework }} env: CI_PYTHON_VERSION: ${{ matrix.python-version }} timeout-minutes: 45 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 9e39b2a218..2dfc965406 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -143,7 +143,7 @@ def main(): for fr in framework_versions: for py in python_versions: py = py.replace("py", "") if py != "pypy" else "pypy2.7" - s = f'\n - {{ os: "ubuntu-latest", {current_framework}-version: "{fr or "latest"}", python-version: "{py}"}}' + s = f'\n - {{ {current_framework}-version: "{fr or "latest"}", python-version: "{py}", os: "ubuntu-latest" }}' gh_frameworks.append(s) python_versions = [] framework_versions = [] From 4b7aafa45e6ea4f81248df7652aa75797cb51f14 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 13:58:24 +0200 Subject: [PATCH 32/78] Even nicer GH actions names --- .github/workflows/test-aiohttp.yml | 2 +- .github/workflows/test-asgi.yml | 2 +- .github/workflows/test-aws_lambda.yml | 2 +- .github/workflows/test-beam.yml | 2 +- .github/workflows/test-boto3.yml | 2 +- .github/workflows/test-bottle.yml | 2 +- .github/workflows/test-celery.yml | 2 +- .github/workflows/test-chalice.yml | 2 +- .github/workflows/test-django.yml | 2 +- .github/workflows/test-falcon.yml | 2 +- .github/workflows/test-fastapi.yml | 2 +- .github/workflows/test-flask.yml | 2 +- .github/workflows/test-gcp.yml | 2 +- .github/workflows/test-httpx.yml | 2 +- .github/workflows/test-pure_eval.yml | 2 +- .github/workflows/test-pyramid.yml | 2 +- .github/workflows/test-quart.yml | 2 +- .github/workflows/test-redis.yml | 2 +- .github/workflows/test-rediscluster.yml | 2 +- .github/workflows/test-requests.yml | 2 +- .github/workflows/test-rq.yml | 2 +- .github/workflows/test-sanic.yml | 2 +- .github/workflows/test-sqlalchemy.yml | 2 +- .github/workflows/test-starlette.yml | 2 +- .github/workflows/test-tornado.yml | 2 +- .github/workflows/test-trytond.yml | 2 +- scripts/split-tox-gh-actions/ci-template.yml | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test-aiohttp.yml b/.github/workflows/test-aiohttp.yml index 5fc5143153..8ce47aebf3 100644 --- a/.github/workflows/test-aiohttp.yml +++ b/.github/workflows/test-aiohttp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: aiohttp ${{ matrix.aiohttp-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: aiohttp ${{ matrix.aiohttp-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-asgi.yml b/.github/workflows/test-asgi.yml index c8d418ac3d..4f5d0a0877 100644 --- a/.github/workflows/test-asgi.yml +++ b/.github/workflows/test-asgi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: asgi ${{ matrix.asgi-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: asgi ${{ matrix.asgi-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-aws_lambda.yml b/.github/workflows/test-aws_lambda.yml index 3ea241a683..cbb36a9db6 100644 --- a/.github/workflows/test-aws_lambda.yml +++ b/.github/workflows/test-aws_lambda.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: aws_lambda ${{ matrix.aws_lambda-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: aws_lambda ${{ matrix.aws_lambda-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-beam.yml b/.github/workflows/test-beam.yml index 29c447ab4d..00579be348 100644 --- a/.github/workflows/test-beam.yml +++ b/.github/workflows/test-beam.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: beam ${{ matrix.beam-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: beam ${{ matrix.beam-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-boto3.yml b/.github/workflows/test-boto3.yml index 4ffbe487f4..2a5630a247 100644 --- a/.github/workflows/test-boto3.yml +++ b/.github/workflows/test-boto3.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: boto3 ${{ matrix.boto3-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: boto3 ${{ matrix.boto3-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-bottle.yml b/.github/workflows/test-bottle.yml index 0aaa003c84..a8a8d3dc81 100644 --- a/.github/workflows/test-bottle.yml +++ b/.github/workflows/test-bottle.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: bottle ${{ matrix.bottle-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: bottle ${{ matrix.bottle-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-celery.yml b/.github/workflows/test-celery.yml index 740b30e1b1..aa6b0155d5 100644 --- a/.github/workflows/test-celery.yml +++ b/.github/workflows/test-celery.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: celery ${{ matrix.celery-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: celery ${{ matrix.celery-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-chalice.yml b/.github/workflows/test-chalice.yml index a49604c6da..8437972b6a 100644 --- a/.github/workflows/test-chalice.yml +++ b/.github/workflows/test-chalice.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: chalice ${{ matrix.chalice-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: chalice ${{ matrix.chalice-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 9cd9355b6c..2d00c8944b 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: django ${{ matrix.django-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: django ${{ matrix.django-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-falcon.yml b/.github/workflows/test-falcon.yml index 7a66bb019b..56836fe513 100644 --- a/.github/workflows/test-falcon.yml +++ b/.github/workflows/test-falcon.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: falcon ${{ matrix.falcon-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: falcon ${{ matrix.falcon-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-fastapi.yml b/.github/workflows/test-fastapi.yml index 3912484d8c..420929f068 100644 --- a/.github/workflows/test-fastapi.yml +++ b/.github/workflows/test-fastapi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: fastapi ${{ matrix.fastapi-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: fastapi ${{ matrix.fastapi-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-flask.yml b/.github/workflows/test-flask.yml index e7cc73e37e..1d736ac411 100644 --- a/.github/workflows/test-flask.yml +++ b/.github/workflows/test-flask.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: flask ${{ matrix.flask-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: flask ${{ matrix.flask-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-gcp.yml b/.github/workflows/test-gcp.yml index 45c2b6e79d..74f609248c 100644 --- a/.github/workflows/test-gcp.yml +++ b/.github/workflows/test-gcp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: gcp ${{ matrix.gcp-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: gcp ${{ matrix.gcp-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-httpx.yml b/.github/workflows/test-httpx.yml index ba2555dcfa..b6ce312bb3 100644 --- a/.github/workflows/test-httpx.yml +++ b/.github/workflows/test-httpx.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: httpx ${{ matrix.httpx-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: httpx ${{ matrix.httpx-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-pure_eval.yml b/.github/workflows/test-pure_eval.yml index 101836d738..beb1f0d815 100644 --- a/.github/workflows/test-pure_eval.yml +++ b/.github/workflows/test-pure_eval.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: pure_eval ${{ matrix.pure_eval-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: pure_eval ${{ matrix.pure_eval-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-pyramid.yml b/.github/workflows/test-pyramid.yml index b737ebde96..ac5d154f7d 100644 --- a/.github/workflows/test-pyramid.yml +++ b/.github/workflows/test-pyramid.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: pyramid ${{ matrix.pyramid-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: pyramid ${{ matrix.pyramid-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-quart.yml b/.github/workflows/test-quart.yml index eb7836402d..62728c6b3a 100644 --- a/.github/workflows/test-quart.yml +++ b/.github/workflows/test-quart.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: quart ${{ matrix.quart-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: quart ${{ matrix.quart-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml index 9e4513288b..69dac38531 100644 --- a/.github/workflows/test-redis.yml +++ b/.github/workflows/test-redis.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: redis ${{ matrix.redis-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: redis ${{ matrix.redis-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-rediscluster.yml b/.github/workflows/test-rediscluster.yml index 22b1e70482..81ca466c2d 100644 --- a/.github/workflows/test-rediscluster.yml +++ b/.github/workflows/test-rediscluster.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: rediscluster ${{ matrix.rediscluster-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: rediscluster ${{ matrix.rediscluster-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-requests.yml b/.github/workflows/test-requests.yml index 540fa3dc6f..313edba88b 100644 --- a/.github/workflows/test-requests.yml +++ b/.github/workflows/test-requests.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: requests ${{ matrix.requests-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: requests ${{ matrix.requests-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-rq.yml b/.github/workflows/test-rq.yml index d8a5e9ce38..6a87dd74fd 100644 --- a/.github/workflows/test-rq.yml +++ b/.github/workflows/test-rq.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: rq ${{ matrix.rq-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: rq ${{ matrix.rq-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-sanic.yml b/.github/workflows/test-sanic.yml index fc102ad312..8efe097586 100644 --- a/.github/workflows/test-sanic.yml +++ b/.github/workflows/test-sanic.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: sanic ${{ matrix.sanic-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: sanic ${{ matrix.sanic-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-sqlalchemy.yml b/.github/workflows/test-sqlalchemy.yml index a68f78f8ab..63e89f6332 100644 --- a/.github/workflows/test-sqlalchemy.yml +++ b/.github/workflows/test-sqlalchemy.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: sqlalchemy ${{ matrix.sqlalchemy-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: sqlalchemy ${{ matrix.sqlalchemy-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-starlette.yml b/.github/workflows/test-starlette.yml index 77128732e6..d5123b42d9 100644 --- a/.github/workflows/test-starlette.yml +++ b/.github/workflows/test-starlette.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: starlette ${{ matrix.starlette-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: starlette ${{ matrix.starlette-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-tornado.yml b/.github/workflows/test-tornado.yml index c20e3822a3..f7cb1d31a3 100644 --- a/.github/workflows/test-tornado.yml +++ b/.github/workflows/test-tornado.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: tornado ${{ matrix.tornado-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: tornado ${{ matrix.tornado-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-trytond.yml b/.github/workflows/test-trytond.yml index 604ec6880e..a77b7f46d9 100644 --- a/.github/workflows/test-trytond.yml +++ b/.github/workflows/test-trytond.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: trytond ${{ matrix.trytond-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: trytond ${{ matrix.trytond-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 3069c0076f..359a16bc5b 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: {{ framework }} ${{ matrix.{{ framework }}-version }}, Python ${{ matrix.python-version }}, ${{ matrix.os }} + name: {{ framework }} ${{ matrix.{{ framework }}-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true From 89872cf412ffe53bb9e23d0f82551d40b5a34322 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 14:18:22 +0200 Subject: [PATCH 33/78] Do not run tox in parallel, because we have one workflow per env now. --- scripts/runtox.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/runtox.sh b/scripts/runtox.sh index cb6292bf8a..01f29c7dd1 100755 --- a/scripts/runtox.sh +++ b/scripts/runtox.sh @@ -26,5 +26,4 @@ elif [ -n "$AZURE_PYTHON_VERSION" ]; then fi fi -export TOX_PARALLEL_NO_SPINNER=1 -exec $TOXPATH --parallel auto -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}" +exec $TOXPATH -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}" From 9e35a38f68630220b1494f9d44d468f344899625 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 15:14:54 +0200 Subject: [PATCH 34/78] Removed silent failing if postgres is not present. --- tests/integrations/django/test_basic.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/integrations/django/test_basic.py b/tests/integrations/django/test_basic.py index 329fc04f9c..68b03e234b 100644 --- a/tests/integrations/django/test_basic.py +++ b/tests/integrations/django/test_basic.py @@ -274,8 +274,8 @@ def test_sql_dict_query_params(sentry_init, capture_events): from django.db import connections - if "postgres" not in connections: - pytest.skip("postgres tests disabled") + # if "postgres" not in connections: + # pytest.skip("postgres tests disabled") sql = connections["postgres"].cursor() @@ -318,8 +318,8 @@ def test_sql_psycopg2_string_composition(sentry_init, capture_events, query): ) from django.db import connections - if "postgres" not in connections: - pytest.skip("postgres tests disabled") + # if "postgres" not in connections: + # pytest.skip("postgres tests disabled") import psycopg2.sql @@ -351,8 +351,8 @@ def test_sql_psycopg2_placeholders(sentry_init, capture_events): ) from django.db import connections - if "postgres" not in connections: - pytest.skip("postgres tests disabled") + # if "postgres" not in connections: + # pytest.skip("postgres tests disabled") import psycopg2.sql @@ -416,8 +416,8 @@ def test_django_connect_trace(sentry_init, client, capture_events, render_span_t from django.db import connections - if "postgres" not in connections: - pytest.skip("postgres tests disabled") + # if "postgres" not in connections: + # pytest.skip("postgres tests disabled") # trigger Django to open a new connection by marking the existing one as None. connections["postgres"].connection = None @@ -445,8 +445,8 @@ def test_django_connect_breadcrumbs( from django.db import connections - if "postgres" not in connections: - pytest.skip("postgres tests disabled") + # if "postgres" not in connections: + # pytest.skip("postgres tests disabled") # trigger Django to open a new connection by marking the existing one as None. connections["postgres"].connection = None From b078106f7b2872231546b770ee125898cb5b65d4 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 15:58:46 +0200 Subject: [PATCH 35/78] Render postgres only where it is needed (Django) --- .github/workflows/test-aiohttp.yml | 33 ------------ .github/workflows/test-asgi.yml | 33 ------------ .github/workflows/test-aws_lambda.yml | 33 ------------ .github/workflows/test-beam.yml | 33 ------------ .github/workflows/test-boto3.yml | 33 ------------ .github/workflows/test-bottle.yml | 33 ------------ .github/workflows/test-celery.yml | 33 ------------ .github/workflows/test-chalice.yml | 33 ------------ .github/workflows/test-django.yml | 53 +++++++------------ .github/workflows/test-falcon.yml | 33 ------------ .github/workflows/test-fastapi.yml | 33 ------------ .github/workflows/test-flask.yml | 33 ------------ .github/workflows/test-gcp.yml | 33 ------------ .github/workflows/test-httpx.yml | 33 ------------ .github/workflows/test-pure_eval.yml | 33 ------------ .github/workflows/test-pyramid.yml | 33 ------------ .github/workflows/test-quart.yml | 33 ------------ .github/workflows/test-redis.yml | 33 ------------ .github/workflows/test-rediscluster.yml | 33 ------------ .github/workflows/test-requests.yml | 33 ------------ .github/workflows/test-rq.yml | 33 ------------ .github/workflows/test-sanic.yml | 33 ------------ .github/workflows/test-sqlalchemy.yml | 33 ------------ .github/workflows/test-starlette.yml | 33 ------------ .github/workflows/test-tornado.yml | 33 ------------ .github/workflows/test-trytond.yml | 33 ------------ scripts/split-tox-gh-actions/ci-template.yml | 34 +----------- .../split-tox-gh-actions.py | 42 +++++++++++++++ 28 files changed, 61 insertions(+), 893 deletions(-) diff --git a/.github/workflows/test-aiohttp.yml b/.github/workflows/test-aiohttp.yml index 8ce47aebf3..e3770359df 100644 --- a/.github/workflows/test-aiohttp.yml +++ b/.github/workflows/test-aiohttp.yml @@ -33,39 +33,6 @@ jobs: - { aiohttp-version: "3.6", python-version: "3.8", os: "ubuntu-latest" } - { aiohttp-version: "3.6", python-version: "3.9", os: "ubuntu-latest" } - { aiohttp-version: "3.6", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-asgi.yml b/.github/workflows/test-asgi.yml index 4f5d0a0877..e40e6b2834 100644 --- a/.github/workflows/test-asgi.yml +++ b/.github/workflows/test-asgi.yml @@ -32,39 +32,6 @@ jobs: - { asgi-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - { asgi-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - { asgi-version: "latest", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-aws_lambda.yml b/.github/workflows/test-aws_lambda.yml index cbb36a9db6..2f197a5cc4 100644 --- a/.github/workflows/test-aws_lambda.yml +++ b/.github/workflows/test-aws_lambda.yml @@ -29,39 +29,6 @@ jobs: aws_lambda-version: ["latest"] include: - { aws_lambda-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-beam.yml b/.github/workflows/test-beam.yml index 00579be348..16816d9251 100644 --- a/.github/workflows/test-beam.yml +++ b/.github/workflows/test-beam.yml @@ -32,39 +32,6 @@ jobs: - { beam-version: "2.13", python-version: "3.7", os: "ubuntu-latest" } - { beam-version: "2.32", python-version: "3.7", os: "ubuntu-latest" } - { beam-version: "2.33", python-version: "3.7", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-boto3.yml b/.github/workflows/test-boto3.yml index 2a5630a247..39d74f6c8e 100644 --- a/.github/workflows/test-boto3.yml +++ b/.github/workflows/test-boto3.yml @@ -60,39 +60,6 @@ jobs: - { boto3-version: "1.16", python-version: "3.6", os: "ubuntu-latest" } - { boto3-version: "1.16", python-version: "3.7", os: "ubuntu-latest" } - { boto3-version: "1.16", python-version: "3.8", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-bottle.yml b/.github/workflows/test-bottle.yml index a8a8d3dc81..7787d841a2 100644 --- a/.github/workflows/test-bottle.yml +++ b/.github/workflows/test-bottle.yml @@ -36,39 +36,6 @@ jobs: - { bottle-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } - { bottle-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } - { bottle-version: "0.12", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-celery.yml b/.github/workflows/test-celery.yml index aa6b0155d5..3331d56707 100644 --- a/.github/workflows/test-celery.yml +++ b/.github/workflows/test-celery.yml @@ -55,39 +55,6 @@ jobs: - { celery-version: "5.0", python-version: "3.8", os: "ubuntu-latest" } - { celery-version: "5.0", python-version: "3.9", os: "ubuntu-latest" } - { celery-version: "5.0", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-chalice.yml b/.github/workflows/test-chalice.yml index 8437972b6a..1a1f904dcb 100644 --- a/.github/workflows/test-chalice.yml +++ b/.github/workflows/test-chalice.yml @@ -43,39 +43,6 @@ jobs: - { chalice-version: "1.20", python-version: "3.6", os: "ubuntu-latest" } - { chalice-version: "1.20", python-version: "3.7", os: "ubuntu-latest" } - { chalice-version: "1.20", python-version: "3.8", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-django.yml index 2d00c8944b..071dcbf422 100644 --- a/.github/workflows/test-django.yml +++ b/.github/workflows/test-django.yml @@ -66,43 +66,26 @@ jobs: - { django-version: "3.2", python-version: "3.8", os: "ubuntu-latest" } - { django-version: "3.2", python-version: "3.9", os: "ubuntu-latest" } - { django-version: "3.2", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 - + 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 steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-falcon.yml b/.github/workflows/test-falcon.yml index 56836fe513..969b9d6daf 100644 --- a/.github/workflows/test-falcon.yml +++ b/.github/workflows/test-falcon.yml @@ -41,39 +41,6 @@ jobs: - { falcon-version: "2.0", python-version: "3.8", os: "ubuntu-latest" } - { falcon-version: "2.0", python-version: "3.9", os: "ubuntu-latest" } - { falcon-version: "2.0", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-fastapi.yml b/.github/workflows/test-fastapi.yml index 420929f068..131cd63ae3 100644 --- a/.github/workflows/test-fastapi.yml +++ b/.github/workflows/test-fastapi.yml @@ -32,39 +32,6 @@ jobs: - { fastapi-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - { fastapi-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - { fastapi-version: "latest", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-flask.yml b/.github/workflows/test-flask.yml index 1d736ac411..6515c1c565 100644 --- a/.github/workflows/test-flask.yml +++ b/.github/workflows/test-flask.yml @@ -64,39 +64,6 @@ jobs: - { flask-version: "2.0", python-version: "3.8", os: "ubuntu-latest" } - { flask-version: "2.0", python-version: "3.9", os: "ubuntu-latest" } - { flask-version: "2.0", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-gcp.yml b/.github/workflows/test-gcp.yml index 74f609248c..1777e1d0eb 100644 --- a/.github/workflows/test-gcp.yml +++ b/.github/workflows/test-gcp.yml @@ -29,39 +29,6 @@ jobs: gcp-version: ["latest"] include: - { gcp-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-httpx.yml b/.github/workflows/test-httpx.yml index b6ce312bb3..7571413003 100644 --- a/.github/workflows/test-httpx.yml +++ b/.github/workflows/test-httpx.yml @@ -38,39 +38,6 @@ jobs: - { httpx-version: "0.17", python-version: "3.8", os: "ubuntu-latest" } - { httpx-version: "0.17", python-version: "3.9", os: "ubuntu-latest" } - { httpx-version: "0.17", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-pure_eval.yml b/.github/workflows/test-pure_eval.yml index beb1f0d815..7e1d729d8f 100644 --- a/.github/workflows/test-pure_eval.yml +++ b/.github/workflows/test-pure_eval.yml @@ -34,39 +34,6 @@ jobs: - { pure_eval-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - { pure_eval-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - { pure_eval-version: "latest", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-pyramid.yml b/.github/workflows/test-pyramid.yml index ac5d154f7d..adec6a4f83 100644 --- a/.github/workflows/test-pyramid.yml +++ b/.github/workflows/test-pyramid.yml @@ -68,39 +68,6 @@ jobs: - { pyramid-version: "1.10", python-version: "3.8", os: "ubuntu-latest" } - { pyramid-version: "1.10", python-version: "3.9", os: "ubuntu-latest" } - { pyramid-version: "1.10", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-quart.yml b/.github/workflows/test-quart.yml index 62728c6b3a..93410128b2 100644 --- a/.github/workflows/test-quart.yml +++ b/.github/workflows/test-quart.yml @@ -32,39 +32,6 @@ jobs: - { quart-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - { quart-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - { quart-version: "latest", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml index 69dac38531..9ef3efbb72 100644 --- a/.github/workflows/test-redis.yml +++ b/.github/workflows/test-redis.yml @@ -32,39 +32,6 @@ jobs: - { redis-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - { redis-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - { redis-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-rediscluster.yml b/.github/workflows/test-rediscluster.yml index 81ca466c2d..e6e47b83dc 100644 --- a/.github/workflows/test-rediscluster.yml +++ b/.github/workflows/test-rediscluster.yml @@ -40,39 +40,6 @@ jobs: - { rediscluster-version: "2", python-version: "3.7", os: "ubuntu-latest" } - { rediscluster-version: "2", python-version: "3.8", os: "ubuntu-latest" } - { rediscluster-version: "2", python-version: "3.9", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-requests.yml b/.github/workflows/test-requests.yml index 313edba88b..b87f48c1ff 100644 --- a/.github/workflows/test-requests.yml +++ b/.github/workflows/test-requests.yml @@ -31,39 +31,6 @@ jobs: - { requests-version: "latest", python-version: "2.7", os: "ubuntu-latest" } - { requests-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - { requests-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-rq.yml b/.github/workflows/test-rq.yml index 6a87dd74fd..d833c4c3f2 100644 --- a/.github/workflows/test-rq.yml +++ b/.github/workflows/test-rq.yml @@ -106,39 +106,6 @@ jobs: - { rq-version: "1.5", python-version: "3.8", os: "ubuntu-latest" } - { rq-version: "1.5", python-version: "3.9", os: "ubuntu-latest" } - { rq-version: "1.5", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-sanic.yml b/.github/workflows/test-sanic.yml index 8efe097586..33d111b49e 100644 --- a/.github/workflows/test-sanic.yml +++ b/.github/workflows/test-sanic.yml @@ -43,39 +43,6 @@ jobs: - { sanic-version: "21", python-version: "3.8", os: "ubuntu-latest" } - { sanic-version: "21", python-version: "3.9", os: "ubuntu-latest" } - { sanic-version: "21", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-sqlalchemy.yml b/.github/workflows/test-sqlalchemy.yml index 63e89f6332..1c0bc5cf6b 100644 --- a/.github/workflows/test-sqlalchemy.yml +++ b/.github/workflows/test-sqlalchemy.yml @@ -38,39 +38,6 @@ jobs: - { sqlalchemy-version: "1.3", python-version: "3.8", os: "ubuntu-latest" } - { sqlalchemy-version: "1.3", python-version: "3.9", os: "ubuntu-latest" } - { sqlalchemy-version: "1.3", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-starlette.yml b/.github/workflows/test-starlette.yml index d5123b42d9..37283318e1 100644 --- a/.github/workflows/test-starlette.yml +++ b/.github/workflows/test-starlette.yml @@ -36,39 +36,6 @@ jobs: - { starlette-version: "0.20", python-version: "3.8", os: "ubuntu-latest" } - { starlette-version: "0.20", python-version: "3.9", os: "ubuntu-latest" } - { starlette-version: "0.20", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-tornado.yml b/.github/workflows/test-tornado.yml index f7cb1d31a3..5384c02905 100644 --- a/.github/workflows/test-tornado.yml +++ b/.github/workflows/test-tornado.yml @@ -35,39 +35,6 @@ jobs: - { tornado-version: "6", python-version: "3.8", os: "ubuntu-latest" } - { tornado-version: "6", python-version: "3.9", os: "ubuntu-latest" } - { tornado-version: "6", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-trytond.yml b/.github/workflows/test-trytond.yml index a77b7f46d9..38d2c640cf 100644 --- a/.github/workflows/test-trytond.yml +++ b/.github/workflows/test-trytond.yml @@ -48,39 +48,6 @@ jobs: - { trytond-version: "5.4", python-version: "3.8", os: "ubuntu-latest" } - { trytond-version: "5.4", python-version: "3.9", os: "ubuntu-latest" } - { trytond-version: "5.4", python-version: "3.10", os: "ubuntu-latest" } - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 steps: - uses: actions/checkout@v3 diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 359a16bc5b..3852de195d 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -24,39 +24,7 @@ jobs: continue-on-error: true {{ strategy_matrix }} - # services: - # # Label used to access the service container - # redis: - # # Docker Hub image - # image: redis - # # Set health checks to wait until redis has started - # options: >- - # --health-cmd "redis-cli ping" - # --health-interval 10s - # --health-timeout 5s - # --health-retries 5 - # ports: - # # Maps port 6379 on service container to the host - # - 6379:6379 - - # 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 +{{ services }} steps: - uses: actions/checkout@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 2dfc965406..d54bb5f7c7 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -10,6 +10,27 @@ "\n include: ", ] +service_postgres = [ + " services:", + "\n postgres:", + "\n image: postgres", + "\n env:", + "\n POSTGRES_PASSWORD: sentry", + "\n # Set health checks to wait until postgres has started", + "\n options: >-", + "\n --health-cmd pg_isready", + "\n --health-interval 10s", + "\n --health-timeout 5s", + "\n --health-retries 5", + "\n # Maps tcp port 5432 on service container to the host", + "\n ports:", + "\n - 5432:5432", + "\n env:", + "\n SENTRY_PYTHON_TEST_POSTGRES_USER: postgres", + "\n SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry", + "\n SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test", +] + TOX_FILE = "/Users/antonpirker/code/sentry-python/tox.ini" TEMPLATE_FILE = ( "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-template.yml" @@ -17,6 +38,10 @@ OUT_DIR = "/Users/antonpirker/code/sentry-python/.github/workflows/" +FRAMEWORKS_NEEDING_POSTGRES = [ + "django", +] + def write_yaml_file( template, @@ -47,6 +72,23 @@ def write_yaml_file( # write gh frameworks for fr in gh_frameworks: out_lines.append(fr) + elif template_line == "{{ services }}\n": + if current_framework in FRAMEWORKS_NEEDING_POSTGRES: + services = service_postgres.copy() + + for l in services: + l = ( + l.replace("{{ framework }}", current_framework) + .replace( + "{{ python-version }}", + init_python_version.replace("py", "") + if init_python_version != "pypy" + else "pypy2.7", + ) + .replace("{{ framework-version }}", init_framework_version) + ) + out_lines.append(l) + else: out_lines.append( template_line.replace("{{ framework }}", current_framework) From 60a485705b21f5118b0ae65969438567b416f3f8 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 15:59:29 +0200 Subject: [PATCH 36/78] Cleanup --- .github/workflows/test-aiohttp.yml | 1 - .github/workflows/test-asgi.yml | 1 - .github/workflows/test-aws_lambda.yml | 1 - .github/workflows/test-beam.yml | 1 - .github/workflows/test-boto3.yml | 1 - .github/workflows/test-bottle.yml | 1 - .github/workflows/test-celery.yml | 1 - .github/workflows/test-chalice.yml | 1 - .github/workflows/test-falcon.yml | 1 - .github/workflows/test-fastapi.yml | 1 - .github/workflows/test-flask.yml | 1 - .github/workflows/test-gcp.yml | 1 - .github/workflows/test-httpx.yml | 1 - .github/workflows/test-pure_eval.yml | 1 - .github/workflows/test-pyramid.yml | 1 - .github/workflows/test-quart.yml | 1 - .github/workflows/test-redis.yml | 1 - .github/workflows/test-rediscluster.yml | 1 - .github/workflows/test-requests.yml | 1 - .github/workflows/test-rq.yml | 1 - .github/workflows/test-sanic.yml | 1 - .github/workflows/test-sqlalchemy.yml | 1 - .github/workflows/test-starlette.yml | 1 - .github/workflows/test-tornado.yml | 1 - .github/workflows/test-trytond.yml | 1 - scripts/split-tox-gh-actions/ci-template.yml | 1 - 26 files changed, 26 deletions(-) diff --git a/.github/workflows/test-aiohttp.yml b/.github/workflows/test-aiohttp.yml index e3770359df..d5773f1f0e 100644 --- a/.github/workflows/test-aiohttp.yml +++ b/.github/workflows/test-aiohttp.yml @@ -36,7 +36,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-asgi.yml b/.github/workflows/test-asgi.yml index e40e6b2834..6fdb6fed6a 100644 --- a/.github/workflows/test-asgi.yml +++ b/.github/workflows/test-asgi.yml @@ -35,7 +35,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-aws_lambda.yml b/.github/workflows/test-aws_lambda.yml index 2f197a5cc4..854303bd16 100644 --- a/.github/workflows/test-aws_lambda.yml +++ b/.github/workflows/test-aws_lambda.yml @@ -32,7 +32,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-beam.yml b/.github/workflows/test-beam.yml index 16816d9251..fd74dea193 100644 --- a/.github/workflows/test-beam.yml +++ b/.github/workflows/test-beam.yml @@ -35,7 +35,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-boto3.yml b/.github/workflows/test-boto3.yml index 39d74f6c8e..522b342ba9 100644 --- a/.github/workflows/test-boto3.yml +++ b/.github/workflows/test-boto3.yml @@ -63,7 +63,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-bottle.yml b/.github/workflows/test-bottle.yml index 7787d841a2..60f14c25e5 100644 --- a/.github/workflows/test-bottle.yml +++ b/.github/workflows/test-bottle.yml @@ -39,7 +39,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-celery.yml b/.github/workflows/test-celery.yml index 3331d56707..b7ba29ca7f 100644 --- a/.github/workflows/test-celery.yml +++ b/.github/workflows/test-celery.yml @@ -58,7 +58,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-chalice.yml b/.github/workflows/test-chalice.yml index 1a1f904dcb..68557e76fa 100644 --- a/.github/workflows/test-chalice.yml +++ b/.github/workflows/test-chalice.yml @@ -46,7 +46,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-falcon.yml b/.github/workflows/test-falcon.yml index 969b9d6daf..afb33aa79f 100644 --- a/.github/workflows/test-falcon.yml +++ b/.github/workflows/test-falcon.yml @@ -44,7 +44,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-fastapi.yml b/.github/workflows/test-fastapi.yml index 131cd63ae3..5984fe9034 100644 --- a/.github/workflows/test-fastapi.yml +++ b/.github/workflows/test-fastapi.yml @@ -35,7 +35,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-flask.yml b/.github/workflows/test-flask.yml index 6515c1c565..9dfd06cca4 100644 --- a/.github/workflows/test-flask.yml +++ b/.github/workflows/test-flask.yml @@ -67,7 +67,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-gcp.yml b/.github/workflows/test-gcp.yml index 1777e1d0eb..486a1c5846 100644 --- a/.github/workflows/test-gcp.yml +++ b/.github/workflows/test-gcp.yml @@ -32,7 +32,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-httpx.yml b/.github/workflows/test-httpx.yml index 7571413003..18a4982b72 100644 --- a/.github/workflows/test-httpx.yml +++ b/.github/workflows/test-httpx.yml @@ -41,7 +41,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-pure_eval.yml b/.github/workflows/test-pure_eval.yml index 7e1d729d8f..2f03e5357f 100644 --- a/.github/workflows/test-pure_eval.yml +++ b/.github/workflows/test-pure_eval.yml @@ -37,7 +37,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-pyramid.yml b/.github/workflows/test-pyramid.yml index adec6a4f83..63b440aa91 100644 --- a/.github/workflows/test-pyramid.yml +++ b/.github/workflows/test-pyramid.yml @@ -71,7 +71,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-quart.yml b/.github/workflows/test-quart.yml index 93410128b2..45e6d0a5b6 100644 --- a/.github/workflows/test-quart.yml +++ b/.github/workflows/test-quart.yml @@ -35,7 +35,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-redis.yml index 9ef3efbb72..982b8a9f2f 100644 --- a/.github/workflows/test-redis.yml +++ b/.github/workflows/test-redis.yml @@ -35,7 +35,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-rediscluster.yml b/.github/workflows/test-rediscluster.yml index e6e47b83dc..b6fcaa0c7e 100644 --- a/.github/workflows/test-rediscluster.yml +++ b/.github/workflows/test-rediscluster.yml @@ -43,7 +43,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-requests.yml b/.github/workflows/test-requests.yml index b87f48c1ff..71dec80747 100644 --- a/.github/workflows/test-requests.yml +++ b/.github/workflows/test-requests.yml @@ -34,7 +34,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-rq.yml b/.github/workflows/test-rq.yml index d833c4c3f2..7f8af7a0a5 100644 --- a/.github/workflows/test-rq.yml +++ b/.github/workflows/test-rq.yml @@ -109,7 +109,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-sanic.yml b/.github/workflows/test-sanic.yml index 33d111b49e..39093755c8 100644 --- a/.github/workflows/test-sanic.yml +++ b/.github/workflows/test-sanic.yml @@ -46,7 +46,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-sqlalchemy.yml b/.github/workflows/test-sqlalchemy.yml index 1c0bc5cf6b..16bfe54be5 100644 --- a/.github/workflows/test-sqlalchemy.yml +++ b/.github/workflows/test-sqlalchemy.yml @@ -41,7 +41,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-starlette.yml b/.github/workflows/test-starlette.yml index 37283318e1..0b4a6ad643 100644 --- a/.github/workflows/test-starlette.yml +++ b/.github/workflows/test-starlette.yml @@ -39,7 +39,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-tornado.yml b/.github/workflows/test-tornado.yml index 5384c02905..e08b2d263e 100644 --- a/.github/workflows/test-tornado.yml +++ b/.github/workflows/test-tornado.yml @@ -38,7 +38,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/test-trytond.yml b/.github/workflows/test-trytond.yml index 38d2c640cf..e06f1008d1 100644 --- a/.github/workflows/test-trytond.yml +++ b/.github/workflows/test-trytond.yml @@ -51,7 +51,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 3852de195d..811d3d561a 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -28,7 +28,6 @@ jobs: steps: - uses: actions/checkout@v3 - #- uses: actions/setup-node@v3 - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} From 695a109bf87872dfd0773e7386be1a41316cdae7 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 16:03:36 +0200 Subject: [PATCH 37/78] Code cleanup --- .../split-tox-gh-actions.py | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 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 d54bb5f7c7..92e09ac64d 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,17 @@ import configparser from multiprocessing.sharedctypes import Value -header = [ +OUT_DIR = "/Users/antonpirker/code/sentry-python/.github/workflows/" +TOX_FILE = "/Users/antonpirker/code/sentry-python/tox.ini" +TEMPLATE_FILE = ( + "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-template.yml" +) + +FRAMEWORKS_NEEDING_POSTGRES = [ + "django", +] + +MATRIX_DEFINITION = [ " strategy:", "\n matrix:", "\n os: [ubuntu-latest]", @@ -10,7 +20,7 @@ "\n include: ", ] -service_postgres = [ +SERVICE_POSTGRES = [ " services:", "\n postgres:", "\n image: postgres", @@ -31,17 +41,6 @@ "\n SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test", ] -TOX_FILE = "/Users/antonpirker/code/sentry-python/tox.ini" -TEMPLATE_FILE = ( - "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-template.yml" -) - -OUT_DIR = "/Users/antonpirker/code/sentry-python/.github/workflows/" - -FRAMEWORKS_NEEDING_POSTGRES = [ - "django", -] - def write_yaml_file( template, @@ -54,7 +53,7 @@ def write_yaml_file( out_lines = [] for template_line in template: if template_line == "{{ strategy_matrix }}\n": - h = header.copy() + h = MATRIX_DEFINITION.copy() for l in h: l = ( @@ -74,7 +73,7 @@ def write_yaml_file( out_lines.append(fr) elif template_line == "{{ services }}\n": if current_framework in FRAMEWORKS_NEEDING_POSTGRES: - services = service_postgres.copy() + services = SERVICE_POSTGRES.copy() for l in services: l = ( @@ -96,6 +95,7 @@ def write_yaml_file( # write rendered template outfile_name = OUT_DIR + f"test-{current_framework}.yml" + print(f"Writing {outfile_name}") f = open(outfile_name, "w") f.writelines(out_lines) f.close() @@ -201,6 +201,8 @@ def main(): init_framework_version, ) + print("All done. Have a nice day!") + if __name__ == "__main__": main() From 726e5c2de8d23fafa9b8637c869c43c528a2d7d5 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 16:22:09 +0200 Subject: [PATCH 38/78] Run general tests (not integration specific) --- scripts/tox_env_name.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/tox_env_name.py b/scripts/tox_env_name.py index b5cbf66e63..689bafe96d 100755 --- a/scripts/tox_env_name.py +++ b/scripts/tox_env_name.py @@ -19,7 +19,12 @@ def main(): else: fr_version = "-" + framework_version - print(py_version + "-" + framework + fr_version) + if framework == "": + fr_name = "" + else: + fr_name = "-" + framework + + print(py_version + fr_name + fr_version) if __name__ == "__main__": From 883010d596d9f5b40e8bd3617012d11b98ad6c72 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 16:24:46 +0200 Subject: [PATCH 39/78] Added general sdk tests --- .github/workflows/test-general.yml | 73 ++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/test-general.yml diff --git a/.github/workflows/test-general.yml b/.github/workflows/test-general.yml new file mode 100644 index 0000000000..b9992088dc --- /dev/null +++ b/.github/workflows/test-general.yml @@ -0,0 +1,73 @@ +name: Test + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Test Python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7", "2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + 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 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} "" "") + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file From 6f1a26a93d777f23f939cf88e173edab573b1401 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 16:25:29 +0200 Subject: [PATCH 40/78] Renamed ci files to reflect that those are test for integrations --- .../{test-aiohttp.yml => test-integration-aiohttp.yml} | 0 .github/workflows/{test-asgi.yml => test-integration-asgi.yml} | 0 .../{test-aws_lambda.yml => test-integration-aws_lambda.yml} | 0 .github/workflows/{test-beam.yml => test-integration-beam.yml} | 0 .../workflows/{test-boto3.yml => test-integration-boto3.yml} | 0 .../workflows/{test-bottle.yml => test-integration-bottle.yml} | 0 .../workflows/{test-celery.yml => test-integration-celery.yml} | 0 .../{test-chalice.yml => test-integration-chalice.yml} | 0 .../workflows/{test-django.yml => test-integration-django.yml} | 0 .../workflows/{test-falcon.yml => test-integration-falcon.yml} | 0 .../{test-fastapi.yml => test-integration-fastapi.yml} | 0 .../workflows/{test-flask.yml => test-integration-flask.yml} | 0 .github/workflows/{test-gcp.yml => test-integration-gcp.yml} | 0 .../workflows/{test-httpx.yml => test-integration-httpx.yml} | 0 .../{test-pure_eval.yml => test-integration-pure_eval.yml} | 0 .../{test-pyramid.yml => test-integration-pyramid.yml} | 0 .../workflows/{test-quart.yml => test-integration-quart.yml} | 0 .../workflows/{test-redis.yml => test-integration-redis.yml} | 0 ...{test-rediscluster.yml => test-integration-rediscluster.yml} | 0 .../{test-requests.yml => test-integration-requests.yml} | 0 .github/workflows/{test-rq.yml => test-integration-rq.yml} | 0 .../workflows/{test-sanic.yml => test-integration-sanic.yml} | 0 .../{test-sqlalchemy.yml => test-integration-sqlalchemy.yml} | 0 .../{test-starlette.yml => test-integration-starlette.yml} | 0 .../{test-tornado.yml => test-integration-tornado.yml} | 0 .../{test-trytond.yml => test-integration-trytond.yml} | 0 scripts/split-tox-gh-actions/split-tox-gh-actions.py | 2 +- 27 files changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{test-aiohttp.yml => test-integration-aiohttp.yml} (100%) rename .github/workflows/{test-asgi.yml => test-integration-asgi.yml} (100%) rename .github/workflows/{test-aws_lambda.yml => test-integration-aws_lambda.yml} (100%) rename .github/workflows/{test-beam.yml => test-integration-beam.yml} (100%) rename .github/workflows/{test-boto3.yml => test-integration-boto3.yml} (100%) rename .github/workflows/{test-bottle.yml => test-integration-bottle.yml} (100%) rename .github/workflows/{test-celery.yml => test-integration-celery.yml} (100%) rename .github/workflows/{test-chalice.yml => test-integration-chalice.yml} (100%) rename .github/workflows/{test-django.yml => test-integration-django.yml} (100%) rename .github/workflows/{test-falcon.yml => test-integration-falcon.yml} (100%) rename .github/workflows/{test-fastapi.yml => test-integration-fastapi.yml} (100%) rename .github/workflows/{test-flask.yml => test-integration-flask.yml} (100%) rename .github/workflows/{test-gcp.yml => test-integration-gcp.yml} (100%) rename .github/workflows/{test-httpx.yml => test-integration-httpx.yml} (100%) rename .github/workflows/{test-pure_eval.yml => test-integration-pure_eval.yml} (100%) rename .github/workflows/{test-pyramid.yml => test-integration-pyramid.yml} (100%) rename .github/workflows/{test-quart.yml => test-integration-quart.yml} (100%) rename .github/workflows/{test-redis.yml => test-integration-redis.yml} (100%) rename .github/workflows/{test-rediscluster.yml => test-integration-rediscluster.yml} (100%) rename .github/workflows/{test-requests.yml => test-integration-requests.yml} (100%) rename .github/workflows/{test-rq.yml => test-integration-rq.yml} (100%) rename .github/workflows/{test-sanic.yml => test-integration-sanic.yml} (100%) rename .github/workflows/{test-sqlalchemy.yml => test-integration-sqlalchemy.yml} (100%) rename .github/workflows/{test-starlette.yml => test-integration-starlette.yml} (100%) rename .github/workflows/{test-tornado.yml => test-integration-tornado.yml} (100%) rename .github/workflows/{test-trytond.yml => test-integration-trytond.yml} (100%) diff --git a/.github/workflows/test-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml similarity index 100% rename from .github/workflows/test-aiohttp.yml rename to .github/workflows/test-integration-aiohttp.yml diff --git a/.github/workflows/test-asgi.yml b/.github/workflows/test-integration-asgi.yml similarity index 100% rename from .github/workflows/test-asgi.yml rename to .github/workflows/test-integration-asgi.yml diff --git a/.github/workflows/test-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml similarity index 100% rename from .github/workflows/test-aws_lambda.yml rename to .github/workflows/test-integration-aws_lambda.yml diff --git a/.github/workflows/test-beam.yml b/.github/workflows/test-integration-beam.yml similarity index 100% rename from .github/workflows/test-beam.yml rename to .github/workflows/test-integration-beam.yml diff --git a/.github/workflows/test-boto3.yml b/.github/workflows/test-integration-boto3.yml similarity index 100% rename from .github/workflows/test-boto3.yml rename to .github/workflows/test-integration-boto3.yml diff --git a/.github/workflows/test-bottle.yml b/.github/workflows/test-integration-bottle.yml similarity index 100% rename from .github/workflows/test-bottle.yml rename to .github/workflows/test-integration-bottle.yml diff --git a/.github/workflows/test-celery.yml b/.github/workflows/test-integration-celery.yml similarity index 100% rename from .github/workflows/test-celery.yml rename to .github/workflows/test-integration-celery.yml diff --git a/.github/workflows/test-chalice.yml b/.github/workflows/test-integration-chalice.yml similarity index 100% rename from .github/workflows/test-chalice.yml rename to .github/workflows/test-integration-chalice.yml diff --git a/.github/workflows/test-django.yml b/.github/workflows/test-integration-django.yml similarity index 100% rename from .github/workflows/test-django.yml rename to .github/workflows/test-integration-django.yml diff --git a/.github/workflows/test-falcon.yml b/.github/workflows/test-integration-falcon.yml similarity index 100% rename from .github/workflows/test-falcon.yml rename to .github/workflows/test-integration-falcon.yml diff --git a/.github/workflows/test-fastapi.yml b/.github/workflows/test-integration-fastapi.yml similarity index 100% rename from .github/workflows/test-fastapi.yml rename to .github/workflows/test-integration-fastapi.yml diff --git a/.github/workflows/test-flask.yml b/.github/workflows/test-integration-flask.yml similarity index 100% rename from .github/workflows/test-flask.yml rename to .github/workflows/test-integration-flask.yml diff --git a/.github/workflows/test-gcp.yml b/.github/workflows/test-integration-gcp.yml similarity index 100% rename from .github/workflows/test-gcp.yml rename to .github/workflows/test-integration-gcp.yml diff --git a/.github/workflows/test-httpx.yml b/.github/workflows/test-integration-httpx.yml similarity index 100% rename from .github/workflows/test-httpx.yml rename to .github/workflows/test-integration-httpx.yml diff --git a/.github/workflows/test-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml similarity index 100% rename from .github/workflows/test-pure_eval.yml rename to .github/workflows/test-integration-pure_eval.yml diff --git a/.github/workflows/test-pyramid.yml b/.github/workflows/test-integration-pyramid.yml similarity index 100% rename from .github/workflows/test-pyramid.yml rename to .github/workflows/test-integration-pyramid.yml diff --git a/.github/workflows/test-quart.yml b/.github/workflows/test-integration-quart.yml similarity index 100% rename from .github/workflows/test-quart.yml rename to .github/workflows/test-integration-quart.yml diff --git a/.github/workflows/test-redis.yml b/.github/workflows/test-integration-redis.yml similarity index 100% rename from .github/workflows/test-redis.yml rename to .github/workflows/test-integration-redis.yml diff --git a/.github/workflows/test-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml similarity index 100% rename from .github/workflows/test-rediscluster.yml rename to .github/workflows/test-integration-rediscluster.yml diff --git a/.github/workflows/test-requests.yml b/.github/workflows/test-integration-requests.yml similarity index 100% rename from .github/workflows/test-requests.yml rename to .github/workflows/test-integration-requests.yml diff --git a/.github/workflows/test-rq.yml b/.github/workflows/test-integration-rq.yml similarity index 100% rename from .github/workflows/test-rq.yml rename to .github/workflows/test-integration-rq.yml diff --git a/.github/workflows/test-sanic.yml b/.github/workflows/test-integration-sanic.yml similarity index 100% rename from .github/workflows/test-sanic.yml rename to .github/workflows/test-integration-sanic.yml diff --git a/.github/workflows/test-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml similarity index 100% rename from .github/workflows/test-sqlalchemy.yml rename to .github/workflows/test-integration-sqlalchemy.yml diff --git a/.github/workflows/test-starlette.yml b/.github/workflows/test-integration-starlette.yml similarity index 100% rename from .github/workflows/test-starlette.yml rename to .github/workflows/test-integration-starlette.yml diff --git a/.github/workflows/test-tornado.yml b/.github/workflows/test-integration-tornado.yml similarity index 100% rename from .github/workflows/test-tornado.yml rename to .github/workflows/test-integration-tornado.yml diff --git a/.github/workflows/test-trytond.yml b/.github/workflows/test-integration-trytond.yml similarity index 100% rename from .github/workflows/test-trytond.yml rename to .github/workflows/test-integration-trytond.yml 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 92e09ac64d..e01aaa8f7d 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -94,7 +94,7 @@ def write_yaml_file( ) # write rendered template - outfile_name = OUT_DIR + f"test-{current_framework}.yml" + outfile_name = OUT_DIR + f"test-integration-{current_framework}.yml" print(f"Writing {outfile_name}") f = open(outfile_name, "w") f.writelines(out_lines) From cb9dffaea85eb909b58f3ba2e5bf790008efcfcb Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 16:37:45 +0200 Subject: [PATCH 41/78] Renamed common tests --- .github/workflows/test-general.yml | 73 ------------------------------ 1 file changed, 73 deletions(-) delete mode 100644 .github/workflows/test-general.yml diff --git a/.github/workflows/test-general.yml b/.github/workflows/test-general.yml deleted file mode 100644 index b9992088dc..0000000000 --- a/.github/workflows/test-general.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Test - -on: - push: - branches: - - master - - release/** - - pull_request: - -permissions: - contents: read - -env: - BUILD_CACHE_KEY: ${{ github.sha }} - CACHED_BUILD_PATHS: | - ${{ github.workspace }}/dist-serverless - -jobs: - test: - name: Test Python ${{ matrix.python-version }}, ${{ matrix.os }} - runs-on: ${{ matrix.os }} - timeout-minutes: 45 - continue-on-error: true - strategy: - matrix: - os: [ubuntu-latest] - python-version: ["pypy2.7", "2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] - 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 - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Setup Test Env - env: - PGHOST: localhost - PGPASSWORD: sentry - run: | - pip install codecov tox - - - name: Run Tests - env: - CI_PYTHON_VERSION: ${{ matrix.python-version }} - timeout-minutes: 45 - shell: bash - run: | - set -x # print commands that are executed - coverage erase - - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} "" "") - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i - codecov --file coverage.xml \ No newline at end of file From 44143c04eed5092a7599dd8b211779540042eb91 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 16:41:09 +0200 Subject: [PATCH 42/78] Added missing common tests file --- .github/workflows/test-common.yml | 73 +++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/test-common.yml diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml new file mode 100644 index 0000000000..27befe7801 --- /dev/null +++ b/.github/workflows/test-common.yml @@ -0,0 +1,73 @@ +name: Test Common + +on: + push: + branches: + - master + - release/** + + pull_request: + +permissions: + contents: read + +env: + BUILD_CACHE_KEY: ${{ github.sha }} + CACHED_BUILD_PATHS: | + ${{ github.workspace }}/dist-serverless + +jobs: + test: + name: Test Python ${{ matrix.python-version }}, ${{ matrix.os }} + runs-on: ${{ matrix.os }} + timeout-minutes: 45 + continue-on-error: true + strategy: + matrix: + os: [ubuntu-latest] + python-version: ["pypy2.7", "2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + 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 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Setup Test Env + env: + PGHOST: localhost + PGPASSWORD: sentry + run: | + pip install codecov tox + + - name: Run Tests + env: + CI_PYTHON_VERSION: ${{ matrix.python-version }} + timeout-minutes: 45 + shell: bash + run: | + set -x # print commands that are executed + coverage erase + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} "" "") + ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + coverage combine .coverage* + coverage xml -i + codecov --file coverage.xml \ No newline at end of file From 6b5cfce320b5c0cbd2ab9a16e0362e813ca5707d Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 9 Sep 2022 16:41:34 +0200 Subject: [PATCH 43/78] Show the five slowest tests when running tets --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 32fc4245a9..986e478c76 100644 --- a/tox.ini +++ b/tox.ini @@ -348,7 +348,7 @@ commands = ; use old pytest for old Python versions: {py2.7,py3.4,py3.5}: pip install pytest-forked==1.1.3 - py.test {env:TESTPATH} {posargs} + py.test --durations=5 {env:TESTPATH} {posargs} [testenv:linters] commands = From 9bfaa9b7773e79bf76121afbbbb7e6df26f33369 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 12:10:43 +0200 Subject: [PATCH 44/78] Try running all tests in ram drives --- .github/workflows/test-integration-aiohttp.yml | 9 +++++++-- .github/workflows/test-integration-asgi.yml | 9 +++++++-- .github/workflows/test-integration-aws_lambda.yml | 9 +++++++-- .github/workflows/test-integration-beam.yml | 9 +++++++-- .github/workflows/test-integration-boto3.yml | 9 +++++++-- .github/workflows/test-integration-bottle.yml | 9 +++++++-- .github/workflows/test-integration-celery.yml | 9 +++++++-- .github/workflows/test-integration-chalice.yml | 9 +++++++-- .github/workflows/test-integration-django.yml | 7 ++++++- .github/workflows/test-integration-falcon.yml | 9 +++++++-- .github/workflows/test-integration-fastapi.yml | 9 +++++++-- .github/workflows/test-integration-flask.yml | 9 +++++++-- .github/workflows/test-integration-gcp.yml | 9 +++++++-- .github/workflows/test-integration-httpx.yml | 9 +++++++-- .github/workflows/test-integration-pure_eval.yml | 9 +++++++-- .github/workflows/test-integration-pyramid.yml | 9 +++++++-- .github/workflows/test-integration-quart.yml | 9 +++++++-- .github/workflows/test-integration-redis.yml | 9 +++++++-- .github/workflows/test-integration-rediscluster.yml | 9 +++++++-- .github/workflows/test-integration-requests.yml | 9 +++++++-- .github/workflows/test-integration-rq.yml | 9 +++++++-- .github/workflows/test-integration-sanic.yml | 9 +++++++-- .github/workflows/test-integration-sqlalchemy.yml | 9 +++++++-- .github/workflows/test-integration-starlette.yml | 9 +++++++-- .github/workflows/test-integration-tornado.yml | 9 +++++++-- .github/workflows/test-integration-trytond.yml | 9 +++++++-- scripts/split-tox-gh-actions/ci-template.yml | 9 +++++++-- tox.ini | 3 +++ 28 files changed, 191 insertions(+), 53 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index d5773f1f0e..9b72fd8acd 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -56,8 +56,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aiohttp ${{ matrix.aiohttp-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 6fdb6fed6a..9e22075014 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -55,8 +55,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} asgi ${{ matrix.asgi-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 854303bd16..506b351869 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -52,8 +52,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aws_lambda ${{ matrix.aws_lambda-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index fd74dea193..ae3a1aba46 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -55,8 +55,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} beam ${{ matrix.beam-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 522b342ba9..5c3d74a2b1 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -83,8 +83,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} boto3 ${{ matrix.boto3-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index 60f14c25e5..b9d7eae3f1 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -59,8 +59,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} bottle ${{ matrix.bottle-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index b7ba29ca7f..8b6e3916cb 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -78,8 +78,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} celery ${{ matrix.celery-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 68557e76fa..e74b3ab63e 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -66,8 +66,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} chalice ${{ matrix.chalice-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 071dcbf422..9c77535d25 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -106,8 +106,13 @@ jobs: set -x # print commands that are executed coverage erase + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index afb33aa79f..804ba97021 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -64,8 +64,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} falcon ${{ matrix.falcon-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 5984fe9034..272e9aa933 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -55,8 +55,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} fastapi ${{ matrix.fastapi-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 9dfd06cca4..3db2addacf 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -87,8 +87,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} flask ${{ matrix.flask-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index 486a1c5846..de6a213fad 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -52,8 +52,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} gcp ${{ matrix.gcp-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index 18a4982b72..bfde6081fe 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -61,8 +61,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} httpx ${{ matrix.httpx-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index 2f03e5357f..28a72fed75 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -57,8 +57,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pure_eval ${{ matrix.pure_eval-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 63b440aa91..9a1dba15ac 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -91,8 +91,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pyramid ${{ matrix.pyramid-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 45e6d0a5b6..3948baab1e 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -55,8 +55,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} quart ${{ matrix.quart-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 982b8a9f2f..8e1d40e06d 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -55,8 +55,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} redis ${{ matrix.redis-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index b6fcaa0c7e..507a1d1ab6 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -63,8 +63,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rediscluster ${{ matrix.rediscluster-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index 71dec80747..dad92ccd17 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -54,8 +54,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} requests ${{ matrix.requests-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 7f8af7a0a5..bf701ace60 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -129,8 +129,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rq ${{ matrix.rq-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 39093755c8..a69da3fc51 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -66,8 +66,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sanic ${{ matrix.sanic-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index 16bfe54be5..ed7ec0787b 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -61,8 +61,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sqlalchemy ${{ matrix.sqlalchemy-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 0b4a6ad643..d25f34da3b 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -59,8 +59,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} starlette ${{ matrix.starlette-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index e08b2d263e..f34bb2897e 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -58,8 +58,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} tornado ${{ matrix.tornado-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index e06f1008d1..e012ce57f0 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -71,8 +71,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} trytond ${{ matrix.trytond-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 811d3d561a..99dc5beb80 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -48,8 +48,13 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} {{ framework }} ${{ matrix.{{ framework }}-version }}) + # create ram drive to run test in + mkdir ~/tmpfs + sudo mount -o size=200m -t tmpfs none ~/tmpfs + ls -alh ~/tmpfs + + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/tox.ini b/tox.ini index 986e478c76..b89f9f8bd8 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,9 @@ python = 3.10 = py3.10, pypy [tox] +toxworkdir=~/tmpfs/.tox +temp_dir=~/tmpfs/.tmp + envlist = # === Core === py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10} From 06ac31d7e833785e6a5b4256218575a27971101d Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 13:51:49 +0200 Subject: [PATCH 45/78] Cleanup --- .github/workflows/test-integration-celery.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 8b6e3916cb..f3041abc15 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -81,7 +81,6 @@ jobs: # create ram drive to run test in mkdir ~/tmpfs sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch From 8149bc8489c90871214b9ab1ea0ad0684ac30334 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 13:53:20 +0200 Subject: [PATCH 46/78] Handle empty params --- scripts/tox_env_name.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tox_env_name.py b/scripts/tox_env_name.py index 689bafe96d..e40ae6bcf3 100755 --- a/scripts/tox_env_name.py +++ b/scripts/tox_env_name.py @@ -3,8 +3,8 @@ def main(): python_version = sys.argv[1] - framework = sys.argv[2] - framework_version = sys.argv[3] + framework = sys.argv[2] if len(sys.argv) >= 3 else "" + framework_version = sys.argv[3] if len(sys.argv) >= 4 else "" py_version = "" fr_version = "" From 556875b63c3daf41ded9d328f5c66271cda14def Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 13:55:14 +0200 Subject: [PATCH 47/78] Fix psychopg2 requirement --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b89f9f8bd8..3768a2c3d6 100644 --- a/tox.ini +++ b/tox.ini @@ -123,7 +123,7 @@ deps = {py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: channels>2 {py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: pytest-asyncio - {py2.7,py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary + {py2.7,py3.6,py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary django-{1.8,1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0 django-{2.2,3.0,3.1,3.2}: pytest-django>=4.0 From e16a584d460acf126a10b5b28f92f089cba92b67 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 14:17:48 +0200 Subject: [PATCH 48/78] Fixed postgres related tests --- tests/integrations/django/test_basic.py | 20 ++++++++++---------- tox.ini | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/integrations/django/test_basic.py b/tests/integrations/django/test_basic.py index 68b03e234b..329fc04f9c 100644 --- a/tests/integrations/django/test_basic.py +++ b/tests/integrations/django/test_basic.py @@ -274,8 +274,8 @@ def test_sql_dict_query_params(sentry_init, capture_events): from django.db import connections - # if "postgres" not in connections: - # pytest.skip("postgres tests disabled") + if "postgres" not in connections: + pytest.skip("postgres tests disabled") sql = connections["postgres"].cursor() @@ -318,8 +318,8 @@ def test_sql_psycopg2_string_composition(sentry_init, capture_events, query): ) from django.db import connections - # if "postgres" not in connections: - # pytest.skip("postgres tests disabled") + if "postgres" not in connections: + pytest.skip("postgres tests disabled") import psycopg2.sql @@ -351,8 +351,8 @@ def test_sql_psycopg2_placeholders(sentry_init, capture_events): ) from django.db import connections - # if "postgres" not in connections: - # pytest.skip("postgres tests disabled") + if "postgres" not in connections: + pytest.skip("postgres tests disabled") import psycopg2.sql @@ -416,8 +416,8 @@ def test_django_connect_trace(sentry_init, client, capture_events, render_span_t from django.db import connections - # if "postgres" not in connections: - # pytest.skip("postgres tests disabled") + if "postgres" not in connections: + pytest.skip("postgres tests disabled") # trigger Django to open a new connection by marking the existing one as None. connections["postgres"].connection = None @@ -445,8 +445,8 @@ def test_django_connect_breadcrumbs( from django.db import connections - # if "postgres" not in connections: - # pytest.skip("postgres tests disabled") + if "postgres" not in connections: + pytest.skip("postgres tests disabled") # trigger Django to open a new connection by marking the existing one as None. connections["postgres"].connection = None diff --git a/tox.ini b/tox.ini index 3768a2c3d6..ca9023c1c2 100644 --- a/tox.ini +++ b/tox.ini @@ -42,7 +42,7 @@ envlist = # Django 3.x {py3.6,py3.7,py3.8,py3.9}-django-{3.0,3.1} {py3.6,py3.7,py3.8,py3.9,py3.10}-django-{3.2} - # Django 4.x + # Django 4.x (comming soon) #{py3.8,py3.9,py3.10}-django-{4.0,4.1} {pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.11,0.12,1.0} @@ -123,7 +123,7 @@ deps = {py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: channels>2 {py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: pytest-asyncio - {py2.7,py3.6,py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary + {py2.7,py3.7,py3.8,py3.9,py3.10}-django-{1.11,2.2,3.0,3.1,3.2}: psycopg2-binary django-{1.8,1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0 django-{2.2,3.0,3.1,3.2}: pytest-django>=4.0 From 0ce61806dc2325001a8efc948f0792d9617f833e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 15:36:17 +0200 Subject: [PATCH 49/78] Do not run Flask tests in Python 3.4 --- scripts/split-tox-gh-actions/ci-template.yml | 16 ++++++++++++---- tox.ini | 6 +++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 99dc5beb80..ffd1072a6e 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -39,6 +39,15 @@ jobs: run: | pip install codecov tox + + + # - name: Cache dependencies + # uses: actions/cache@v3 + # id: dependency_cache + # with: + # path: + # key: + - name: Test {{ framework }} env: CI_PYTHON_VERSION: ${{ matrix.python-version }} @@ -48,10 +57,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/tox.ini b/tox.ini index ca9023c1c2..5c16daff5a 100644 --- a/tox.ini +++ b/tox.ini @@ -15,8 +15,8 @@ python = 3.10 = py3.10, pypy [tox] -toxworkdir=~/tmpfs/.tox -temp_dir=~/tmpfs/.tmp +toxworkdir=~/toxworkdir/.tox +temp_dir=~/toxworkdir/.tmp envlist = # === Core === @@ -45,7 +45,7 @@ envlist = # Django 4.x (comming soon) #{py3.8,py3.9,py3.10}-django-{4.0,4.1} - {pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.11,0.12,1.0} + {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.11,0.12,1.0} {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-flask-1.1 {py3.6,py3.8,py3.9,py3.10}-flask-2.0 From 012245f3a64ae24aa16f8c37b74856f57e7346ed Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 15:47:27 +0200 Subject: [PATCH 50/78] Cleanup --- scripts/split-tox-gh-actions/ci-template.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index ffd1072a6e..409413a729 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -39,15 +39,6 @@ jobs: run: | pip install codecov tox - - - # - name: Cache dependencies - # uses: actions/cache@v3 - # id: dependency_cache - # with: - # path: - # key: - - name: Test {{ framework }} env: CI_PYTHON_VERSION: ${{ matrix.python-version }} From f2a78ce84bfd41f01f84901a11220b8e4dc2403f Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 12 Sep 2022 16:14:12 +0200 Subject: [PATCH 51/78] Fixed running of common tests --- .github/workflows/test-common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index 27befe7801..dcb23a39b6 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -67,7 +67,7 @@ jobs: coverage erase envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} "" "") - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "$envname$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file From c16171c04502235b7c6df0da0f19ab0df8ef151d Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 13 Sep 2022 11:44:05 +0200 Subject: [PATCH 52/78] Ignore PyPy for now, because it has not been tested in PyPy the last couple of years. --- .../workflows/test-integration-aiohttp.yml | 7 +++---- .github/workflows/test-integration-asgi.yml | 7 +++---- .../workflows/test-integration-aws_lambda.yml | 7 +++---- .github/workflows/test-integration-beam.yml | 7 +++---- .github/workflows/test-integration-boto3.yml | 7 +++---- .github/workflows/test-integration-bottle.yml | 10 ++++----- .github/workflows/test-integration-celery.yml | 13 ++++-------- .../workflows/test-integration-chalice.yml | 7 +++---- .github/workflows/test-integration-django.yml | 13 ++++-------- .github/workflows/test-integration-falcon.yml | 11 ++++------ .../workflows/test-integration-fastapi.yml | 7 +++---- .github/workflows/test-integration-flask.yml | 16 ++++---------- .github/workflows/test-integration-gcp.yml | 7 +++---- .github/workflows/test-integration-httpx.yml | 7 +++---- .../workflows/test-integration-pure_eval.yml | 7 +++---- .../workflows/test-integration-pyramid.yml | 14 ++++--------- .github/workflows/test-integration-quart.yml | 7 +++---- .github/workflows/test-integration-redis.yml | 7 +++---- .../test-integration-rediscluster.yml | 7 +++---- .../workflows/test-integration-requests.yml | 7 +++---- .github/workflows/test-integration-rq.yml | 21 ++++--------------- .github/workflows/test-integration-sanic.yml | 7 +++---- .../workflows/test-integration-sqlalchemy.yml | 7 +++---- .../workflows/test-integration-starlette.yml | 7 +++---- .../workflows/test-integration-tornado.yml | 7 +++---- .../workflows/test-integration-trytond.yml | 7 +++---- .../split-tox-gh-actions.py | 17 +++++++-------- 27 files changed, 93 insertions(+), 155 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index 9b72fd8acd..25357d374a 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -56,10 +56,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 9e22075014..11da34a120 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -55,10 +55,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 506b351869..7ecf9b363f 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -52,10 +52,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index ae3a1aba46..61fdaee1e3 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -55,10 +55,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 5c3d74a2b1..432b240a07 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -83,10 +83,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index b9d7eae3f1..3d66ccebb6 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -25,10 +25,9 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7"] + python-version: ["2.7"] bottle-version: ["0.12"] include: - - { bottle-version: "0.12", python-version: "pypy2.7", os: "ubuntu-latest" } - { bottle-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } - { bottle-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } - { bottle-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } @@ -59,10 +58,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index f3041abc15..77d55e0018 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -25,26 +25,21 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7"] + python-version: ["2.7"] celery-version: ["3"] include: - - { celery-version: "3", python-version: "pypy2.7", os: "ubuntu-latest" } - { celery-version: "3", python-version: "2.7", os: "ubuntu-latest" } - - { celery-version: "4.1", python-version: "pypy2.7", os: "ubuntu-latest" } - { celery-version: "4.1", python-version: "2.7", os: "ubuntu-latest" } - { celery-version: "4.1", python-version: "3.5", os: "ubuntu-latest" } - { celery-version: "4.1", python-version: "3.6", os: "ubuntu-latest" } - - { celery-version: "4.2", python-version: "pypy2.7", os: "ubuntu-latest" } - { celery-version: "4.2", python-version: "2.7", os: "ubuntu-latest" } - { celery-version: "4.2", python-version: "3.5", os: "ubuntu-latest" } - { celery-version: "4.2", python-version: "3.6", os: "ubuntu-latest" } - - { celery-version: "4.3", python-version: "pypy2.7", os: "ubuntu-latest" } - { celery-version: "4.3", python-version: "2.7", os: "ubuntu-latest" } - { celery-version: "4.3", python-version: "3.5", os: "ubuntu-latest" } - { celery-version: "4.3", python-version: "3.6", os: "ubuntu-latest" } - { celery-version: "4.3", python-version: "3.7", os: "ubuntu-latest" } - { celery-version: "4.3", python-version: "3.8", os: "ubuntu-latest" } - - { celery-version: "4.4", python-version: "pypy2.7", os: "ubuntu-latest" } - { celery-version: "4.4", python-version: "2.7", os: "ubuntu-latest" } - { celery-version: "4.4", python-version: "3.5", os: "ubuntu-latest" } - { celery-version: "4.4", python-version: "3.6", os: "ubuntu-latest" } @@ -78,9 +73,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index e74b3ab63e..42cd51cb46 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -66,10 +66,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 9c77535d25..8346a28287 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -25,19 +25,15 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7"] + python-version: ["2.7"] django-version: ["1.8"] include: - - { django-version: "1.8", python-version: "pypy2.7", os: "ubuntu-latest" } - { django-version: "1.8", python-version: "2.7", os: "ubuntu-latest" } - { django-version: "1.8", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "1.9", python-version: "pypy2.7", os: "ubuntu-latest" } - { django-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } - { django-version: "1.9", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "1.10", python-version: "pypy2.7", os: "ubuntu-latest" } - { django-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } - { django-version: "1.10", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "1.11", python-version: "pypy2.7", os: "ubuntu-latest" } - { django-version: "1.11", python-version: "2.7", os: "ubuntu-latest" } - { django-version: "1.11", python-version: "3.5", os: "ubuntu-latest" } - { django-version: "1.11", python-version: "3.6", os: "ubuntu-latest" } @@ -106,10 +102,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 804ba97021..59154fd33e 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -25,15 +25,13 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7"] + python-version: ["2.7"] falcon-version: ["1.4"] include: - - { falcon-version: "1.4", python-version: "pypy2.7", os: "ubuntu-latest" } - { falcon-version: "1.4", python-version: "2.7", os: "ubuntu-latest" } - { falcon-version: "1.4", python-version: "3.5", os: "ubuntu-latest" } - { falcon-version: "1.4", python-version: "3.6", os: "ubuntu-latest" } - { falcon-version: "1.4", python-version: "3.7", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "pypy2.7", os: "ubuntu-latest" } - { falcon-version: "2.0", python-version: "2.7", os: "ubuntu-latest" } - { falcon-version: "2.0", python-version: "3.5", os: "ubuntu-latest" } - { falcon-version: "2.0", python-version: "3.6", os: "ubuntu-latest" } @@ -64,10 +62,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 272e9aa933..40c7149c14 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -55,10 +55,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 3db2addacf..b06f729c90 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -25,34 +25,27 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7"] + python-version: ["2.7"] flask-version: ["0.11"] include: - - { flask-version: "0.11", python-version: "pypy2.7", os: "ubuntu-latest" } - { flask-version: "0.11", python-version: "2.7", os: "ubuntu-latest" } - - { flask-version: "0.11", python-version: "3.4", os: "ubuntu-latest" } - { flask-version: "0.11", python-version: "3.5", os: "ubuntu-latest" } - { flask-version: "0.11", python-version: "3.6", os: "ubuntu-latest" } - { flask-version: "0.11", python-version: "3.7", os: "ubuntu-latest" } - { flask-version: "0.11", python-version: "3.8", os: "ubuntu-latest" } - { flask-version: "0.11", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "pypy2.7", os: "ubuntu-latest" } - { flask-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "3.4", os: "ubuntu-latest" } - { flask-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } - { flask-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } - { flask-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } - { flask-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } - { flask-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "pypy2.7", os: "ubuntu-latest" } - { flask-version: "1.0", python-version: "2.7", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "3.4", os: "ubuntu-latest" } - { flask-version: "1.0", python-version: "3.5", os: "ubuntu-latest" } - { flask-version: "1.0", python-version: "3.6", os: "ubuntu-latest" } - { flask-version: "1.0", python-version: "3.7", os: "ubuntu-latest" } - { flask-version: "1.0", python-version: "3.8", os: "ubuntu-latest" } - { flask-version: "1.0", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "pypy2.7", os: "ubuntu-latest" } - { flask-version: "1.1", python-version: "2.7", os: "ubuntu-latest" } - { flask-version: "1.1", python-version: "3.5", os: "ubuntu-latest" } - { flask-version: "1.1", python-version: "3.6", os: "ubuntu-latest" } @@ -87,10 +80,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index de6a213fad..d00f7bc0f5 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -52,10 +52,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index bfde6081fe..bc3d3b3e59 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -61,10 +61,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index 28a72fed75..e824cb8e2a 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -57,10 +57,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 9a1dba15ac..4bb360378d 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -25,10 +25,9 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7"] + python-version: ["2.7"] pyramid-version: ["1.6"] include: - - { pyramid-version: "1.6", python-version: "pypy2.7", os: "ubuntu-latest" } - { pyramid-version: "1.6", python-version: "2.7", os: "ubuntu-latest" } - { pyramid-version: "1.6", python-version: "3.5", os: "ubuntu-latest" } - { pyramid-version: "1.6", python-version: "3.6", os: "ubuntu-latest" } @@ -36,7 +35,6 @@ jobs: - { pyramid-version: "1.6", python-version: "3.8", os: "ubuntu-latest" } - { pyramid-version: "1.6", python-version: "3.9", os: "ubuntu-latest" } - { pyramid-version: "1.6", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "pypy2.7", os: "ubuntu-latest" } - { pyramid-version: "1.7", python-version: "2.7", os: "ubuntu-latest" } - { pyramid-version: "1.7", python-version: "3.5", os: "ubuntu-latest" } - { pyramid-version: "1.7", python-version: "3.6", os: "ubuntu-latest" } @@ -44,7 +42,6 @@ jobs: - { pyramid-version: "1.7", python-version: "3.8", os: "ubuntu-latest" } - { pyramid-version: "1.7", python-version: "3.9", os: "ubuntu-latest" } - { pyramid-version: "1.7", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "pypy2.7", os: "ubuntu-latest" } - { pyramid-version: "1.8", python-version: "2.7", os: "ubuntu-latest" } - { pyramid-version: "1.8", python-version: "3.5", os: "ubuntu-latest" } - { pyramid-version: "1.8", python-version: "3.6", os: "ubuntu-latest" } @@ -52,7 +49,6 @@ jobs: - { pyramid-version: "1.8", python-version: "3.8", os: "ubuntu-latest" } - { pyramid-version: "1.8", python-version: "3.9", os: "ubuntu-latest" } - { pyramid-version: "1.8", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "pypy2.7", os: "ubuntu-latest" } - { pyramid-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } - { pyramid-version: "1.9", python-version: "3.5", os: "ubuntu-latest" } - { pyramid-version: "1.9", python-version: "3.6", os: "ubuntu-latest" } @@ -60,7 +56,6 @@ jobs: - { pyramid-version: "1.9", python-version: "3.8", os: "ubuntu-latest" } - { pyramid-version: "1.9", python-version: "3.9", os: "ubuntu-latest" } - { pyramid-version: "1.9", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "pypy2.7", os: "ubuntu-latest" } - { pyramid-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } - { pyramid-version: "1.10", python-version: "3.5", os: "ubuntu-latest" } - { pyramid-version: "1.10", python-version: "3.6", os: "ubuntu-latest" } @@ -91,10 +86,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 3948baab1e..d230d090c2 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -55,10 +55,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 8e1d40e06d..9a36adae5a 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -55,10 +55,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 507a1d1ab6..dad6d13e21 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -63,10 +63,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index dad92ccd17..4041140a0d 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -54,10 +54,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index bf701ace60..fb37388caa 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -25,69 +25,57 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7"] + python-version: ["2.7"] rq-version: ["0.6"] include: - - { rq-version: "0.6", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.6", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.6", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.6", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.7", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.7", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.7", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.7", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.8", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.8", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.8", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.8", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.9", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.9", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.9", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.9", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.10", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.10", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.10", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.10", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.11", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.11", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.11", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.11", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.12", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } - { rq-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } - { rq-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } - { rq-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "0.13", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "0.13", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "0.13", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "0.13", python-version: "3.6", os: "ubuntu-latest" } - { rq-version: "0.13", python-version: "3.7", os: "ubuntu-latest" } - { rq-version: "0.13", python-version: "3.8", os: "ubuntu-latest" } - { rq-version: "0.13", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.0", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "1.0", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "1.0", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "1.0", python-version: "3.6", os: "ubuntu-latest" } - { rq-version: "1.0", python-version: "3.7", os: "ubuntu-latest" } - { rq-version: "1.0", python-version: "3.8", os: "ubuntu-latest" } - { rq-version: "1.0", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.1", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "1.1", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "1.1", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "1.1", python-version: "3.6", os: "ubuntu-latest" } - { rq-version: "1.1", python-version: "3.7", os: "ubuntu-latest" } - { rq-version: "1.1", python-version: "3.8", os: "ubuntu-latest" } - { rq-version: "1.1", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.2", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "1.2", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "1.2", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "1.2", python-version: "3.6", os: "ubuntu-latest" } - { rq-version: "1.2", python-version: "3.7", os: "ubuntu-latest" } - { rq-version: "1.2", python-version: "3.8", os: "ubuntu-latest" } - { rq-version: "1.2", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.3", python-version: "pypy2.7", os: "ubuntu-latest" } - { rq-version: "1.3", python-version: "2.7", os: "ubuntu-latest" } - { rq-version: "1.3", python-version: "3.5", os: "ubuntu-latest" } - { rq-version: "1.3", python-version: "3.6", os: "ubuntu-latest" } @@ -129,10 +117,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index a69da3fc51..5333feae9e 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -66,10 +66,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index ed7ec0787b..7c01942f21 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -61,10 +61,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index d25f34da3b..b22fabf75b 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -59,10 +59,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index f34bb2897e..f066ec4233 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -58,10 +58,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index e012ce57f0..b40ea89ceb 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -71,10 +71,9 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run test in - mkdir ~/tmpfs - sudo mount -o size=200m -t tmpfs none ~/tmpfs - ls -alh ~/tmpfs + # create ram drive to run tests in + mkdir -p ~/toxworkdir + sudo mount -o size=180m -t tmpfs none ~/toxworkdir envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch 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 e01aaa8f7d..9b77a6b08d 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -59,10 +59,7 @@ def write_yaml_file( l = ( l.replace("{{ framework }}", current_framework) .replace( - "{{ python-version }}", - init_python_version.replace("py", "") - if init_python_version != "pypy" - else "pypy2.7", + "{{ python-version }}", init_python_version.replace("py", "") ) .replace("{{ framework-version }}", init_framework_version) ) @@ -80,9 +77,7 @@ def write_yaml_file( l.replace("{{ framework }}", current_framework) .replace( "{{ python-version }}", - init_python_version.replace("py", "") - if init_python_version != "pypy" - else "pypy2.7", + init_python_version.replace("py", ""), ) .replace("{{ framework-version }}", init_framework_version) ) @@ -170,7 +165,9 @@ def main(): if python_version not in python_versions: python_versions.append(python_version) if not init_python_version: - init_python_version = python_version + init_python_version = ( + python_version if python_version != "pypy" else None + ) for framework_version in ( raw_framework_versions.replace("{", "").replace("}", "").split(",") @@ -184,7 +181,9 @@ def main(): for fr in framework_versions: for py in python_versions: - py = py.replace("py", "") if py != "pypy" else "pypy2.7" + if py == "pypy": + continue + py = py.replace("py", "") s = f'\n - {{ {current_framework}-version: "{fr or "latest"}", python-version: "{py}", os: "ubuntu-latest" }}' gh_frameworks.append(s) python_versions = [] From 7ea4dbf093f0ba08a61257548cb89d1a81363ad1 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Tue, 13 Sep 2022 13:08:24 +0200 Subject: [PATCH 53/78] Removed pypy from common tests. --- .github/workflows/test-common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index dcb23a39b6..2978297c1f 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ["pypy2.7", "2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] services: postgres: image: postgres From 23fb590e0195c12e2ca6fd079c31c5fddb0bfb23 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 11:42:50 +0200 Subject: [PATCH 54/78] Removed PyPy --- .../split-tox-gh-actions.py | 7 ++-- scripts/tox_env_name.py | 5 +-- tox.ini | 34 +++++++++---------- 3 files changed, 19 insertions(+), 27 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 9b77a6b08d..c4b443daa0 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -165,9 +165,7 @@ def main(): if python_version not in python_versions: python_versions.append(python_version) if not init_python_version: - init_python_version = ( - python_version if python_version != "pypy" else None - ) + init_python_version = python_version for framework_version in ( raw_framework_versions.replace("{", "").replace("}", "").split(",") @@ -180,9 +178,8 @@ def main(): init_framework_version = "latest" for fr in framework_versions: + for py in python_versions: - if py == "pypy": - continue py = py.replace("py", "") s = f'\n - {{ {current_framework}-version: "{fr or "latest"}", python-version: "{py}", os: "ubuntu-latest" }}' gh_frameworks.append(s) diff --git a/scripts/tox_env_name.py b/scripts/tox_env_name.py index e40ae6bcf3..3f53ed4e64 100755 --- a/scripts/tox_env_name.py +++ b/scripts/tox_env_name.py @@ -9,10 +9,7 @@ def main(): py_version = "" fr_version = "" - if python_version == "pypy2.7": - py_version = "pypy" - else: - py_version = "py" + python_version + py_version = "py" + python_version if framework_version == "latest" or framework_version == "": fr_version = "" diff --git a/tox.ini b/tox.ini index 5c16daff5a..5938d391ef 100644 --- a/tox.ini +++ b/tox.ini @@ -12,7 +12,7 @@ python = 3.7 = py3.7 3.8 = py3.8 3.9 = py3.9, - 3.10 = py3.10, pypy + 3.10 = py3.10 [tox] toxworkdir=~/toxworkdir/.tox @@ -20,8 +20,7 @@ temp_dir=~/toxworkdir/.tmp envlist = # === Core === - py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10} - pypy + py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10} # === Integrations === # General format is {pythonversion}-{integrationname}-{frameworkversion} @@ -34,8 +33,8 @@ envlist = # {py3.7,py3.10}-django-{3.2,4.0} # Django 1.x - {pypy,py2.7,py3.5}-django-{1.8,1.9,1.10} - {pypy,py2.7,py3.5,py3.6,py3.7}-django-{1.11} + {py2.7,py3.5}-django-{1.8,1.9,1.10} + {py2.7,py3.5,py3.6,py3.7}-django-{1.11} # Django 2.x {py3.5,py3.6,py3.7}-django-{2.0,2.1} {py3.5,py3.6,py3.7,py3.8,py3.9}-django-{2.2} @@ -45,8 +44,8 @@ envlist = # Django 4.x (comming soon) #{py3.8,py3.9,py3.10}-django-{4.0,4.1} - {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.11,0.12,1.0} - {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-flask-1.1 + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.11,0.12,1.0} + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-flask-1.1 {py3.6,py3.8,py3.9,py3.10}-flask-2.0 {py3.7,py3.8,py3.9,py3.10}-asgi @@ -57,19 +56,19 @@ envlist = {py3.7,py3.8,py3.9,py3.10}-quart - {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-bottle-0.12 + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-bottle-0.12 - {pypy,py2.7,py3.5,py3.6,py3.7}-falcon-1.4 - {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-falcon-2.0 + {py2.7,py3.5,py3.6,py3.7}-falcon-1.4 + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-falcon-2.0 {py3.5,py3.6,py3.7}-sanic-{0.8,18} {py3.6,py3.7}-sanic-19 {py3.6,py3.7,py3.8}-sanic-20 {py3.7,py3.8,py3.9,py3.10}-sanic-21 - {pypy,py2.7}-celery-3 - {pypy,py2.7,py3.5,py3.6}-celery-{4.1,4.2} - {pypy,py2.7,py3.5,py3.6,py3.7,py3.8}-celery-{4.3,4.4} + {py2.7}-celery-3 + {py2.7,py3.5,py3.6}-celery-{4.1,4.2} + {py2.7,py3.5,py3.6,py3.7,py3.8}-celery-{4.3,4.4} {py3.6,py3.7,py3.8,py3.9,py3.10}-celery-5.0 py3.7-beam-{2.12,2.13,2.32,2.33} @@ -79,10 +78,10 @@ envlist = py3.7-gcp - {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-pyramid-{1.6,1.7,1.8,1.9,1.10} + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-pyramid-{1.6,1.7,1.8,1.9,1.10} - {pypy,py2.7,py3.5,py3.6}-rq-{0.6,0.7,0.8,0.9,0.10,0.11} - {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-rq-{0.12,0.13,1.0,1.1,1.2,1.3} + {py2.7,py3.5,py3.6}-rq-{0.6,0.7,0.8,0.9,0.10,0.11} + {py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-rq-{0.12,0.13,1.0,1.1,1.2,1.3} {py3.5,py3.6,py3.7,py3.8,py3.9,py3.10}-rq-{1.4,1.5} py3.7-aiohttp-3.5 @@ -195,7 +194,7 @@ deps = celery-5.0: Celery>=5.0,<5.1 py3.5-celery: newrelic<6.0.0 - {pypy,py2.7,py3.6,py3.7,py3.8,py3.9,py3.10}-celery: newrelic + {py2.7,py3.6,py3.7,py3.8,py3.9,py3.10}-celery: newrelic requests: requests>=2.0 @@ -335,7 +334,6 @@ basepython = # CI. Other tools such as mypy and black have options that pin the Python # version. linters: python3.9 - pypy: pypy commands = ; https://github.com/pytest-dev/pytest/issues/5532 From bedc73d33aafa3018748021dd0c7fb390eb487ac Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 14:38:46 +0200 Subject: [PATCH 55/78] Run all framework versions in one runner --- .../workflows/test-integration-aiohttp.yml | 20 ++- .github/workflows/test-integration-asgi.yml | 19 ++- .../workflows/test-integration-aws_lambda.yml | 12 +- .github/workflows/test-integration-beam.yml | 15 +-- .github/workflows/test-integration-boto3.yml | 47 ++----- .github/workflows/test-integration-bottle.yml | 25 ++-- .github/workflows/test-integration-celery.yml | 40 ++---- .../workflows/test-integration-chalice.yml | 29 ++--- .github/workflows/test-integration-django.yml | 52 ++------ .github/workflows/test-integration-falcon.yml | 29 ++--- .../workflows/test-integration-fastapi.yml | 19 ++- .github/workflows/test-integration-flask.yml | 47 ++----- .github/workflows/test-integration-gcp.yml | 12 +- .github/workflows/test-integration-httpx.yml | 26 ++-- .../workflows/test-integration-pure_eval.yml | 23 ++-- .../workflows/test-integration-pyramid.yml | 53 ++------ .github/workflows/test-integration-quart.yml | 19 ++- .github/workflows/test-integration-redis.yml | 19 ++- .../test-integration-rediscluster.yml | 27 ++-- .../workflows/test-integration-requests.yml | 17 ++- .github/workflows/test-integration-rq.yml | 84 ++----------- .github/workflows/test-integration-sanic.yml | 32 ++--- .../workflows/test-integration-sqlalchemy.yml | 26 ++-- .../workflows/test-integration-starlette.yml | 23 ++-- .../workflows/test-integration-tornado.yml | 22 ++-- .../workflows/test-integration-trytond.yml | 37 ++---- scripts/split-tox-gh-actions/ci-template.yml | 6 +- .../split-tox-gh-actions.py | 115 ++++++++---------- 28 files changed, 300 insertions(+), 595 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index 25357d374a..dc1118617c 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -18,21 +18,19 @@ env: jobs: test: - name: aiohttp ${{ matrix.aiohttp-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, aiohttp ${{ matrix.aiohttp-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - aiohttp-version: ["3.5"] - include: - - { aiohttp-version: "3.5", python-version: "3.7", os: "ubuntu-latest" } - - { aiohttp-version: "3.6", python-version: "3.7", os: "ubuntu-latest" } - - { aiohttp-version: "3.6", python-version: "3.8", os: "ubuntu-latest" } - - { aiohttp-version: "3.6", python-version: "3.9", os: "ubuntu-latest" } - - { aiohttp-version: "3.6", python-version: "3.10", os: "ubuntu-latest" } + aiohttp-versions: ["3.5,3.6"] + os: [ubuntu-latest] + include: + - { python-version: "3.8", aiohttp-versions: "3.6", os: "ubuntu-latest" } + - { python-version: "3.9", aiohttp-versions: "3.6", os: "ubuntu-latest" } + - { python-version: "3.10", aiohttp-versions: "3.6", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -60,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aiohttp ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 11da34a120..0bb559d581 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -18,20 +18,19 @@ env: jobs: test: - name: asgi ${{ matrix.asgi-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, asgi ${{ matrix.asgi-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - asgi-version: ["latest"] - include: - - { asgi-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - - { asgi-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - - { asgi-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - - { asgi-version: "latest", python-version: "3.10", os: "ubuntu-latest" } + asgi-versions: ["latest"] + os: [ubuntu-latest] + include: + - { python-version: "3.8", asgi-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.9", asgi-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.10", asgi-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -59,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} asgi ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 7ecf9b363f..1d3d2706c7 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -18,17 +18,15 @@ env: jobs: test: - name: aws_lambda ${{ matrix.aws_lambda-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, aws_lambda ${{ matrix.aws_lambda-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - aws_lambda-version: ["latest"] - include: - - { aws_lambda-version: "latest", python-version: "3.7", os: "ubuntu-latest" } + aws_lambda-versions: ["latest"] + os: [ubuntu-latest] steps: - uses: actions/checkout@v3 @@ -56,8 +54,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aws_lambda ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 61fdaee1e3..9cee7ab906 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -18,20 +18,15 @@ env: jobs: test: - name: beam ${{ matrix.beam-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, beam ${{ matrix.beam-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - beam-version: ["2.12"] - include: - - { beam-version: "2.12", python-version: "3.7", os: "ubuntu-latest" } - - { beam-version: "2.13", python-version: "3.7", os: "ubuntu-latest" } - - { beam-version: "2.32", python-version: "3.7", os: "ubuntu-latest" } - - { beam-version: "2.33", python-version: "3.7", os: "ubuntu-latest" } + beam-versions: ["2.12,2.13,2.32,2.33"] + os: [ubuntu-latest] steps: - uses: actions/checkout@v3 @@ -59,8 +54,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} beam ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 432b240a07..3521746dee 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -18,48 +18,19 @@ env: jobs: test: - name: boto3 ${{ matrix.boto3-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, boto3 ${{ matrix.boto3-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - boto3-version: ["1.9"] - include: - - { boto3-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.9", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.9", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.9", python-version: "3.8", os: "ubuntu-latest" } - - { boto3-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.10", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.10", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.10", python-version: "3.8", os: "ubuntu-latest" } - - { boto3-version: "1.11", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.11", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.11", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.11", python-version: "3.8", os: "ubuntu-latest" } - - { boto3-version: "1.12", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.12", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.12", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.12", python-version: "3.8", os: "ubuntu-latest" } - - { boto3-version: "1.13", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.13", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.13", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.13", python-version: "3.8", os: "ubuntu-latest" } - - { boto3-version: "1.14", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.14", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.14", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.14", python-version: "3.8", os: "ubuntu-latest" } - - { boto3-version: "1.15", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.15", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.15", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.15", python-version: "3.8", os: "ubuntu-latest" } - - { boto3-version: "1.16", python-version: "2.7", os: "ubuntu-latest" } - - { boto3-version: "1.16", python-version: "3.6", os: "ubuntu-latest" } - - { boto3-version: "1.16", python-version: "3.7", os: "ubuntu-latest" } - - { boto3-version: "1.16", python-version: "3.8", os: "ubuntu-latest" } + boto3-versions: ["1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16"] + os: [ubuntu-latest] + include: + - { python-version: "3.6", boto3-versions: "1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16", os: "ubuntu-latest" } + - { python-version: "3.7", boto3-versions: "1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16", os: "ubuntu-latest" } + - { python-version: "3.8", boto3-versions: "1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -87,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} boto3 ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index 3d66ccebb6..a7b91c728b 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -18,23 +18,22 @@ env: jobs: test: - name: bottle ${{ matrix.bottle-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, bottle ${{ matrix.bottle-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - bottle-version: ["0.12"] - include: - - { bottle-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } - - { bottle-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } - - { bottle-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } - - { bottle-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } - - { bottle-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } - - { bottle-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } - - { bottle-version: "0.12", python-version: "3.10", os: "ubuntu-latest" } + bottle-versions: ["0.12"] + os: [ubuntu-latest] + include: + - { python-version: "3.5", bottle-versions: "0.12", os: "ubuntu-latest" } + - { python-version: "3.6", bottle-versions: "0.12", os: "ubuntu-latest" } + - { python-version: "3.7", bottle-versions: "0.12", os: "ubuntu-latest" } + - { python-version: "3.8", bottle-versions: "0.12", os: "ubuntu-latest" } + - { python-version: "3.9", bottle-versions: "0.12", os: "ubuntu-latest" } + - { python-version: "3.10", bottle-versions: "0.12", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -62,8 +61,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} bottle ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 77d55e0018..60148f272e 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -18,38 +18,22 @@ env: jobs: test: - name: celery ${{ matrix.celery-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, celery ${{ matrix.celery-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - celery-version: ["3"] - include: - - { celery-version: "3", python-version: "2.7", os: "ubuntu-latest" } - - { celery-version: "4.1", python-version: "2.7", os: "ubuntu-latest" } - - { celery-version: "4.1", python-version: "3.5", os: "ubuntu-latest" } - - { celery-version: "4.1", python-version: "3.6", os: "ubuntu-latest" } - - { celery-version: "4.2", python-version: "2.7", os: "ubuntu-latest" } - - { celery-version: "4.2", python-version: "3.5", os: "ubuntu-latest" } - - { celery-version: "4.2", python-version: "3.6", os: "ubuntu-latest" } - - { celery-version: "4.3", python-version: "2.7", os: "ubuntu-latest" } - - { celery-version: "4.3", python-version: "3.5", os: "ubuntu-latest" } - - { celery-version: "4.3", python-version: "3.6", os: "ubuntu-latest" } - - { celery-version: "4.3", python-version: "3.7", os: "ubuntu-latest" } - - { celery-version: "4.3", python-version: "3.8", os: "ubuntu-latest" } - - { celery-version: "4.4", python-version: "2.7", os: "ubuntu-latest" } - - { celery-version: "4.4", python-version: "3.5", os: "ubuntu-latest" } - - { celery-version: "4.4", python-version: "3.6", os: "ubuntu-latest" } - - { celery-version: "4.4", python-version: "3.7", os: "ubuntu-latest" } - - { celery-version: "4.4", python-version: "3.8", os: "ubuntu-latest" } - - { celery-version: "5.0", python-version: "3.6", os: "ubuntu-latest" } - - { celery-version: "5.0", python-version: "3.7", os: "ubuntu-latest" } - - { celery-version: "5.0", python-version: "3.8", os: "ubuntu-latest" } - - { celery-version: "5.0", python-version: "3.9", os: "ubuntu-latest" } - - { celery-version: "5.0", python-version: "3.10", os: "ubuntu-latest" } + celery-versions: ["3,4.1,4.2,4.3,4.4"] + os: [ubuntu-latest] + include: + - { python-version: "3.5", celery-versions: "4.1,4.2,4.3,4.4", os: "ubuntu-latest" } + - { python-version: "3.6", celery-versions: "4.1,4.2,4.3,4.4,5.0", os: "ubuntu-latest" } + - { python-version: "3.7", celery-versions: "4.3,4.4,5.0", os: "ubuntu-latest" } + - { python-version: "3.8", celery-versions: "4.3,4.4,5.0", os: "ubuntu-latest" } + - { python-version: "3.9", celery-versions: "5.0", os: "ubuntu-latest" } + - { python-version: "3.10", celery-versions: "5.0", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -77,8 +61,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} celery ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 42cd51cb46..6a243a95f6 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -18,31 +18,18 @@ env: jobs: test: - name: chalice ${{ matrix.chalice-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, chalice ${{ matrix.chalice-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.6"] - chalice-version: ["1.16"] - include: - - { chalice-version: "1.16", python-version: "3.6", os: "ubuntu-latest" } - - { chalice-version: "1.16", python-version: "3.7", os: "ubuntu-latest" } - - { chalice-version: "1.16", python-version: "3.8", os: "ubuntu-latest" } - - { chalice-version: "1.17", python-version: "3.6", os: "ubuntu-latest" } - - { chalice-version: "1.17", python-version: "3.7", os: "ubuntu-latest" } - - { chalice-version: "1.17", python-version: "3.8", os: "ubuntu-latest" } - - { chalice-version: "1.18", python-version: "3.6", os: "ubuntu-latest" } - - { chalice-version: "1.18", python-version: "3.7", os: "ubuntu-latest" } - - { chalice-version: "1.18", python-version: "3.8", os: "ubuntu-latest" } - - { chalice-version: "1.19", python-version: "3.6", os: "ubuntu-latest" } - - { chalice-version: "1.19", python-version: "3.7", os: "ubuntu-latest" } - - { chalice-version: "1.19", python-version: "3.8", os: "ubuntu-latest" } - - { chalice-version: "1.20", python-version: "3.6", os: "ubuntu-latest" } - - { chalice-version: "1.20", python-version: "3.7", os: "ubuntu-latest" } - - { chalice-version: "1.20", python-version: "3.8", os: "ubuntu-latest" } + chalice-versions: ["1.16,1.17,1.18,1.19,1.20"] + os: [ubuntu-latest] + include: + - { python-version: "3.7", chalice-versions: "1.16,1.17,1.18,1.19,1.20", os: "ubuntu-latest" } + - { python-version: "3.8", chalice-versions: "1.16,1.17,1.18,1.19,1.20", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -70,8 +57,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} chalice ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 8346a28287..244ff30a91 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -18,50 +18,22 @@ env: jobs: test: - name: django ${{ matrix.django-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, django ${{ matrix.django-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - django-version: ["1.8"] - include: - - { django-version: "1.8", python-version: "2.7", os: "ubuntu-latest" } - - { django-version: "1.8", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } - - { django-version: "1.9", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } - - { django-version: "1.10", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "1.11", python-version: "2.7", os: "ubuntu-latest" } - - { django-version: "1.11", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "1.11", python-version: "3.6", os: "ubuntu-latest" } - - { django-version: "1.11", python-version: "3.7", os: "ubuntu-latest" } - - { django-version: "2.0", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "2.0", python-version: "3.6", os: "ubuntu-latest" } - - { django-version: "2.0", python-version: "3.7", os: "ubuntu-latest" } - - { django-version: "2.1", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "2.1", python-version: "3.6", os: "ubuntu-latest" } - - { django-version: "2.1", python-version: "3.7", os: "ubuntu-latest" } - - { django-version: "2.2", python-version: "3.5", os: "ubuntu-latest" } - - { django-version: "2.2", python-version: "3.6", os: "ubuntu-latest" } - - { django-version: "2.2", python-version: "3.7", os: "ubuntu-latest" } - - { django-version: "2.2", python-version: "3.8", os: "ubuntu-latest" } - - { django-version: "2.2", python-version: "3.9", os: "ubuntu-latest" } - - { django-version: "3.0", python-version: "3.6", os: "ubuntu-latest" } - - { django-version: "3.0", python-version: "3.7", os: "ubuntu-latest" } - - { django-version: "3.0", python-version: "3.8", os: "ubuntu-latest" } - - { django-version: "3.0", python-version: "3.9", os: "ubuntu-latest" } - - { django-version: "3.1", python-version: "3.6", os: "ubuntu-latest" } - - { django-version: "3.1", python-version: "3.7", os: "ubuntu-latest" } - - { django-version: "3.1", python-version: "3.8", os: "ubuntu-latest" } - - { django-version: "3.1", python-version: "3.9", os: "ubuntu-latest" } - - { django-version: "3.2", python-version: "3.6", os: "ubuntu-latest" } - - { django-version: "3.2", python-version: "3.7", os: "ubuntu-latest" } - - { django-version: "3.2", python-version: "3.8", os: "ubuntu-latest" } - - { django-version: "3.2", python-version: "3.9", os: "ubuntu-latest" } - - { django-version: "3.2", python-version: "3.10", os: "ubuntu-latest" } + django-versions: ["1.8,1.9,1.10,1.11"] + os: [ubuntu-latest] + include: + - { python-version: "3.5", django-versions: "1.8,1.9,1.10,1.11,2.0,2.1,2.2", os: "ubuntu-latest" } + - { python-version: "3.6", django-versions: "1.11,2.0,2.1,2.2,3.0,3.1,3.2", os: "ubuntu-latest" } + - { python-version: "3.7", django-versions: "1.11,2.0,2.1,2.2,3.0,3.1,3.2", os: "ubuntu-latest" } + - { python-version: "3.8", django-versions: "2.2,3.0,3.1,3.2", os: "ubuntu-latest" } + - { python-version: "3.9", django-versions: "2.2,3.0,3.1,3.2", os: "ubuntu-latest" } + - { python-version: "3.10", django-versions: "3.2", os: "ubuntu-latest" } services: postgres: image: postgres @@ -106,8 +78,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 59154fd33e..bf977d816f 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -18,27 +18,22 @@ env: jobs: test: - name: falcon ${{ matrix.falcon-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, falcon ${{ matrix.falcon-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - falcon-version: ["1.4"] - include: - - { falcon-version: "1.4", python-version: "2.7", os: "ubuntu-latest" } - - { falcon-version: "1.4", python-version: "3.5", os: "ubuntu-latest" } - - { falcon-version: "1.4", python-version: "3.6", os: "ubuntu-latest" } - - { falcon-version: "1.4", python-version: "3.7", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "2.7", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "3.5", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "3.6", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "3.7", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "3.8", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "3.9", os: "ubuntu-latest" } - - { falcon-version: "2.0", python-version: "3.10", os: "ubuntu-latest" } + falcon-versions: ["1.4,2.0"] + os: [ubuntu-latest] + include: + - { python-version: "3.5", falcon-versions: "1.4,2.0", os: "ubuntu-latest" } + - { python-version: "3.6", falcon-versions: "1.4,2.0", os: "ubuntu-latest" } + - { python-version: "3.7", falcon-versions: "1.4,2.0", os: "ubuntu-latest" } + - { python-version: "3.8", falcon-versions: "2.0", os: "ubuntu-latest" } + - { python-version: "3.9", falcon-versions: "2.0", os: "ubuntu-latest" } + - { python-version: "3.10", falcon-versions: "2.0", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -66,8 +61,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} falcon ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 40c7149c14..50b47f1117 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -18,20 +18,19 @@ env: jobs: test: - name: fastapi ${{ matrix.fastapi-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, fastapi ${{ matrix.fastapi-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - fastapi-version: ["latest"] - include: - - { fastapi-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - - { fastapi-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - - { fastapi-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - - { fastapi-version: "latest", python-version: "3.10", os: "ubuntu-latest" } + fastapi-versions: ["latest"] + os: [ubuntu-latest] + include: + - { python-version: "3.8", fastapi-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.9", fastapi-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.10", fastapi-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -59,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} fastapi ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index b06f729c90..3214dc4617 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -18,45 +18,22 @@ env: jobs: test: - name: flask ${{ matrix.flask-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, flask ${{ matrix.flask-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - flask-version: ["0.11"] - include: - - { flask-version: "0.11", python-version: "2.7", os: "ubuntu-latest" } - - { flask-version: "0.11", python-version: "3.5", os: "ubuntu-latest" } - - { flask-version: "0.11", python-version: "3.6", os: "ubuntu-latest" } - - { flask-version: "0.11", python-version: "3.7", os: "ubuntu-latest" } - - { flask-version: "0.11", python-version: "3.8", os: "ubuntu-latest" } - - { flask-version: "0.11", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } - - { flask-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "2.7", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "3.5", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "3.6", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "3.7", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "3.8", os: "ubuntu-latest" } - - { flask-version: "1.0", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "2.7", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "3.5", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "3.6", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "3.7", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "3.8", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "1.1", python-version: "3.10", os: "ubuntu-latest" } - - { flask-version: "2.0", python-version: "3.6", os: "ubuntu-latest" } - - { flask-version: "2.0", python-version: "3.8", os: "ubuntu-latest" } - - { flask-version: "2.0", python-version: "3.9", os: "ubuntu-latest" } - - { flask-version: "2.0", python-version: "3.10", os: "ubuntu-latest" } + flask-versions: ["0.11,0.12,1.0,1.1"] + os: [ubuntu-latest] + include: + - { python-version: "3.5", flask-versions: "0.11,0.12,1.0,1.1", os: "ubuntu-latest" } + - { python-version: "3.6", flask-versions: "0.11,0.12,1.0,1.1,2.0", os: "ubuntu-latest" } + - { python-version: "3.7", flask-versions: "0.11,0.12,1.0,1.1", os: "ubuntu-latest" } + - { python-version: "3.8", flask-versions: "0.11,0.12,1.0,1.1,2.0", os: "ubuntu-latest" } + - { python-version: "3.9", flask-versions: "0.11,0.12,1.0,1.1,2.0", os: "ubuntu-latest" } + - { python-version: "3.10", flask-versions: "1.1,2.0", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -84,8 +61,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} flask ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index d00f7bc0f5..88e36fa548 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -18,17 +18,15 @@ env: jobs: test: - name: gcp ${{ matrix.gcp-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, gcp ${{ matrix.gcp-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - gcp-version: ["latest"] - include: - - { gcp-version: "latest", python-version: "3.7", os: "ubuntu-latest" } + gcp-versions: ["latest"] + os: [ubuntu-latest] steps: - uses: actions/checkout@v3 @@ -56,8 +54,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} gcp ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index bc3d3b3e59..d5aeb151ab 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -18,26 +18,20 @@ env: jobs: test: - name: httpx ${{ matrix.httpx-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, httpx ${{ matrix.httpx-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.6"] - httpx-version: ["0.16"] - include: - - { httpx-version: "0.16", python-version: "3.6", os: "ubuntu-latest" } - - { httpx-version: "0.16", python-version: "3.7", os: "ubuntu-latest" } - - { httpx-version: "0.16", python-version: "3.8", os: "ubuntu-latest" } - - { httpx-version: "0.16", python-version: "3.9", os: "ubuntu-latest" } - - { httpx-version: "0.16", python-version: "3.10", os: "ubuntu-latest" } - - { httpx-version: "0.17", python-version: "3.6", os: "ubuntu-latest" } - - { httpx-version: "0.17", python-version: "3.7", os: "ubuntu-latest" } - - { httpx-version: "0.17", python-version: "3.8", os: "ubuntu-latest" } - - { httpx-version: "0.17", python-version: "3.9", os: "ubuntu-latest" } - - { httpx-version: "0.17", python-version: "3.10", os: "ubuntu-latest" } + httpx-versions: ["0.16,0.17"] + os: [ubuntu-latest] + include: + - { python-version: "3.7", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } + - { python-version: "3.8", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } + - { python-version: "3.9", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } + - { python-version: "3.10", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -65,8 +59,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} httpx ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index e824cb8e2a..a3d337b88e 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -18,22 +18,21 @@ env: jobs: test: - name: pure_eval ${{ matrix.pure_eval-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, pure_eval ${{ matrix.pure_eval-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.5"] - pure_eval-version: ["latest"] - include: - - { pure_eval-version: "latest", python-version: "3.5", os: "ubuntu-latest" } - - { pure_eval-version: "latest", python-version: "3.6", os: "ubuntu-latest" } - - { pure_eval-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - - { pure_eval-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - - { pure_eval-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - - { pure_eval-version: "latest", python-version: "3.10", os: "ubuntu-latest" } + pure_eval-versions: ["latest"] + os: [ubuntu-latest] + include: + - { python-version: "3.6", pure_eval-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.7", pure_eval-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.8", pure_eval-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.9", pure_eval-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.10", pure_eval-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -61,8 +60,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pure_eval ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 4bb360378d..53ed6be27e 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -18,51 +18,22 @@ env: jobs: test: - name: pyramid ${{ matrix.pyramid-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, pyramid ${{ matrix.pyramid-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - pyramid-version: ["1.6"] - include: - - { pyramid-version: "1.6", python-version: "2.7", os: "ubuntu-latest" } - - { pyramid-version: "1.6", python-version: "3.5", os: "ubuntu-latest" } - - { pyramid-version: "1.6", python-version: "3.6", os: "ubuntu-latest" } - - { pyramid-version: "1.6", python-version: "3.7", os: "ubuntu-latest" } - - { pyramid-version: "1.6", python-version: "3.8", os: "ubuntu-latest" } - - { pyramid-version: "1.6", python-version: "3.9", os: "ubuntu-latest" } - - { pyramid-version: "1.6", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "2.7", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "3.5", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "3.6", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "3.7", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "3.8", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "3.9", os: "ubuntu-latest" } - - { pyramid-version: "1.7", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "2.7", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "3.5", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "3.6", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "3.7", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "3.8", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "3.9", os: "ubuntu-latest" } - - { pyramid-version: "1.8", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "2.7", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "3.5", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "3.6", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "3.7", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "3.8", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "3.9", os: "ubuntu-latest" } - - { pyramid-version: "1.9", python-version: "3.10", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "2.7", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "3.5", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "3.6", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "3.7", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "3.8", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "3.9", os: "ubuntu-latest" } - - { pyramid-version: "1.10", python-version: "3.10", os: "ubuntu-latest" } + pyramid-versions: ["1.6,1.7,1.8,1.9,1.10"] + os: [ubuntu-latest] + include: + - { python-version: "3.5", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } + - { python-version: "3.6", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } + - { python-version: "3.7", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } + - { python-version: "3.8", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } + - { python-version: "3.9", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } + - { python-version: "3.10", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -90,8 +61,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pyramid ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index d230d090c2..b87428e601 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -18,20 +18,19 @@ env: jobs: test: - name: quart ${{ matrix.quart-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, quart ${{ matrix.quart-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - quart-version: ["latest"] - include: - - { quart-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - - { quart-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - - { quart-version: "latest", python-version: "3.9", os: "ubuntu-latest" } - - { quart-version: "latest", python-version: "3.10", os: "ubuntu-latest" } + quart-versions: ["latest"] + os: [ubuntu-latest] + include: + - { python-version: "3.8", quart-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.9", quart-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.10", quart-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -59,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} quart ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 9a36adae5a..68a0c2240b 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -18,20 +18,19 @@ env: jobs: test: - name: redis ${{ matrix.redis-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, redis ${{ matrix.redis-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - redis-version: ["latest"] - include: - - { redis-version: "latest", python-version: "2.7", os: "ubuntu-latest" } - - { redis-version: "latest", python-version: "3.7", os: "ubuntu-latest" } - - { redis-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - - { redis-version: "latest", python-version: "3.9", os: "ubuntu-latest" } + redis-versions: ["latest"] + os: [ubuntu-latest] + include: + - { python-version: "3.7", redis-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.8", redis-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.9", redis-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -59,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} redis ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index dad6d13e21..76d69578dc 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -18,28 +18,19 @@ env: jobs: test: - name: rediscluster ${{ matrix.rediscluster-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, rediscluster ${{ matrix.rediscluster-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - rediscluster-version: ["1"] - include: - - { rediscluster-version: "1", python-version: "2.7", os: "ubuntu-latest" } - - { rediscluster-version: "1", python-version: "3.7", os: "ubuntu-latest" } - - { rediscluster-version: "1", python-version: "3.8", os: "ubuntu-latest" } - - { rediscluster-version: "1", python-version: "3.9", os: "ubuntu-latest" } - - { rediscluster-version: "2.1.0", python-version: "2.7", os: "ubuntu-latest" } - - { rediscluster-version: "2.1.0", python-version: "3.7", os: "ubuntu-latest" } - - { rediscluster-version: "2.1.0", python-version: "3.8", os: "ubuntu-latest" } - - { rediscluster-version: "2.1.0", python-version: "3.9", os: "ubuntu-latest" } - - { rediscluster-version: "2", python-version: "2.7", os: "ubuntu-latest" } - - { rediscluster-version: "2", python-version: "3.7", os: "ubuntu-latest" } - - { rediscluster-version: "2", python-version: "3.8", os: "ubuntu-latest" } - - { rediscluster-version: "2", python-version: "3.9", os: "ubuntu-latest" } + rediscluster-versions: ["1,2.1.0,2"] + os: [ubuntu-latest] + include: + - { python-version: "3.7", rediscluster-versions: "1,2.1.0,2", os: "ubuntu-latest" } + - { python-version: "3.8", rediscluster-versions: "1,2.1.0,2", os: "ubuntu-latest" } + - { python-version: "3.9", rediscluster-versions: "1,2.1.0,2", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -67,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rediscluster ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index 4041140a0d..457bf0b407 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -18,19 +18,18 @@ env: jobs: test: - name: requests ${{ matrix.requests-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, requests ${{ matrix.requests-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - requests-version: ["latest"] - include: - - { requests-version: "latest", python-version: "2.7", os: "ubuntu-latest" } - - { requests-version: "latest", python-version: "3.8", os: "ubuntu-latest" } - - { requests-version: "latest", python-version: "3.9", os: "ubuntu-latest" } + requests-versions: ["latest"] + os: [ubuntu-latest] + include: + - { python-version: "3.8", requests-versions: "latest", os: "ubuntu-latest" } + - { python-version: "3.9", requests-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +57,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} requests ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index fb37388caa..2a6b91c970 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -18,82 +18,22 @@ env: jobs: test: - name: rq ${{ matrix.rq-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, rq ${{ matrix.rq-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - rq-version: ["0.6"] - include: - - { rq-version: "0.6", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.6", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.6", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.7", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.7", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.7", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.8", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.8", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.8", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.9", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.9", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.9", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.10", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.10", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.10", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.11", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.11", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.11", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.12", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.12", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.12", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.12", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "0.12", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "0.12", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "0.13", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "0.13", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "0.13", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "0.13", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "0.13", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "0.13", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.0", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "1.0", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "1.0", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "1.0", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "1.0", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "1.0", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.1", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "1.1", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "1.1", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "1.1", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "1.1", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "1.1", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.2", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "1.2", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "1.2", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "1.2", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "1.2", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "1.2", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.3", python-version: "2.7", os: "ubuntu-latest" } - - { rq-version: "1.3", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "1.3", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "1.3", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "1.3", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "1.3", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.4", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "1.4", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "1.4", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "1.4", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "1.4", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.4", python-version: "3.10", os: "ubuntu-latest" } - - { rq-version: "1.5", python-version: "3.5", os: "ubuntu-latest" } - - { rq-version: "1.5", python-version: "3.6", os: "ubuntu-latest" } - - { rq-version: "1.5", python-version: "3.7", os: "ubuntu-latest" } - - { rq-version: "1.5", python-version: "3.8", os: "ubuntu-latest" } - - { rq-version: "1.5", python-version: "3.9", os: "ubuntu-latest" } - - { rq-version: "1.5", python-version: "3.10", os: "ubuntu-latest" } + rq-versions: ["0.6,0.7,0.8,0.9,0.10,0.11,0.12,0.13,1.0,1.1,1.2,1.3"] + os: [ubuntu-latest] + include: + - { python-version: "3.5", rq-versions: "0.6,0.7,0.8,0.9,0.10,0.11,0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } + - { python-version: "3.6", rq-versions: "0.6,0.7,0.8,0.9,0.10,0.11,0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } + - { python-version: "3.7", rq-versions: "0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } + - { python-version: "3.8", rq-versions: "0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } + - { python-version: "3.9", rq-versions: "0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } + - { python-version: "3.10", rq-versions: "1.4,1.5", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -121,8 +61,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rq ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 5333feae9e..058b5c9462 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -18,31 +18,21 @@ env: jobs: test: - name: sanic ${{ matrix.sanic-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, sanic ${{ matrix.sanic-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.5"] - sanic-version: ["0.8"] - include: - - { sanic-version: "0.8", python-version: "3.5", os: "ubuntu-latest" } - - { sanic-version: "0.8", python-version: "3.6", os: "ubuntu-latest" } - - { sanic-version: "0.8", python-version: "3.7", os: "ubuntu-latest" } - - { sanic-version: "18", python-version: "3.5", os: "ubuntu-latest" } - - { sanic-version: "18", python-version: "3.6", os: "ubuntu-latest" } - - { sanic-version: "18", python-version: "3.7", os: "ubuntu-latest" } - - { sanic-version: "19", python-version: "3.6", os: "ubuntu-latest" } - - { sanic-version: "19", python-version: "3.7", os: "ubuntu-latest" } - - { sanic-version: "20", python-version: "3.6", os: "ubuntu-latest" } - - { sanic-version: "20", python-version: "3.7", os: "ubuntu-latest" } - - { sanic-version: "20", python-version: "3.8", os: "ubuntu-latest" } - - { sanic-version: "21", python-version: "3.7", os: "ubuntu-latest" } - - { sanic-version: "21", python-version: "3.8", os: "ubuntu-latest" } - - { sanic-version: "21", python-version: "3.9", os: "ubuntu-latest" } - - { sanic-version: "21", python-version: "3.10", os: "ubuntu-latest" } + sanic-versions: ["0.8,18"] + os: [ubuntu-latest] + include: + - { python-version: "3.6", sanic-versions: "0.8,18,19,20", os: "ubuntu-latest" } + - { python-version: "3.7", sanic-versions: "0.8,18,19,20,21", os: "ubuntu-latest" } + - { python-version: "3.8", sanic-versions: "20,21", os: "ubuntu-latest" } + - { python-version: "3.9", sanic-versions: "21", os: "ubuntu-latest" } + - { python-version: "3.10", sanic-versions: "21", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -70,8 +60,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sanic ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index 7c01942f21..c52ab5ce15 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -18,26 +18,20 @@ env: jobs: test: - name: sqlalchemy ${{ matrix.sqlalchemy-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, sqlalchemy ${{ matrix.sqlalchemy-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["2.7"] - sqlalchemy-version: ["1.2"] - include: - - { sqlalchemy-version: "1.2", python-version: "2.7", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.2", python-version: "3.7", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.2", python-version: "3.8", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.2", python-version: "3.9", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.2", python-version: "3.10", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.3", python-version: "2.7", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.3", python-version: "3.7", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.3", python-version: "3.8", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.3", python-version: "3.9", os: "ubuntu-latest" } - - { sqlalchemy-version: "1.3", python-version: "3.10", os: "ubuntu-latest" } + sqlalchemy-versions: ["1.2,1.3"] + os: [ubuntu-latest] + include: + - { python-version: "3.7", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } + - { python-version: "3.8", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } + - { python-version: "3.9", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } + - { python-version: "3.10", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -65,8 +59,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sqlalchemy ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index b22fabf75b..5f5db8ab4a 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -18,24 +18,19 @@ env: jobs: test: - name: starlette ${{ matrix.starlette-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, starlette ${{ matrix.starlette-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - starlette-version: ["0.19.1"] - include: - - { starlette-version: "0.19.1", python-version: "3.7", os: "ubuntu-latest" } - - { starlette-version: "0.19.1", python-version: "3.8", os: "ubuntu-latest" } - - { starlette-version: "0.19.1", python-version: "3.9", os: "ubuntu-latest" } - - { starlette-version: "0.19.1", python-version: "3.10", os: "ubuntu-latest" } - - { starlette-version: "0.20", python-version: "3.7", os: "ubuntu-latest" } - - { starlette-version: "0.20", python-version: "3.8", os: "ubuntu-latest" } - - { starlette-version: "0.20", python-version: "3.9", os: "ubuntu-latest" } - - { starlette-version: "0.20", python-version: "3.10", os: "ubuntu-latest" } + starlette-versions: ["0.19.1,0.20"] + os: [ubuntu-latest] + include: + - { python-version: "3.8", starlette-versions: "0.19.1,0.20", os: "ubuntu-latest" } + - { python-version: "3.9", starlette-versions: "0.19.1,0.20", os: "ubuntu-latest" } + - { python-version: "3.10", starlette-versions: "0.19.1,0.20", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -63,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} starlette ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index f066ec4233..cc8e9283f4 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -18,23 +18,19 @@ env: jobs: test: - name: tornado ${{ matrix.tornado-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, tornado ${{ matrix.tornado-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.7"] - tornado-version: ["5"] - include: - - { tornado-version: "5", python-version: "3.7", os: "ubuntu-latest" } - - { tornado-version: "5", python-version: "3.8", os: "ubuntu-latest" } - - { tornado-version: "5", python-version: "3.9", os: "ubuntu-latest" } - - { tornado-version: "6", python-version: "3.7", os: "ubuntu-latest" } - - { tornado-version: "6", python-version: "3.8", os: "ubuntu-latest" } - - { tornado-version: "6", python-version: "3.9", os: "ubuntu-latest" } - - { tornado-version: "6", python-version: "3.10", os: "ubuntu-latest" } + tornado-versions: ["5,6"] + os: [ubuntu-latest] + include: + - { python-version: "3.8", tornado-versions: "5,6", os: "ubuntu-latest" } + - { python-version: "3.9", tornado-versions: "5,6", os: "ubuntu-latest" } + - { python-version: "3.10", tornado-versions: "6", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -62,8 +58,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} tornado ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index b40ea89ceb..070a96a281 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -18,36 +18,21 @@ env: jobs: test: - name: trytond ${{ matrix.trytond-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, trytond ${{ matrix.trytond-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true strategy: matrix: - os: [ubuntu-latest] python-version: ["3.5"] - trytond-version: ["4.6"] - include: - - { trytond-version: "4.6", python-version: "3.5", os: "ubuntu-latest" } - - { trytond-version: "4.6", python-version: "3.6", os: "ubuntu-latest" } - - { trytond-version: "4.6", python-version: "3.7", os: "ubuntu-latest" } - - { trytond-version: "4.6", python-version: "3.8", os: "ubuntu-latest" } - - { trytond-version: "4.6", python-version: "3.9", os: "ubuntu-latest" } - - { trytond-version: "5.0", python-version: "3.5", os: "ubuntu-latest" } - - { trytond-version: "5.0", python-version: "3.6", os: "ubuntu-latest" } - - { trytond-version: "5.0", python-version: "3.7", os: "ubuntu-latest" } - - { trytond-version: "5.0", python-version: "3.8", os: "ubuntu-latest" } - - { trytond-version: "5.0", python-version: "3.9", os: "ubuntu-latest" } - - { trytond-version: "5.2", python-version: "3.5", os: "ubuntu-latest" } - - { trytond-version: "5.2", python-version: "3.6", os: "ubuntu-latest" } - - { trytond-version: "5.2", python-version: "3.7", os: "ubuntu-latest" } - - { trytond-version: "5.2", python-version: "3.8", os: "ubuntu-latest" } - - { trytond-version: "5.2", python-version: "3.9", os: "ubuntu-latest" } - - { trytond-version: "5.4", python-version: "3.6", os: "ubuntu-latest" } - - { trytond-version: "5.4", python-version: "3.7", os: "ubuntu-latest" } - - { trytond-version: "5.4", python-version: "3.8", os: "ubuntu-latest" } - - { trytond-version: "5.4", python-version: "3.9", os: "ubuntu-latest" } - - { trytond-version: "5.4", python-version: "3.10", os: "ubuntu-latest" } + trytond-versions: ["4.6,5.0,5.2"] + os: [ubuntu-latest] + include: + - { python-version: "3.6", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } + - { python-version: "3.7", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } + - { python-version: "3.8", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } + - { python-version: "3.9", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } + - { python-version: "3.10", trytond-versions: "5.4", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -75,8 +60,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} trytond ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 409413a729..6b7c34b552 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: {{ framework }} ${{ matrix.{{ framework }}-version }}, python ${{ matrix.python-version }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, {{ framework }} ${{ matrix.{{ framework }}-versions }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true @@ -52,8 +52,8 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django ${{ matrix.django-version }}) + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} {{ framework }} ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i - codecov --file coverage.xml \ No newline at end of file + codecov --file coverage.xml \ No newline at end of file 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 c4b443daa0..b451fe0871 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -1,5 +1,6 @@ import configparser from multiprocessing.sharedctypes import Value +from collections import defaultdict OUT_DIR = "/Users/antonpirker/code/sentry-python/.github/workflows/" TOX_FILE = "/Users/antonpirker/code/sentry-python/tox.ini" @@ -14,10 +15,9 @@ MATRIX_DEFINITION = [ " strategy:", "\n matrix:", - "\n os: [ubuntu-latest]", '\n python-version: ["{{ python-version }}"]', - '\n {{ framework }}-version: ["{{ framework-version }}"]', - "\n include: ", + '\n {{ framework }}-versions: ["{{ framework-version }}"]', + "\n os: [ubuntu-latest]", ] SERVICE_POSTGRES = [ @@ -45,7 +45,7 @@ def write_yaml_file( template, current_framework, - gh_frameworks, + matrix_includes, init_python_version, init_framework_version, ): @@ -65,9 +65,12 @@ def write_yaml_file( ) out_lines.append(l) - # write gh frameworks - for fr in gh_frameworks: - out_lines.append(fr) + # write matrix includes + if len(matrix_includes) > 0: + out_lines.append("\n include:") + + for matrix_include in matrix_includes: + out_lines.append(matrix_include) elif template_line == "{{ services }}\n": if current_framework in FRAMEWORKS_NEEDING_POSTGRES: services = SERVICE_POSTGRES.copy() @@ -97,26 +100,19 @@ def write_yaml_file( def main(): - print(f"Splitting tox.init into separate GitHub actions workflows") - - print("Read template") + print("Read GitHub actions config file template") f = open(TEMPLATE_FILE, "r") template = f.readlines() f.close() print("Read tox.ini") - # read tox.ini config = configparser.ConfigParser() config.read(TOX_FILE) lines = [x for x in config["tox"]["envlist"].split("\n") if len(x) > 0] - current_framework = None - python_versions = [] - framework_versions = [] - gh_frameworks = [] + everything = defaultdict(lambda: defaultdict(list)) - init_python_version = None - init_framework_version = None + print("Parse tox.ini nevlist") for line in lines: # normalize lines @@ -127,7 +123,7 @@ def main(): continue try: - # parse tox environment + # parse tox environment definition try: (raw_python_versions, framework, raw_framework_versions) = line.split( "-" @@ -139,63 +135,48 @@ def main(): ) = line.split("-") raw_framework_versions = "" - if current_framework is None: - current_framework = framework - - if current_framework != framework: - write_yaml_file( - template, - current_framework, - gh_frameworks, - init_python_version, - init_framework_version, - ) - - current_framework = framework - python_versions = [] - framework_versions = [] - gh_frameworks = [] - init_python_version = None - init_framework_version = None - - # collect environments + # collect framework versions per python version for python_version in ( raw_python_versions.replace("{", "").replace("}", "").split(",") ): - if python_version not in python_versions: - python_versions.append(python_version) - if not init_python_version: - init_python_version = python_version + if raw_framework_versions == "": + everything[framework][python_version].append("latest") + continue - for framework_version in ( - raw_framework_versions.replace("{", "").replace("}", "").split(",") - ): - if framework_version not in framework_versions: - framework_versions.append(framework_version) - if not init_framework_version: - init_framework_version = framework_version - if not init_framework_version: - init_framework_version = "latest" - - for fr in framework_versions: - - for py in python_versions: - py = py.replace("py", "") - s = f'\n - {{ {current_framework}-version: "{fr or "latest"}", python-version: "{py}", os: "ubuntu-latest" }}' - gh_frameworks.append(s) - python_versions = [] - framework_versions = [] + for framework_version in ( + raw_framework_versions.replace("{", "").replace("}", "").split(",") + ): + everything[framework][python_version].append(framework_version) except ValueError as err: print(f"ERROR reading line {line}") - write_yaml_file( - template, - current_framework, - gh_frameworks, - init_python_version, - init_framework_version, - ) + matrix_includes = [] + init_python_version = None + init_framework_version = None + + for framework in everything: + for py in everything[framework]: + if not init_python_version and not init_framework_version: + init_python_version = py + init_framework_version = ",".join(everything[framework][py]) + + else: + fr_versions = ",".join(everything[framework][py]) + s = f'\n - {{ python-version: "{py.replace("py", "")}", {framework}-versions: "{fr_versions}", os: "ubuntu-latest" }}' + matrix_includes.append(s) + + write_yaml_file( + template, + framework, + matrix_includes, + init_python_version, + init_framework_version, + ) + + matrix_includes = [] + init_python_version = None + init_framework_version = None print("All done. Have a nice day!") From 023cdc7ea449954a01ebd34b9e8efd3f69077b52 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 14:42:22 +0200 Subject: [PATCH 56/78] Fixed typo --- .github/workflows/test-integration-django.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 244ff30a91..629b078fe9 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -78,7 +78,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i From f05a054d7059da7b6e9e41451bc9ffa6d1c3ea9c Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 14:44:12 +0200 Subject: [PATCH 57/78] Fixed typo, now for real --- .github/workflows/test-integration-aiohttp.yml | 2 +- .github/workflows/test-integration-asgi.yml | 2 +- .github/workflows/test-integration-aws_lambda.yml | 2 +- .github/workflows/test-integration-beam.yml | 2 +- .github/workflows/test-integration-boto3.yml | 2 +- .github/workflows/test-integration-bottle.yml | 2 +- .github/workflows/test-integration-celery.yml | 2 +- .github/workflows/test-integration-chalice.yml | 2 +- .github/workflows/test-integration-falcon.yml | 2 +- .github/workflows/test-integration-fastapi.yml | 2 +- .github/workflows/test-integration-flask.yml | 2 +- .github/workflows/test-integration-gcp.yml | 2 +- .github/workflows/test-integration-httpx.yml | 2 +- .github/workflows/test-integration-pure_eval.yml | 2 +- .github/workflows/test-integration-pyramid.yml | 2 +- .github/workflows/test-integration-quart.yml | 2 +- .github/workflows/test-integration-redis.yml | 2 +- .github/workflows/test-integration-rediscluster.yml | 2 +- .github/workflows/test-integration-requests.yml | 2 +- .github/workflows/test-integration-rq.yml | 2 +- .github/workflows/test-integration-sanic.yml | 2 +- .github/workflows/test-integration-sqlalchemy.yml | 2 +- .github/workflows/test-integration-starlette.yml | 2 +- .github/workflows/test-integration-tornado.yml | 2 +- .github/workflows/test-integration-trytond.yml | 2 +- scripts/split-tox-gh-actions/ci-template.yml | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index dc1118617c..b9e30a4d60 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aiohttp + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aiohttp) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 0bb559d581..e9a790e0cf 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} asgi + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} asgi) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 1d3d2706c7..0016e60253 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -54,7 +54,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aws_lambda + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aws_lambda) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 9cee7ab906..85bbcbb74f 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -54,7 +54,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} beam + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} beam) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 3521746dee..1723e36164 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} boto3 + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} boto3) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index a7b91c728b..f06b9cf55f 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -61,7 +61,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} bottle + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} bottle) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 60148f272e..100a8c8304 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -61,7 +61,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} celery + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} celery) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 6a243a95f6..7cdbedafa8 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -57,7 +57,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} chalice + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} chalice) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index bf977d816f..0b1fb16246 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -61,7 +61,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} falcon + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} falcon) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 50b47f1117..08a6b96809 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} fastapi + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} fastapi) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 3214dc4617..66204563d4 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -61,7 +61,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} flask + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} flask) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index 88e36fa548..46e57f9f73 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -54,7 +54,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} gcp + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} gcp) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index d5aeb151ab..62d9936215 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -59,7 +59,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} httpx + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} httpx) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index a3d337b88e..d6d658a45f 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -60,7 +60,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pure_eval + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pure_eval) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 53ed6be27e..eb7613bc12 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -61,7 +61,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pyramid + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pyramid) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index b87428e601..a047a1a31b 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} quart + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} quart) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 68a0c2240b..eee039bf77 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} redis + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} redis) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 76d69578dc..2323b5fc7b 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rediscluster + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rediscluster) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index 457bf0b407..ecc8ec85a0 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -57,7 +57,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} requests + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} requests) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 2a6b91c970..b26ec45b7a 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -61,7 +61,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rq + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rq) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 058b5c9462..05f776515c 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -60,7 +60,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sanic + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sanic) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index c52ab5ce15..53c12a8e0f 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -59,7 +59,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sqlalchemy + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sqlalchemy) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 5f5db8ab4a..d4509af8ff 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} starlette + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} starlette) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index cc8e9283f4..a852be191e 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -58,7 +58,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} tornado + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} tornado) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 070a96a281..39911e118c 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -60,7 +60,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} trytond + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} trytond) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 6b7c34b552..70907fc20e 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -52,7 +52,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} {{ framework }} + envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} {{ framework }}) ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i From ff3246623fd22d0c1af4be6cf6f687899475edb8 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 14:47:43 +0200 Subject: [PATCH 58/78] Run testsuite in parallel mode again (because we now again run multiple envs in each runner) --- scripts/runtox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runtox.sh b/scripts/runtox.sh index 01f29c7dd1..bc45f6e6fd 100755 --- a/scripts/runtox.sh +++ b/scripts/runtox.sh @@ -26,4 +26,4 @@ elif [ -n "$AZURE_PYTHON_VERSION" ]; then fi fi -exec $TOXPATH -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}" +exec --parallel auto $TOXPATH -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}" From 872ffb4c2416349814679e451a523f3803ef4cb5 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 14:53:04 +0200 Subject: [PATCH 59/78] Cleanup --- scripts/runtox.sh | 2 +- scripts/split-tox-gh-actions/ci-template.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runtox.sh b/scripts/runtox.sh index bc45f6e6fd..82fbc4a5d3 100755 --- a/scripts/runtox.sh +++ b/scripts/runtox.sh @@ -26,4 +26,4 @@ elif [ -n "$AZURE_PYTHON_VERSION" ]; then fi fi -exec --parallel auto $TOXPATH -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}" +exec $TOXPATH --parallel auto -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}" diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 70907fc20e..d3aee0e3c9 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, {{ framework }} ${{ matrix.{{ framework }}-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, {{ framework }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true From e607cc14102db98029608a4eca92ede258a648d9 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 14:57:42 +0200 Subject: [PATCH 60/78] Prevent tox parallel spinner output. --- scripts/runtox.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/runtox.sh b/scripts/runtox.sh index 82fbc4a5d3..cb6292bf8a 100755 --- a/scripts/runtox.sh +++ b/scripts/runtox.sh @@ -26,4 +26,5 @@ elif [ -n "$AZURE_PYTHON_VERSION" ]; then fi fi +export TOX_PARALLEL_NO_SPINNER=1 exec $TOXPATH --parallel auto -e $($TOXPATH -l | grep "$searchstring" | tr $'\n' ',') -- "${@:2}" From dec4db3777c973ba99eba9e0a51ed10082f0ddc0 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 14:58:33 +0200 Subject: [PATCH 61/78] Better name for job --- .github/workflows/test-integration-aiohttp.yml | 2 +- .github/workflows/test-integration-asgi.yml | 2 +- .github/workflows/test-integration-aws_lambda.yml | 2 +- .github/workflows/test-integration-beam.yml | 2 +- .github/workflows/test-integration-boto3.yml | 2 +- .github/workflows/test-integration-bottle.yml | 2 +- .github/workflows/test-integration-celery.yml | 2 +- .github/workflows/test-integration-chalice.yml | 2 +- .github/workflows/test-integration-django.yml | 2 +- .github/workflows/test-integration-falcon.yml | 2 +- .github/workflows/test-integration-fastapi.yml | 2 +- .github/workflows/test-integration-flask.yml | 2 +- .github/workflows/test-integration-gcp.yml | 2 +- .github/workflows/test-integration-httpx.yml | 2 +- .github/workflows/test-integration-pure_eval.yml | 2 +- .github/workflows/test-integration-pyramid.yml | 2 +- .github/workflows/test-integration-quart.yml | 2 +- .github/workflows/test-integration-redis.yml | 2 +- .github/workflows/test-integration-rediscluster.yml | 2 +- .github/workflows/test-integration-requests.yml | 2 +- .github/workflows/test-integration-rq.yml | 2 +- .github/workflows/test-integration-sanic.yml | 2 +- .github/workflows/test-integration-sqlalchemy.yml | 2 +- .github/workflows/test-integration-starlette.yml | 2 +- .github/workflows/test-integration-tornado.yml | 2 +- .github/workflows/test-integration-trytond.yml | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index b9e30a4d60..a8e25df010 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, aiohttp ${{ matrix.aiohttp-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, aiohttp, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index e9a790e0cf..af77408e49 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, asgi ${{ matrix.asgi-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, asgi, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 0016e60253..d0cb6be5d6 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, aws_lambda ${{ matrix.aws_lambda-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, aws_lambda, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 85bbcbb74f..18c24af754 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, beam ${{ matrix.beam-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, beam, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 1723e36164..0cb3cf652b 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, boto3 ${{ matrix.boto3-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, boto3, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index f06b9cf55f..396dcf5eff 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, bottle ${{ matrix.bottle-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, bottle, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 100a8c8304..af9e9a22e7 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, celery ${{ matrix.celery-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, celery, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 7cdbedafa8..c675ba19f2 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, chalice ${{ matrix.chalice-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, chalice, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 629b078fe9..b140560420 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, django ${{ matrix.django-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, django, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 0b1fb16246..8957cf46e7 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, falcon ${{ matrix.falcon-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, falcon, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 08a6b96809..e1cde30211 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, fastapi ${{ matrix.fastapi-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, fastapi, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 66204563d4..3dc130cc18 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, flask ${{ matrix.flask-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, flask, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index 46e57f9f73..eab06f35f7 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, gcp ${{ matrix.gcp-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, gcp, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index 62d9936215..278108dba3 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, httpx ${{ matrix.httpx-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, httpx, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index d6d658a45f..9ebac8bdc6 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, pure_eval ${{ matrix.pure_eval-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, pure_eval, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index eb7613bc12..02cac86151 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, pyramid ${{ matrix.pyramid-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, pyramid, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index a047a1a31b..b7e1c011e6 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, quart ${{ matrix.quart-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, quart, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index eee039bf77..3edeb2f820 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, redis ${{ matrix.redis-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, redis, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 2323b5fc7b..37e983daed 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, rediscluster ${{ matrix.rediscluster-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, rediscluster, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index ecc8ec85a0..14b20aa33c 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, requests ${{ matrix.requests-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, requests, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index b26ec45b7a..1b82c5be7c 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, rq ${{ matrix.rq-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, rq, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 05f776515c..7824f51436 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, sanic ${{ matrix.sanic-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, sanic, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index 53c12a8e0f..7250b9c901 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, sqlalchemy ${{ matrix.sqlalchemy-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, sqlalchemy, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index d4509af8ff..0eb3d78ff6 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, starlette ${{ matrix.starlette-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, starlette, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index a852be191e..fd85a139d8 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, tornado ${{ matrix.tornado-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, tornado, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 39911e118c..a7b321a505 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, trytond ${{ matrix.trytond-versions }}, ${{ matrix.os }} + name: python ${{ matrix.python-version }}, trytond, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true From 0fca622dc282ab39ace37189896ea5692990b25b Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 15:09:59 +0200 Subject: [PATCH 62/78] Removed tests from CI workflow (because they run now in multiple other workflows --- .github/workflows/ci.yml | 76 ---------------------------------------- 1 file changed, 76 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 772caeb12f..5b1dbb35a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,82 +32,6 @@ jobs: pip install tox tox -e linters - test: - name: Run Tests - runs-on: ${{ matrix.linux-version }} - timeout-minutes: 45 - continue-on-error: true - strategy: - matrix: - linux-version: [ubuntu-latest] - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] - include: - # GHA doesn't host the combo of python 3.4 and ubuntu-latest (which is - # currently 20.04), so run just that one under 18.04. (See - # https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json - # for a listing of supported python/os combos.) - - linux-version: ubuntu-18.04 - python-version: "3.4" - - services: - # Label used to access the service container - redis: - # Docker Hub image - image: redis - # Set health checks to wait until redis has started - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - # Maps port 6379 on service container to the host - - 6379:6379 - - 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 - - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Setup Test Env - env: - PGHOST: localhost - PGPASSWORD: sentry - run: | - pip install codecov tox - - - name: Run Tests - env: - CI_PYTHON_VERSION: ${{ matrix.python-version }} - timeout-minutes: 45 - run: | - coverage erase - ./scripts/runtox.sh '' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch - coverage combine .coverage* - coverage xml -i - codecov --file coverage.xml - build_lambda_layer: name: Build Package runs-on: ubuntu-latest From a27acbf82f4d05ac01281dee1de5320420ad256d Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 15:19:24 +0200 Subject: [PATCH 63/78] Name change again --- .github/workflows/test-integration-aiohttp.yml | 2 +- .github/workflows/test-integration-asgi.yml | 2 +- .github/workflows/test-integration-aws_lambda.yml | 2 +- .github/workflows/test-integration-beam.yml | 2 +- .github/workflows/test-integration-boto3.yml | 2 +- .github/workflows/test-integration-bottle.yml | 2 +- .github/workflows/test-integration-celery.yml | 2 +- .github/workflows/test-integration-chalice.yml | 2 +- .github/workflows/test-integration-django.yml | 2 +- .github/workflows/test-integration-falcon.yml | 2 +- .github/workflows/test-integration-fastapi.yml | 2 +- .github/workflows/test-integration-flask.yml | 2 +- .github/workflows/test-integration-gcp.yml | 2 +- .github/workflows/test-integration-httpx.yml | 2 +- .github/workflows/test-integration-pure_eval.yml | 2 +- .github/workflows/test-integration-pyramid.yml | 2 +- .github/workflows/test-integration-quart.yml | 2 +- .github/workflows/test-integration-redis.yml | 2 +- .github/workflows/test-integration-rediscluster.yml | 2 +- .github/workflows/test-integration-requests.yml | 2 +- .github/workflows/test-integration-rq.yml | 2 +- .github/workflows/test-integration-sanic.yml | 2 +- .github/workflows/test-integration-sqlalchemy.yml | 2 +- .github/workflows/test-integration-starlette.yml | 2 +- .github/workflows/test-integration-tornado.yml | 2 +- .github/workflows/test-integration-trytond.yml | 2 +- scripts/split-tox-gh-actions/ci-template.yml | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index a8e25df010..dfef634764 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, aiohttp, ${{ matrix.os }} + name: aiohttp, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index af77408e49..8c457a1c34 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, asgi, ${{ matrix.os }} + name: asgi, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index d0cb6be5d6..9605df2724 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, aws_lambda, ${{ matrix.os }} + name: aws_lambda, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 18c24af754..dc882101ba 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, beam, ${{ matrix.os }} + name: beam, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 0cb3cf652b..538385cbde 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, boto3, ${{ matrix.os }} + name: boto3, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index 396dcf5eff..a402bb125d 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, bottle, ${{ matrix.os }} + name: bottle, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index af9e9a22e7..f562b7bb14 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, celery, ${{ matrix.os }} + name: celery, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index c675ba19f2..a6be4ffb59 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, chalice, ${{ matrix.os }} + name: chalice, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index b140560420..3bc8d87dc6 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, django, ${{ matrix.os }} + name: django, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 8957cf46e7..a0059b9ba1 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, falcon, ${{ matrix.os }} + name: falcon, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index e1cde30211..41b1423fc2 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, fastapi, ${{ matrix.os }} + name: fastapi, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 3dc130cc18..0fa337085f 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, flask, ${{ matrix.os }} + name: flask, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index eab06f35f7..a2cc052346 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, gcp, ${{ matrix.os }} + name: gcp, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index 278108dba3..d0eb90f049 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, httpx, ${{ matrix.os }} + name: httpx, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index 9ebac8bdc6..ae653cb2e7 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, pure_eval, ${{ matrix.os }} + name: pure_eval, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 02cac86151..57536a99d9 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, pyramid, ${{ matrix.os }} + name: pyramid, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index b7e1c011e6..bb0fc122ba 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, quart, ${{ matrix.os }} + name: quart, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 3edeb2f820..9d1f79baed 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, redis, ${{ matrix.os }} + name: redis, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 37e983daed..5515d2a983 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, rediscluster, ${{ matrix.os }} + name: rediscluster, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index 14b20aa33c..88e84f9111 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, requests, ${{ matrix.os }} + name: requests, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 1b82c5be7c..daf19e4eb6 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, rq, ${{ matrix.os }} + name: rq, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 7824f51436..9613541bd3 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, sanic, ${{ matrix.os }} + name: sanic, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index 7250b9c901..cc0e07609b 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, sqlalchemy, ${{ matrix.os }} + name: sqlalchemy, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 0eb3d78ff6..7a3b49bbdc 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, starlette, ${{ matrix.os }} + name: starlette, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index fd85a139d8..0316b3cc0d 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, tornado, ${{ matrix.os }} + name: tornado, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index a7b321a505..4f6a5e193f 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, trytond, ${{ matrix.os }} + name: trytond, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index d3aee0e3c9..170b5e9a40 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -18,7 +18,7 @@ env: jobs: test: - name: python ${{ matrix.python-version }}, {{ framework }}, ${{ matrix.os }} + name: {{ framework }}, python ${{ matrix.python-version }}, ${{ matrix.os }} runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true From 8d10f5e00e523efb31a876833abd3aed2e20837e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 16:11:45 +0200 Subject: [PATCH 64/78] Cleanup --- .../workflows/test-integration-aiohttp.yml | 10 +-- .github/workflows/test-integration-asgi.yml | 10 +-- .../workflows/test-integration-aws_lambda.yml | 4 +- .github/workflows/test-integration-beam.yml | 4 +- .github/workflows/test-integration-boto3.yml | 10 +-- .github/workflows/test-integration-bottle.yml | 13 +-- .github/workflows/test-integration-celery.yml | 13 +-- .../workflows/test-integration-chalice.yml | 9 +- .github/workflows/test-integration-django.yml | 13 +-- .github/workflows/test-integration-falcon.yml | 13 +-- .../workflows/test-integration-fastapi.yml | 10 +-- .github/workflows/test-integration-flask.yml | 13 +-- .github/workflows/test-integration-gcp.yml | 4 +- .github/workflows/test-integration-httpx.yml | 11 +-- .../workflows/test-integration-pure_eval.yml | 12 +-- .../workflows/test-integration-pyramid.yml | 13 +-- .github/workflows/test-integration-quart.yml | 10 +-- .github/workflows/test-integration-redis.yml | 10 +-- .../test-integration-rediscluster.yml | 10 +-- .../workflows/test-integration-requests.yml | 9 +- .github/workflows/test-integration-rq.yml | 13 +-- .github/workflows/test-integration-sanic.yml | 12 +-- .../workflows/test-integration-sqlalchemy.yml | 11 +-- .../workflows/test-integration-starlette.yml | 10 +-- .../workflows/test-integration-tornado.yml | 10 +-- .../workflows/test-integration-trytond.yml | 12 +-- scripts/split-tox-gh-actions/ci-template.yml | 3 +- .../split-tox-gh-actions.py | 85 ++++--------------- scripts/tox_env_name.py | 28 ------ 29 files changed, 66 insertions(+), 319 deletions(-) delete mode 100755 scripts/tox_env_name.py diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index dfef634764..efaa00b5a7 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.7"] - aiohttp-versions: ["3.5,3.6"] + python-version: ["3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.8", aiohttp-versions: "3.6", os: "ubuntu-latest" } - - { python-version: "3.9", aiohttp-versions: "3.6", os: "ubuntu-latest" } - - { python-version: "3.10", aiohttp-versions: "3.6", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aiohttp) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 8c457a1c34..b37c7e12c3 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.7"] - asgi-versions: ["latest"] + python-version: ["3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.8", asgi-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.9", asgi-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.10", asgi-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} asgi) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 9605df2724..375720a3d8 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -25,7 +25,6 @@ jobs: strategy: matrix: python-version: ["3.7"] - aws_lambda-versions: ["latest"] os: [ubuntu-latest] steps: @@ -54,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} aws_lambda) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index dc882101ba..041ff7bc70 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -25,7 +25,6 @@ jobs: strategy: matrix: python-version: ["3.7"] - beam-versions: ["2.12,2.13,2.32,2.33"] os: [ubuntu-latest] steps: @@ -54,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} beam) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 538385cbde..548799f818 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - boto3-versions: ["1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16"] + python-version: ["2.7","3.6","3.7","3.8"] os: [ubuntu-latest] - include: - - { python-version: "3.6", boto3-versions: "1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16", os: "ubuntu-latest" } - - { python-version: "3.7", boto3-versions: "1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16", os: "ubuntu-latest" } - - { python-version: "3.8", boto3-versions: "1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} boto3) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index a402bb125d..ea1fe6fc2c 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -24,16 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - bottle-versions: ["0.12"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.5", bottle-versions: "0.12", os: "ubuntu-latest" } - - { python-version: "3.6", bottle-versions: "0.12", os: "ubuntu-latest" } - - { python-version: "3.7", bottle-versions: "0.12", os: "ubuntu-latest" } - - { python-version: "3.8", bottle-versions: "0.12", os: "ubuntu-latest" } - - { python-version: "3.9", bottle-versions: "0.12", os: "ubuntu-latest" } - - { python-version: "3.10", bottle-versions: "0.12", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -61,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} bottle) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index f562b7bb14..8bcfe257d8 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -24,16 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - celery-versions: ["3,4.1,4.2,4.3,4.4"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.5", celery-versions: "4.1,4.2,4.3,4.4", os: "ubuntu-latest" } - - { python-version: "3.6", celery-versions: "4.1,4.2,4.3,4.4,5.0", os: "ubuntu-latest" } - - { python-version: "3.7", celery-versions: "4.3,4.4,5.0", os: "ubuntu-latest" } - - { python-version: "3.8", celery-versions: "4.3,4.4,5.0", os: "ubuntu-latest" } - - { python-version: "3.9", celery-versions: "5.0", os: "ubuntu-latest" } - - { python-version: "3.10", celery-versions: "5.0", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -61,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} celery) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index a6be4ffb59..66d7845662 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -24,12 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.6"] - chalice-versions: ["1.16,1.17,1.18,1.19,1.20"] + python-version: ["3.6","3.7","3.8"] os: [ubuntu-latest] - include: - - { python-version: "3.7", chalice-versions: "1.16,1.17,1.18,1.19,1.20", os: "ubuntu-latest" } - - { python-version: "3.8", chalice-versions: "1.16,1.17,1.18,1.19,1.20", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -57,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} chalice) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 3bc8d87dc6..3ce844d5f3 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -24,16 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - django-versions: ["1.8,1.9,1.10,1.11"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.5", django-versions: "1.8,1.9,1.10,1.11,2.0,2.1,2.2", os: "ubuntu-latest" } - - { python-version: "3.6", django-versions: "1.11,2.0,2.1,2.2,3.0,3.1,3.2", os: "ubuntu-latest" } - - { python-version: "3.7", django-versions: "1.11,2.0,2.1,2.2,3.0,3.1,3.2", os: "ubuntu-latest" } - - { python-version: "3.8", django-versions: "2.2,3.0,3.1,3.2", os: "ubuntu-latest" } - - { python-version: "3.9", django-versions: "2.2,3.0,3.1,3.2", os: "ubuntu-latest" } - - { python-version: "3.10", django-versions: "3.2", os: "ubuntu-latest" } services: postgres: image: postgres @@ -78,8 +70,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} django) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index a0059b9ba1..28b3838cee 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -24,16 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - falcon-versions: ["1.4,2.0"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.5", falcon-versions: "1.4,2.0", os: "ubuntu-latest" } - - { python-version: "3.6", falcon-versions: "1.4,2.0", os: "ubuntu-latest" } - - { python-version: "3.7", falcon-versions: "1.4,2.0", os: "ubuntu-latest" } - - { python-version: "3.8", falcon-versions: "2.0", os: "ubuntu-latest" } - - { python-version: "3.9", falcon-versions: "2.0", os: "ubuntu-latest" } - - { python-version: "3.10", falcon-versions: "2.0", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -61,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} falcon) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 41b1423fc2..ec6dbabb11 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.7"] - fastapi-versions: ["latest"] + python-version: ["3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.8", fastapi-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.9", fastapi-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.10", fastapi-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} fastapi) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 0fa337085f..620b5c79f7 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -24,16 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - flask-versions: ["0.11,0.12,1.0,1.1"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.5", flask-versions: "0.11,0.12,1.0,1.1", os: "ubuntu-latest" } - - { python-version: "3.6", flask-versions: "0.11,0.12,1.0,1.1,2.0", os: "ubuntu-latest" } - - { python-version: "3.7", flask-versions: "0.11,0.12,1.0,1.1", os: "ubuntu-latest" } - - { python-version: "3.8", flask-versions: "0.11,0.12,1.0,1.1,2.0", os: "ubuntu-latest" } - - { python-version: "3.9", flask-versions: "0.11,0.12,1.0,1.1,2.0", os: "ubuntu-latest" } - - { python-version: "3.10", flask-versions: "1.1,2.0", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -61,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} flask) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index a2cc052346..da597977ab 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -25,7 +25,6 @@ jobs: strategy: matrix: python-version: ["3.7"] - gcp-versions: ["latest"] os: [ubuntu-latest] steps: @@ -54,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} gcp) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index d0eb90f049..76fc23555e 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -24,14 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.6"] - httpx-versions: ["0.16,0.17"] + python-version: ["3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.7", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } - - { python-version: "3.8", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } - - { python-version: "3.9", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } - - { python-version: "3.10", httpx-versions: "0.16,0.17", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -59,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} httpx) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index ae653cb2e7..3a9c1d66bd 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -24,15 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.5"] - pure_eval-versions: ["latest"] + python-version: ["3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.6", pure_eval-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.7", pure_eval-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.8", pure_eval-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.9", pure_eval-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.10", pure_eval-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -60,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pure_eval) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 57536a99d9..e144503161 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -24,16 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - pyramid-versions: ["1.6,1.7,1.8,1.9,1.10"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.5", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } - - { python-version: "3.6", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } - - { python-version: "3.7", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } - - { python-version: "3.8", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } - - { python-version: "3.9", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } - - { python-version: "3.10", pyramid-versions: "1.6,1.7,1.8,1.9,1.10", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -61,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} pyramid) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index bb0fc122ba..26044c4e0f 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.7"] - quart-versions: ["latest"] + python-version: ["3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.8", quart-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.9", quart-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.10", quart-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} quart) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 9d1f79baed..d011e560e8 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - redis-versions: ["latest"] + python-version: ["2.7","3.7","3.8","3.9"] os: [ubuntu-latest] - include: - - { python-version: "3.7", redis-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.8", redis-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.9", redis-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} redis) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 5515d2a983..76d446717d 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - rediscluster-versions: ["1,2.1.0,2"] + python-version: ["2.7","3.7","3.8","3.9"] os: [ubuntu-latest] - include: - - { python-version: "3.7", rediscluster-versions: "1,2.1.0,2", os: "ubuntu-latest" } - - { python-version: "3.8", rediscluster-versions: "1,2.1.0,2", os: "ubuntu-latest" } - - { python-version: "3.9", rediscluster-versions: "1,2.1.0,2", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rediscluster) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index 88e84f9111..dae25c78c8 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -24,12 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - requests-versions: ["latest"] + python-version: ["2.7","3.8","3.9"] os: [ubuntu-latest] - include: - - { python-version: "3.8", requests-versions: "latest", os: "ubuntu-latest" } - - { python-version: "3.9", requests-versions: "latest", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -57,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} requests) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index daf19e4eb6..adc65257d4 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -24,16 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - rq-versions: ["0.6,0.7,0.8,0.9,0.10,0.11,0.12,0.13,1.0,1.1,1.2,1.3"] + python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.5", rq-versions: "0.6,0.7,0.8,0.9,0.10,0.11,0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } - - { python-version: "3.6", rq-versions: "0.6,0.7,0.8,0.9,0.10,0.11,0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } - - { python-version: "3.7", rq-versions: "0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } - - { python-version: "3.8", rq-versions: "0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } - - { python-version: "3.9", rq-versions: "0.12,0.13,1.0,1.1,1.2,1.3,1.4,1.5", os: "ubuntu-latest" } - - { python-version: "3.10", rq-versions: "1.4,1.5", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -61,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} rq) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 9613541bd3..2448e7ec8f 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -24,15 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.5"] - sanic-versions: ["0.8,18"] + python-version: ["3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.6", sanic-versions: "0.8,18,19,20", os: "ubuntu-latest" } - - { python-version: "3.7", sanic-versions: "0.8,18,19,20,21", os: "ubuntu-latest" } - - { python-version: "3.8", sanic-versions: "20,21", os: "ubuntu-latest" } - - { python-version: "3.9", sanic-versions: "21", os: "ubuntu-latest" } - - { python-version: "3.10", sanic-versions: "21", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -60,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sanic) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index cc0e07609b..fc4da3232f 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -24,14 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["2.7"] - sqlalchemy-versions: ["1.2,1.3"] + python-version: ["2.7","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.7", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } - - { python-version: "3.8", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } - - { python-version: "3.9", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } - - { python-version: "3.10", sqlalchemy-versions: "1.2,1.3", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -59,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} sqlalchemy) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 7a3b49bbdc..070c27d268 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.7"] - starlette-versions: ["0.19.1,0.20"] + python-version: ["3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.8", starlette-versions: "0.19.1,0.20", os: "ubuntu-latest" } - - { python-version: "3.9", starlette-versions: "0.19.1,0.20", os: "ubuntu-latest" } - - { python-version: "3.10", starlette-versions: "0.19.1,0.20", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} starlette) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index 0316b3cc0d..32e1a2ec05 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -24,13 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.7"] - tornado-versions: ["5,6"] + python-version: ["3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.8", tornado-versions: "5,6", os: "ubuntu-latest" } - - { python-version: "3.9", tornado-versions: "5,6", os: "ubuntu-latest" } - - { python-version: "3.10", tornado-versions: "6", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -58,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} tornado) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 4f6a5e193f..e12d505ce3 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -24,15 +24,8 @@ jobs: continue-on-error: true strategy: matrix: - python-version: ["3.5"] - trytond-versions: ["4.6,5.0,5.2"] + python-version: ["3.5","3.6","3.7","3.8","3.9","3.10"] os: [ubuntu-latest] - include: - - { python-version: "3.6", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } - - { python-version: "3.7", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } - - { python-version: "3.8", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } - - { python-version: "3.9", trytond-versions: "4.6,5.0,5.2,5.4", os: "ubuntu-latest" } - - { python-version: "3.10", trytond-versions: "5.4", os: "ubuntu-latest" } steps: - uses: actions/checkout@v3 @@ -60,8 +53,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} trytond) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-template.yml index 170b5e9a40..2bdaf2055d 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-template.yml @@ -52,8 +52,7 @@ jobs: mkdir -p ~/toxworkdir sudo mount -o size=180m -t tmpfs none ~/toxworkdir - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} {{ framework }}) - ./scripts/runtox.sh "$envname" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch + ./scripts/runtox.sh "${{ matrix.python-version }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file 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 b451fe0871..9df900b011 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -15,8 +15,7 @@ MATRIX_DEFINITION = [ " strategy:", "\n matrix:", - '\n python-version: ["{{ python-version }}"]', - '\n {{ framework }}-versions: ["{{ framework-version }}"]', + "\n python-version: [{{ python-version }}]", "\n os: [ubuntu-latest]", ] @@ -45,9 +44,7 @@ def write_yaml_file( template, current_framework, - matrix_includes, - init_python_version, - init_framework_version, + python_versions, ): # render template for print out_lines = [] @@ -56,35 +53,17 @@ def write_yaml_file( h = MATRIX_DEFINITION.copy() for l in h: - l = ( - l.replace("{{ framework }}", current_framework) - .replace( - "{{ python-version }}", init_python_version.replace("py", "") - ) - .replace("{{ framework-version }}", init_framework_version) + output_array = [f'"{py.replace("py", "")}"' for py in python_versions] + output_string = ",".join(output_array) + + l = l.replace("{{ framework }}", current_framework).replace( + "{{ python-version }}", output_string ) out_lines.append(l) - # write matrix includes - if len(matrix_includes) > 0: - out_lines.append("\n include:") - - for matrix_include in matrix_includes: - out_lines.append(matrix_include) elif template_line == "{{ services }}\n": if current_framework in FRAMEWORKS_NEEDING_POSTGRES: - services = SERVICE_POSTGRES.copy() - - for l in services: - l = ( - l.replace("{{ framework }}", current_framework) - .replace( - "{{ python-version }}", - init_python_version.replace("py", ""), - ) - .replace("{{ framework-version }}", init_framework_version) - ) - out_lines.append(l) + out_lines += SERVICE_POSTGRES else: out_lines.append( @@ -110,7 +89,7 @@ def main(): config.read(TOX_FILE) lines = [x for x in config["tox"]["envlist"].split("\n") if len(x) > 0] - everything = defaultdict(lambda: defaultdict(list)) + python_versions = defaultdict(list) print("Parse tox.ini nevlist") @@ -125,59 +104,27 @@ def main(): try: # parse tox environment definition try: - (raw_python_versions, framework, raw_framework_versions) = line.split( - "-" - ) + (raw_python_versions, framework, _) = line.split("-") except ValueError: - ( - raw_python_versions, - framework, - ) = line.split("-") - raw_framework_versions = "" + (raw_python_versions, framework) = line.split("-") - # collect framework versions per python version + # collect python versions to test the framework in for python_version in ( raw_python_versions.replace("{", "").replace("}", "").split(",") ): - if raw_framework_versions == "": - everything[framework][python_version].append("latest") - continue - - for framework_version in ( - raw_framework_versions.replace("{", "").replace("}", "").split(",") - ): - everything[framework][python_version].append(framework_version) + if python_version not in python_versions[framework]: + python_versions[framework].append(python_version) except ValueError as err: print(f"ERROR reading line {line}") - matrix_includes = [] - init_python_version = None - init_framework_version = None - - for framework in everything: - for py in everything[framework]: - if not init_python_version and not init_framework_version: - init_python_version = py - init_framework_version = ",".join(everything[framework][py]) - - else: - fr_versions = ",".join(everything[framework][py]) - s = f'\n - {{ python-version: "{py.replace("py", "")}", {framework}-versions: "{fr_versions}", os: "ubuntu-latest" }}' - matrix_includes.append(s) - + for framework in python_versions: write_yaml_file( template, framework, - matrix_includes, - init_python_version, - init_framework_version, + python_versions[framework], ) - matrix_includes = [] - init_python_version = None - init_framework_version = None - print("All done. Have a nice day!") diff --git a/scripts/tox_env_name.py b/scripts/tox_env_name.py deleted file mode 100755 index 3f53ed4e64..0000000000 --- a/scripts/tox_env_name.py +++ /dev/null @@ -1,28 +0,0 @@ -import sys - - -def main(): - python_version = sys.argv[1] - framework = sys.argv[2] if len(sys.argv) >= 3 else "" - framework_version = sys.argv[3] if len(sys.argv) >= 4 else "" - - py_version = "" - fr_version = "" - - py_version = "py" + python_version - - if framework_version == "latest" or framework_version == "": - fr_version = "" - else: - fr_version = "-" + framework_version - - if framework == "": - fr_name = "" - else: - fr_name = "-" + framework - - print(py_version + fr_name + fr_version) - - -if __name__ == "__main__": - main() From bd2381c16b2a9a6ae957cded06a65062c50a59dc Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 16:39:09 +0200 Subject: [PATCH 65/78] Cleanup --- .../workflows/test-integration-aiohttp.yml | 1 + .github/workflows/test-integration-asgi.yml | 1 + .../workflows/test-integration-aws_lambda.yml | 1 + .github/workflows/test-integration-beam.yml | 1 + .github/workflows/test-integration-boto3.yml | 1 + .github/workflows/test-integration-bottle.yml | 1 + .github/workflows/test-integration-celery.yml | 1 + .../workflows/test-integration-chalice.yml | 1 + .github/workflows/test-integration-django.yml | 1 + .github/workflows/test-integration-falcon.yml | 1 + .../workflows/test-integration-fastapi.yml | 1 + .github/workflows/test-integration-flask.yml | 1 + .github/workflows/test-integration-gcp.yml | 1 + .github/workflows/test-integration-httpx.yml | 1 + .../workflows/test-integration-pure_eval.yml | 1 + .../workflows/test-integration-pyramid.yml | 1 + .github/workflows/test-integration-quart.yml | 1 + .github/workflows/test-integration-redis.yml | 1 + .../test-integration-rediscluster.yml | 1 + .../workflows/test-integration-requests.yml | 1 + .github/workflows/test-integration-rq.yml | 1 + .github/workflows/test-integration-sanic.yml | 1 + .../workflows/test-integration-sqlalchemy.yml | 1 + .../workflows/test-integration-starlette.yml | 1 + .../workflows/test-integration-tornado.yml | 1 + .../workflows/test-integration-trytond.yml | 1 + .../split-tox-gh-actions/ci-yaml-services.txt | 18 +++++ .../{ci-template.yml => ci-yaml.txt} | 1 - .../split-tox-gh-actions.py | 75 +++++++------------ 29 files changed, 71 insertions(+), 49 deletions(-) create mode 100644 scripts/split-tox-gh-actions/ci-yaml-services.txt rename scripts/split-tox-gh-actions/{ci-template.yml => ci-yaml.txt} (99%) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index efaa00b5a7..5a4a476aa7 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index b37c7e12c3..7e38ea7372 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 375720a3d8..62384936e5 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7"] diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 041ff7bc70..6daecbdfd9 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7"] diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 548799f818..a8a11d2f83 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.6","3.7","3.8"] diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index ea1fe6fc2c..84a35d69ca 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 8bcfe257d8..dd5f286ea1 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 66d7845662..47117d01b5 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.6","3.7","3.8"] diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 3ce844d5f3..5dc7eb50cd 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 28b3838cee..82d22003d1 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index ec6dbabb11..7fac2855bf 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 620b5c79f7..9fc10591ff 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index da597977ab..f60a438303 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7"] diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index 76fc23555e..dd1985acfc 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index 3a9c1d66bd..bed9b16d8a 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index e144503161..7cbc93ff48 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 26044c4e0f..2fc14912e9 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index d011e560e8..190aff1eb5 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.7","3.8","3.9"] diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 76d446717d..74674facff 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.7","3.8","3.9"] diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index dae25c78c8..eba5111191 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.8","3.9"] diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index adc65257d4..4c60b30ea6 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 2448e7ec8f..249903e0da 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index fc4da3232f..caad993876 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["2.7","3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 070c27d268..0481154104 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index 32e1a2ec05..fa32c3c5cb 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.7","3.8","3.9","3.10"] diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index e12d505ce3..a499e5454c 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} timeout-minutes: 45 continue-on-error: true + strategy: matrix: python-version: ["3.5","3.6","3.7","3.8","3.9","3.10"] diff --git a/scripts/split-tox-gh-actions/ci-yaml-services.txt b/scripts/split-tox-gh-actions/ci-yaml-services.txt new file mode 100644 index 0000000000..f6a658eee8 --- /dev/null +++ b/scripts/split-tox-gh-actions/ci-yaml-services.txt @@ -0,0 +1,18 @@ + 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 \ No newline at end of file diff --git a/scripts/split-tox-gh-actions/ci-template.yml b/scripts/split-tox-gh-actions/ci-yaml.txt similarity index 99% rename from scripts/split-tox-gh-actions/ci-template.yml rename to scripts/split-tox-gh-actions/ci-yaml.txt index 2bdaf2055d..7dfb8ba093 100644 --- a/scripts/split-tox-gh-actions/ci-template.yml +++ b/scripts/split-tox-gh-actions/ci-yaml.txt @@ -23,7 +23,6 @@ jobs: timeout-minutes: 45 continue-on-error: true {{ strategy_matrix }} - {{ services }} steps: 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 9df900b011..b88d8759cd 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -1,44 +1,23 @@ import configparser -from multiprocessing.sharedctypes import Value from collections import defaultdict +from multiprocessing.sharedctypes import Value + OUT_DIR = "/Users/antonpirker/code/sentry-python/.github/workflows/" TOX_FILE = "/Users/antonpirker/code/sentry-python/tox.ini" TEMPLATE_FILE = ( - "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-template.yml" + "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-yaml.txt" ) +TEMPLATE_FILE_SERVICES = "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-yaml-services.txt" + +FRAMEWORKS_NEEDING_POSTGRES = ["django"] -FRAMEWORKS_NEEDING_POSTGRES = [ - "django", -] - -MATRIX_DEFINITION = [ - " strategy:", - "\n matrix:", - "\n python-version: [{{ python-version }}]", - "\n os: [ubuntu-latest]", -] - -SERVICE_POSTGRES = [ - " services:", - "\n postgres:", - "\n image: postgres", - "\n env:", - "\n POSTGRES_PASSWORD: sentry", - "\n # Set health checks to wait until postgres has started", - "\n options: >-", - "\n --health-cmd pg_isready", - "\n --health-interval 10s", - "\n --health-timeout 5s", - "\n --health-retries 5", - "\n # Maps tcp port 5432 on service container to the host", - "\n ports:", - "\n - 5432:5432", - "\n env:", - "\n SENTRY_PYTHON_TEST_POSTGRES_USER: postgres", - "\n SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry", - "\n SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test", -] +MATRIX_DEFINITION = """ + strategy: + matrix: + python-version: [{{ python-version }}] + os: [ubuntu-latest] +""" def write_yaml_file( @@ -46,39 +25,39 @@ def write_yaml_file( current_framework, python_versions, ): + """Write the YAML configuration file for one framework to disk.""" # render template for print - out_lines = [] + out = "" for template_line in template: if template_line == "{{ strategy_matrix }}\n": - h = MATRIX_DEFINITION.copy() + m = MATRIX_DEFINITION + py_versions = [f'"{py.replace("py", "")}"' for py in python_versions] - for l in h: - output_array = [f'"{py.replace("py", "")}"' for py in python_versions] - output_string = ",".join(output_array) - - l = l.replace("{{ framework }}", current_framework).replace( - "{{ python-version }}", output_string - ) - out_lines.append(l) + m = m.replace("{{ framework }}", current_framework).replace( + "{{ python-version }}", ",".join(py_versions) + ) + out += m elif template_line == "{{ services }}\n": if current_framework in FRAMEWORKS_NEEDING_POSTGRES: - out_lines += SERVICE_POSTGRES + f = open(TEMPLATE_FILE_SERVICES, "r") + out += "".join(f.readlines()) + f.close() else: - out_lines.append( - template_line.replace("{{ framework }}", current_framework) - ) + out += template_line.replace("{{ framework }}", current_framework) # write rendered template outfile_name = OUT_DIR + f"test-integration-{current_framework}.yml" print(f"Writing {outfile_name}") f = open(outfile_name, "w") - f.writelines(out_lines) + f.writelines(out) f.close() def main(): + """Create one CI workflow for each framework defined in tox.ini""" + print("Read GitHub actions config file template") f = open(TEMPLATE_FILE, "r") template = f.readlines() From a34f8ab5985467057eb078e7daf9e1035c7acfee Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 16:55:17 +0200 Subject: [PATCH 66/78] More cleanup --- .../split-tox-gh-actions.py | 36 +++++++++++-------- 1 file changed, 22 insertions(+), 14 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 b88d8759cd..5205e29ca1 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -1,14 +1,26 @@ +"""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 +which allows them to be run in parallel in GitHub actions. + +This will generate several configuration files, that need to be commited to Git afterwards. + +Usage: + python split-tox-gh-actions.py + +""" + +from pathlib import Path import configparser from collections import defaultdict -from multiprocessing.sharedctypes import Value -OUT_DIR = "/Users/antonpirker/code/sentry-python/.github/workflows/" -TOX_FILE = "/Users/antonpirker/code/sentry-python/tox.ini" -TEMPLATE_FILE = ( - "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-yaml.txt" -) -TEMPLATE_FILE_SERVICES = "/Users/antonpirker/code/sentry-python/scripts/split-tox-gh-actions/ci-yaml-services.txt" +OUT_DIR = Path(__file__).resolve().parent.parent.parent / ".github" / "workflows" +TOX_FILE = Path(__file__).resolve().parent.parent.parent / "tox.ini" +TEMPLATE_DIR = Path(__file__).resolve().parent +TEMPLATE_FILE = TEMPLATE_DIR / "ci-yaml.txt" +TEMPLATE_FILE_SERVICES = TEMPLATE_DIR / "ci-yaml-services.txt" FRAMEWORKS_NEEDING_POSTGRES = ["django"] @@ -30,9 +42,9 @@ def write_yaml_file( out = "" for template_line in template: if template_line == "{{ strategy_matrix }}\n": - m = MATRIX_DEFINITION py_versions = [f'"{py.replace("py", "")}"' for py in python_versions] + m = MATRIX_DEFINITION m = m.replace("{{ framework }}", current_framework).replace( "{{ python-version }}", ",".join(py_versions) ) @@ -48,7 +60,7 @@ def write_yaml_file( out += template_line.replace("{{ framework }}", current_framework) # write rendered template - outfile_name = OUT_DIR + f"test-integration-{current_framework}.yml" + outfile_name = OUT_DIR / f"test-integration-{current_framework}.yml" print(f"Writing {outfile_name}") f = open(outfile_name, "w") f.writelines(out) @@ -98,11 +110,7 @@ def main(): print(f"ERROR reading line {line}") for framework in python_versions: - write_yaml_file( - template, - framework, - python_versions[framework], - ) + write_yaml_file(template, framework, python_versions[framework]) print("All done. Have a nice day!") From c30751942f5036e9c9a1b91267085e0b8214cb18 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Thu, 15 Sep 2022 17:20:41 +0200 Subject: [PATCH 67/78] Fixed invocation of common tests --- .github/workflows/test-common.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index 2978297c1f..d4c665411a 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -66,8 +66,7 @@ jobs: set -x # print commands that are executed coverage erase - envname=$(python ./scripts/tox_env_name.py ${{ matrix.python-version }} "" "") - ./scripts/runtox.sh "$envname$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations + ./scripts/runtox.sh "${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file From b94ebd23b7931440d8c509cae853d0ccd9e9ae17 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 16 Sep 2022 10:56:15 +0200 Subject: [PATCH 68/78] Fixed regex to run common tests --- .github/workflows/test-common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index d4c665411a..4fcdebc636 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -66,7 +66,7 @@ jobs: set -x # print commands that are executed coverage erase - ./scripts/runtox.sh "${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations + ./scripts/runtox.sh "^${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file From 1b77ffd0799b9db271e906dee1cbc5a4620f2e4f Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 16 Sep 2022 11:02:24 +0200 Subject: [PATCH 69/78] Fixed calling the common tests again. --- .github/workflows/test-common.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-common.yml b/.github/workflows/test-common.yml index 4fcdebc636..2c8964d4ae 100644 --- a/.github/workflows/test-common.yml +++ b/.github/workflows/test-common.yml @@ -66,7 +66,7 @@ jobs: set -x # print commands that are executed coverage erase - ./scripts/runtox.sh "^${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations + ./scripts/runtox.sh "py${{ matrix.python-version }}$" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch --ignore=tests/integrations coverage combine .coverage* coverage xml -i codecov --file coverage.xml \ No newline at end of file From 6d1bd770538096fc72120730d7c6518e885d524b Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 16 Sep 2022 14:20:06 +0200 Subject: [PATCH 70/78] Cleanup --- tox.ini | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tox.ini b/tox.ini index 5938d391ef..dd30c2299b 100644 --- a/tox.ini +++ b/tox.ini @@ -3,17 +3,6 @@ # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. -[gh] -python = - 2.7 = py2.7 - 3.4 = py3.4 - 3.5 = py3.5 - 3.6 = py3.6 - 3.7 = py3.7 - 3.8 = py3.8 - 3.9 = py3.9, - 3.10 = py3.10 - [tox] toxworkdir=~/toxworkdir/.tox temp_dir=~/toxworkdir/.tmp From d07a213ba0ad07045f7642480749ad4714f52105 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 11:04:33 +0200 Subject: [PATCH 71/78] Create ram dir in default location. --- scripts/split-tox-gh-actions/ci-yaml.txt | 4 ++-- tox.ini | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/split-tox-gh-actions/ci-yaml.txt b/scripts/split-tox-gh-actions/ci-yaml.txt index 7dfb8ba093..a2fc4a0354 100644 --- a/scripts/split-tox-gh-actions/ci-yaml.txt +++ b/scripts/split-tox-gh-actions/ci-yaml.txt @@ -48,8 +48,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/tox.ini b/tox.ini index dd30c2299b..e80ad65b4d 100644 --- a/tox.ini +++ b/tox.ini @@ -4,9 +4,6 @@ # and then run "tox" from this directory. [tox] -toxworkdir=~/toxworkdir/.tox -temp_dir=~/toxworkdir/.tmp - envlist = # === Core === py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10} From b12406d41a0319c6d4cd1c76f836bfe4df42f485 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 11:30:03 +0200 Subject: [PATCH 72/78] Reworded test requirements --- test-requirements.txt | 11 +++++------ tox.ini | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 746b10b9b4..e7a3dcbf88 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,15 +1,14 @@ +pip # always use newest pip +mock # for testing under python < 3.3 pytest<7 +pytest-cov==2.8.1 pytest-forked<=1.4.0 +pytest-localserver==0.5.0 pytest-watch==4.2.0 tox==3.7.0 Werkzeug<2.1.0 -pytest-localserver==0.5.0 -pytest-cov==2.8.1 jsonschema==3.2.0 pyrsistent==0.16.0 # TODO(py3): 0.17.0 requires python3, see https://github.com/tobgu/pyrsistent/issues/205 -mock # for testing under python < 3.3 - gevent - executing -asttokens +asttokens \ No newline at end of file diff --git a/tox.ini b/tox.ini index e80ad65b4d..179b3c6b46 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ [tox] envlist = # === Core === - py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10} + py{2.7,3.4,3.5,3.6,3.7,3.8,3.9,3.10} # === Integrations === # General format is {pythonversion}-{integrationname}-{frameworkversion} From 7d1266022a4cd287f821f7ae082642ca30f8976a Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 15:02:22 +0200 Subject: [PATCH 73/78] Fail CI when tox.ini and yaml files are out of sync --- .github/workflows/ci.yml | 14 ++++++ .../split-tox-gh-actions.py | 47 ++++++++++++++++--- 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b1dbb35a9..ff9ca8c643 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,20 @@ jobs: pip install tox tox -e linters + check-ci-config: + name: Check CI config + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - run: | + python scripts/split-tox-gh-actions/split-tox-gh-actions.py --fail-on-changes + build_lambda_layer: name: Build Package runs-on: ubuntu-latest 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 5205e29ca1..6e0018d0ff 100755 --- a/scripts/split-tox-gh-actions/split-tox-gh-actions.py +++ b/scripts/split-tox-gh-actions/split-tox-gh-actions.py @@ -4,17 +4,23 @@ This way each framework 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 several configuration files, that need to be commited to Git afterwards. +This will generate/update several configuration files, that need to be commited to Git afterwards. +Whenever tox.ini is changed, this script needs to be run. Usage: - python split-tox-gh-actions.py + python split-tox-gh-actions.py [--fail-on-changes] +If the parameter `--fail-on-changes` is set, the script will raise a RuntimeError in case the yaml +files have been changed by the scripts execution. This is used in CI to check if the yaml files +represent the current tox.ini file. (And if not the CI run fails.) """ -from pathlib import Path import configparser +import hashlib +import sys from collections import defaultdict - +from glob import glob +from pathlib import Path OUT_DIR = Path(__file__).resolve().parent.parent.parent / ".github" / "workflows" TOX_FILE = Path(__file__).resolve().parent.parent.parent / "tox.ini" @@ -67,8 +73,23 @@ def write_yaml_file( f.close() -def main(): +def get_yaml_files_hash(): + """Calculate a hash of all the yaml configuration files""" + + hasher = hashlib.md5() + path_pattern = (OUT_DIR / f"test-integration-*.yml").as_posix() + for file in glob(path_pattern): + with open(file, "rb") as f: + buf = f.read() + hasher.update(buf) + + return hasher.hexdigest() + + +def main(fail_on_changes): """Create one CI workflow for each framework defined in tox.ini""" + if fail_on_changes: + old_hash = get_yaml_files_hash() print("Read GitHub actions config file template") f = open(TEMPLATE_FILE, "r") @@ -112,8 +133,22 @@ def main(): for framework in python_versions: write_yaml_file(template, framework, python_versions[framework]) + if fail_on_changes: + new_hash = get_yaml_files_hash() + + if old_hash != new_hash: + raise RuntimeError( + "The yaml configuration files have changed. This means that tox.ini has changed " + "but the changes have not been propagated to the GitHub actions config files. " + "Please run `python scripts/split-tox-gh-actions/split-tox-gh-actions.py` " + "locally and commit the changes of the yaml configuration files to continue. " + ) + print("All done. Have a nice day!") if __name__ == "__main__": - main() + fail_on_changes = ( + True if len(sys.argv) == 2 and sys.argv[1] == "--fail-on-changes" else False + ) + main(fail_on_changes) From 670b04a7647da90f519f5103c789d0c28583d5b8 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 15:07:36 +0200 Subject: [PATCH 74/78] Updated github actions config --- .github/workflows/test-integration-aiohttp.yml | 4 ++-- .github/workflows/test-integration-asgi.yml | 4 ++-- .github/workflows/test-integration-aws_lambda.yml | 4 ++-- .github/workflows/test-integration-beam.yml | 4 ++-- .github/workflows/test-integration-boto3.yml | 4 ++-- .github/workflows/test-integration-bottle.yml | 4 ++-- .github/workflows/test-integration-celery.yml | 4 ++-- .github/workflows/test-integration-chalice.yml | 4 ++-- .github/workflows/test-integration-django.yml | 4 ++-- .github/workflows/test-integration-falcon.yml | 4 ++-- .github/workflows/test-integration-fastapi.yml | 4 ++-- .github/workflows/test-integration-flask.yml | 4 ++-- .github/workflows/test-integration-gcp.yml | 4 ++-- .github/workflows/test-integration-httpx.yml | 4 ++-- .github/workflows/test-integration-pure_eval.yml | 4 ++-- .github/workflows/test-integration-pyramid.yml | 4 ++-- .github/workflows/test-integration-quart.yml | 4 ++-- .github/workflows/test-integration-redis.yml | 4 ++-- .github/workflows/test-integration-rediscluster.yml | 4 ++-- .github/workflows/test-integration-requests.yml | 4 ++-- .github/workflows/test-integration-rq.yml | 4 ++-- .github/workflows/test-integration-sanic.yml | 4 ++-- .github/workflows/test-integration-sqlalchemy.yml | 4 ++-- .github/workflows/test-integration-starlette.yml | 4 ++-- .github/workflows/test-integration-tornado.yml | 4 ++-- .github/workflows/test-integration-trytond.yml | 4 ++-- 26 files changed, 52 insertions(+), 52 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index 5a4a476aa7..2d967d22b9 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index 7e38ea7372..ffc5414347 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 62384936e5..70afb042e8 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 6daecbdfd9..7df1e30cec 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index a8a11d2f83..067a8004f8 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index 84a35d69ca..c3bb38ed8d 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index dd5f286ea1..44c1aec527 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index 47117d01b5..a1ad7a1ef0 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index 5dc7eb50cd..c03daa842e 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -68,8 +68,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 82d22003d1..ad2c46403e 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 7fac2855bf..bf3dd5341a 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 9fc10591ff..a65c5b3e6e 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index f60a438303..554612db72 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index dd1985acfc..c503229b97 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index bed9b16d8a..26dcd2601a 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 7cbc93ff48..3d269de88a 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 2fc14912e9..d107793c18 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index 190aff1eb5..cb66e3a2a2 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 74674facff..2d67d8a748 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index eba5111191..0e874096cb 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 4c60b30ea6..764b8c2e2d 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 249903e0da..419d56fc73 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index caad993876..befa68138a 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 0481154104..48abb35dcc 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index fa32c3c5cb..de498119d5 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index a499e5454c..5be61f3ab0 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -51,8 +51,8 @@ jobs: coverage erase # create ram drive to run tests in - mkdir -p ~/toxworkdir - sudo mount -o size=180m -t tmpfs none ~/toxworkdir + mkdir -p $(pwd)/.tox + sudo mount -o size=180m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* From cc6f8d335651e2580f17fca1f1dd44b9b2f6da2e Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 15:21:39 +0200 Subject: [PATCH 75/78] Made ram drive bigger, because we run in parallel now --- .github/workflows/test-integration-aiohttp.yml | 2 +- .github/workflows/test-integration-asgi.yml | 2 +- .github/workflows/test-integration-aws_lambda.yml | 2 +- .github/workflows/test-integration-beam.yml | 2 +- .github/workflows/test-integration-boto3.yml | 2 +- .github/workflows/test-integration-bottle.yml | 2 +- .github/workflows/test-integration-celery.yml | 2 +- .github/workflows/test-integration-chalice.yml | 2 +- .github/workflows/test-integration-django.yml | 2 +- .github/workflows/test-integration-falcon.yml | 2 +- .github/workflows/test-integration-fastapi.yml | 2 +- .github/workflows/test-integration-flask.yml | 2 +- .github/workflows/test-integration-gcp.yml | 2 +- .github/workflows/test-integration-httpx.yml | 2 +- .github/workflows/test-integration-pure_eval.yml | 2 +- .github/workflows/test-integration-pyramid.yml | 2 +- .github/workflows/test-integration-quart.yml | 2 +- .github/workflows/test-integration-redis.yml | 2 +- .github/workflows/test-integration-rediscluster.yml | 2 +- .github/workflows/test-integration-requests.yml | 2 +- .github/workflows/test-integration-rq.yml | 2 +- .github/workflows/test-integration-sanic.yml | 2 +- .github/workflows/test-integration-sqlalchemy.yml | 2 +- .github/workflows/test-integration-starlette.yml | 2 +- .github/workflows/test-integration-tornado.yml | 2 +- .github/workflows/test-integration-trytond.yml | 2 +- scripts/split-tox-gh-actions/ci-yaml.txt | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index 2d967d22b9..7fd6a2a778 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index ffc5414347..d6eb4eaf94 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 70afb042e8..1915b688e3 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 7df1e30cec..2e81aeb309 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 067a8004f8..76a01f9829 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index c3bb38ed8d..770d07e46d 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 44c1aec527..79c038fead 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index a1ad7a1ef0..a64e2ea232 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index c03daa842e..fe05351518 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -69,7 +69,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index ad2c46403e..858632de22 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index bf3dd5341a..236a314985 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index a65c5b3e6e..2dcc0476b0 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index 554612db72..a74ab3bed0 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index c503229b97..d7000d2676 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index 26dcd2601a..c02fb736fe 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index 3d269de88a..feaad0fc40 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index d107793c18..6511724a38 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index cb66e3a2a2..f4f5e7eaca 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 2d67d8a748..40d2eaaa90 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index 0e874096cb..c6d3570daf 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 764b8c2e2d..08b8a7a70c 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 419d56fc73..77473cd302 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index befa68138a..ad5b85b472 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index 48abb35dcc..f6f777ee96 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index de498119d5..fda2e02206 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 5be61f3ab0..42331cbe30 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -52,7 +52,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* diff --git a/scripts/split-tox-gh-actions/ci-yaml.txt b/scripts/split-tox-gh-actions/ci-yaml.txt index a2fc4a0354..ba50d901e4 100644 --- a/scripts/split-tox-gh-actions/ci-yaml.txt +++ b/scripts/split-tox-gh-actions/ci-yaml.txt @@ -49,7 +49,7 @@ jobs: # create ram drive to run tests in mkdir -p $(pwd)/.tox - sudo mount -o size=180m -t tmpfs none $(pwd)/.tox + sudo mount -o size=400m -t tmpfs none $(pwd)/.tox ./scripts/runtox.sh "${{ matrix.python-version }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* From 5f4a03165ec7272ef9803c055ff946c5360aa7d0 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 15:26:12 +0200 Subject: [PATCH 76/78] Removed ram drive --- .github/workflows/test-integration-aiohttp.yml | 4 ---- .github/workflows/test-integration-asgi.yml | 4 ---- .github/workflows/test-integration-aws_lambda.yml | 4 ---- .github/workflows/test-integration-beam.yml | 4 ---- .github/workflows/test-integration-boto3.yml | 4 ---- .github/workflows/test-integration-bottle.yml | 4 ---- .github/workflows/test-integration-celery.yml | 4 ---- .github/workflows/test-integration-chalice.yml | 4 ---- .github/workflows/test-integration-django.yml | 4 ---- .github/workflows/test-integration-falcon.yml | 4 ---- .github/workflows/test-integration-fastapi.yml | 4 ---- .github/workflows/test-integration-flask.yml | 4 ---- .github/workflows/test-integration-gcp.yml | 4 ---- .github/workflows/test-integration-httpx.yml | 4 ---- .github/workflows/test-integration-pure_eval.yml | 4 ---- .github/workflows/test-integration-pyramid.yml | 4 ---- .github/workflows/test-integration-quart.yml | 4 ---- .github/workflows/test-integration-redis.yml | 4 ---- .github/workflows/test-integration-rediscluster.yml | 4 ---- .github/workflows/test-integration-requests.yml | 4 ---- .github/workflows/test-integration-rq.yml | 4 ---- .github/workflows/test-integration-sanic.yml | 4 ---- .github/workflows/test-integration-sqlalchemy.yml | 4 ---- .github/workflows/test-integration-starlette.yml | 4 ---- .github/workflows/test-integration-tornado.yml | 4 ---- .github/workflows/test-integration-trytond.yml | 4 ---- scripts/split-tox-gh-actions/ci-yaml.txt | 4 ---- 27 files changed, 108 deletions(-) diff --git a/.github/workflows/test-integration-aiohttp.yml b/.github/workflows/test-integration-aiohttp.yml index 7fd6a2a778..1bd1e69cb2 100644 --- a/.github/workflows/test-integration-aiohttp.yml +++ b/.github/workflows/test-integration-aiohttp.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-aiohttp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-asgi.yml b/.github/workflows/test-integration-asgi.yml index d6eb4eaf94..49edcf0984 100644 --- a/.github/workflows/test-integration-asgi.yml +++ b/.github/workflows/test-integration-asgi.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-asgi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-aws_lambda.yml b/.github/workflows/test-integration-aws_lambda.yml index 1915b688e3..551e50df35 100644 --- a/.github/workflows/test-integration-aws_lambda.yml +++ b/.github/workflows/test-integration-aws_lambda.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-aws_lambda" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-beam.yml b/.github/workflows/test-integration-beam.yml index 2e81aeb309..4f5d2c721b 100644 --- a/.github/workflows/test-integration-beam.yml +++ b/.github/workflows/test-integration-beam.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-boto3.yml b/.github/workflows/test-integration-boto3.yml index 76a01f9829..f82a0fdf2c 100644 --- a/.github/workflows/test-integration-boto3.yml +++ b/.github/workflows/test-integration-boto3.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-bottle.yml b/.github/workflows/test-integration-bottle.yml index 770d07e46d..bf0f4e0a15 100644 --- a/.github/workflows/test-integration-bottle.yml +++ b/.github/workflows/test-integration-bottle.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-bottle" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-celery.yml b/.github/workflows/test-integration-celery.yml index 79c038fead..7eee993eb4 100644 --- a/.github/workflows/test-integration-celery.yml +++ b/.github/workflows/test-integration-celery.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-chalice.yml b/.github/workflows/test-integration-chalice.yml index a64e2ea232..74a6a7f7f8 100644 --- a/.github/workflows/test-integration-chalice.yml +++ b/.github/workflows/test-integration-chalice.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-django.yml b/.github/workflows/test-integration-django.yml index fe05351518..2f8a4c6a0d 100644 --- a/.github/workflows/test-integration-django.yml +++ b/.github/workflows/test-integration-django.yml @@ -67,10 +67,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-django" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-falcon.yml b/.github/workflows/test-integration-falcon.yml index 858632de22..398067c962 100644 --- a/.github/workflows/test-integration-falcon.yml +++ b/.github/workflows/test-integration-falcon.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-falcon" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-fastapi.yml b/.github/workflows/test-integration-fastapi.yml index 236a314985..5337c53cd4 100644 --- a/.github/workflows/test-integration-fastapi.yml +++ b/.github/workflows/test-integration-fastapi.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-fastapi" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-flask.yml b/.github/workflows/test-integration-flask.yml index 2dcc0476b0..ed0066bc88 100644 --- a/.github/workflows/test-integration-flask.yml +++ b/.github/workflows/test-integration-flask.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-flask" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-gcp.yml b/.github/workflows/test-integration-gcp.yml index a74ab3bed0..e7aa1bd3ea 100644 --- a/.github/workflows/test-integration-gcp.yml +++ b/.github/workflows/test-integration-gcp.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-httpx.yml b/.github/workflows/test-integration-httpx.yml index d7000d2676..f43fce229a 100644 --- a/.github/workflows/test-integration-httpx.yml +++ b/.github/workflows/test-integration-httpx.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-pure_eval.yml b/.github/workflows/test-integration-pure_eval.yml index c02fb736fe..f3d407062f 100644 --- a/.github/workflows/test-integration-pure_eval.yml +++ b/.github/workflows/test-integration-pure_eval.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-pure_eval" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-pyramid.yml b/.github/workflows/test-integration-pyramid.yml index feaad0fc40..990d5acdbd 100644 --- a/.github/workflows/test-integration-pyramid.yml +++ b/.github/workflows/test-integration-pyramid.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-pyramid" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-quart.yml b/.github/workflows/test-integration-quart.yml index 6511724a38..fbea7be0d9 100644 --- a/.github/workflows/test-integration-quart.yml +++ b/.github/workflows/test-integration-quart.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-quart" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-redis.yml b/.github/workflows/test-integration-redis.yml index f4f5e7eaca..78159108c3 100644 --- a/.github/workflows/test-integration-redis.yml +++ b/.github/workflows/test-integration-redis.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-rediscluster.yml b/.github/workflows/test-integration-rediscluster.yml index 40d2eaaa90..b1c2824ba2 100644 --- a/.github/workflows/test-integration-rediscluster.yml +++ b/.github/workflows/test-integration-rediscluster.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-requests.yml b/.github/workflows/test-integration-requests.yml index c6d3570daf..146d43f3c1 100644 --- a/.github/workflows/test-integration-requests.yml +++ b/.github/workflows/test-integration-requests.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-rq.yml b/.github/workflows/test-integration-rq.yml index 08b8a7a70c..a8b209061f 100644 --- a/.github/workflows/test-integration-rq.yml +++ b/.github/workflows/test-integration-rq.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-sanic.yml b/.github/workflows/test-integration-sanic.yml index 77473cd302..1263982408 100644 --- a/.github/workflows/test-integration-sanic.yml +++ b/.github/workflows/test-integration-sanic.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-sanic" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-sqlalchemy.yml b/.github/workflows/test-integration-sqlalchemy.yml index ad5b85b472..c916bafaa5 100644 --- a/.github/workflows/test-integration-sqlalchemy.yml +++ b/.github/workflows/test-integration-sqlalchemy.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-starlette.yml b/.github/workflows/test-integration-starlette.yml index f6f777ee96..8494181ee8 100644 --- a/.github/workflows/test-integration-starlette.yml +++ b/.github/workflows/test-integration-starlette.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-starlette" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-tornado.yml b/.github/workflows/test-integration-tornado.yml index fda2e02206..c81236a94d 100644 --- a/.github/workflows/test-integration-tornado.yml +++ b/.github/workflows/test-integration-tornado.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-tornado" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/.github/workflows/test-integration-trytond.yml b/.github/workflows/test-integration-trytond.yml index 42331cbe30..2673df4379 100644 --- a/.github/workflows/test-integration-trytond.yml +++ b/.github/workflows/test-integration-trytond.yml @@ -50,10 +50,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-trytond" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i diff --git a/scripts/split-tox-gh-actions/ci-yaml.txt b/scripts/split-tox-gh-actions/ci-yaml.txt index ba50d901e4..bce51da521 100644 --- a/scripts/split-tox-gh-actions/ci-yaml.txt +++ b/scripts/split-tox-gh-actions/ci-yaml.txt @@ -47,10 +47,6 @@ jobs: set -x # print commands that are executed coverage erase - # create ram drive to run tests in - mkdir -p $(pwd)/.tox - sudo mount -o size=400m -t tmpfs none $(pwd)/.tox - ./scripts/runtox.sh "${{ matrix.python-version }}-{{ framework }}" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch coverage combine .coverage* coverage xml -i From 794af55694ef1f76227b3cb73594e9a5eba535bf Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 15:40:36 +0200 Subject: [PATCH 77/78] try to fix gevent install on python 2.7 --- test-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index e7a3dcbf88..a813156826 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,6 +9,6 @@ tox==3.7.0 Werkzeug<2.1.0 jsonschema==3.2.0 pyrsistent==0.16.0 # TODO(py3): 0.17.0 requires python3, see https://github.com/tobgu/pyrsistent/issues/205 -gevent +gevent --no-binary :all: executing asttokens \ No newline at end of file From f7a013af6b1daf155d416532e5493ad2ba6247c6 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Mon, 19 Sep 2022 15:50:03 +0200 Subject: [PATCH 78/78] Removed gevent from general test requirements --- test-requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index a813156826..74332d9629 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,6 +9,5 @@ tox==3.7.0 Werkzeug<2.1.0 jsonschema==3.2.0 pyrsistent==0.16.0 # TODO(py3): 0.17.0 requires python3, see https://github.com/tobgu/pyrsistent/issues/205 -gevent --no-binary :all: executing asttokens \ No newline at end of file