--- Begin Message ---
Source: python-inotify
Version: 0.2.10-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20230203 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> 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
> I: pybuild base:240: python3.11 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify
> copying inotify/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify
> copying inotify/test_support.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify
> copying inotify/adapters.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify
> copying inotify/constants.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify
> copying inotify/library.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify
> copying inotify/calls.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify
> running egg_info
> creating inotify.egg-info
> writing inotify.egg-info/PKG-INFO
> writing dependency_links to inotify.egg-info/dependency_links.txt
> writing top-level names to inotify.egg-info/top_level.txt
> writing manifest file 'inotify.egg-info/SOURCES.txt'
> reading manifest file 'inotify.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'inotify.egg-info/SOURCES.txt'
> /usr/lib/python3/dist-packages/setuptools/command/build_py.py:202:
> SetuptoolsDeprecationWarning: Installing 'inotify.resources' as data is
> deprecated, please list it in `packages`.
> !!
>
>
> ############################
> # Package would be ignored #
> ############################
> Python recognizes 'inotify.resources' as an importable package,
> but it is not listed in the `packages` configuration of setuptools.
>
> 'inotify.resources' has been automatically added to the distribution only
> because it may contain data files, but this behavior is likely to change
> in future versions of setuptools (and therefore is considered deprecated).
>
> Please make sure that 'inotify.resources' is included as a package by
> using
> the `packages` configuration field or the proper discovery methods
> (for example by using `find_namespace_packages(...)`/`find_namespace:`
> instead of `find_packages(...)`/`find:`).
>
> You can read more about "package discovery" and "data files" on setuptools
> documentation page.
>
>
> !!
>
> check.warn(importable)
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify/resources
> copying inotify/resources/README.rst ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify/resources
> copying inotify/resources/requirements.txt ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/inotify/resources
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build; python3.11 -m
> pytest -k 'not test__cycle'
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.1, pytest-7.2.1, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>
> collected 9 items / 3 deselected / 6 selected
>
> tests/test_inotify.py .s...F
> [100%]
>
> =================================== FAILURES
> ===================================
> ________________________ TestInotifyTree.test__renames
> _________________________
>
> self = <tests.test_inotify.TestInotifyTree testMethod=test__renames>
>
> def test__renames(self):
>
> # Since we're not reading the events one at a time in a loop and
> # removing or renaming folders will flush any queued events, we have
> to
> # group things in order to check things first before such operations.
>
> with inotify.test_support.temp_path() as path:
> i = inotify.adapters.InotifyTree(path)
>
> old_path = os.path.join(path, 'old_folder')
> new_path = os.path.join(path, 'new_folder')
>
> os.mkdir(old_path)
>
> events1 = self.__read_all_events(i)
>
> expected = [
> (inotify.adapters._INOTIFY_EVENT(wd=1, mask=1073742080,
> cookie=events1[0][0].cookie, len=16), ['IN_CREATE', 'IN_ISDIR'], path,
> 'old_folder'),
> ]
>
> self.assertEquals(events1, expected)
>
>
> os.rename(old_path, new_path)
>
> events2 = self.__read_all_events(i)
>
> expected = [
> (inotify.adapters._INOTIFY_EVENT(wd=1, mask=1073741888,
> cookie=events2[0][0].cookie, len=16), ['IN_MOVED_FROM', 'IN_ISDIR'], path,
> 'old_folder'),
> (inotify.adapters._INOTIFY_EVENT(wd=1, mask=1073741952,
> cookie=events2[1][0].cookie, len=16), ['IN_MOVED_TO', 'IN_ISDIR'], path,
> 'new_folder'),
> ]
>
> self.assertEquals(events2, expected)
>
>
> with open(os.path.join(new_path, 'old_filename'), 'w'):
> pass
>
> os.rename(
> os.path.join(new_path, 'old_filename'),
> os.path.join(new_path, 'new_filename'))
>
> os.remove(os.path.join('new_folder', 'new_filename'))
> os.rmdir('new_folder')
>
> events3 = self.__read_all_events(i)
>
> expected = [
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=256, cookie=0,
> len=16), ['IN_CREATE'], new_path, 'old_filename'),
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=32, cookie=0,
> len=16), ['IN_OPEN'], new_path, 'old_filename'),
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=8, cookie=0,
> len=16), ['IN_CLOSE_WRITE'], new_path, 'old_filename'),
>
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=64,
> cookie=events3[3][0].cookie, len=16), ['IN_MOVED_FROM'], new_path,
> 'old_filename'),
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=128,
> cookie=events3[4][0].cookie, len=16), ['IN_MOVED_TO'], new_path,
> 'new_filename'),
>
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=512, cookie=0,
> len=16), ['IN_DELETE'], new_path, 'new_filename'),
>
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=1024, cookie=0,
> len=0), ['IN_DELETE_SELF'], new_path, ''),
> (inotify.adapters._INOTIFY_EVENT(wd=3, mask=32768, cookie=0,
> len=0), ['IN_IGNORED'], new_path, ''),
> (inotify.adapters._INOTIFY_EVENT(wd=1, mask=1073742336,
> cookie=0, len=16), ['IN_DELETE', 'IN_ISDIR'], path, 'new_folder'),
> ]
>
> > self.assertEquals(events3, expected)
> E AssertionError: Lists differ: [(_IN[711 chars]T(wd=1,
> mask=1073742336, cookie=0, len=16), ['[265 chars] '')] != [(_IN[711
> chars]T(wd=3, mask=1024, cookie=0, len=0), ['IN_DELE[265 chars]er')]
> E
> E First differing element 6:
> E (_INOTIFY_EVENT(wd=1, mask=1073742336, cookie=0, len=16), ['[53
> chars]der')
> E (_INOTIFY_EVENT(wd=3, mask=1024, cookie=0, len=0), ['IN_DELE[40
> chars], '')
> E
> E [(_INOTIFY_EVENT(wd=3, mask=256, cookie=0, len=16),
> E ['IN_CREATE'],
> E '/tmp/tmpgzins1ev/new_folder',
> E 'old_filename'),
> E (_INOTIFY_EVENT(wd=3, mask=32, cookie=0, len=16),
> E ['IN_OPEN'],
> E '/tmp/tmpgzins1ev/new_folder',
> E 'old_filename'),
> E (_INOTIFY_EVENT(wd=3, mask=8, cookie=0, len=16),
> E ['IN_CLOSE_WRITE'],
> E '/tmp/tmpgzins1ev/new_folder',
> E 'old_filename'),
> E (_INOTIFY_EVENT(wd=3, mask=64, cookie=9111973, len=16),
> E ['IN_MOVED_FROM'],
> E '/tmp/tmpgzins1ev/new_folder',
> E 'old_filename'),
> E (_INOTIFY_EVENT(wd=3, mask=128, cookie=9111973, len=16),
> E ['IN_MOVED_TO'],
> E '/tmp/tmpgzins1ev/new_folder',
> E 'new_filename'),
> E (_INOTIFY_EVENT(wd=3, mask=512, cookie=0, len=16),
> E ['IN_DELETE'],
> E '/tmp/tmpgzins1ev/new_folder',
> E 'new_filename'),
> E - (_INOTIFY_EVENT(wd=1, mask=1073742336, cookie=0, len=16),
> E - ['IN_DELETE', 'IN_ISDIR'],
> E - '/tmp/tmpgzins1ev',
> E - 'new_folder'),
> E (_INOTIFY_EVENT(wd=3, mask=1024, cookie=0, len=0),
> E ['IN_DELETE_SELF'],
> E '/tmp/tmpgzins1ev/new_folder',
> E ''),
> E (_INOTIFY_EVENT(wd=3, mask=32768, cookie=0, len=0),
> E ['IN_IGNORED'],
> E '/tmp/tmpgzins1ev/new_folder',
> E - '')]
> E ? ^
> E
> E + ''),
> E ? ^
> E
> E + (_INOTIFY_EVENT(wd=1, mask=1073742336, cookie=0, len=16),
> E + ['IN_DELETE', 'IN_ISDIR'],
> E + '/tmp/tmpgzins1ev',
> E + 'new_folder')]
>
> tests/test_inotify.py:277: AssertionError
> ------------------------------ Captured log call
> -------------------------------
> WARNING inotify.adapters:adapters.py:90 Path already being watched:
> [/tmp/tmpgzins1ev/new_folder]
> =============================== warnings summary
> ===============================
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotify::test__get_event_names
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:146:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(names, all_names)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotify::test__international_naming_python3
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:48:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events, expected)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_existing_paths
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:350:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events, expected)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_new_paths
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:298:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events, expected)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_new_paths
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:309:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events, expected)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_new_paths
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:323:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events, expected)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__renames
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:235:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events1, expected)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__renames
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:247:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events2, expected)
>
> .pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__renames
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build/tests/test_inotify.py:277:
> DeprecationWarning: Please use assertEqual instead.
> self.assertEquals(events3, expected)
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED tests/test_inotify.py::TestInotifyTree::test__renames -
> AssertionError...
> ======= 1 failed, 4 passed, 1 skipped, 3 deselected, 9 warnings in 8.09s
> =======
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_python-inotify/build; python3.11 -m
> pytest -k 'not test__cycle'
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/02/03/python-inotify_0.2.10-3_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230203;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230203&[email protected]&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.
--- End Message ---