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:python-datamodel-code-generator, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
"""Generate or load the Pydantic v2 adapter for a payload validation case."""
try:
return generate_payload_adapter(case, generated_model_cache)
except PayloadAdapterError as exc: # pragma: no cover
E Failed: openapi/missing_sentinel_nullable.yaml::components.schemas.MissingSentinelNullable: Generated module failed to import: PydanticDeprecatedSince214: The `MISSING` sentinel is no longer experimental. Import it from the main `pydantic` module instead. Deprecated in Pydantic V2.14 to be removed in V3.0.
E Falsifying example: test_generated_pydantic_v2_model_rejects_schema_invalid_payloads(
E case=SchemaCase(id='openapi/missing_sentinel_nullable.yaml::components.schemas.MissingSentinelNullable',
E input_file_type='openapi',
E source_path=PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/data/openapi/missing_sentinel_nullable.yaml'),
E source_schema={'type': 'object',
E 'required': ['requiredNullable'],
E 'properties': {'requiredNullable': {'type': ['integer', 'null']},
E 'nullableUnrequired': {'type': ['integer', 'null']},
E 'unrequired': {'type': 'integer'}},
E 'components': {'schemas': {}}},
E codegen_schema={'openapi': '3.0.3',
E 'info': {'version': '1.0.0', 'title': 'Missing Sentinel Nullable API'},
E 'paths': {},
E 'components': {'schemas': {'Payload': {'type': 'object',
E 'required': ['requiredNullable'],
E 'properties': {'requiredNullable': {'type': 'integer',
E 'nullable': True},
E 'nullableUnrequired': {'type': 'integer', 'nullable': True},
E 'unrequired': {'type': 'integer'}}}}}},
E temp_input_suffix='.yaml',
E backend_extra_args={PayloadBackend.PYDANTIC_V2: ('--use-missing-sentinel',)}),
E generated_model_cache=GeneratedModelCache(...),
E data=data(...),
E )
E Draw 1 (openapi/missing_sentinel_nullable.yaml::components.schemas.MissingSentinelNullable:valid): {'requiredNullable': None}
E Draw 2 (openapi/missing_sentinel_nullable.yaml::components.schemas.MissingSentinelNullable:invalid): InvalidPayloadMutation(constraint='required',
E path=('requiredNullable',),
E payload={},
E reason='generated pydantic v2 models require schema-required object properties')
tests/main/payload_validation/codegen.py:257: Failed
=========================== Code Validation Summary ============================
Compiled 1886 files in 0.238s (avg: 0.13ms)
Executed 131 files in 0.582s (avg: 4.44ms)
=========================== short test summary info ============================
FAILED tests/main/jsonschema/test_main_jsonschema.py::test_main_jsonschema_use_missing_sentinel
FAILED tests/main/openapi/test_main_openapi.py::test_main_openapi_use_missing_sentinel_nullable_keyword
FAILED tests/main/test_payload_validation.py::test_generated_pydantic_v2_model_accepts_schema_derived_payloads[jsonschema/missing_sentinel_payload.json]
FAILED tests/main/test_payload_validation.py::test_generated_pydantic_v2_model_accepts_schema_derived_payloads[openapi/missing_sentinel_nullable.yaml::components.schemas.MissingSentinelNullable]
FAILED tests/main/test_payload_validation.py::test_generated_pydantic_v2_model_dumps_schema_valid_payloads[jsonschema/missing_sentinel_payload.json]
FAILED tests/main/test_payload_validation.py::test_generated_pydantic_v2_model_dumps_schema_valid_payloads[openapi/missing_sentinel_nullable.yaml::components.schemas.MissingSentinelNullable]
FAILED tests/main/test_payload_validation.py::test_generated_pydantic_v2_model_rejects_schema_invalid_payloads[jsonschema/missing_sentinel_payload.json]
FAILED tests/main/test_payload_validation.py::test_generated_pydantic_v2_model_rejects_schema_invalid_payloads[openapi/missing_sentinel_nullable.yaml::components.schemas.MissingSentinelNullable]
==== 8 failed, 5830 passed, 18 skipped, 121 deselected in 354.39s (0:05:54) ====
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_openapi_parser_parse_remote_ref and not test_ruff and not test_type_checking_imports_default_to_runtime_imports_for_modular_pydantic_ruff and not test_generate_multi_module_pydantic_ruff_defaults_to_runtime_imports and not test_use_type_checking_imports_for_multi_module_pydantic_ruff and not test_openapi_parser_parse_modular_pydantic_v2_ruff_keeps_runtime_imports and not test_no_use_type_checking_imports and not test_main_generate_pydantic_v2_dataclass_required_field_order and not docs_script and not skills and not test_main_protobuf and not test_main_asyncapi_protobuf_schema_format and not test_main_watch'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=1 returned exit code 13
make: *** [debian/rules:38: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------