Package: src:ormar
Version: 0.24.0-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:ormar, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
                },
                "id": 1,
                "title": "Bug caused by default value",
                "year": 2021,
            }
E           AssertionError: assert {'id': 1, 'au... 'year': 2021} == {'author': 
{'... 'year': 2021}
E             
E             Omitting 3 identical items, use -vv to show
E             Differing items:
E             {'author': {'id': 1}} != {'author': {'books': [{'author': {'id': 
1}, 'id': 1, 'title': 'Bug caused by default value', 'year': 2021}], 'id': 1}}
E             Use -v to get more diff

tests/test_fastapi/test_relations_with_nested_defaults.py:73: AssertionError
=============================== warnings summary ===============================
ormar/fields/foreign_key.py:439: 16 warnings
tests/test_relations/test_m2m_through_fields.py: 1 warning
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/ormar/fields/foreign_key.py:439: 
DeprecationWarning: Failing to pass a value to the 'type_params' parameter of 
'typing.ForwardRef._evaluate' is deprecated, as it leads to incorrect behaviour 
when calling typing.ForwardRef._evaluate on a stringified annotation that 
references a PEP 695 type parameter. It will be disallowed in Python 3.15.
    evaluated = target_obj._evaluate(globalns, localns, recursive_guard=set())

ormar/fields/foreign_key.py:439: 16 warnings
tests/test_relations/test_m2m_through_fields.py: 1 warning
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/ormar/fields/foreign_key.py:439: 
DeprecationWarning: ForwardRef._evaluate is a private API and is retained for 
compatibility, but will be removed in Python 3.16. Use ForwardRef.evaluate() or 
typing.evaluate_forward_ref() instead.
    evaluated = target_obj._evaluate(globalns, localns, recursive_guard=set())

tests/test_exclude_include_dict/test_complex_relation_tree_performance.py:167
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_exclude_include_dict/test_complex_relation_tree_performance.py:167:
 DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    created_date: datetime = orm.DateTime(default=datetime.utcnow())

tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:19
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:19:
 DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    created_at: datetime.datetime = 
ormar.DateTime(default=datetime.datetime.utcnow())

tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:20
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py:20:
 DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    updated_at: datetime.datetime = 
ormar.DateTime(default=datetime.datetime.utcnow())

tests/test_queries/test_quoting_table_names_in_on_join_clause.py:21
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_queries/test_quoting_table_names_in_on_join_clause.py:21:
 DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for 
removal in a future version. Use timezone-aware objects to represent datetimes 
in UTC: datetime.datetime.now(datetime.UTC).
    created_on = ormar.DateTime(timezone=True, 
default=datetime.datetime.utcnow())

tests/test_deferred/test_forward_cross_refs.py::test_auto_through_model
tests/test_fastapi/test_m2m_forwardref.py::test_payload
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/lifespan.py:35: 
SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency 
exists between tables: cities, countries; and backend does not support ALTER.  
To restore at least a partial sort, apply use_alter=True to ForeignKey and 
ForeignKeyConstraint objects involved in the cycle to mark these as known 
cycles that will be ignored.
    config.metadata.drop_all(connection)

tests/test_inheritance_and_pydantic_generation/test_geting_pydantic_models.py::test_getting_pydantic_model_mutual_rels_exclude
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/lifespan.py:35: 
SAWarning: Can't sort tables for DROP; an unresolvable foreign key dependency 
exists between tables: mutual_a, mutual_b; and backend does not support ALTER.  
To restore at least a partial sort, apply use_alter=True to ForeignKey and 
ForeignKeyConstraint objects involved in the cycle to mark these as known 
cycles that will be ignored.
    config.metadata.drop_all(connection)

tests/test_model_methods/test_populate_onupdate_values.py::test_onupdate_bulk_update
tests/test_model_methods/test_populate_onupdate_values.py::test_onupdate_bulk_update
  /usr/lib/python3/dist-packages/aiosqlite/core.py:105: DeprecationWarning: The 
default datetime adapter is deprecated as of Python 3.12; see the sqlite3 
documentation for suggested replacement recipes
    result = function()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_fastapi/test_fastapi_docs.py::test_schema_modification - Ke...
FAILED tests/test_fastapi/test_fastapi_usage.py::test_read_main - AssertionEr...
FAILED tests/test_fastapi/test_nested_saving.py::test_saving_related_in_fastapi
FAILED 
tests/test_fastapi/test_relations_with_nested_defaults.py::test_related_with_defaults
========== 4 failed, 485 passed, 1 deselected, 43 warnings in 16.25s ===========
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest -k "not 
test_weakref_init" --ignore=tests/test_databases/test_transaction_as_fixture.py
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 
--parallel=1 returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to