Package: src:django-axes
Version: 5.4.3-1
Severity: serious
Control: close -1 5.39.0-2
Tags: ftbfs bullseye

Dear maintainer:

During a rebuild of all packages in bullseye, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with python3,sphinxdoc --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
        install -d /<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home
        pybuild --configure --test-pytest -i python{version} -p 3.9
I: pybuild base:232: python3.9 setup.py config
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
        pybuild --build --test-pytest -i python{version} -p 3.9
I: pybuild base:232: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/exceptions.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/backends.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/admin.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/utils.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/signals.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/decorators.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/checks.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/apps.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/middleware.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/models.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/conf.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/helpers.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
copying axes/attempts.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management
copying axes/management/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_management.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/base.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_signals.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_logging.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/urls.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_decorators.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_handlers.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_admin.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_login.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_middleware.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_checks.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_utils.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_attempts.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/urls_empty.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_helpers.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_backends.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/test_models.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
copying axes/tests/settings.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/tests
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
copying axes/handlers/base.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
copying axes/handlers/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
copying axes/handlers/proxy.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
copying axes/handlers/database.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
copying axes/handlers/test.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
copying axes/handlers/cache.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
copying axes/handlers/dummy.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/handlers
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
copying axes/migrations/0005_remove_accessattempt_trusted.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
copying axes/migrations/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
copying axes/migrations/0003_auto_20160322_0929.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
copying axes/migrations/0006_remove_accesslog_trusted.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
copying axes/migrations/0002_auto_20151217_2044.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
copying axes/migrations/0001_initial.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
copying axes/migrations/0004_auto_20181024_1538.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/migrations
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
copying axes/management/commands/axes_reset_username.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
copying axes/management/commands/axes_reset_ip.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
copying axes/management/commands/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
copying axes/management/commands/axes_reset.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
copying axes/management/commands/axes_reset_logs.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
copying axes/management/commands/axes_reset_user.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
copying axes/management/commands/axes_list_attempts.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/management/commands
running egg_info
creating django_axes.egg-info
writing django_axes.egg-info/PKG-INFO
writing dependency_links to django_axes.egg-info/dependency_links.txt
writing requirements to django_axes.egg-info/requires.txt
writing top-level names to django_axes.egg-info/top_level.txt
writing manifest file 'django_axes.egg-info/SOURCES.txt'
reading manifest file 'django_axes.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'django_axes.egg-info/SOURCES.txt'
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/de
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/de/LC_MESSAGES
copying axes/locale/de/LC_MESSAGES/django.mo -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/de/LC_MESSAGES
copying axes/locale/de/LC_MESSAGES/django.po -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/de/LC_MESSAGES
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/ru
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/ru/LC_MESSAGES
copying axes/locale/ru/LC_MESSAGES/django.mo -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/ru/LC_MESSAGES
copying axes/locale/ru/LC_MESSAGES/django.po -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/ru/LC_MESSAGES
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/tr
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/tr/LC_MESSAGES
copying axes/locale/tr/LC_MESSAGES/django.mo -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/tr/LC_MESSAGES
copying axes/locale/tr/LC_MESSAGES/django.po -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-axes/build/axes/locale/tr/LC_MESSAGES
PYTHONPATH=. http_proxy='http://127.0.0.1:9/' python3 /usr/bin/sphinx-build -N 
-bhtml docs debian/html
Running Sphinx v3.4.3
AXES: BEGIN LOG
AXES: Using django-axes version 5.4.3
AXES: blocking by IP only.
making output directory... done
WARNING: html_static_path entry '_static' does not exist
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 11 source files that are out of date
updating environment: [new config] 11 added, 0 changed, 0 removed
reading sources... [  9%] 10_changelog
reading sources... [ 18%] 1_requirements
reading sources... [ 27%] 2_installation
reading sources... [ 36%] 3_usage
reading sources... [ 45%] 4_configuration
reading sources... [ 54%] 5_customization
reading sources... [ 63%] 6_integration
reading sources... [ 72%] 7_architecture
reading sources... [ 81%] 8_reference
reading sources... [ 90%] 9_development
reading sources... [100%] index

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [  9%] 10_changelog
writing output... [ 18%] 1_requirements
writing output... [ 27%] 2_installation
writing output... [ 36%] 3_usage
writing output... [ 45%] 4_configuration
writing output... [ 54%] 5_customization
writing output... [ 63%] 6_integration
writing output... [ 72%] 7_architecture
writing output... [ 81%] 8_reference
writing output... [ 90%] 9_development
writing output... [100%] index

generating indices... genindex py-modindex done
writing additional pages... search done
copying images... [100%] images/flow.png

copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 1 warning.

The HTML pages are in debian/html.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
        rm -f debian/python3-django-axes-doc.debhelper.log 
debian/python3-django-axes.debhelper.log
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="py.test-3" \
PYTHONPATH=. dh_auto_test
        pybuild --test --test-pytest -i python{version} -p 3.9
I: pybuild base:232: py.test-3
============================= test session starts ==============================
platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
Django settings: axes.tests.settings (from ini file)
rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
plugins: django-3.5.1, cov-2.10.1
collected 191 items

axes/tests/test_admin.py ..                                              [  1%]
axes/tests/test_attempts.py .....                                        [  3%]
axes/tests/test_backends.py ..                                           [  4%]
axes/tests/test_checks.py .........                                      [  9%]
axes/tests/test_decorators.py ....                                       [ 11%]
axes/tests/test_handlers.py .....................................        [ 30%]
axes/tests/test_helpers.py ............                                  [ 37%]
axes/tests/test_logging.py ......F....                                   [ 42%]
axes/tests/test_login.py ........................................        [ 63%]
axes/tests/test_management.py ...........                                [ 69%]
axes/tests/test_middleware.py ..                                         [ 70%]
axes/tests/test_models.py ...                                            [ 72%]
axes/tests/test_signals.py .                                             [ 72%]
axes/tests/test_utils.py ............................................... [ 97%]
.....                                                                    [100%]

=================================== FAILURES ===================================
__________________ AccessLogTestCase.test_log_data_truncated ___________________

self = <axes.tests.test_logging.AccessLogTestCase 
testMethod=test_log_data_truncated>

    def test_log_data_truncated(self):
        """
        Test that get_query_str properly truncates data to the max_length 
(default 1024).
        """
# An impossibly large post dict
        extra_data = {"a" * x: x for x in range(1024)}
        self.login(**extra_data)
      self.assertEqual(len(AccessAttempt.objects.latest("id").post_data), 1024)

axes/tests/test_logging.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/django/db/models/manager.py:82: in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/lib/python3/dist-packages/django/db/models/query.py:649: in latest
    return self.reverse()._earliest(*fields, field_name=field_name)
/usr/lib/python3/dist-packages/django/db/models/query.py:643: in _earliest
    return obj.get()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <QuerySet []>, args = (), kwargs = {}, clone = <QuerySet []>, num = 0

    def get(self, *args, **kwargs):
        """
        Perform the query and return a single object matching the given
        keyword arguments.
        """
        clone = self.filter(*args, **kwargs)
        if self.query.can_filter() and not self.query.distinct_fields:
            clone = clone.order_by()
        num = len(clone)
        if num == 1:
            return clone._result_cache[0]
        if not num:
          raise self.model.DoesNotExist(
                "%s matching query does not exist." %
                self.model._meta.object_name
            )
E           axes.models.AccessAttempt.DoesNotExist: AccessAttempt matching 
query does not exist.

/usr/lib/python3/dist-packages/django/db/models/query.py:406: DoesNotExist
------------------------------ Captured log call -------------------------------
ERROR    django.security.TooManyFieldsSent:exception.py:76 The number of 
GET/POST parameters exceeded settings.DATA_UPLOAD_MAX_NUMBER_FIELDS.
WARNING  django.request:log.py:222 Bad Request: /admin/login/

----------- coverage: platform linux, python 3.9.2-final-0 -----------
Name                                                   Stmts   Miss Branch 
BrPart  Cover   Missing
--------------------------------------------------------------------------------------------------
axes/__init__.py                                           3      0      0      
0   100%
axes/admin.py                                             25      0      2      
0   100%
axes/apps.py                                              27      0     10      
0   100%
axes/attempts.py                                          39      0      8      
0   100%
axes/backends.py                                          16      0      4      
0   100%
axes/checks.py                                            65      0     16      
0   100%
axes/conf.py                                              39      0      0      
0   100%
axes/decorators.py                                        16      0      4      
0   100%
axes/exceptions.py                                         3      0      0      
0   100%
axes/handlers/__init__.py                                  0      0      0      
0   100%
axes/handlers/base.py                                     67     11     20      1  
  86%   27, 34, 41, 51, 112->113, 113, 158, 169, 178, 181, 184, 187
axes/handlers/cache.py                                    46      0     10      
0   100%
axes/handlers/database.py                                 76      0     20      
0   100%
axes/handlers/dummy.py                                    12      1      0      
0    92%   19
axes/handlers/proxy.py                                    67      2      6      
0    97%   77-78
axes/handlers/test.py                                     10      0      0      
0   100%
axes/helpers.py                                          186      0     86      
0   100%
axes/management/__init__.py                                0      0      0      
0   100%
axes/management/commands/__init__.py                       0      0      0      
0   100%
axes/management/commands/axes_list_attempts.py             7      0      2      
0   100%
axes/management/commands/axes_reset.py                     9      0      2      
0   100%
axes/management/commands/axes_reset_ip.py                 13      0      4      
0   100%
axes/management/commands/axes_reset_logs.py               11      0      2      
0   100%
axes/management/commands/axes_reset_username.py           13      0      4      
0   100%
axes/middleware.py                                        10      0      2      
0   100%
axes/migrations/0001_initial.py                            4      0      0      
0   100%
axes/migrations/0002_auto_20151217_2044.py                 4      0      0      
0   100%
axes/migrations/0003_auto_20160322_0929.py                 4      0      0      
0   100%
axes/migrations/0004_auto_20181024_1538.py                 4      0      0      
0   100%
axes/migrations/0005_remove_accessattempt_trusted.py       4      0      0      
0   100%
axes/migrations/0006_remove_accesslog_trusted.py           4      0      0      
0   100%
axes/migrations/__init__.py                                0      0      0      
0   100%
axes/models.py                                            29      0      0      
0   100%
axes/signals.py                                           30      0      2      
0   100%
axes/tests/__init__.py                                     0      0      0      
0   100%
axes/tests/base.py                                        98      0     10      
0   100%
axes/tests/settings.py                                    16      0      0      
0   100%
axes/tests/test_admin.py                                  22      0      0      
0   100%
axes/tests/test_attempts.py                               34      0      0      
0   100%
axes/tests/test_backends.py                               14      0      0      
0   100%
axes/tests/test_checks.py                                 52      0      0      
0   100%
axes/tests/test_decorators.py                             31      0      0      
0   100%
axes/tests/test_handlers.py                              182      0     18      
0   100%
axes/tests/test_helpers.py                                62      0      2      
0   100%
axes/tests/test_logging.py                                67      0      4      
0   100%
axes/tests/test_login.py                                 243      0     12      
0   100%
axes/tests/test_management.py                             76      0      0      
0   100%
axes/tests/test_middleware.py                             20      0      0      
0   100%
axes/tests/test_models.py                                 22      0      0      
0   100%
axes/tests/test_signals.py                                10      0      0      
0   100%
axes/tests/test_utils.py                                 331      0      6      
0   100%
axes/tests/urls.py                                         3      0      0      
0   100%
axes/tests/urls_empty.py                                   1      0      0      
0   100%
axes/utils.py                                              5      0      0      
0   100%
--------------------------------------------------------------------------------------------------
TOTAL                                                   2132     14    256      
1    99%

=========================== short test summary info ============================
FAILED axes/tests/test_logging.py::AccessLogTestCase::test_log_data_truncated
======================== 1 failed, 190 passed in 13.09s ========================
E: pybuild pybuild:353: test: plugin custom failed with: exit code=1: py.test-3
        rm -fr -- /tmp/dh-xdg-rundir-xn96FBy9
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 
returned exit code 13
make[1]: *** [debian/rules:21: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/bullseye/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Reply via email to