-
Notifications
You must be signed in to change notification settings - Fork 644
[1.x] Fix tests #3341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.x] Fix tests #3341
Changes from all commits
ee1d217
c24f5c0
f406ba4
2fba57c
da7ee69
ff688cf
80eb145
062942d
4cf8e05
f52c9e3
6a38010
dbb0e2b
59dccb0
b1a22fc
bbdb977
e5b03b3
01b98a2
d5e34f3
1f1256c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,8 @@ jobs: | |
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| env: | ||
| PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" | ||
|
Comment on lines
+39
to
+40
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the purpose of adding this line?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - name: Setup Test Env | ||
| run: | | ||
| pip install coverage "tox>=3,<4" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,62 +18,6 @@ env: | |
| CACHED_BUILD_PATHS: | | ||
| ${{ github.workspace }}/dist-serverless | ||
| jobs: | ||
| test-data_processing-latest: | ||
| name: Data Processing (latest) | ||
| timeout-minutes: 30 | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.5","3.7","3.8","3.9","3.11","3.12"] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we keep testing any 1.x changes on these Python versions to ensure we remain compatible?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This whole step should actually not be there anymore at all -- it's testing But to answer more generally -- the goal is to get rid of all the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, missed some stuff: 1f1256c Fixed now. |
||
| # python3.6 reached EOL and is no longer being supported on | ||
| # new versions of hosted runners on Github Actions | ||
| # ubuntu-20.04 is the last version that supported python3.6 | ||
| # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 | ||
| os: [ubuntu-20.04] | ||
| steps: | ||
| - uses: actions/checkout@v4.1.1 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Setup Test Env | ||
| run: | | ||
| pip install coverage "tox>=3,<4" | ||
| - name: Erase coverage | ||
| run: | | ||
| coverage erase | ||
| - name: Test arq latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-arq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test beam latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-beam-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test celery latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-celery-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test huey latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test openai latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test rq latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-rq-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Generate coverage XML | ||
| run: | | ||
| coverage combine .coverage* | ||
| coverage xml -i | ||
| - uses: codecov/codecov-action@v4 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| files: coverage.xml | ||
| test-data_processing-pinned: | ||
| name: Data Processing (pinned) | ||
| timeout-minutes: 30 | ||
|
|
@@ -92,6 +36,8 @@ jobs: | |
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| env: | ||
| PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" | ||
| - name: Setup Test Env | ||
| run: | | ||
| pip install coverage "tox>=3,<4" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,62 +18,14 @@ env: | |
| CACHED_BUILD_PATHS: | | ||
| ${{ github.workspace }}/dist-serverless | ||
| jobs: | ||
| test-graphql-latest: | ||
| name: GraphQL (latest) | ||
| timeout-minutes: 30 | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.7","3.8","3.11","3.12"] | ||
| # python3.6 reached EOL and is no longer being supported on | ||
| # new versions of hosted runners on Github Actions | ||
| # ubuntu-20.04 is the last version that supported python3.6 | ||
| # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877 | ||
| os: [ubuntu-20.04] | ||
| steps: | ||
| - uses: actions/checkout@v4.1.1 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Setup Test Env | ||
| run: | | ||
| pip install coverage "tox>=3,<4" | ||
| - name: Erase coverage | ||
| run: | | ||
| coverage erase | ||
| - name: Test ariadne latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test gql latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-gql-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test graphene latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-graphene-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Test strawberry latest | ||
| run: | | ||
| set -x # print commands that are executed | ||
| ./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
| - name: Generate coverage XML | ||
| run: | | ||
| coverage combine .coverage* | ||
| coverage xml -i | ||
| - uses: codecov/codecov-action@v4 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| files: coverage.xml | ||
| test-graphql-pinned: | ||
| name: GraphQL (pinned) | ||
| timeout-minutes: 30 | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.7","3.8","3.11"] | ||
| python-version: ["3.7","3.8","3.11","3.12"] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need to be testing additional Python versions we were not testing before on 1.x since we are not officially supporting it anymore
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The pinned and the latest tests used to be separate workflow steps before (you can see the now removed latest step above this). I've now pinned the last supported version of our GraphQL deps to whatever was "latest" at the time when our last release came out, so the tests essentially just moved to the pinned step instead. We were testing against it before as well -- just in another step. |
||
| # python3.6 reached EOL and is no longer being supported on | ||
| # new versions of hosted runners on Github Actions | ||
| # ubuntu-20.04 is the last version that supported python3.6 | ||
|
|
@@ -84,6 +36,8 @@ jobs: | |
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| env: | ||
| PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org" | ||
| - name: Setup Test Env | ||
| run: | | ||
| pip install coverage "tox>=3,<4" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this so that we don't get a certificate error in Python 3.5 GitHub actions.