Package: src:ormar Version: 0.24.0-1 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/202605/ 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. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" module I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14 * Building wheel... Successfully built ormar-0.24.0-py3-none-any.whl [... snipped ...] 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_usage.py::test_read_main - AssertionEr... ========== 1 failed, 488 passed, 1 deselected, 43 warnings in 16.08s =========== 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 I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -k "not test_weakref_init" --ignore=tests/test_databases/test_transaction_as_fixture.py ============================= test session starts ============================== platform linux -- Python 3.13.12, pytest-9.0.3, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build configfile: pyproject.toml plugins: tornasync-0.6.0.post2, asyncio-1.3.0, typeguard-4.4.4, Faker-39.0.0, anyio-4.12.1 asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=module, asyncio_default_test_loop_scope=module collected 490 items / 1 deselected / 489 selected tests/test_databases/test_concurent_transactions.py . [ 0%] tests/test_databases/test_connection.py ........ [ 1%] tests/test_deferred/test_forward_cross_refs.py .. [ 2%] tests/test_deferred/test_forward_refs.py ....... [ 3%] tests/test_deferred/test_more_same_table_joins.py ... [ 4%] tests/test_deferred/test_same_table_joins.py ... [ 4%] tests/test_encryption/test_encrypted_columns.py ......... [ 6%] tests/test_exclude_include_dict/test_complex_relation_tree_performance.py . [ 6%] [ 6%] tests/test_exclude_include_dict/test_dumping_model_to_dict.py ...... [ 8%] tests/test_exclude_include_dict/test_excludable_items.py ........ [ 9%] tests/test_exclude_include_dict/test_excluding_fields_in_fastapi.py .... [ 10%] [ 10%] tests/test_exclude_include_dict/test_excluding_fields_with_default.py . [ 10%] tests/test_exclude_include_dict/test_excluding_subset_of_columns.py .. [ 11%] tests/test_exclude_include_dict/test_pydantic_dict_params.py ... [ 11%] tests/test_fastapi/test_binary_fields.py .. [ 12%] tests/test_fastapi/test_docs_with_multiple_relations_to_one.py . [ 12%] tests/test_fastapi/test_enum_schema.py . [ 12%] tests/test_fastapi/test_excludes_with_get_pydantic.py . [ 12%] tests/test_fastapi/test_excluding_fields.py . [ 13%] tests/test_fastapi/test_extra_ignore_parameter.py . [ 13%] tests/test_fastapi/test_fastapi_docs.py ... [ 13%] tests/test_fastapi/test_fastapi_usage.py F [ 14%] tests/test_fastapi/test_inheritance_concrete_fastapi.py ... [ 14%] tests/test_fastapi/test_inheritance_mixins_fastapi.py . [ 14%] tests/test_fastapi/test_json_field_fastapi.py .... [ 15%] tests/test_fastapi/test_m2m_forwardref.py . [ 15%] tests/test_fastapi/test_more_reallife_fastapi.py . [ 16%] tests/test_fastapi/test_nested_saving.py . [ 16%] tests/test_fastapi/test_recursion_error.py . [ 16%] tests/test_fastapi/test_relations_with_nested_defaults.py . [ 16%] tests/test_fastapi/test_schema_not_allowed_params.py . [ 16%] tests/test_fastapi/test_skip_reverse_models.py . [ 17%] tests/test_fastapi/test_wekref_exclusion.py . [ 17%] tests/test_hashes/test_many_to_many.py .. [ 17%] tests/test_inheritance_and_pydantic_generation/test_foreign_key_name_in_inheritance.py . [ 17%] [ 17%] tests/test_inheritance_and_pydantic_generation/test_geting_pydantic_models.py . [ 18%] ............ [ 20%] tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py . [ 20%] .......... [ 22%] tests/test_inheritance_and_pydantic_generation/test_inheritance_mixins.py . [ 23%] .. [ 23%] tests/test_inheritance_and_pydantic_generation/test_inheritance_of_property_fields.py . [ 23%] [ 23%] tests/test_inheritance_and_pydantic_generation/test_inheritance_with_default.py . [ 23%] . [ 24%] tests/test_inheritance_and_pydantic_generation/test_inherited_class_is_not_abstract_by_default.py . [ 24%] [ 24%] tests/test_inheritance_and_pydantic_generation/test_nested_models_pydantic.py . [ 24%] . [ 24%] tests/test_inheritance_and_pydantic_generation/test_pydantic_fields_order.py . [ 24%] [ 24%] tests/test_inheritance_and_pydantic_generation/test_reverse_relation_in_getting_pydantic.py . [ 25%] [ 25%] tests/test_inheritance_and_pydantic_generation/test_validators_are_inherited.py . [ 25%] . [ 25%] tests/test_inheritance_and_pydantic_generation/test_validators_in_generated_pydantic.py . [ 25%] . [ 25%] tests/test_meta_constraints/test_check_constraints.py . [ 26%] tests/test_meta_constraints/test_index_constraints.py .. [ 26%] tests/test_meta_constraints/test_unique_constraints.py . [ 26%] tests/test_model_definition/pks_and_fks/test_non_integer_pkey.py .. [ 27%] tests/test_model_definition/pks_and_fks/test_saving_string_pks.py . [ 27%] tests/test_model_definition/pks_and_fks/test_uuid_fks.py . [ 27%] tests/test_model_definition/test_aliases.py .... [ 28%] tests/test_model_definition/test_columns.py ....... [ 29%] tests/test_model_definition/test_create_uses_init_for_consistency.py . [ 30%] tests/test_model_definition/test_dates_with_timezone.py ..... [ 31%] tests/test_model_definition/test_equality_and_hash.py ... [ 31%] tests/test_model_definition/test_extra_ignore_parameter.py . [ 31%] tests/test_model_definition/test_field_quoting.py ... [ 32%] tests/test_model_definition/test_fields_access.py ...................... [ 37%] [ 37%] tests/test_model_definition/test_foreign_key_value_used_for_related_model.py . [ 37%] . [ 37%] tests/test_model_definition/test_iterate.py ............ [ 39%] tests/test_model_definition/test_json_fields.py . [ 40%] tests/test_model_definition/test_model_construct.py ... [ 40%] tests/test_model_definition/test_model_definition.py ................. [ 44%] tests/test_model_definition/test_models.py ....................... [ 48%] tests/test_model_definition/test_models_are_pickable.py . [ 49%] tests/test_model_definition/test_overwriting_pydantic_field_type.py .. [ 49%] tests/test_model_definition/test_overwriting_sql_nullable.py . [ 49%] tests/test_model_definition/test_pk_field_is_always_not_null.py . [ 49%] tests/test_model_definition/test_properties.py .. [ 50%] tests/test_model_definition/test_pydantic_fields.py ... [ 50%] tests/test_model_definition/test_pydantic_only_fields.py . [ 51%] tests/test_model_definition/test_pydantic_private_attributes.py . [ 51%] tests/test_model_definition/test_save_status.py ........ [ 52%] tests/test_model_definition/test_saving_nullable_fields.py . [ 53%] tests/test_model_definition/test_server_default.py .. [ 53%] tests/test_model_definition/test_setting_comments_in_db.py . [ 53%] tests/test_model_definition/test_through_model_relation_setup_on_clone.py . [ 53%] [ 53%] tests/test_model_methods/test_excludes_in_load_all.py .. [ 54%] tests/test_model_methods/test_load_all.py ..... [ 55%] tests/test_model_methods/test_populate_default_values.py . [ 55%] tests/test_model_methods/test_populate_onupdate_values.py ....... [ 57%] tests/test_model_methods/test_save_related.py .... [ 57%] tests/test_model_methods/test_save_related_from_dict.py ....... [ 59%] tests/test_model_methods/test_save_related_pk_only.py . [ 59%] tests/test_model_methods/test_save_related_uuid.py . [ 59%] tests/test_model_methods/test_update.py .. [ 60%] tests/test_model_methods/test_upsert.py . [ 60%] tests/test_ordering/test_default_model_order.py ... [ 60%] tests/test_ordering/test_default_relation_order.py .... [ 61%] tests/test_ordering/test_default_through_relation_order.py .. [ 62%] tests/test_ordering/test_proper_order_of_sorting_apply.py . [ 62%] tests/test_queries/test_adding_related.py . [ 62%] tests/test_queries/test_aggr_functions.py ...... [ 63%] tests/test_queries/test_deep_relations_select_all.py . [ 64%] tests/test_queries/test_filter_groups.py ........ [ 65%] tests/test_queries/test_indirect_relations_to_self.py . [ 65%] tests/test_queries/test_isnull_filter.py .. [ 66%] tests/test_queries/test_nested_reverse_relations.py . [ 66%] tests/test_queries/test_non_relation_fields_not_merged.py . [ 66%] tests/test_queries/test_or_filters.py . [ 66%] tests/test_queries/test_order_by.py .... [ 67%] tests/test_queries/test_pagination.py .... [ 68%] tests/test_queries/test_queryproxy_on_m2m_models.py .. [ 68%] tests/test_queries/test_queryset_level_methods.py .............. [ 71%] tests/test_queries/test_quoting_table_names_in_on_join_clause.py . [ 71%] tests/test_queries/test_reserved_sql_keywords_escaped.py .. [ 72%] tests/test_queries/test_reverse_fk_queryset.py ..... [ 73%] tests/test_queries/test_selecting_subset_of_columns.py .. [ 73%] tests/test_queries/test_values_and_values_list.py ................ [ 77%] tests/test_relations/test_cascades.py .... [ 77%] tests/test_relations/test_customizing_through_model_relation_names.py .. [ 78%] [ 78%] tests/test_relations/test_database_fk_creation.py ... [ 78%] tests/test_relations/test_foreign_key_name_override.py ..... [ 79%] tests/test_relations/test_foreign_keys.py .............. [ 82%] tests/test_relations/test_m2m_through_fields.py ............. [ 85%] tests/test_relations/test_many_to_many.py ......... [ 87%] tests/test_relations/test_postgress_select_related_with_limit.py . [ 87%] tests/test_relations/test_prefetch_related.py ..... [ 88%] tests/test_relations/test_prefetch_related_multiple_models_relation.py . [ 88%] [ 88%] tests/test_relations/test_prefetch_related_with_same_models.py .. [ 89%] tests/test_relations/test_python_style_relations.py . [ 89%] tests/test_relations/test_relations_default_exception.py .. [ 89%] tests/test_relations/test_replacing_models_with_copy.py . [ 89%] tests/test_relations/test_reverse_relation_preserves_validator.py . [ 90%] tests/test_relations/test_saving_related.py .. [ 90%] tests/test_relations/test_select_related_with_limit.py . [ 90%] tests/test_relations/test_select_related_with_m2m_and_pk_name_set.py .. [ 91%] tests/test_relations/test_selecting_proper_table_prefix.py . [ 91%] tests/test_relations/test_skipping_reverse.py ..... [ 92%] tests/test_relations/test_through_relations_fail.py . [ 92%] tests/test_signals/test_signals.py .......... [ 94%] tests/test_signals/test_signals_for_relations.py . [ 94%] tests/test_types.py . [ 95%] tests/test_utils/test_models_helpers.py .. [ 95%] tests/test_utils/test_queryset_utils.py ......... [ 97%] tests/test_vulnerabilities/test_aggregated_functions.py ... [ 97%] tests/test_vulnerabilities/test_kwargs_injection.py .......... [100%] =================================== FAILURES =================================== ________________________________ test_read_main ________________________________ @pytest.mark.asyncio async def test_read_main(): transport = ASGITransport(app=app) client = AsyncClient(transport=transport, base_url="http://testserver") async with client as client, LifespanManager(app): response = await client.post( "/items/", json={"name": "test", "id": 1, "category": {"name": "test cat"}} ) assert response.status_code == 200 > assert response.json() == { "category": { "id": None, "items": [ { "category": {"id": None, "name": "test cat"}, "id": 1, "name": "test", } ], "name": "test cat", }, "id": 1, "name": "test", } E AssertionError: assert {'category': ...name': 'test'} == {'category': ...name': 'test'} E E Omitting 2 identical items, use -vv to show E Differing items: E {'category': {'id': None, 'name': 'test cat'}} != {'category': {'id': None, 'items': [{'category': {'id': None, 'name': 'test cat'}, 'id': 1, 'name': 'test'}], 'name': 'test cat'}} E Use -v to get more diff tests/test_fastapi/test_fastapi_usage.py:48: 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.13/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()) tests/test_exclude_include_dict/test_complex_relation_tree_performance.py:167 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/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.13/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.13/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.13/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.13/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.13/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_usage.py::test_read_main - AssertionEr... ========== 1 failed, 488 passed, 1 deselected, 26 warnings in 15.85s =========== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -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 3.13" --parallel=2 returned exit code 13 make: *** [debian/rules:6: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

