Source: flask-sqlalchemy
Version: 3.0.3-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} 
> {interpreter} -m pytest -v"
> I: pybuild base:310: 
> PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-sqlalchemy/build 
> python3.12 -m pytest -v
> ImportError while loading conftest '/<<PKGBUILDDIR>>/tests/conftest.py'.
> tests/conftest.py:7: in <module>
>     import sqlalchemy as sa
> /usr/lib/python3/dist-packages/sqlalchemy/__init__.py:9: in <module>
>     from .engine import create_engine
> /usr/lib/python3/dist-packages/sqlalchemy/engine/__init__.py:18: in <module>
>     from . import events
> /usr/lib/python3/dist-packages/sqlalchemy/engine/events.py:9: in <module>
>     from .base import Engine
> /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:12: in <module>
>     from .interfaces import Connectable
> /usr/lib/python3/dist-packages/sqlalchemy/engine/interfaces.py:11: in <module>
>     from ..sql.compiler import Compiled  # noqa
> /usr/lib/python3/dist-packages/sqlalchemy/sql/__init__.py:9: in <module>
>     from .compiler import COLLECT_CARTESIAN_PRODUCTS
> /usr/lib/python3/dist-packages/sqlalchemy/sql/compiler.py:34: in <module>
>     from . import crud
> /usr/lib/python3/dist-packages/sqlalchemy/sql/crud.py:16: in <module>
>     from . import dml
> /usr/lib/python3/dist-packages/sqlalchemy/sql/dml.py:12: in <module>
>     from sqlalchemy.types import NullType
> /usr/lib/python3/dist-packages/sqlalchemy/types.py:63: in <module>
>     from .sql.sqltypes import _Binary
> /usr/lib/python3/dist-packages/sqlalchemy/sql/sqltypes.py:2042: in <module>
>     class Interval(Emulated, _AbstractInterval, TypeDecorator):
> /usr/lib/python3/dist-packages/sqlalchemy/sql/sqltypes.py:2061: in Interval
>     epoch = dt.datetime.utcfromtimestamp(0)
> E   DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated 
> and scheduled for removal in a future version. Use timezone-aware objects to 
> represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, 
> datetime.UTC).
> E: pybuild pybuild:395: test: plugin custom failed with: exit code=4: 
> PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_flask-sqlalchemy/build 
> python3.12 -m pytest -v
> I: pybuild base:310: 
> PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_flask-sqlalchemy/build 
> python3.11 -m pytest -v
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0 -- 
> /usr/bin/python3.11
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>
> configfile: pyproject.toml
> testpaths: tests
> collecting ... collected 122 items / 1 skipped
> 
> tests/test_cli.py::test_shell_context PASSED                             [  
> 0%]
> tests/test_engine.py::test_default_engine PASSED                         [  
> 1%]
> tests/test_engine.py::test_engine_per_bind PASSED                        [  
> 2%]
> tests/test_engine.py::test_config_engine_options PASSED                  [  
> 3%]
> tests/test_engine.py::test_init_engine_options PASSED                    [  
> 4%]
> tests/test_engine.py::test_config_echo PASSED                            [  
> 4%]
> tests/test_engine.py::test_url_type[sqlite://] PASSED                    [  
> 5%]
> tests/test_engine.py::test_url_type[value1] PASSED                       [  
> 6%]
> tests/test_engine.py::test_url_type[value2] PASSED                       [  
> 7%]
> tests/test_engine.py::test_url_type[value3] PASSED                       [  
> 8%]
> tests/test_engine.py::test_no_binds_error PASSED                         [  
> 9%]
> tests/test_engine.py::test_no_default_url PASSED                         [  
> 9%]
> tests/test_engine.py::test_sqlite_relative_path PASSED                   [ 
> 10%]
> tests/test_engine.py::test_sqlite_driver_level_uri PASSED                [ 
> 11%]
> tests/test_engine.py::test_sqlite_memory_defaults PASSED                 [ 
> 12%]
> tests/test_engine.py::test_mysql_defaults PASSED                         [ 
> 13%]
> tests/test_legacy_query.py::test_get_or_404 PASSED                       [ 
> 13%]
> tests/test_legacy_query.py::test_first_or_404 PASSED                     [ 
> 14%]
> tests/test_legacy_query.py::test_one_or_404 PASSED                       [ 
> 15%]
> tests/test_legacy_query.py::test_paginate PASSED                         [ 
> 16%]
> tests/test_legacy_query.py::test_default_query_class PASSED              [ 
> 17%]
> tests/test_legacy_query.py::test_custom_query_class PASSED               [ 
> 18%]
> tests/test_metadata.py::test_default_metadata PASSED                     [ 
> 18%]
> tests/test_metadata.py::test_custom_metadata PASSED                      [ 
> 19%]
> tests/test_metadata.py::test_metadata_from_custom_model PASSED           [ 
> 20%]
> tests/test_metadata.py::test_custom_metadata_overrides_custom_model PASSED [ 
> 21%]
> tests/test_metadata.py::test_metadata_per_bind PASSED                    [ 
> 22%]
> tests/test_metadata.py::test_copy_naming_convention PASSED               [ 
> 22%]
> tests/test_metadata.py::test_create_drop_all PASSED                      [ 
> 23%]
> tests/test_metadata.py::test_create_key_spec[a] PASSED                   [ 
> 24%]
> tests/test_metadata.py::test_create_key_spec[bind_key1] PASSED           [ 
> 25%]
> tests/test_metadata.py::test_reflect PASSED                              [ 
> 26%]
> tests/test_model.py::test_default_model_class PASSED                     [ 
> 27%]
> tests/test_model.py::test_custom_model_class PASSED                      [ 
> 27%]
> tests/test_model.py::test_custom_declarative_class[Model] PASSED         [ 
> 28%]
> tests/test_model.py::test_custom_declarative_class[object] PASSED        [ 
> 29%]
> tests/test_model.py::test_model_repr PASSED                              [ 
> 30%]
> tests/test_model_bind.py::test_bind_key_default PASSED                   [ 
> 31%]
> tests/test_model_bind.py::test_metadata_per_bind PASSED                  [ 
> 31%]
> tests/test_model_bind.py::test_multiple_binds_same_table_name PASSED     [ 
> 32%]
> tests/test_model_bind.py::test_inherit_parent PASSED                     [ 
> 33%]
> tests/test_model_bind.py::test_inherit_abstract_parent PASSED            [ 
> 34%]
> tests/test_model_bind.py::test_explicit_metadata PASSED                  [ 
> 35%]
> tests/test_model_bind.py::test_explicit_table PASSED                     [ 
> 36%]
> tests/test_model_name.py::test_camel_to_snake_case[CamelCase-camel_case] 
> PASSED [ 36%]
> tests/test_model_name.py::test_camel_to_snake_case[Snake_case-snake_case] 
> PASSED [ 37%]
> tests/test_model_name.py::test_camel_to_snake_case[HTMLLayout-html_layout] 
> PASSED [ 38%]
> tests/test_model_name.py::test_camel_to_snake_case[LayoutHTML-layout_html] 
> PASSED [ 39%]
> tests/test_model_name.py::test_camel_to_snake_case[HTTP2Request-http2_request]
>  PASSED [ 40%]
> tests/test_model_name.py::test_camel_to_snake_case[ShoppingCartSession-shopping_cart_session]
>  PASSED [ 40%]
> tests/test_model_name.py::test_camel_to_snake_case[ABC-abc] PASSED       [ 
> 41%]
> tests/test_model_name.py::test_camel_to_snake_case[PreABC-pre_abc] PASSED [ 
> 42%]
> tests/test_model_name.py::test_camel_to_snake_case[ABCPost-abc_post] PASSED [ 
> 43%]
> tests/test_model_name.py::test_camel_to_snake_case[PreABCPost-pre_abc_post] 
> PASSED [ 44%]
> tests/test_model_name.py::test_camel_to_snake_case[HTTP2RequestSession-http2_request_session]
>  PASSED [ 45%]
> tests/test_model_name.py::test_camel_to_snake_case[UserST4-user_st4] PASSED [ 
> 45%]
> tests/test_model_name.py::test_camel_to_snake_case[HTTP2ClientType3EncoderParametersSSE-http2_client_type3_encoder_parameters_sse]
>  PASSED [ 46%]
> tests/test_model_name.py::test_camel_to_snake_case[LONGName4TestingCamelCase2snake_caseXYZ-long_name4_testing_camel_case2snake_case_xyz]
>  PASSED [ 47%]
> tests/test_model_name.py::test_camel_to_snake_case[FooBarSSE2-foo_bar_sse2] 
> PASSED [ 48%]
> tests/test_model_name.py::test_camel_to_snake_case[AlarmMessageSS2SignalTransformer-alarm_message_ss2_signal_transformer]
>  PASSED [ 49%]
> tests/test_model_name.py::test_camel_to_snake_case[AstV2Node-ast_v2_node] 
> PASSED [ 50%]
> tests/test_model_name.py::test_camel_to_snake_case[HTTPResponseCodeXYZ-http_response_code_xyz]
>  PASSED [ 50%]
> tests/test_model_name.py::test_camel_to_snake_case[get2HTTPResponse123Code-get2_http_response123_code]
>  PASSED [ 51%]
> tests/test_model_name.py::test_name PASSED                               [ 
> 52%]
> tests/test_model_name.py::test_single_name PASSED                        [ 
> 53%]
> tests/test_model_name.py::test_joined_name PASSED                        [ 
> 54%]
> tests/test_model_name.py::test_mixin_id PASSED                           [ 
> 54%]
> tests/test_model_name.py::test_mixin_attr PASSED                         [ 
> 55%]
> tests/test_model_name.py::test_abstract_name PASSED                      [ 
> 56%]
> tests/test_model_name.py::test_complex_inheritance PASSED                [ 
> 57%]
> tests/test_model_name.py::test_manual_name PASSED                        [ 
> 58%]
> tests/test_model_name.py::test_primary_constraint PASSED                 [ 
> 59%]
> tests/test_model_name.py::test_no_access_to_class_property PASSED        [ 
> 59%]
> tests/test_model_name.py::test_metadata_has_table PASSED                 [ 
> 60%]
> tests/test_model_name.py::test_correct_error_for_no_primary_key PASSED   [ 
> 61%]
> tests/test_model_name.py::test_single_has_parent_table PASSED            [ 
> 62%]
> tests/test_pagination.py::test_first_page PASSED                         [ 
> 63%]
> tests/test_pagination.py::test_last_page PASSED                          [ 
> 63%]
> tests/test_pagination.py::test_item_numbers_first_page PASSED            [ 
> 64%]
> tests/test_pagination.py::test_item_numbers_last_page PASSED             [ 
> 65%]
> tests/test_pagination.py::test_item_numbers_0 PASSED                     [ 
> 66%]
> tests/test_pagination.py::test_0_pages[0] PASSED                         [ 
> 67%]
> tests/test_pagination.py::test_0_pages[None] PASSED                      [ 
> 68%]
> tests/test_pagination.py::test_iter_pages[1-expect0] PASSED              [ 
> 68%]
> tests/test_pagination.py::test_iter_pages[2-expect1] PASSED              [ 
> 69%]
> tests/test_pagination.py::test_iter_pages[3-expect2] PASSED              [ 
> 70%]
> tests/test_pagination.py::test_iter_pages[4-expect3] PASSED              [ 
> 71%]
> tests/test_pagination.py::test_iter_pages[5-expect4] PASSED              [ 
> 72%]
> tests/test_pagination.py::test_iter_pages[6-expect5] PASSED              [ 
> 72%]
> tests/test_pagination.py::test_iter_pages[7-expect6] PASSED              [ 
> 73%]
> tests/test_pagination.py::test_iter_pages[8-expect7] PASSED              [ 
> 74%]
> tests/test_pagination.py::test_iter_pages[9-expect8] PASSED              [ 
> 75%]
> tests/test_pagination.py::test_iter_pages[10-expect9] PASSED             [ 
> 76%]
> tests/test_pagination.py::test_iter_pages[11-expect10] PASSED            [ 
> 77%]
> tests/test_pagination.py::test_iter_pages[12-expect11] PASSED            [ 
> 77%]
> tests/test_pagination.py::test_iter_pages[13-expect12] PASSED            [ 
> 78%]
> tests/test_pagination.py::test_iter_pages[14-expect13] PASSED            [ 
> 79%]
> tests/test_pagination.py::test_iter_pages[15-expect14] PASSED            [ 
> 80%]
> tests/test_pagination.py::test_iter_0_pages PASSED                       [ 
> 81%]
> tests/test_pagination.py::test_iter_pages_short[1] PASSED                [ 
> 81%]
> tests/test_pagination.py::test_iter_pages_short[2] PASSED                [ 
> 82%]
> tests/test_pagination.py::test_iter_pages_short[3] PASSED                [ 
> 83%]
> tests/test_pagination.py::test_iter_pages_short[4] PASSED                [ 
> 84%]
> tests/test_pagination.py::test_paginate PASSED                           [ 
> 85%]
> tests/test_pagination.py::test_paginate_qs PASSED                        [ 
> 86%]
> tests/test_pagination.py::test_paginate_max PASSED                       [ 
> 86%]
> tests/test_pagination.py::test_no_count PASSED                           [ 
> 87%]
> tests/test_pagination.py::test_error_out[abc-None] PASSED                [ 
> 88%]
> tests/test_pagination.py::test_error_out[None-abc] PASSED                [ 
> 89%]
> tests/test_pagination.py::test_error_out[0-None] PASSED                  [ 
> 90%]
> tests/test_pagination.py::test_error_out[None--1] PASSED                 [ 
> 90%]
> tests/test_pagination.py::test_no_items_404 PASSED                       [ 
> 91%]
> tests/test_record_queries.py::test_query_info PASSED                     [ 
> 92%]
> tests/test_session.py::test_scope PASSED                                 [ 
> 93%]
> tests/test_session.py::test_custom_scope PASSED                          [ 
> 94%]
> tests/test_session.py::test_session_class PASSED                         [ 
> 95%]
> tests/test_session.py::test_session_uses_bind_key PASSED                 [ 
> 95%]
> tests/test_session.py::test_get_bind_inheritance PASSED                  [ 
> 96%]
> tests/test_table_bind.py::test_bind_key_default PASSED                   [ 
> 97%]
> tests/test_table_bind.py::test_metadata_per_bind PASSED                  [ 
> 98%]
> tests/test_table_bind.py::test_multiple_binds_same_table_name PASSED     [ 
> 99%]
> tests/test_table_bind.py::test_explicit_metadata PASSED                  
> [100%]
> 
> ======================== 122 passed, 1 skipped in 0.82s 
> ========================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
> 3.11" --system=custom "--test-args=PYTHONPATH={build_dir} {interpreter} -m 
> pytest -v" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/flask-sqlalchemy_3.0.3-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

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 mark 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