[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1 test fails in test suite with debian:sid
From: |
Ben Sturmfels |
Subject: |
Re: 1 test fails in test suite with debian:sid |
Date: |
Sat, 06 Mar 2021 15:27:09 +1100 |
User-agent: |
mu4e 1.4.15; emacs 27.1 |
Hi Irene,
Unfortunately we don't have the capacity to troubleshoot issues on Debian Sid
at this stage since by definition this distribution is not intended for
production use.
I would however like to get to the bottom of your Debian Buster issues
because I'm not able to reproduce them. Please reply attaching the *full*
output of the Docker run including the commands you execute. Please run
the following:
git fetch https://git.savannah.gnu.org/git/mediagoblin.git master
git checkout master
git status
docker build -t mediagoblin-python3 --no-cache - <
Dockerfile-debian-python3-sqlite
docker run --interactive --tty --publish 6543:6543 mediagoblin-python3:latest
Regards,
Ben
On Sat, 06 Mar 2021, irene@disroot.org wrote:
> I'm using Dockerfile-debian-python3-sqlite with debian:sid
>
> I can't use debian:buster because this distro has a bug with gcc in python
>
> $ docker build -t mediagoblin - < Dockerfile-debian-python3-sqlite
>
> Log1 debian:sid :
>
> ```
> ...
> RUN ./bin/python -m pytest ./mediagoblin/tests --boxed
> ---> Running in 06e59b6eaced
> ============================= test session starts
> ==============================
> platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
> rootdir: /opt/mediagoblin/mediagoblin/tests, configfile: pytest.ini
> plugins: celery-4.2.2, xdist-2.2.0, forked-1.3.0
> collected 182 items / 2 skipped / 180 selected
>
> mediagoblin/tests/test_api.py F..................... [
> 12%]
> mediagoblin/tests/test_audio.py .. [
> 13%]
> mediagoblin/tests/test_auth.py ... [
> 14%]
> mediagoblin/tests/test_basic_auth.py ... [
> 16%]
> mediagoblin/tests/test_celery_setup.py . [
> 17%]
> mediagoblin/tests/test_collections.py . [
> 17%]
> mediagoblin/tests/test_config.py .. [
> 18%]
> mediagoblin/tests/test_csrf_middleware.py ... [
> 20%]
> mediagoblin/tests/test_edit.py .... [
> 22%]
> mediagoblin/tests/test_exif.py ...... [
> 25%]
> mediagoblin/tests/test_globals.py . [
> 26%]
> mediagoblin/tests/test_legacy_api.py .. [
> 27%]
> mediagoblin/tests/test_messages.py . [
> 28%]
> mediagoblin/tests/test_metadata.py . [
> 28%]
> mediagoblin/tests/test_misc.py ..... [
> 31%]
> mediagoblin/tests/test_modelmethods.py ............. [
> 38%]
> mediagoblin/tests/test_moderation.py .... [
> 40%]
> mediagoblin/tests/test_notifications.py ... [
> 42%]
> mediagoblin/tests/test_oauth1.py .... [
> 44%]
> mediagoblin/tests/test_pdf.py s [
> 45%]
> mediagoblin/tests/test_persona.py . [
> 45%]
> mediagoblin/tests/test_piwigo.py . [
> 46%]
> mediagoblin/tests/test_pluginapi.py ........... [
> 52%]
> mediagoblin/tests/test_privileges.py .. [
> 53%]
> mediagoblin/tests/test_processing.py .. [
> 54%]
> mediagoblin/tests/test_reporting.py ... [
> 56%]
> mediagoblin/tests/test_response.py .... [
> 58%]
> mediagoblin/tests/test_session.py . [
> 58%]
> mediagoblin/tests/test_sql_migrations.py . [
> 59%]
> mediagoblin/tests/test_staticdirect.py . [
> 59%]
> mediagoblin/tests/test_storage.py ............. [
> 67%]
> mediagoblin/tests/test_submission.py ........................sss [
> 81%]
> mediagoblin/tests/test_subtitles.py ... [
> 83%]
> mediagoblin/tests/test_tags.py . [
> 84%]
> mediagoblin/tests/test_timesince.py . [
> 84%]
> mediagoblin/tests/test_tools.py .......... [
> 90%]
> mediagoblin/tests/test_util.py .......... [
> 95%]
> mediagoblin/tests/test_video.py ... [
> 97%]
> mediagoblin/tests/test_workbench.py .....
> [100%]
>
> =================================== FAILURES
> ===================================
> _________________________ TestAPI.test_can_post_image
> __________________________
> Traceback (most recent call last):
> File "/opt/mediagoblin/mediagoblin/tests/test_api.py", line 134, in
> test_can_post_image
> assert data["object"]["fullImage"]["url"].endswith("unknown.jpe")
> AssertionError: assert False
> + where False = <built-in method endswith of str object at
> 0x7feea0042490>('unknown.jpe')
> + where <built-in method endswith of str object at 0x7feea0042490> =
> 'http://localhost/mgoblin_media/media_entries/1/unknown.jfif'.endswith
> ---------------------------- Captured stdout setup
> -----------------------------
> Laying foundations for __main__:
> + Laying foundations for Privilege table
> Laying foundations for __main__:
> + Laying foundations for Privilege table
> ---------------------------- Captured stderr setup
> -----------------------------
> INFO [alembic.runtime.migration] Context impl SQLiteImpl.
> INFO [alembic.runtime.migration] Will assume non-transactional DDL.
> INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
> revision
> INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 ->
> 101510e3a713, #5382 Removes graveyard items from collections
> INFO [alembic.runtime.migration] Running upgrade 101510e3a713 ->
> 8429e33fdf7, Remove the Graveyard objects from CommentNotification objects
> INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 ->
> 4066b9f8b84a, use_comment_link_ids_notifications
> INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a ->
> 3145accb8fe3, remove tombstone comment wrappers
> INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 ->
> 228916769bd2, ensure Report.object_id is nullable
> INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 ->
> a98c1a320e88, Image media type initial migration
> INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 ->
> 071abb33d1da, OpenID plugin initial migration
> INFO [alembic.runtime.migration] Running upgrade 228916769bd2 ->
> afd3d1da5e29, Subtitle plugin initial migration
> INFO [alembic.runtime.migration] Running upgrade 228916769bd2 ->
> cc3651803714, add main transcoding progress column to MediaEntry
> INFO [alembic.runtime.migration] Context impl SQLiteImpl.
> INFO [alembic.runtime.migration] Will assume non-transactional DDL.
> INFO [alembic.runtime.migration] Running upgrade -> 52bf0ccbedc1, initial
> revision
> INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 ->
> 101510e3a713, #5382 Removes graveyard items from collections
> INFO [alembic.runtime.migration] Running upgrade 101510e3a713 ->
> 8429e33fdf7, Remove the Graveyard objects from CommentNotification objects
> INFO [alembic.runtime.migration] Running upgrade 8429e33fdf7 ->
> 4066b9f8b84a, use_comment_link_ids_notifications
> INFO [alembic.runtime.migration] Running upgrade 4066b9f8b84a ->
> 3145accb8fe3, remove tombstone comment wrappers
> INFO [alembic.runtime.migration] Running upgrade 3145accb8fe3 ->
> 228916769bd2, ensure Report.object_id is nullable
> INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 ->
> a98c1a320e88, Image media type initial migration
> INFO [alembic.runtime.migration] Running upgrade 52bf0ccbedc1 ->
> 071abb33d1da, OpenID plugin initial migration
> INFO [alembic.runtime.migration] Running upgrade 228916769bd2 ->
> afd3d1da5e29, Subtitle plugin initial migration
> INFO [alembic.runtime.migration] Running upgrade 228916769bd2 ->
> cc3651803714, add main transcoding progress column to MediaEntry
> =============================== warnings summary
> ===============================
> lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:4413
> lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:4413
>
> /opt/mediagoblin/lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:4413:
> DeprecationWarning: invalid escape sequence \?
>
> lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577
> lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577
>
> /opt/mediagoblin/lib/python3.9/site-packages/PyLD-1.0.5-py3.9.egg/pyld/jsonld.py:577:
> SyntaxWarning: "is" with a literal. Did you mean "=="?
>
> lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/canvas.py:12
>
> /opt/mediagoblin/lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/canvas.py:12:
> DeprecationWarning: Using or importing the ABCs from 'collections' instead
> of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will
> stop working
> from collections import MutableSequence, deque
>
> lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/schedules.py:8
>
> /opt/mediagoblin/lib/python3.9/site-packages/celery-4.2.2-py3.9.egg/celery/schedules.py:8:
> DeprecationWarning: Using or importing the ABCs from 'collections' instead
> of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will
> stop working
> from collections import Iterable, namedtuple
>
> mediagoblin/tests/test_modelmethods.py:139
> /opt/mediagoblin/mediagoblin/tests/test_modelmethods.py:139:
> DeprecationWarning: invalid escape sequence \
> """
>
> <unknown>:139
> <unknown>:139
> <unknown>:139
> <unknown>:139: DeprecationWarning: invalid escape sequence \
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info
> ============================
> FAILED mediagoblin/tests/test_api.py::TestAPI::test_can_post_image
> ====== 1 failed, 177 passed, 6 skipped, 10 warnings in 231.81s (0:03:51)
> =======
> The command '/bin/sh -c ./bin/python -m pytest ./mediagoblin/tests --boxed'
> returned a non-zero code: 1
>
> ```
>
> Log2 debian:buster
>
> ```
> ...
> Best match: py-bcrypt 0.4
> Processing py-bcrypt-0.4.tar.gz
> Writing /tmp/easy_install-dp9tf1e6/py-bcrypt-0.4/setup.cfg
> Running py-bcrypt-0.4/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-dp9tf1e6/py-bcrypt-0.4/egg-dist-tmp-cnyl82x_
> error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed
> with exit status 1
> make: *** [Makefile:119: bin/python] Error 1
> The command '/bin/sh -c make' returned a non-zero code: 2
> ```