{"head_branch": "master", "contributor": "getsentry", "sha_fail": "f067af29826a2f765ef43c11734ca01d255271fe", "sha_success": "53a67e0bfc6a7624d3f1a062e5269014ff3be39c", "language": "Python", "repo_owner": "getsentry", "repo_name": "sentry-python", "workflow_name": "CI", "workflow_filename": "ci.yml", "workflow_path": ".github/workflows/ci.yml", "workflow": "name: CI\n\non:\n push:\n branches:\n - master\n - release/**\n\n pull_request:\n\npermissions:\n contents: read\n\nenv:\n BUILD_CACHE_KEY: ${{ github.sha }}\n CACHED_BUILD_PATHS: |\n ${{ github.workspace }}/dist-serverless\n\njobs:\n lint:\n name: Lint Sources\n runs-on: ubuntu-latest\n timeout-minutes: 10\n\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v4\n with:\n python-version: 3.11\n\n - run: |\n pip install tox\n tox -e linters\n\n check-ci-config:\n name: Check CI config\n runs-on: ubuntu-latest\n timeout-minutes: 10\n\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v4\n with:\n python-version: 3.9\n\n - run: |\n python scripts/split-tox-gh-actions/split-tox-gh-actions.py --fail-on-changes\n\n build_lambda_layer:\n name: Build Package\n runs-on: ubuntu-latest\n timeout-minutes: 10\n\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v4\n with:\n python-version: 3.9\n - name: Setup build cache\n uses: actions/cache@v3\n id: build_cache\n with:\n path: ${{ env.CACHED_BUILD_PATHS }}\n key: ${{ env.BUILD_CACHE_KEY }}\n - name: Build Packages\n run: |\n echo \"Creating directory containing Python SDK Lambda Layer\"\n pip install virtualenv\n # This will also trigger \"make dist\" that creates the Python packages\n make aws-lambda-layer\n - name: Upload Python Packages\n uses: actions/upload-artifact@v3\n with:\n name: ${{ github.sha }}\n path: |\n dist/*\n\n docs:\n name: Build SDK API Doc\n runs-on: ubuntu-latest\n timeout-minutes: 10\n\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-python@v4\n with:\n python-version: 3.11\n\n - run: |\n pip install virtualenv\n make apidocs\n cd docs/_build && zip -r gh-pages ./\n\n - uses: actions/upload-artifact@v3.1.1\n with:\n name: ${{ github.sha }}\n path: docs/_build/gh-pages.zip\n", "logs": " Downloading virtualenv-20.24.5-py3-none-any.whl.metadata (4.5 kB)\nCollecting distlib<1,>=0.3.7 (from virtualenv>=20.24.3->tox)\n Obtaining dependency information for distlib<1,>=0.3.7 from https://files.pythonhosted.org/packages/43/a0/9ba967fdbd55293bacfc1507f58e316f740a3b231fc00e3d86dc39bc185a/distlib-0.3.7-py2.py3-none-any.whl.metadata\n Downloading distlib-0.3.7-py2.py3-none-any.whl.metadata (5.1 kB)\nDownloading tox-4.11.3-py3-none-any.whl (153 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 153.8/153.8 kB 10.9 MB/s eta 0:00:00\nDownloading cachetools-5.3.1-py3-none-any.whl (9.3 kB)\nDownloading chardet-5.2.0-py3-none-any.whl (199 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 199.4/199.4 kB 42.9 MB/s eta 0:00:00\nDownloading filelock-3.12.4-py3-none-any.whl (11 kB)\nDownloading packaging-23.2-py3-none-any.whl (53 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 53.0/53.0 kB 23.2 MB/s eta 0:00:00\nDownloading platformdirs-3.11.0-py3-none-any.whl (17 kB)\nDownloading pluggy-1.3.0-py3-none-any.whl (18 kB)\nDownloading pyproject_api-1.6.1-py3-none-any.whl (12 kB)\nDownloading virtualenv-20.24.5-py3-none-any.whl (3.7 MB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 3.7/3.7 MB 97.0 MB/s eta 0:00:00\nDownloading distlib-0.3.7-py2.py3-none-any.whl (468 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 468.9/468.9 kB 86.8 MB/s eta 0:00:00\nInstalling collected packages: distlib, pluggy, platformdirs, packaging, filelock, colorama, chardet, cachetools, virtualenv, pyproject-api, tox\nSuccessfully installed cachetools-5.3.1 chardet-5.2.0 colorama-0.4.6 distlib-0.3.7 filelock-3.12.4 packaging-23.2 platformdirs-3.11.0 pluggy-1.3.0 pyproject-api-1.6.1 tox-4.11.3 virtualenv-20.24.5\nlinters: install_deps> python -I -m pip install 'werkzeug<2.3.0' -r test-requirements.txt -r linter-requirements.txt\n.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' wheel\n.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__\n.pkg: get_requires_for_build_editable> python /opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__\n.pkg: install_requires_for_build_editable> python -I -m pip install wheel\n.pkg: freeze> python -m pip freeze --all\n.pkg: pip==23.2.1,setuptools==68.2.0,wheel==0.41.2\n.pkg: build_editable> python /opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__\nlinters: install_package_deps> python -I -m pip install certifi 'urllib3>=1.25.7; python_version <= \"3.4\"' 'urllib3>=1.26.11; python_version >= \"3.6\"' 'urllib3>=1.26.9; python_version == \"3.5\"'\nlinters: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/sentry-python/sentry-python/.tox/.tmp/package/1/sentry_sdk-1.31.0-0.editable-py2.py3-none-any.whl\nlinters: freeze> python -m pip freeze --all\nlinters: asttokens==2.4.0,attrs==23.1.0,backcall==0.2.0,black==23.9.1,certifi==2023.7.22,cffi==1.16.0,cfgv==3.4.0,charset-normalizer==3.3.0,click==8.1.7,colorama==0.4.6,coverage==7.3.2,cryptography==41.0.4,decorator==5.1.1,distlib==0.3.7,dnspython==2.4.2,docopt==0.6.2,executing==1.2.0,filelock==3.12.4,flake8==5.0.4,flake8-bugbear==23.3.12,identify==2.5.30,idna==3.4,iniconfig==2.0.0,ipdb==0.13.13,ipython==8.16.1,jedi==0.19.1,jsonschema==3.2.0,loguru==0.7.2,MarkupSafe==2.1.3,matplotlib-inline==0.1.6,mccabe==0.7.0,mypy==1.6.0,mypy-extensions==1.0.0,nodeenv==1.8.0,packaging==23.2,parso==0.8.3,pathspec==0.11.2,pep8-naming==0.13.3,pexpect==4.8.0,pickleshare==0.7.5,pip==23.2.1,platformdirs==3.11.0,pluggy==0.13.1,pre-commit==3.4.0,prompt-toolkit==3.0.39,ptyprocess==0.7.0,pure-eval==0.2.2,py==1.11.0,pycodestyle==2.9.1,pycparser==2.21,pyflakes==2.5.0,Pygments==2.16.1,pymongo==4.5.0,pyrsistent==0.16.0,PySocks==1.7.1,pytest==6.2.5,pytest-cov==2.8.1,pytest-forked==1.4.0,pytest-localserver==0.5.0,pytest-watch==4.2.0,PyYAML==6.0.1,requests==2.31.0,responses==0.23.3,sentry-sdk @ file:///home/runner/work/sentry-python/sentry-python/.tox/.tmp/package/1/sentry_sdk-1.31.0-0.editable-py2.py3-none-any.whl#sha256=fe92b2c2c5369696c1802150fa5e2816a8f75e4581830e68ddd6bd2663b9808c,setuptools==68.2.0,six==1.16.0,stack-data==0.6.3,toml==0.10.2,tox==3.7.0,traitlets==5.11.2,types-certifi==2021.10.8.3,types-pyOpenSSL==23.2.0.2,types-PyYAML==6.0.12.12,types-redis==4.6.0.7,types-setuptools==68.2.0.0,typing_extensions==4.8.0,urllib3==2.0.6,virtualenv==20.24.5,watchdog==3.0.0,wcwidth==0.2.8,Werkzeug==2.2.3,wheel==0.41.2\nlinters: commands[0]> flake8 tests sentry_sdk\nlinters: commands[1]> black --check tests sentry_sdk\nAll done! \u2728 \ud83c\udf70 \u2728\n266 files would be left unchanged.\nlinters: commands[2]> mypy sentry_sdk\nsentry_sdk/integrations/gql.py:6: error: Unused \"type: ignore\" comment, use narrower [import-not-found] instead of [import] code [unused-ignore]\nsentry_sdk/integrations/gql.py:7: error: Unused \"type: ignore\" comment, use narrower [import-not-found] instead of [import] code [unused-ignore]\nsentry_sdk/integrations/gql.py:8: error: Unused \"type: ignore\" comment, use narrower [import-not-found] instead of [import] code [unused-ignore]\nsentry_sdk/integrations/gql.py:9: error: Unused \"type: ignore\" comment, use narrower [import-not-found] instead of [import] code [unused-ignore]\nsentry_sdk/integrations/clickhouse_driver.py:33: error: Unused \"type: ignore\" comment, use narrower [import-not-found] instead of [import] code [unused-ignore]\nsentry_sdk/integrations/asyncpg.py:15: error: Unused \"type: ignore\" comment, use narrower [import-not-found] instead of [import] code [unused-ignore]\nFound 6 errors in 3 files (checked 109 source files)\nlinters: exit 1 (9.74 seconds) /home/runner/work/sentry-python/sentry-python> mypy sentry_sdk pid=2062\n.pkg: _exit> python /opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__\n linters: FAIL code 1 (46.25=setup[26.82]+cmd[5.66,4.04,9.74] seconds)\n evaluation failed :( (49.67 seconds)\n##[error]Process completed with exit code 1.\n", "diff": "diff --git a/sentry_sdk/integrations/asyncpg.py b/sentry_sdk/integrations/asyncpg.py\nindex 8262b2ef..f74b874e 100644\n--- a/sentry_sdk/integrations/asyncpg.py\n+++ b/sentry_sdk/integrations/asyncpg.py\n@@ -12,7 +12,7 @@ from sentry_sdk.tracing_utils import record_sql_queries\n from sentry_sdk.utils import parse_version, capture_internal_exceptions\n \n try:\n- import asyncpg # type: ignore[import]\n+ import asyncpg # type: ignore[import-not-found]\n \n except ImportError:\n raise DidNotEnable(\"asyncpg not installed.\")\ndiff --git a/sentry_sdk/integrations/clickhouse_driver.py b/sentry_sdk/integrations/clickhouse_driver.py\nindex 8a436022..f0955ff7 100644\n--- a/sentry_sdk/integrations/clickhouse_driver.py\n+++ b/sentry_sdk/integrations/clickhouse_driver.py\n@@ -30,7 +30,7 @@ else:\n \n \n try:\n- import clickhouse_driver # type: ignore[import]\n+ import clickhouse_driver # type: ignore[import-not-found]\n \n except ImportError:\n raise DidNotEnable(\"clickhouse-driver not installed.\")\ndiff --git a/sentry_sdk/integrations/gql.py b/sentry_sdk/integrations/gql.py\nindex efdb2fe3..79fc8d02 100644\n--- a/sentry_sdk/integrations/gql.py\n+++ b/sentry_sdk/integrations/gql.py\n@@ -3,10 +3,10 @@ from sentry_sdk.hub import Hub, _should_send_default_pii\n from sentry_sdk.integrations import DidNotEnable, Integration\n \n try:\n- import gql # type: ignore[import]\n- from graphql import print_ast, get_operation_ast, DocumentNode, VariableDefinitionNode # type: ignore[import]\n- from gql.transport import Transport, AsyncTransport # type: ignore[import]\n- from gql.transport.exceptions import TransportQueryError # type: ignore[import]\n+ import gql # type: ignore[import-not-found]\n+ from graphql import print_ast, get_operation_ast, DocumentNode, VariableDefinitionNode # type: ignore[import-not-found]\n+ from gql.transport import Transport, AsyncTransport # type: ignore[import-not-found]\n+ from gql.transport.exceptions import TransportQueryError # type: ignore[import-not-found]\n except ImportError:\n raise DidNotEnable(\"gql is not installed\")\n \n"}