Source: sorl-thumbnail
Version: 12.7.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220212 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py3versions: no X-Python3-Version in control file, using supported versions
> mkdir -p tmp-locales
> localedef -i en_US -c -f UTF-8 tmp-locales/en_US.UTF-8
> set -e; \
> for python in python3.10 python3.9; do \
>     for name in pil pgmagick imagemagick graphicsmagick; do \
>         LOCPATH=/<<PKGBUILDDIR>>/tmp-locales LC_ALL=en_US.UTF-8 PYTHONPATH=. 
> LOCAL_BUILD=1 DJANGO_SETTINGS_MODULE=tests.settings.$name $python -m pytest ; 
> \
>     done; \
> done
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> Django settings: tests.settings.pil (from environment variable)
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg, testpaths: tests
> plugins: django-3.5.1
> collected 76 items
> 
> tests/thumbnail_tests/test_alternative_resolutions.py .                  [  
> 1%]
> tests/thumbnail_tests/test_backends.py ............                      [ 
> 17%]
> tests/thumbnail_tests/test_commands.py ....                              [ 
> 22%]
> tests/thumbnail_tests/test_engines.py ...........................ss      [ 
> 60%]
> tests/thumbnail_tests/test_filters.py s.s.                               [ 
> 65%]
> tests/thumbnail_tests/test_storage.py ....                               [ 
> 71%]
> tests/thumbnail_tests/test_templatetags.py ........ss.....               [ 
> 90%]
> tests/thumbnail_tests/test_admin.py .                                    [ 
> 92%]
> tests/thumbnail_tests/test_kvstore.py .                                  [ 
> 93%]
> tests/thumbnail_tests/test_parsers.py .....                              
> [100%]
> 
> =============================== warnings summary 
> ===============================
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:9: RemovedInDjango40Warning: 
> django.conf.urls.url() is deprecated in favor of django.urls.re_path().
>     url(r'^media/(?P<path>.+)$', serve,
> 
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:11: 
> RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of 
> django.urls.re_path().
>     url(r'^(.*\.html)$', direct_to_template),
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> ================== 70 passed, 6 skipped, 2 warnings in 1.14s 
> ===================
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> Django settings: tests.settings.pgmagick (from environment variable)
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg, testpaths: tests
> plugins: django-3.5.1
> collected 76 items
> 
> tests/thumbnail_tests/test_alternative_resolutions.py .                  [  
> 1%]
> tests/thumbnail_tests/test_backends.py ............                      [ 
> 17%]
> tests/thumbnail_tests/test_commands.py ....                              [ 
> 22%]
> tests/thumbnail_tests/test_engines.py .............s......s...s..ss      [ 
> 60%]
> tests/thumbnail_tests/test_filters.py s.s.                               [ 
> 65%]
> tests/thumbnail_tests/test_storage.py ....                               [ 
> 71%]
> tests/thumbnail_tests/test_templatetags.py ........ss.....               [ 
> 90%]
> tests/thumbnail_tests/test_admin.py .                                    [ 
> 92%]
> tests/thumbnail_tests/test_kvstore.py .                                  [ 
> 93%]
> tests/thumbnail_tests/test_parsers.py .....                              
> [100%]
> 
> =============================== warnings summary 
> ===============================
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:9: RemovedInDjango40Warning: 
> django.conf.urls.url() is deprecated in favor of django.urls.re_path().
>     url(r'^media/(?P<path>.+)$', serve,
> 
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:11: 
> RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of 
> django.urls.re_path().
>     url(r'^(.*\.html)$', direct_to_template),
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> ================== 67 passed, 9 skipped, 2 warnings in 1.02s 
> ===================
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> Django settings: tests.settings.imagemagick (from environment variable)
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg, testpaths: tests
> plugins: django-3.5.1
> collected 76 items
> 
> tests/thumbnail_tests/test_alternative_resolutions.py .                  [  
> 1%]
> tests/thumbnail_tests/test_backends.py ............                      [ 
> 17%]
> tests/thumbnail_tests/test_commands.py ....                              [ 
> 22%]
> tests/thumbnail_tests/test_engines.py .............s......s...s..ss      [ 
> 60%]
> tests/thumbnail_tests/test_filters.py s.s.                               [ 
> 65%]
> tests/thumbnail_tests/test_storage.py ....                               [ 
> 71%]
> tests/thumbnail_tests/test_templatetags.py ........ss.....               [ 
> 90%]
> tests/thumbnail_tests/test_admin.py .                                    [ 
> 92%]
> tests/thumbnail_tests/test_kvstore.py .                                  [ 
> 93%]
> tests/thumbnail_tests/test_parsers.py .....                              
> [100%]
> 
> =============================== warnings summary 
> ===============================
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:9: RemovedInDjango40Warning: 
> django.conf.urls.url() is deprecated in favor of django.urls.re_path().
>     url(r'^media/(?P<path>.+)$', serve,
> 
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:11: 
> RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of 
> django.urls.re_path().
>     url(r'^(.*\.html)$', direct_to_template),
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> ================== 67 passed, 9 skipped, 2 warnings in 2.87s 
> ===================
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.2, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> Django settings: tests.settings.graphicsmagick (from environment variable)
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg, testpaths: tests
> plugins: django-3.5.1
> collected 76 items
> 
> tests/thumbnail_tests/test_alternative_resolutions.py .                  [  
> 1%]
> tests/thumbnail_tests/test_backends.py ............                      [ 
> 17%]
> tests/thumbnail_tests/test_commands.py ....                              [ 
> 22%]
> tests/thumbnail_tests/test_engines.py .............s......sF..s..ss      [ 
> 60%]
> tests/thumbnail_tests/test_filters.py s.s.                               [ 
> 65%]
> tests/thumbnail_tests/test_storage.py ....                               [ 
> 71%]
> tests/thumbnail_tests/test_templatetags.py ....F...ss.....               [ 
> 90%]
> tests/thumbnail_tests/test_admin.py .                                    [ 
> 92%]
> tests/thumbnail_tests/test_kvstore.py .                                  [ 
> 93%]
> tests/thumbnail_tests/test_parsers.py .....                              
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ___________________ CropTestCase.test_image_with_orientation 
> ___________________
> 
> self = <tests.thumbnail_tests.test_engines.CropTestCase 
> testMethod=test_image_with_orientation>
> 
>     def test_image_with_orientation(self):
>         name = 'data/aspect_test.jpg'
>         item, _ = Item.objects.get_or_create(image=name)
>     
>         im = ImageFile(item.image)
>         th = self.BACKEND.get_thumbnail(im, '50x50')
>     
>         # this is a 100x200 image with orientation 6 (90 degrees CW rotate)
>         # the thumbnail should end up 25x50
> >       self.assertEqual(th.x, 25)
> E       AssertionError: 50 != 25
> 
> tests/thumbnail_tests/test_engines.py:371: AssertionError
> ------------------------------ Captured log call 
> -------------------------------
> DEBUG    slog:storage.py:49 exists: 
> test/cache/32/2a/322a5d75f09eb4a89551e69e282e7aef.jpg
> DEBUG    slog:storage.py:25 open: data/aspect_test.jpg
> DEBUG    slog:storage.py:29 save: 
> test/cache/32/2a/322a5d75f09eb4a89551e69e282e7aef.jpg
> DEBUG    slog:storage.py:37 get_available_name: 
> test/cache/32/2a/322a5d75f09eb4a89551e69e282e7aef.jpg
> DEBUG    slog:storage.py:49 exists: 
> test/cache/32/2a/322a5d75f09eb4a89551e69e282e7aef.jpg
> ______________________ TemplateTestCaseA.test_orientation 
> ______________________
> 
> self = <tests.thumbnail_tests.test_templatetags.TemplateTestCaseA 
> testMethod=test_orientation>
> 
>     def test_orientation(self):
>         ref = Image.open(os.path.join(DATA_DIR, '1_topleft.jpg'))
>         top = ref.getpixel((14, 7))
>         left = ref.getpixel((7, 14))
>         engine = PILEngine()
>     
>         def epsilon(x, y):
>             if isinstance(x, (tuple, list)):
>                 x = sum(x) / len(x)
>             if isinstance(y, (tuple, list)):
>                 y = sum(y) / len(y)
>             return abs(x - y)
>     
>         data_images = (
>             '1_topleft.jpg',
>             '2_topright.jpg',
>             '3_bottomright.jpg',
>             '4_bottomleft.jpg',
>             '5_lefttop.jpg',
>             '6_righttop.jpg',
>             '7_rightbottom.jpg',
>             '8_leftbottom.jpg'
>         )
>     
>         for name in data_images:
>             th = self.BACKEND.get_thumbnail('data/%s' % name, '30x30')
>             im = engine.get_image(th)
>     
>             self.assertLess(epsilon(top, im.getpixel((14, 7))), 10)
> >           self.assertLess(epsilon(left, im.getpixel((7, 14))), 10)
> E           AssertionError: 85 not less than 10
> 
> tests/thumbnail_tests/test_templatetags.py:111: AssertionError
> ------------------------------ Captured log call 
> -------------------------------
> DEBUG    slog:storage.py:49 exists: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:25 open: data/1_topleft.jpg
> DEBUG    slog:storage.py:29 save: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:37 get_available_name: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:49 exists: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:25 open: 
> test/cache/c9/9a/c99a5bdaa10e2eb83215159fdd429d67.jpg
> DEBUG    slog:storage.py:49 exists: 
> test/cache/ff/a8/ffa80144fcd07dc0506bdcd361c343d4.jpg
> DEBUG    slog:storage.py:25 open: data/2_topright.jpg
> DEBUG    slog:storage.py:29 save: 
> test/cache/ff/a8/ffa80144fcd07dc0506bdcd361c343d4.jpg
> DEBUG    slog:storage.py:37 get_available_name: 
> test/cache/ff/a8/ffa80144fcd07dc0506bdcd361c343d4.jpg
> DEBUG    slog:storage.py:49 exists: 
> test/cache/ff/a8/ffa80144fcd07dc0506bdcd361c343d4.jpg
> DEBUG    slog:storage.py:25 open: 
> test/cache/ff/a8/ffa80144fcd07dc0506bdcd361c343d4.jpg
> =============================== warnings summary 
> ===============================
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:9: RemovedInDjango40Warning: 
> django.conf.urls.url() is deprecated in favor of django.urls.re_path().
>     url(r'^media/(?P<path>.+)$', serve,
> 
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseClient::test_empty_error
>   /<<PKGBUILDDIR>>/tests/thumbnail_tests/urls.py:11: 
> RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of 
> django.urls.re_path().
>     url(r'^(.*\.html)$', direct_to_template),
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info 
> ============================
> FAILED 
> tests/thumbnail_tests/test_engines.py::CropTestCase::test_image_with_orientation
> FAILED 
> tests/thumbnail_tests/test_templatetags.py::TemplateTestCaseA::test_orientation
> ============= 2 failed, 65 passed, 9 skipped, 2 warnings in 3.01s 
> ==============
> make[1]: *** [debian/rules:20: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/02/12/sorl-thumbnail_12.7.0-1_unstable.log

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 marking 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.

Reply via email to