Package: src:python-django-zeal Version: 2.0.4-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:python-django-zeal, 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_django-zeal * Building wheel... /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated [... snipped ...] @wraps(get_response) def inner(request): try: > response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/django/core/handlers/base.py:197: in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/djangoproject/social/views.py:25: in all_users_and_profiles "display_name": user.profile.display_name, ^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/db/models/fields/related_descriptors.py:481: in __get__ rel_obj = self.get_queryset(instance=instance).get(**filter_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ zeal/patch.py:321: in wrapper ret = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/db/models/query.py:635: in get num = len(clone) ^^^^^^^^^^ /usr/lib/python3/dist-packages/django/db/models/query.py:382: in __len__ self._fetch_all() zeal/patch.py:62: in wrapper n_plus_one_listener.notify( zeal/listeners.py:168: in notify self._alert(model, field, message, context.calls[key]) zeal/listeners.py:198: in _alert super()._alert(model, field, message, calls) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <zeal.listeners.NPlusOneListener object at 0x7ff0f22c6a50> model = <class 'djangoproject.social.models.User'>, field = 'profile' message = 'N+1 detected on social.User.profile at /usr/lib/python3/dist-packages/django/db/models/query.py:382 in __len__' calls = [[FrameInfo(frame=<frame at 0x7ff0f1899150, file '/usr/lib/python3/dist-packages/django/db/models/query.py', line 383,... code_context=None, index=None, positions=Positions(lineno=55, end_lineno=55, col_offset=27, end_col_offset=48)), ...]] def _alert( self, model: type[models.Model], field: str, message: str, calls: list[list[inspect.FrameInfo]], ): should_error = ( settings.ZEAL_RAISE if hasattr(settings, "ZEAL_RAISE") else True ) should_include_all_callers = ( settings.ZEAL_SHOW_ALL_CALLERS if hasattr(settings, "ZEAL_SHOW_ALL_CALLERS") else False ) is_allowlisted = False for entry in self._allowlist: model_match = fnmatch( f"{model._meta.app_label}.{model.__name__}", entry["model"] ) field_match = fnmatch(field, entry.get("field") or "*") if model_match and field_match: is_allowlisted = True break if is_allowlisted: return stack = get_stack() final_caller = get_caller(stack) if should_include_all_callers: message = f"{message} with calls:\n" for i, caller in enumerate(calls): message += f"CALL {i+1}:\n" for frame in caller: message += f" {frame.filename}:{frame.lineno} in {frame.function}\n" else: message = f"{message} at {final_caller.filename}:{final_caller.lineno} in {final_caller.function}" if should_error: > raise self.error_class(message) E zeal.errors.NPlusOneError: N+1 detected on social.User.profile at /usr/lib/python3/dist-packages/django/db/models/query.py:382 in __len__ zeal/listeners.py:137: NPlusOneError During handling of the above exception, another exception occurred: request = <WSGIRequest: GET '/users/'> @wraps(get_response) def inner(request): try: > response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ zeal/middleware.py:22: in middleware response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner response = response_for_exception(request, exc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:144: in response_for_exception log_response( /usr/lib/python3/dist-packages/django/utils/log.py:246: in log_response getattr(logger, level)( /usr/lib/python3.14/logging/__init__.py:1549: in error self._log(ERROR, msg, args, **kwargs) /usr/lib/python3.14/logging/__init__.py:1665: in _log self.handle(record) /usr/lib/python3.14/logging/__init__.py:1681: in handle self.callHandlers(record) /usr/lib/python3.14/logging/__init__.py:1737: in callHandlers hdlr.handle(record) /usr/lib/python3.14/logging/__init__.py:1027: in handle self.emit(record) /usr/lib/python3/dist-packages/django/utils/log.py:125: in emit reporter.get_traceback_text(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/views/debug.py:418: in get_traceback_text return t.render(c) ^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/base.py:175: in render return self._render(context) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/utils.py:111: in instrumented_test_render template_rendered.send(sender=self, template=self, context=context) /usr/lib/python3/dist-packages/django/dispatch/dispatcher.py:177: in send (receiver, receiver(signal=self, sender=sender, **named)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:267: in store_rendered_templates store["context"].append(copy(context)) ^^^^^^^^^^^^^ /usr/lib/python3.14/copy.py:82: in copy return copier(x) ^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/context.py:158: in __copy__ duplicate = super().__copy__() ^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = [{'True': True, 'False': False, 'None': None}, {'is_email': True, 'unicode_hint': '', 'frames': [{'exc_cause': None, '...lno': '\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', 'tb_area_colno': '\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^'}}] def __copy__(self): duplicate = copy(super()) > duplicate.dicts = self.dicts[:] ^^^^^^^^^^^^^^^ E AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes /usr/lib/python3/dist-packages/django/template/context.py:39: AttributeError During handling of the above exception, another exception occurred: client = <django.test.client.Client object at 0x7ff0f17befd0> def test_works_in_web_requests(client): [user_1, user_2] = UserFactory.create_batch(2) ProfileFactory.create(user=user_1) ProfileFactory.create(user=user_2) with pytest.raises( NPlusOneError, match=re.escape(r"N+1 detected on social.User.profile") ): > response = client.get("/users/") ^^^^^^^^^^^^^^^^^^^^^ tests/test_nplusones.py:487: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/django/test/client.py:927: in get response = super().get(path, data=data, secure=secure, headers=headers, **extra) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:457: in get return self.generic( /usr/lib/python3/dist-packages/django/test/client.py:609: in generic return self.request(**r) ^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:886: in request response = self.handler(environ) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:176: in __call__ response = self.get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/base.py:140: in get_response response = self._middleware_chain(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner response = response_for_exception(request, exc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:144: in response_for_exception log_response( /usr/lib/python3/dist-packages/django/utils/log.py:246: in log_response getattr(logger, level)( /usr/lib/python3.14/logging/__init__.py:1549: in error self._log(ERROR, msg, args, **kwargs) /usr/lib/python3.14/logging/__init__.py:1665: in _log self.handle(record) /usr/lib/python3.14/logging/__init__.py:1681: in handle self.callHandlers(record) /usr/lib/python3.14/logging/__init__.py:1737: in callHandlers hdlr.handle(record) /usr/lib/python3.14/logging/__init__.py:1027: in handle self.emit(record) /usr/lib/python3/dist-packages/django/utils/log.py:125: in emit reporter.get_traceback_text(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/views/debug.py:418: in get_traceback_text return t.render(c) ^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/base.py:175: in render return self._render(context) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/utils.py:111: in instrumented_test_render template_rendered.send(sender=self, template=self, context=context) /usr/lib/python3/dist-packages/django/dispatch/dispatcher.py:177: in send (receiver, receiver(signal=self, sender=sender, **named)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:267: in store_rendered_templates store["context"].append(copy(context)) ^^^^^^^^^^^^^ /usr/lib/python3.14/copy.py:82: in copy return copier(x) ^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/context.py:158: in __copy__ duplicate = super().__copy__() ^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = [{'True': True, 'False': False, 'None': None}, {'is_email': True, 'unicode_hint': '', 'frames': [{'exc_cause': None, '...lf):'], 'pre_context_lineno': 32, 'colno': '\n ^^^^^^^^^^^^^^^', 'tb_area_colno': '\n ^^^^^^^^^^^^^^^'}}] def __copy__(self): duplicate = copy(super()) > duplicate.dicts = self.dicts[:] ^^^^^^^^^^^^^^^ E AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes /usr/lib/python3/dist-packages/django/template/context.py:39: AttributeError ------------------------------------------------ benchmark: 1 tests ----------------------------------------------- Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations ------------------------------------------------------------------------------------------------------------------- test_performance 534.8622 554.4037 546.1196 8.6578 549.7975 14.9866 1;0 1.8311 5 1 ------------------------------------------------------------------------------------------------------------------- Legend: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile. OPS: Operations Per Second, computed as 1 / Mean =========================== short test summary info ============================ FAILED tests/test_nplusones.py::test_works_in_web_requests - AttributeError: ... ================== 1 failed, 53 passed, 3 deselected in 5.56s ================== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_django-zeal/build; python3.14 -m pytest -k 'not test_can_log_errors and not test_errors_include_caller and not test_ignores_calls_on_different_lines' I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_django-zeal/build; python3.13 -m pytest -k 'not test_can_log_errors and not test_errors_include_caller and not test_ignores_calls_on_different_lines' ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) django: version: 4.2.26, settings: djangoproject.settings (from ini) rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_django-zeal/build configfile: pyproject.toml testpaths: tests plugins: benchmark-5.2.3, Faker-33.3.1, typeguard-4.4.4, mock-3.15.1, django-4.11.1 collected 57 items / 3 deselected / 54 selected tests/test_listeners.py .................. [ 33%] tests/test_nplusones.py ............................. [ 87%] tests/test_patch.py ..... [ 96%] tests/test_performance.py . [ 98%] tests/test_signals.py . [100%] ------------------------------------------------ benchmark: 1 tests ------------------------------------------------ Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations -------------------------------------------------------------------------------------------------------------------- test_performance 529.4906 588.0846 543.2040 25.1439 532.9185 16.3978 1;1 1.8409 5 1 -------------------------------------------------------------------------------------------------------------------- Legend: Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile. OPS: Operations Per Second, computed as 1 / Mean ======================= 54 passed, 3 deselected in 5.36s ======================= dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:10: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

