Source: python-inotify Version: 0.2.10-2 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20220728 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:239: python3.10 setup.py config > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:239: /usr/bin/python3 setup.py build > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify > copying inotify/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify > copying inotify/test_support.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify > copying inotify/adapters.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify > copying inotify/constants.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify > copying inotify/library.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify > copying inotify/calls.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_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 requirements to inotify.egg-info/requires.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' > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify/resources > copying inotify/resources/README.rst -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify/resources > copying inotify/resources/requirements.txt -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/inotify/resources > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:239: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build; python3.10 -m > pytest -k 'not test__cycle' > ============================= test session starts > ============================== > platform linux -- Python 3.10.5, pytest-7.1.2, 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/tmp52hf4bmg/new_folder', > E 'old_filename'), > E (_INOTIFY_EVENT(wd=3, mask=32, cookie=0, len=16), > E ['IN_OPEN'], > E '/tmp/tmp52hf4bmg/new_folder', > E 'old_filename'), > E (_INOTIFY_EVENT(wd=3, mask=8, cookie=0, len=16), > E ['IN_CLOSE_WRITE'], > E '/tmp/tmp52hf4bmg/new_folder', > E 'old_filename'), > E (_INOTIFY_EVENT(wd=3, mask=64, cookie=7439146, len=16), > E ['IN_MOVED_FROM'], > E '/tmp/tmp52hf4bmg/new_folder', > E 'old_filename'), > E (_INOTIFY_EVENT(wd=3, mask=128, cookie=7439146, len=16), > E ['IN_MOVED_TO'], > E '/tmp/tmp52hf4bmg/new_folder', > E 'new_filename'), > E (_INOTIFY_EVENT(wd=3, mask=512, cookie=0, len=16), > E ['IN_DELETE'], > E '/tmp/tmp52hf4bmg/new_folder', > E 'new_filename'), > E - (_INOTIFY_EVENT(wd=1, mask=1073742336, cookie=0, len=16), > E - ['IN_DELETE', 'IN_ISDIR'], > E - '/tmp/tmp52hf4bmg', > E - 'new_folder'), > E (_INOTIFY_EVENT(wd=3, mask=1024, cookie=0, len=0), > E ['IN_DELETE_SELF'], > E '/tmp/tmp52hf4bmg/new_folder', > E ''), > E (_INOTIFY_EVENT(wd=3, mask=32768, cookie=0, len=0), > E ['IN_IGNORED'], > E '/tmp/tmp52hf4bmg/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/tmp52hf4bmg', > E + 'new_folder')] > > tests/test_inotify.py:277: AssertionError > ------------------------------ Captured log call > ------------------------------- > WARNING inotify.adapters:adapters.py:90 Path already being watched: > [/tmp/tmp52hf4bmg/new_folder] > =============================== warnings summary > =============================== > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotify::test__get_event_names > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:146: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(names, all_names) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotify::test__international_naming_python3 > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:48: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(events, expected) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_existing_paths > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:350: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(events, expected) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_new_paths > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:298: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(events, expected) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_new_paths > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:309: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(events, expected) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__automatic_new_watches_on_new_paths > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:323: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(events, expected) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__renames > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:235: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(events1, expected) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__renames > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py:247: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(events2, expected) > > .pybuild/cpython3_3.10_python-inotify/build/tests/test_inotify.py::TestInotifyTree::test__renames > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_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.12s > ======= > E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_python-inotify/build; python3.10 -m > pytest -k 'not test__cycle' > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 > returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2022/07/28/python-inotify_0.2.10-2_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&fusertaguser=lu...@debian.org&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 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.