==> Building on litwick ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-diff-match-patch ./ .SRCINFO 646 100% 0.00kB/s 0:00:00 646 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=3/5) .nvchecker.toml 68 100% 66.41kB/s 0:00:00 68 100% 66.41kB/s 0:00:00 (xfr#2, to-chk=2/5) PKGBUILD 999 100% 975.59kB/s 0:00:00 999 100% 975.59kB/s 0:00:00 (xfr#3, to-chk=1/5) python-diff-match-patch-20230430-2.log 504 100% 492.19kB/s 0:00:00 504 100% 492.19kB/s 0:00:00 (xfr#4, to-chk=0/5) sent 1,537 bytes received 150 bytes 3,374.00 bytes/sec total size is 1,907 speedup is 1.13 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root0 on remote host... ]2;🔵 Container arch-nspawn-335281 on litwick.felixc.at[?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... there is nothing to do [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root0]...done ==> Making package: python-diff-match-patch 20230430-2 (Mon Dec 23 20:34:04 2024) ==> Retrieving sources...  -> Downloading diff-match-patch-20230430.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 43324 100 43324 0 0 45879 0 --:--:-- --:--:-- --:--:-- 45879 ==> Validating source files with sha256sums... diff-match-patch-20230430.tar.gz ... Passed ]2;🔵 Container arch-nspawn-336451 on litwick.felixc.at==> Making package: python-diff-match-patch 20230430-2 (Mon Dec 23 20:35:57 2024) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (2) New Version Net Change extra/mpdecimal 4.0.0-2 0.29 MiB core/python 3.13.1-1 108.57 MiB Total Installed Size: 108.86 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (9) New Version Net Change extra/python-iniconfig 2.0.0-6 0.04 MiB extra/python-packaging 24.2-3 0.66 MiB extra/python-pluggy 1.5.0-3 0.20 MiB extra/python-pyproject-hooks 1.2.0-3 0.10 MiB extra/python-build 1.2.2-3 0.20 MiB extra/python-flit-core 3.10.1-3 0.24 MiB extra/python-installer 0.7.0-10 0.17 MiB extra/python-pytest 1:8.3.4-1 3.92 MiB extra/python-wheel 0.45.0-3 0.28 MiB Total Installed Size: 5.82 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-packaging... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-pip: to use as the Python package installer (default) python-uv: to use as the Python package installer python-virtualenv: to use virtualenv for build isolation installing python-installer... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures python-setuptools: for legacy bdist_wheel subcommand installing python-flit-core... installing python-iniconfig... installing python-pluggy... installing python-pytest... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [?25h==> Retrieving sources...  -> Found diff-match-patch-20230430.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting diff-match-patch-20230430.tar.gz with bsdtar ==> Starting build()... * Getting build dependencies for wheel... * Building wheel... Successfully built diff_match_patch-20230430-py3-none-any.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 rootdir: /build/python-diff-match-patch/src/diff-match-patch-20230430 configfile: pyproject.toml collected 28 items diff_match_patch/tests/diff_match_patch_test.py .............F.......... [ 85%] .... [100%] =================================== FAILURES =================================== ____________________________ DiffTest.testDiffMain _____________________________ self = def testDiffMain(self): # Perform a trivial diff. # Null case. self.assertEqual([], self.dmp.diff_main("", "", False)) # Equality. self.assertEqual( [(self.dmp.DIFF_EQUAL, "abc")], self.dmp.diff_main("abc", "abc", False) ) # Simple insertion. self.assertEqual( [ (self.dmp.DIFF_EQUAL, "ab"), (self.dmp.DIFF_INSERT, "123"), (self.dmp.DIFF_EQUAL, "c"), ], self.dmp.diff_main("abc", "ab123c", False), ) # Simple deletion. self.assertEqual( [ (self.dmp.DIFF_EQUAL, "a"), (self.dmp.DIFF_DELETE, "123"), (self.dmp.DIFF_EQUAL, "bc"), ], self.dmp.diff_main("a123bc", "abc", False), ) # Two insertions. self.assertEqual( [ (self.dmp.DIFF_EQUAL, "a"), (self.dmp.DIFF_INSERT, "123"), (self.dmp.DIFF_EQUAL, "b"), (self.dmp.DIFF_INSERT, "456"), (self.dmp.DIFF_EQUAL, "c"), ], self.dmp.diff_main("abc", "a123b456c", False), ) # Two deletions. self.assertEqual( [ (self.dmp.DIFF_EQUAL, "a"), (self.dmp.DIFF_DELETE, "123"), (self.dmp.DIFF_EQUAL, "b"), (self.dmp.DIFF_DELETE, "456"), (self.dmp.DIFF_EQUAL, "c"), ], self.dmp.diff_main("a123b456c", "abc", False), ) # Perform a real diff. # Switch off the timeout. self.dmp.Diff_Timeout = 0 # Simple cases. self.assertEqual( [(self.dmp.DIFF_DELETE, "a"), (self.dmp.DIFF_INSERT, "b")], self.dmp.diff_main("a", "b", False), ) self.assertEqual( [ (self.dmp.DIFF_DELETE, "Apple"), (self.dmp.DIFF_INSERT, "Banana"), (self.dmp.DIFF_EQUAL, "s are a"), (self.dmp.DIFF_INSERT, "lso"), (self.dmp.DIFF_EQUAL, " fruit."), ], self.dmp.diff_main("Apples are a fruit.", "Bananas are also fruit.", False), ) self.assertEqual( [ (self.dmp.DIFF_DELETE, "a"), (self.dmp.DIFF_INSERT, "\u0680"), (self.dmp.DIFF_EQUAL, "x"), (self.dmp.DIFF_DELETE, "\t"), (self.dmp.DIFF_INSERT, "\x00"), ], self.dmp.diff_main("ax\t", "\u0680x\x00", False), ) # Overlaps. self.assertEqual( [ (self.dmp.DIFF_DELETE, "1"), (self.dmp.DIFF_EQUAL, "a"), (self.dmp.DIFF_DELETE, "y"), (self.dmp.DIFF_EQUAL, "b"), (self.dmp.DIFF_DELETE, "2"), (self.dmp.DIFF_INSERT, "xab"), ], self.dmp.diff_main("1ayb2", "abxab", False), ) self.assertEqual( [ (self.dmp.DIFF_INSERT, "xaxcx"), (self.dmp.DIFF_EQUAL, "abc"), (self.dmp.DIFF_DELETE, "y"), ], self.dmp.diff_main("abcy", "xaxcxabc", False), ) self.assertEqual( [ (self.dmp.DIFF_DELETE, "ABCD"), (self.dmp.DIFF_EQUAL, "a"), (self.dmp.DIFF_DELETE, "="), (self.dmp.DIFF_INSERT, "-"), (self.dmp.DIFF_EQUAL, "bcd"), (self.dmp.DIFF_DELETE, "="), (self.dmp.DIFF_INSERT, "-"), (self.dmp.DIFF_EQUAL, "efghijklmnopqrs"), (self.dmp.DIFF_DELETE, "EFGHIJKLMNOefg"), ], self.dmp.diff_main( "ABCDa=bcd=efghijklmnopqrsEFGHIJKLMNOefg", "a-bcd-efghijklmnopqrs", False, ), ) # Large equality. self.assertEqual( [ (self.dmp.DIFF_INSERT, " "), (self.dmp.DIFF_EQUAL, "a"), (self.dmp.DIFF_INSERT, "nd"), (self.dmp.DIFF_EQUAL, " [[Pennsylvania]]"), (self.dmp.DIFF_DELETE, " and [[New"), ], self.dmp.diff_main( "a [[Pennsylvania]] and [[New", " and [[Pennsylvania]]", False ), ) # Timeout. self.dmp.Diff_Timeout = 0.1 # 100ms a = "`Twas brillig, and the slithy toves\nDid gyre and gimble in the wabe:\nAll mimsy were the borogoves,\nAnd the mome raths outgrabe.\n" b = "I am the very model of a modern major general,\nI've information vegetable, animal, and mineral,\nI know the kings of England, and I quote the fights historical,\nFrom Marathon to Waterloo, in order categorical.\n" # Increase the text lengths by 1024 times to ensure a timeout. for i in range(10): a += a b += b startTime = time.time() self.dmp.diff_main(a, b) endTime = time.time() # Test that we took at least the timeout period. self.assertTrue(self.dmp.Diff_Timeout <= endTime - startTime) # Test that we didn't take forever (be forgiving). # Theoretically this test could fail very occasionally if the # OS task swaps or locks up for a second at the wrong moment. > self.assertTrue(self.dmp.Diff_Timeout * 2 > endTime - startTime) E AssertionError: False is not true diff_match_patch/tests/diff_match_patch_test.py:1105: AssertionError =========================== short test summary info ============================ FAILED diff_match_patch/tests/diff_match_patch_test.py::DiffTest::testDiffMain ======================== 1 failed, 27 passed in 29.86s ========================= ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root0/build [?25h[?25hreceiving incremental file list python-diff-match-patch-20230430-2-riscv64-build.log python-diff-match-patch-20230430-2-riscv64-check.log sent 62 bytes received 1,828 bytes 3,780.00 bytes/sec total size is 6,827 speedup is 3.61