Package: src:django-ninja
Version: 1.7.1-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/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:django-ninja, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
            # Pydantic 2.12 added pattern validation for decimal strings
            
expected_schema["properties"]["decimalfield"]["anyOf"][1]["pattern"] = (
                r"^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$"
            )
>       assert SchemaCls.json_schema() == expected_schema
E       AssertionError: assert {'properties'...pe': 'object'} == {'title': 
'Al...efield', ...]}
E         
E         Omitting 3 identical items, use -vv to show
E         Differing items:
E         {'properties': {'id': {'anyOf': [{'type': 'integer'}, {'type': 
'null'}], 'title': 'ID'}, 'bigintegerfield': {'title': ...binary', 'title': 
'Binaryfield', 'type': 'string'}, 'booleanfield': {'title': 'Booleanfield', 
'type': 'boolean'}, ...}} != {'properties': {'id': {'anyOf': [{'type': 
'integer'}, {'type': 'null'}], 'title': 'ID'}, 'bigintegerfield': {'title': 
...inaryfield', 'type': 'string', 'format': 'binary'}, 'booleanfield': {'type': 
'boolean', 'title': 'Booleanfield'}, ...}}
E         Use -v to get more diff

tests/test_orm_schemas.py:212: AssertionError
=============================== warnings summary ===============================
test_add_decorator_async.py::test_mixed_sync_async_endpoints_same_router
test_add_decorator_async.py::test_mixed_sync_async_endpoints_same_router
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_add_decorator_async.py:179:
 DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for 
removal in Python 3.16; use inspect.iscoroutinefunction() instead
    if asyncio.iscoroutinefunction(func):

test_filter_schema.py::test_improperly_configured_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:48:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    popular: Optional[str] = Field(None, q=Q(view_count__gt=1000))

test_filter_schema.py::test_improperly_configured_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/filter_schema.py:211:
 DeprecationWarning: Using Pydantic Field with extra keyword arguments ('q') in 
field DummyFilterSchema.popular is deprecated. Please use ninja.FilterLookup 
instead:
    from typing import Annotated
    from ninja import FilterLookup, FilterSchema
  
    class DummyFilterSchema(FilterSchema):
      popular: Annotated[Optional[...], FilterLookup(q='...', ...)] = None
    field_q = self._resolve_field_expression(

test_filter_schema.py::test_empty_q_when_none_ignored_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:70:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    name: Optional[str] = Field(None, q="name__icontains")

test_filter_schema.py::test_empty_q_when_none_ignored_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:71:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag: Optional[str] = Field(None, q="tag")

test_filter_schema.py::test_empty_q_when_none_ignored_deprecated
test_filter_schema.py::test_q_expressions2_deprecated[False]
test_filter_schema.py::test_q_expressions2_deprecated[True]
test_filter_schema.py::test_q_expressions3_deprecated
test_filter_schema.py::test_q_is_a_list_deprecated[False]
test_filter_schema.py::test_q_is_a_list_deprecated[True]
test_filter_schema.py::test_field_level_expression_connector_deprecated
test_filter_schema.py::test_class_level_and_field_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/filter_schema.py:211:
 DeprecationWarning: Using Pydantic Field with extra keyword arguments ('q') in 
field DummyFilterSchema.name is deprecated. Please use ninja.FilterLookup 
instead:
    from typing import Annotated
    from ninja import FilterLookup, FilterSchema
  
    class DummyFilterSchema(FilterSchema):
      name: Annotated[Optional[...], FilterLookup(q='...', ...)] = None
    field_q = self._resolve_field_expression(

test_filter_schema.py::test_empty_q_when_none_ignored_deprecated
test_filter_schema.py::test_q_expressions2_deprecated[False]
test_filter_schema.py::test_q_expressions2_deprecated[True]
test_filter_schema.py::test_q_expressions3_deprecated
test_filter_schema.py::test_q_is_a_list_deprecated[False]
test_filter_schema.py::test_q_is_a_list_deprecated[True]
test_filter_schema.py::test_field_level_expression_connector_deprecated
test_filter_schema.py::test_class_level_and_field_level_expression_connector_deprecated
test_filter_schema.py::test_ignore_none_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/filter_schema.py:211:
 DeprecationWarning: Using Pydantic Field with extra keyword arguments ('q') in 
field DummyFilterSchema.tag is deprecated. Please use ninja.FilterLookup 
instead:
    from typing import Annotated
    from ninja import FilterLookup, FilterSchema
  
    class DummyFilterSchema(FilterSchema):
      tag: Annotated[Optional[...], FilterLookup(q='...', ...)] = None
    field_q = self._resolve_field_expression(

test_filter_schema.py::test_q_expressions2_deprecated[False]
test_filter_schema.py::test_q_expressions2_deprecated[True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:99:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    name: Optional[str] = Field(None, q=q)

test_filter_schema.py::test_q_expressions2_deprecated[False]
test_filter_schema.py::test_q_expressions2_deprecated[True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:100:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag: Optional[str] = Field(None, q="tag")

test_filter_schema.py::test_q_expressions3_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:128:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    name: Optional[str] = Field(None, q="name__icontains")

test_filter_schema.py::test_q_expressions3_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:129:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag: Optional[str] = Field(None, q="tag")

test_filter_schema.py::test_q_is_a_list_deprecated[False]
test_filter_schema.py::test_q_is_a_list_deprecated[True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:157:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    name: Optional[str] = Field(None, q=[q__name, "user__username__icontains"])

test_filter_schema.py::test_q_is_a_list_deprecated[False]
test_filter_schema.py::test_q_is_a_list_deprecated[True]
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:158:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag: Optional[str] = Field(None, q="tag")

test_filter_schema.py::test_field_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:192:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q', 'expression_connector'). Deprecated in Pydantic V2.0 to be removed in 
V3.0. See Pydantic V2 Migration Guide at 
https://errors.pydantic.dev/2.14/migration/
    name: Optional[str] = Field(

test_filter_schema.py::test_field_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:196:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag: Optional[str] = Field(None, q="tag")

test_filter_schema.py::test_field_level_expression_connector_deprecated
test_filter_schema.py::test_class_level_and_field_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/filter_schema.py:211:
 DeprecationWarning: Using Pydantic Field with extra keyword arguments 
('expression_connector') in field DummyFilterSchema.name is deprecated. Please 
use ninja.FilterLookup instead:
    from typing import Annotated
    from ninja import FilterLookup, FilterSchema
  
    class DummyFilterSchema(FilterSchema):
      name: Annotated[Optional[...], FilterLookup(q='...', ...)] = None
    field_q = self._resolve_field_expression(

test_filter_schema.py::test_class_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:229:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag1: Optional[str] = Field(None, q="tag1")

test_filter_schema.py::test_class_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:230:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag2: Optional[str] = Field(None, q="tag2")

test_filter_schema.py::test_class_level_expression_connector_deprecated
test_filter_schema.py::test_ignore_none_class_level_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/filter_schema.py:211:
 DeprecationWarning: Using Pydantic Field with extra keyword arguments ('q') in 
field DummyFilterSchema.tag1 is deprecated. Please use ninja.FilterLookup 
instead:
    from typing import Annotated
    from ninja import FilterLookup, FilterSchema
  
    class DummyFilterSchema(FilterSchema):
      tag1: Annotated[Optional[...], FilterLookup(q='...', ...)] = None
    field_q = self._resolve_field_expression(

test_filter_schema.py::test_class_level_expression_connector_deprecated
test_filter_schema.py::test_ignore_none_class_level_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/filter_schema.py:211:
 DeprecationWarning: Using Pydantic Field with extra keyword arguments ('q') in 
field DummyFilterSchema.tag2 is deprecated. Please use ninja.FilterLookup 
instead:
    from typing import Annotated
    from ninja import FilterLookup, FilterSchema
  
    class DummyFilterSchema(FilterSchema):
      tag2: Annotated[Optional[...], FilterLookup(q='...', ...)] = None
    field_q = self._resolve_field_expression(

test_filter_schema.py::test_class_level_and_field_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:257:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q', 'expression_connector'). Deprecated in Pydantic V2.0 to be removed in 
V3.0. See Pydantic V2 Migration Guide at 
https://errors.pydantic.dev/2.14/migration/
    name: Optional[str] = Field(

test_filter_schema.py::test_class_level_and_field_level_expression_connector_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:261:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag: Optional[str] = Field(None, q="tag")

test_filter_schema.py::test_ignore_none_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:298:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q', 'ignore_none'). Deprecated in Pydantic V2.0 to be removed in V3.0. See 
Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag: Optional[str] = Field(None, q="tag", ignore_none=False)

test_filter_schema.py::test_ignore_none_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/filter_schema.py:79:
 DeprecationWarning: Using Pydantic Field with extra keyword arguments 
('ignore_none') in field DummyFilterSchema.tag is deprecated. Please use 
ninja.FilterLookup instead:
    from typing import Annotated
    from ninja import FilterLookup, FilterSchema
  
    class DummyFilterSchema(FilterSchema):
      tag: Annotated[Optional[...], FilterLookup(q='...', ...)] = None
    return self._connect_fields()

test_filter_schema.py::test_ignore_none_class_level_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:320:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag1: Optional[str] = Field(None, q="tag1")

test_filter_schema.py::test_ignore_none_class_level_deprecated
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:321:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    tag2: Optional[str] = Field(None, q="tag2")

test_filter_schema.py::test_pydantic_field_with_extra_warns
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_filter_schema.py:411:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'q'). Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 
Migration Guide at https://errors.pydantic.dev/2.14/migration/
    name: Optional[str] = Field(None, q="name__icontains")

test_orm_metaclass.py::test_model_schema_with_old_config
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/ninja/schema.py:181: 
PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use 
ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See 
Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.14/migration/
    result = super().__new__(cls, name, bases, namespace, **kwargs)

test_router_reuse.py::TestOperationClone::test_clone_copies_all_attributes
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_router_reuse.py:197:
 UserWarning: Field(s) ('id',) are in the view path, but were not found in the 
view signature.
    def dummy_view(request):

test_router_reuse.py::TestCloneCompleteness::test_clone_catches_new_attributes
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build/tests/test_router_reuse.py:369:
 UserWarning: Field(s) ('id',) are in the view path, but were not found in the 
view signature.
    def dummy_view(request):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_orm_schemas.py::test_all_fields - AssertionError: assert {'...
============ 1 failed, 810 passed, 1 skipped, 53 warnings in 2.49s =============
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-ninja/build; python3.14 -m 
pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 
--parallel=1 returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to