• Bug#1066740: djangorestframework: FTBFS: dh_auto_test: error: pybuild -

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 16:10:06 2024
    Source: djangorestframework
    Version: 3.14.0-2
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240313 ftbfs-trixie

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.


    Relevant part (hopefully):

    =========================== short test summary info ============================
    SKIPPED [1] tests/test_model_serializer.py:446: condition: not postgres_fields
    SKIPPED [1] tests/test_model_serializer.py:431: condition: not postgres_fields
    SKIPPED [1] tests/test_model_serializer.py:466: has models.JSONField
    SKIPPED [1] tests/test_serializer_nested.py:325: psycopg2 is not installed SKIPPED [1] tests/test_serializer_nested.py:343: psycopg2 is not installed ERROR tests/test_fields.py::TestReadOnly::test_writable_fields - pytest.Pytes...
    ERROR tests/test_fields.py::TestReadOnly::test_validate_read_only - pytest.Py...
    ERROR tests/test_fields.py::TestReadOnly::test_serialize_read_only - pytest.P...
    ERROR tests/test_fields.py::TestWriteOnly::test_validate_write_only - pytest....
    ERROR tests/test_fields.py::TestWriteOnly::test_serialize_write_only - pytest...
    ERROR tests/test_fields.py::TestInitial::test_initial - pytest.PytestRemovedI...
    ERROR tests/test_fields.py::TestInitialWithCallable::test_initial_should_accept_callable
    ERROR tests/test_fields.py::TestLabel::test_label - pytest.PytestRemovedIn8Wa...
    ERROR tests/test_fields.py::TestInvalidErrorKey::test_invalid_error_key - pyt...
    ERROR tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_provided
    ERROR tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_is_not_provided_on_update
    ERROR tests/test_fields.py::TestCreateOnlyDefault::test_create_only_default_callable_sets_context
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_filtered_items_are_paginated
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_over_maximum
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_setting_page_size_to_zero
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_additional_query_params_are_preserved
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_empty_query_params_are_preserved
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_zero_page
    ERROR tests/test_pagination.py::TestPaginationIntegration::test_404_not_found_for_invalid_page
    ERROR tests/test_pagination.py::TestPaginationDisabledIntegration::test_unpaginated_list
    ERROR tests/test_pagination.py::TestPageNumberPagination::test_no_page_number ERROR tests/test_pagination.py::TestPageNumberPagination::test_second_page - ...
    ERROR tests/test_pagination.py::TestPageNumberPagination::test_last_page - py...
    ERROR tests/test_pagination.py::TestPageNumberPagination::test_invalid_page ERROR tests/test_pagination.py::TestPageNumberPagination::test_get_paginated_response_schema
    ERROR tests/test_pagination.py::TestPageNumberPaginationOverride::test_no_page_number
    ERROR tests/test_pagination.py::TestPageNumberPaginationOverride::test_invalid_page
    ERROR tests/test_pagination.py::TestLimitOffset::test_no_offset - pytest.Pyte...
    ERROR tests/test_pagination.py::TestLimitOffset::test_pagination_not_applied_if_limit_or_default_limit_not_set
    ERROR tests/test_pagination.py::TestLimitOffset::test_single_offset - pytest....
    ERROR tests/test_pagination.py::TestLimitOffset::test_first_offset - pytest.P...
    ERROR tests/test_pagination.py::TestLimitOffset::test_middle_offset - pytest....
    ERROR tests/test_pagination.py::TestLimitOffset::test_ending_offset - pytest....
    ERROR tests/test_pagination.py::TestLimitOffset::test_erronous_offset - pytes...
    ERROR tests/test_pagination.py::TestLimitOffset::test_invalid_offset - pytest...
    ERROR tests/test_pagination.py::TestLimitOffset::test_invalid_limit - pytest....
    ERROR tests/test_pagination.py::TestLimitOffset::test_zero_limit - pytest.Pyt...
    ERROR tests/test_pagination.py::TestLimitOffset::test_max_limit - pytest.Pyte...
    ERROR tests/test_pagination.py::TestLimitOffset::test_get_paginated_response_schema
    ERROR tests/test_pagination.py::TestCursorPagination::test_invalid_cursor - p...
    ERROR tests/test_pagination.py::TestCursorPagination::test_use_with_ordering_filter
    ERROR tests/test_pagination.py::TestCursorPagination::test_cursor_pagination ERROR tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_forward
    ERROR tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_current_page_empty_reverse
    ERROR tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size
    ERROR tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_over_limit
    ERROR tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_zero
    ERROR tests/test_pagination.py::TestCursorPagination::test_cursor_pagination_with_page_size_negative
    ERROR tests/test_pagination.py::TestCursorPagination::test_get_paginated_response_schema
    ERROR tests/test_relations.py::TestHyperlink::test_can_be_pickled - pytest.Py...
    ERROR tests/test_serializer.py::TestSerializer::test_valid_serializer - pytes...
    ERROR tests/test_serializer.py::TestSerializer::test_invalid_serializer - pyt...
    ERROR tests/test_serializer.py::TestSerializer::test_invalid_datatype - pytes...
    ERROR tests/test_serializer.py::TestSerializer::test_partial_validation - pyt...
    ERROR tests/test_serializer.py::TestSerializer::test_empty_serializer - pytes...
    ERROR tests/test_serializer.py::TestSerializer::test_missing_attribute_during_serialization
    ERROR tests/test_serializer.py::TestSerializer::test_data_access_before_save_raises_error
    ERROR tests/test_serializer.py::TestSerializer::test_validate_none_data - pyt...
    ERROR tests/test_serializer.py::TestSerializer::test_serialize_chainmap - pyt...
    ERROR tests/test_serializer.py::TestSerializer::test_serialize_custom_mapping ERROR tests/test_serializer.py::TestSerializer::test_custom_to_internal_value ERROR tests/test_serializer.py::TestSerializer::test_iterable_validators - py...
    ERROR tests/test_serializer.py::TestSerializer::test_serializer_is_subscriptable
    ERROR tests/test_serializer.py::TestBaseSerializer::test_abstract_methods_raise_proper_errors
    ERROR tests/test_serializer.py::TestBaseSerializer::test_access_to_data_attribute_before_validation_raises_error
    ERROR tests/test_serializer.py::TestBaseSerializer::test_access_to_errors_attribute_before_validation_raises_error
    ERROR tests/test_serializer.py::TestBaseSerializer::test_access_to_validated_data_attribute_before_validation_raises_error
    ERROR tests/test_serializer.py::TestBaseSerializer::test_serialize_instance ERROR tests/test_serializer.py::TestBaseSerializer::test_serialize_list - pyt...
    ERROR tests/test_serializer.py::TestBaseSerializer::test_validate_data - pyte...
    ERROR tests/test_serializer.py::TestBaseSerializer::test_validate_list - pyte...
    ERROR tests/test_serializer.py::TestStarredSource::test_nested_validate - pyt...
    ERROR tests/test_serializer.py::TestStarredSource::test_nested_null_validate ERROR tests/test_serializer.py::TestStarredSource::test_nested_serialize - py...
    ERROR tests/test_serializer.py::TestStarredSource::test_field_validate - pyte...
    ERROR tests/test_serializer.py::TestStarredSource::test_field_null_validate ERROR tests/test_serializer.py::TestDefaultOutput::test_default_used_for_dict ERROR tests/test_serializer.py::TestDefaultOutput::test_default_used_for_object
    ERROR tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_dict
    ERROR tests/test_serializer.py::TestDefaultOutput::test_default_not_used_when_in_object
    ERROR tests/test_serializer.py::TestDefaultOutput::test_default_for_dotted_source
    ERROR tests/test_serializer.py::TestDefaultOutput::test_default_for_multiple_dotted_source
    ERROR tests/test_serializer.py::TestDefaultOutput::test_default_for_nested_serializer
    ERROR tests/test_serializer.py::TestDefaultOutput::test_default_for_allow_null
    ERROR tests/test_serializer.py::TestDefaultInclusions::test_default_should_included_on_create
    ERROR tests/test_serializer.py::TestDefaultInclusions::test_default_should_be_included_on_update
    ERROR tests/test_serializer.py::TestDefaultInclusions::test_default_should_not_be_included_on_partial_update
    ERROR tests/test_serializer.py::TestSerializerValidationWithCompiledRegexField::test_validation_success
    ERROR tests/test_serializer.py::Test4606Regression::test_4606_regression - py...
    ERROR tests/test_serializer_lists.py::TestListSerializer::test_validate - pyt...
    ERROR tests/test_serializer_lists.py::TestListSerializer::test_validate_html_input
    ERROR tests/test_serializer_lists.py::TestListSerializer::test_list_serializer_is_subscriptable
    ERROR tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate
    ERROR tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_create
    ERROR tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_serialize
    ERROR tests/test_serializer_lists.py::TestListSerializerContainingNestedSerializer::test_validate_html_input
    ERROR tests/test_serializer_lists.py::TestNestedListSerializer::test_validate ERROR tests/test_serializer_lists.py::TestNestedListSerializer::test_create ERROR tests/test_serializer_lists.py::TestNestedListSerializer::test_serialize
    ERROR tests/test_serializer_lists.py::TestNestedListSerializer::test_validate_html_input
    ERROR tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate
    ERROR tests/test_serializer_lists.py::TestNestedListOfListsSerializer::test_validate_html_input
    ERROR tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_json
    ERROR tests/test_serializer_lists.py::TestEmptyListSerializer::test_nested_serializer_with_list_multipart
    ERROR tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_two_items
    ERROR tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_four_items
    ERROR tests/test_serializer_lists.py::TestMaxMinLengthListSerializer::test_min_max_length_six_items
    ERROR tests/test_serializer_nested.py::TestNestedSerializer::test_nested_validate
    ERROR tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_empty
    ERROR tests/test_serializer_nested.py::TestNestedSerializer::test_nested_serialize_no_data
    ERROR tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_json_validate
    ERROR tests/test_serializer_nested.py::TestNotRequiredNestedSerializer::test_multipart_validate
    ERROR tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_allowed_if_allow_null_is_set
    ERROR tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_null_is_not_allowed_if_allow_null_is_not_set
    ERROR tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_run_the_field_validation_even_if_the_field_is_null
    ERROR tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_allowed_if_allow_empty_is_set
    ERROR tests/test_serializer_nested.py::TestNestedSerializerWithMany::test_empty_not_allowed_if_allow_empty_is_set_to_false
    ERROR tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_json
    ERROR tests/test_serializer_nested.py::TestNestedSerializerWithList::test_nested_serializer_with_list_multipart
    ERROR tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_json_validate
    ERROR tests/test_serializer_nested.py::TestNotRequiredNestedSerializerWithMany::test_multipart_validate
    =========== 1298 passed, 5 skipped, 2 warnings, 122 errors in 44.21s ===========
    E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_djangorestframework/build; python3.11 -m pytest tests
    dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/djangorestframework_3.14.0-2_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Mar 23 14:00:01 2024
    This is a multi-part message in MIME format...

    Your message dated Sat, 23 Mar 2024 12:50:50 +0000
    with message-id <E1ro0pm-0037bO-9x@fasolo.debian.org>
    and subject line Bug#1066740: fixed in djangorestframework 3.15.1-1
    has caused the Debian Bug report #1066740,
    regarding djangorestframework: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1066740: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066740
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 13 Mar 2024 15:01:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-106.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 72; hammy, 150; neutral, 188; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <lucas@debian.org>
    Received: from stravinsky.debian.org ([2001:41b8:2