{"language": "Python", "id": 64, "repo_owner": "encode", "repo_name": "uvicorn", "head_branch": "dependabot/pip/python-packages-6ae2cf5cd5", "workflow_name": "Test Suite", "workflow_filename": "test-suite.yml", "workflow_path": ".github/workflows/test-suite.yml", "contributor": "encode", "sha_fail": "66e3eac43e68ce4632670d4addd75cfc4c8de0a1", "sha_success": "b5084dc6bf7b04b9f06283baab794cdafcfe0931", "workflow": "---\nname: Test Suite\n\non:\n push:\n branches: [\"master\"]\n pull_request:\n branches: [\"master\"]\n\njobs:\n tests:\n name: \"Python ${{ matrix.python-version }} ${{ matrix.os }}\"\n runs-on: \"${{ matrix.os }}\"\n strategy:\n matrix:\n python-version: [\"3.8\", \"3.9\", \"3.10\", \"3.11\", \"3.12\"]\n os: [windows-latest, ubuntu-latest, macos-latest]\n steps:\n - uses: \"actions/checkout@v4\"\n - uses: \"actions/setup-python@v5\"\n with:\n python-version: \"${{ matrix.python-version }}\"\n - name: \"Install dependencies\"\n run: \"scripts/install\"\n shell: bash\n - name: \"Run linting checks\"\n run: \"scripts/check\"\n shell: bash\n if: \"${{ matrix.os == 'ubuntu-latest'}}\"\n - name: \"Build package & docs\"\n run: \"scripts/build\"\n shell: bash\n - name: \"Run tests\"\n run: \"scripts/test\"\n shell: bash\n - name: \"Enforce coverage\"\n run: \"scripts/coverage\"\n shell: bash\n", "logs": [{"step_name": "Python 3.8 ubuntu-latest/5_Run linting checks.txt", "log": "##[group]Run scripts/check\n\u001b[36;1mscripts/check\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\n+ ./scripts/sync-version\n+ ruff format --check --diff uvicorn tests\n66 files already formatted\n+ mypy uvicorn tests\ntests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type \"Type[WSGIMiddleware]\"; expected \"Type[object]\" [list-item]\nFound 1 error in 1 file (checked 66 source files)\n##[error]Process completed with exit code 1.\n"}, {"step_name": "Python 3.9 ubuntu-latest/5_Run linting checks.txt", "log": "##[group]Run scripts/check\n\u001b[36;1mscripts/check\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n+ ./scripts/sync-version\n+ ruff format --check --diff uvicorn tests\n66 files already formatted\n+ mypy uvicorn tests\ntests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type \"type[WSGIMiddleware]\"; expected \"type[object]\" [list-item]\nFound 1 error in 1 file (checked 66 source files)\n##[error]Process completed with exit code 1.\n"}, {"step_name": "Python 3.10 ubuntu-latest/5_Run linting checks.txt", "log": "##[group]Run scripts/check\n\u001b[36;1mscripts/check\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib\n##[endgroup]\n+ ./scripts/sync-version\n+ ruff format --check --diff uvicorn tests\n66 files already formatted\n+ mypy uvicorn tests\ntests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type \"type[WSGIMiddleware]\"; expected \"type[object]\" [list-item]\nFound 1 error in 1 file (checked 66 source files)\n##[error]Process completed with exit code 1.\n"}, {"step_name": "Python 3.11 ubuntu-latest/5_Run linting checks.txt", "log": "##[group]Run scripts/check\n\u001b[36;1mscripts/check\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib\n##[endgroup]\n+ ./scripts/sync-version\n+ ruff format --check --diff uvicorn tests\n66 files already formatted\n+ mypy uvicorn tests\ntests/middleware/test_wsgi.py:53: error: List item 1 has incompatible type \"type[WSGIMiddleware]\"; expected \"type[object]\" [list-item]\nFound 1 error in 1 file (checked 66 source files)\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/tests/middleware/test_wsgi.py b/tests/middleware/test_wsgi.py\nindex 34730ec..00ff40c 100644\n--- a/tests/middleware/test_wsgi.py\n+++ b/tests/middleware/test_wsgi.py\n@@ -50,7 +50,7 @@ def return_exc_info(environ: Environ, start_response: StartResponse) -> List[byt\n return [output]\n \n \n-@pytest.fixture(params=[wsgi._WSGIMiddleware, a2wsgi.WSGIMiddleware])\n+@pytest.fixture(params=[wsgi._WSGIMiddleware, a2wsgi.WSGIMiddleware]) # type: ignore\n def wsgi_middleware(request: pytest.FixtureRequest) -> Callable:\n return request.param\n \n", "difficulty": 2, "changed_files": ["tests/middleware/test_wsgi.py"], "commit_link": "https://github.com/encode/uvicorn/tree/66e3eac43e68ce4632670d4addd75cfc4c8de0a1"}