Package: src:dataclasses-json Version: 0.6.7-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/202512/ 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:dataclasses-json, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with python3 --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:131: Building wheel for python3.14 with "build" module I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json * Building wheel... Successfully built dataclasses_json-0.6.7-py3-none-any.whl [... snipped ...] return fields.Field(**options) tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:288: UserWarning: Unknown type ForwardRef('Tree') at Tree.right: ForwardRef('Tree') | None It's advised to pass the correct marshmallow type to `mm_field`. warnings.warn( tests/test_schema.py: 1 warning tests/test_undefined_parameters.py: 8 warnings tests/test_union.py: 10 warnings /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'field_many': True} super().__init__(default=default, dump_default=dump_default, **kwargs) tests/test_union.py: 10 warnings /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:73: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(*args, **kwargs) tests/test_union.py::test_serialize[obj11-expected11-{"f1": {"f1": 1}}] tests/test_union.py::test_serialize[obj12-expected12-{"f1": null}] tests/test_union.py::test_serialize[obj13-expected13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] tests/test_union.py::test_serialize[obj14-expected14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] tests/test_union.py::test_deserialize[expected_obj11-data11-{"f1": {"f1": 1}}] tests/test_union.py::test_deserialize[expected_obj12-data12-{"f1": null}] tests/test_union.py::test_deserialize[expected_obj13-data13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] tests/test_union.py::test_deserialize[expected_obj14-data14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(default=default, dump_default=dump_default, **kwargs) tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'str1': 0.12}) that does not have a "__type" type specifier field into(dataclass: C2, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/core.py:342: UserWarning: Failed to decode {'str1': 0.12} Union dataclasses.Expected Union to include a matching dataclass and it didn't. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 1}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f2': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f3': 'str2'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/core.py:342: UserWarning: Failed to decode {'f3': 'str2'} Union dataclasses.Expected Union to include a matching dataclass and it didn't. warnings.warn( tests/test_union.py::test_deserialize_with_mismatched_field_types /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'data': 'Hello world!'}) that does not have a "__type" type specifier field into(dataclass: C16, field: event).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_undefined_parameters.py::test_undefined_parameters_catch_all_schema_dump FAILED tests/test_undefined_parameters.py::test_undefined_parameters_catch_all_schema_roundtrip ============ 2 failed, 321 passed, 5 skipped, 207 warnings in 0.92s ============ E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_dataclasses-json/build; python3.14 -m pytest tests I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build; python3.13 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build configfile: pyproject.toml plugins: hypothesis-6.148.2 collected 328 items tests/test_annotations.py s [ 0%] tests/test_api.py ........s.s....................... [ 10%] tests/test_builtins.py .. [ 11%] tests/test_collection_of_unions.py ...... [ 13%] tests/test_collections.py .............................................. [ 27%] .................. [ 32%] tests/test_core.py ss [ 33%] tests/test_dict.py .................. [ 38%] tests/test_enum.py ............................ [ 47%] tests/test_examples.py ..... [ 48%] tests/test_exclude.py .... [ 50%] tests/test_generic_dataclass.py .......... [ 53%] tests/test_global_config.py .... [ 54%] tests/test_invariants.py . [ 54%] tests/test_letter_case.py ................. [ 59%] tests/test_metadata.py ... [ 60%] tests/test_nested.py ...... [ 62%] tests/test_recursive.py ... [ 63%] tests/test_schema.py .......... [ 66%] tests/test_self.py .... [ 67%] tests/test_str_subclass.py .. [ 68%] tests/test_time.py .......... [ 71%] tests/test_tuples.py ............ [ 75%] tests/test_undefined_parameters.py ................................ [ 84%] tests/test_union.py .............................................. [ 98%] tests/test_unsupported_generics.py .... [100%] =============================== warnings summary =============================== dataclasses_json/mm.py:277 tests/test_examples.py::TestEncoder::test_students_missing tests/test_union.py::test_serialize[obj17-expected17-{"f1": null}] tests/test_union.py::test_serialize[obj18-expected18-{"f1": "str1"}] tests/test_union.py::test_serialize[obj19-expected19-{"f1": null}] tests/test_union.py::test_deserialize[expected_obj17-data17-{"f1": null}] tests/test_union.py::test_deserialize[expected_obj18-data18-{"f1": "str1"}] tests/test_union.py::test_deserialize[expected_obj19-data19-{"f1": null}] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:277: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. return TYPES[origin](*args, **options) ../../../../../../usr/lib/python3/dist-packages/marshmallow/fields.py:1606: 1 warning tests/test_enum.py: 13 warnings tests/test_undefined_parameters.py: 15 warnings /usr/lib/python3/dist-packages/marshmallow/fields.py:1606: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(**kwargs) tests/test_collection_of_unions.py:8 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/tests/test_collection_of_unions.py:8: PytestCollectionWarning: cannot collect test class 'TestChild' because it has a __init__ constructor (from: tests/test_collection_of_unions.py) @dataclass_json tests/test_collection_of_unions.py:14 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/tests/test_collection_of_unions.py:14: PytestCollectionWarning: cannot collect test class 'TestOtherChild' because it has a __init__ constructor (from: tests/test_collection_of_unions.py) @dataclass_json tests/test_api.py: 3 warnings tests/test_schema.py: 1 warning tests/test_union.py: 57 warnings /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'field_many': False} super().__init__(default=default, dump_default=dump_default, **kwargs) tests/test_api.py::TestSchema::test_loads_default tests/test_api.py::TestSchema::test_loads_default_many tests/test_api.py::TestSchema::test_dumps_default tests/test_api.py::TestSchema::test_dumps_default_many tests/test_api.py::TestSchema::test_loads_infer_missing_nested tests/test_examples.py::TestEncoder::test_students_missing tests/test_schema.py::TestSchema::test_optional tests/test_schema.py::TestSchema::test_not_providing_required_field /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(**kwargs) tests/test_api.py::TestSchema::test_loads_default tests/test_api.py::TestSchema::test_loads_default_many tests/test_api.py::TestSchema::test_dumps_default tests/test_api.py::TestSchema::test_dumps_default_many /usr/lib/python3/dist-packages/marshmallow/fields.py:1218: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(**kwargs) tests/test_api.py::TestSchema::test_dumps_new_type /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:288: UserWarning: Unknown type tests.entities.UUIDWrapper at DataClassWithNewType.id: tests.entities.UUIDWrapper It's advised to pass the correct marshmallow type to `mm_field`. warnings.warn( tests/test_api.py::TestSchema::test_dumps_new_type tests/test_api.py::TestSchema::test_dumps_nested_new_type tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:291: ChangedInMarshmallow4Warning: `Field` should not be instantiated. Use `fields.Raw` or another field subclass instead. return fields.Field(**options) tests/test_api.py::TestSchema::test_dumps_nested_new_type /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:288: UserWarning: Unknown type tests.entities.UUIDWrapperWrapper at DataClassWithNestedNewType.id: tests.entities.UUIDWrapperWrapper It's advised to pass the correct marshmallow type to `mm_field`. warnings.warn( tests/test_api.py::TestSchema::test_loads_infer_missing /usr/lib/python3/dist-packages/marshmallow/fields.py:986: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. super().__init__(**kwargs) tests/test_api.py::TestSchema::test_loads_infer_missing_nested /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. super().__init__(default=default, dump_default=dump_default, **kwargs) tests/test_collection_of_unions.py::TestCollectionOfUnions::test_dict tests/test_collection_of_unions.py::TestCollectionOfUnions::test_list /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type some_field detected when decoding TestChild. warnings.warn( tests/test_collections.py::TestDecoder::test_optional_unbound /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/core.py:201: RuntimeWarning: 'NoneType' object value of non-optional type x detected when decoding DataClassWithOptionalUnbound. warnings.warn( tests/test_dict.py::TestValidator::test_dataclass_with_typed_dict[metadata_dict2-False] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:116: UserWarning: The type "bool" (value: "True") is not in the list of possible types of typing.Union (dataclass: DataWithTypedDict, field: metadata). Value cannot be deserialized properly. warnings.warn( tests/test_enum.py: 17 warnings /usr/lib/python3/dist-packages/marshmallow/fields.py:1928: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(**kwargs) tests/test_enum.py: 13 warnings tests/test_schema.py: 3 warnings /usr/lib/python3/dist-packages/marshmallow/fields.py:776: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(**kwargs) tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:288: UserWarning: Unknown type ForwardRef('Tree') at Tree.left: typing.Optional[ForwardRef('Tree')] It's advised to pass the correct marshmallow type to `mm_field`. warnings.warn( tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:291: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. return fields.Field(**options) tests/test_recursive.py::TestRecursive::test_tree_schema_round_trip /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:288: UserWarning: Unknown type ForwardRef('Tree') at Tree.right: typing.Optional[ForwardRef('Tree')] It's advised to pass the correct marshmallow type to `mm_field`. warnings.warn( tests/test_schema.py: 1 warning tests/test_undefined_parameters.py: 10 warnings tests/test_union.py: 10 warnings /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'field_many': True} super().__init__(default=default, dump_default=dump_default, **kwargs) tests/test_union.py: 10 warnings /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:73: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(*args, **kwargs) tests/test_union.py::test_serialize[obj11-expected11-{"f1": {"f1": 1}}] tests/test_union.py::test_serialize[obj12-expected12-{"f1": null}] tests/test_union.py::test_serialize[obj13-expected13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] tests/test_union.py::test_serialize[obj14-expected14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] tests/test_union.py::test_deserialize[expected_obj11-data11-{"f1": {"f1": 1}}] tests/test_union.py::test_deserialize[expected_obj12-data12-{"f1": null}] tests/test_union.py::test_deserialize[expected_obj13-data13-{"f1": {"f1": {"f1": "str1", "__type": "Aux2"}, "__type": "C5"}}] tests/test_union.py::test_deserialize[expected_obj14-data14-{"f1": {"f1": {"f1": 12}, "__type": "C6"}}] /usr/lib/python3/dist-packages/marshmallow/fields.py:582: RemovedInMarshmallow4Warning: The 'default' argument to fields is deprecated. Use 'dump_default' instead. super().__init__(default=default, dump_default=dump_default, **kwargs) tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'str1': 0.12}) that does not have a "__type" type specifier field into(dataclass: C2, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize[expected_obj3-data3-{"f1": {"str1": 0.12}}] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/core.py:342: UserWarning: Failed to decode {'str1': 0.12} Union dataclasses.Expected Union to include a matching dataclass and it didn't. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 1}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C4, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f1': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f2': 'str1'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'f3': 'str2'}) that does not have a "__type" type specifier field into(dataclass: C12, field: f1).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( tests/test_union.py::test_deserialize_without_discriminator /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/core.py:342: UserWarning: Failed to decode {'f3': 'str2'} Union dataclasses.Expected Union to include a matching dataclass and it didn't. warnings.warn( tests/test_union.py::test_deserialize_with_mismatched_field_types /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_dataclasses-json/build/dataclasses_json/mm.py:104: UserWarning: Attempting to deserialize "dict" (value: "{'data': 'Hello world!'}) that does not have a "__type" type specifier field into(dataclass: C16, field: event).Deserialization may fail, or deserialization to wrong type may occur. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================= 323 passed, 5 skipped, 213 warnings in 0.76s ================= dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

