Source: sqlmodel
Version: 0.0.6-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220212 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> tests/test_tutorial/test_fastapi/test_update/test_tutorial001.py:248: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/requests/sessions.py:590: in post
>     return self.request('POST', url, data=data, json=json, **kwargs)
> /usr/lib/python3/dist-packages/starlette/testclient.py:474: in request
>     return super().request(
> /usr/lib/python3/dist-packages/requests/sessions.py:542: in request
>     resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:655: in send
>     r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/starlette/testclient.py:268: in send
>     raise exc
> /usr/lib/python3/dist-packages/starlette/testclient.py:265: in send
>     portal.call(self.app, scope, receive, send)
> /usr/lib/python3/dist-packages/anyio/from_thread.py:240: in call
>     return cast(T_Retval, self.start_task_soon(func, *args).result())
> /usr/lib/python3.9/concurrent/futures/_base.py:446: in result
>     return self.__get_result()
> /usr/lib/python3.9/concurrent/futures/_base.py:391: in __get_result
>     raise self._exception
> /usr/lib/python3/dist-packages/anyio/from_thread.py:187: in _call_func
>     retval = await retval
> /usr/lib/python3/dist-packages/fastapi/applications.py:212: in __call__
>     await super().__call__(scope, receive, send)
> /usr/lib/python3/dist-packages/starlette/applications.py:119: in __call__
>     await self.middleware_stack(scope, receive, send)
> /usr/lib/python3/dist-packages/starlette/middleware/errors.py:181: in __call__
>     raise exc
> /usr/lib/python3/dist-packages/starlette/middleware/errors.py:159: in __call__
>     await self.app(scope, receive, _send)
> /usr/lib/python3/dist-packages/starlette/exceptions.py:87: in __call__
>     raise exc
> /usr/lib/python3/dist-packages/starlette/exceptions.py:76: in __call__
>     await self.app(scope, receive, sender)
> /usr/lib/python3/dist-packages/starlette/routing.py:659: in __call__
>     await route.handle(scope, receive, send)
> /usr/lib/python3/dist-packages/starlette/routing.py:259: in handle
>     await self.app(scope, receive, send)
> /usr/lib/python3/dist-packages/starlette/routing.py:61: in app
>     response = await func(request)
> /usr/lib/python3/dist-packages/fastapi/routing.py:216: in app
>     solved_result = await solve_dependencies(
> /usr/lib/python3/dist-packages/fastapi/dependencies/utils.py:465: in 
> solve_dependencies
>     response = response or Response(
> /usr/lib/python3/dist-packages/starlette/responses.py:50: in __init__
>     self.init_headers(headers)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <starlette.responses.Response object at 0x7fba1e52fcd0>, headers = None
> 
>     def init_headers(self, headers: typing.Mapping[str, str] = None) -> None:
>         if headers is None:
>             raw_headers: typing.List[typing.Tuple[bytes, bytes]] = []
>             populate_content_length = True
>             populate_content_type = True
>         else:
>             raw_headers = [
>                 (k.lower().encode("latin-1"), v.encode("latin-1"))
>                 for k, v in headers.items()
>             ]
>             keys = [h[0] for h in raw_headers]
>             populate_content_length = b"content-length" not in keys
>             populate_content_type = b"content-type" not in keys
>     
>         body = getattr(self, "body", None)
>         if (
>             body is not None
>             and populate_content_length
> >           and not (self.status_code < 200 or self.status_code in (204, 304))
>         ):
> E       TypeError: '<' not supported between instances of 'NoneType' and 'int'
> 
> /usr/lib/python3/dist-packages/starlette/responses.py:77: TypeError
> =============================== warnings summary 
> ===============================
> tests/test_advanced/test_decimal/test_tutorial001.py::test_tutorial
>   /<<PKGBUILDDIR>>/sqlmodel/orm/session.py:60: SAWarning: Dialect 
> sqlite+pysqlite does *not* support Decimal objects natively, and SQLAlchemy 
> must convert from floating point - rounding errors and other issues may 
> occur. Please consider storing Decimal numbers as strings or integers on this 
> platform for lossless storage.
>     results = super().execute(
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info 
> ============================
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_create_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_create_hero_incomplete
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_create_hero_invalid
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_read_heroes
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_read_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_update_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main.py::test_delete_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_001.py::test_create_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_002.py::test_create_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_003.py::test_create_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_004.py::test_create_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_005.py::test_create_hero
> FAILED 
> docs_src/tutorial/fastapi/app_testing/tutorial001/test_main_006.py::test_create_hero
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests002.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests003.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests004.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests005.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests006.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_create_hero
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_create_hero_incomplete
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_create_hero_invalid
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_read_heroes
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_read_hero
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_update_hero
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_delete_hero
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_read_hero_not_found
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_update_hero_not_found
> FAILED 
> tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_delete_hero_not_found
> FAILED 
> tests/test_tutorial/test_fastapi/test_delete/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_limit_and_offset/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_multiple_models/test_tutorial002.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_read_one/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_relationships/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_response_model/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_session_with_dependency/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_simple_hero_api/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_teams/test_tutorial001.py::test_tutorial
> FAILED 
> tests/test_tutorial/test_fastapi/test_update/test_tutorial001.py::test_tutorial
> ============ 40 failed, 71 passed, 3 deselected, 1 warning in 6.31s 
> ============
> E: pybuild pybuild:367: test: plugin custom failed with: exit code=1: 
> PYTHONPATH=/<<PKGBUILDDIR>> python3.9 -m pytest -k 'not 
> test_create_db_and_table' 
>       rm -fr -- /tmp/dh-xdg-rundir-MN7TNYme
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.10 
> 3.9" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/02/12/sqlmodel_0.0.6-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to