==> Building on luxio ==> Attempt to run pkgver()... ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 1,376 100% 0.00kB/s 0:00:00 1,376 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=2/4) http-service-async-mock.patch 700 28% 683.59kB/s 0:00:00 2,429 100% 2.32MB/s 0:00:00 (xfr#2, to-chk=1/4) python-threat9-test-bed-0.6.0+2+g1ed61b3-8.log 397 100% 387.70kB/s 0:00:00 397 100% 387.70kB/s 0:00:00 (xfr#3, to-chk=0/4) sent 1,258 bytes received 112 bytes 913.33 bytes/sec total size is 4,049 speedup is 2.96 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root25 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... community 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] -> [root25]...done ==> Making package: python-threat9-test-bed 0.6.0+2+g1ed61b3-8 (Sat Mar 18 23:31:42 2023) ==> Retrieving sources...  -> Updating python-threat9-test-bed git repo...  -> Found http-service-async-mock.patch ==> Validating source files with sha512sums... python-threat9-test-bed ... Skipped http-service-async-mock.patch ... Passed ==> Making package: python-threat9-test-bed 0.6.0+2+g1ed61b3-8 (Sat Mar 18 23:31:49 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (39) New Version Net Change Download Size community/cython 0.29.33-1 7.53 MiB core/libnsl 2.0.0-2 0.06 MiB community/python-autocommand 2.2.2-1 0.07 MiB extra/python-cffi 1.15.1-1 1.00 MiB extra/python-chardet 5.1.0-1 2.49 MiB extra/python-cryptography 39.0.2-1 3.61 MiB community/python-dateutil 2.8.2-4 0.82 MiB community/python-fastjsonschema 2.16.3-1 0.20 MiB extra/python-idna 3.4-1 0.67 MiB community/python-inflect 6.0.2-1 0.28 MiB community/python-itsdangerous 2.1.2-2 0.11 MiB community/python-jaraco.context 4.3.0-1 0.03 MiB community/python-jaraco.functools 3.6.0-1 0.05 MiB community/python-jaraco.text 3.11.1-1 0.07 MiB community/python-jinja 1:3.1.2-2 1.28 MiB extra/python-markupsafe 2.1.2-1 0.06 MiB community/python-more-itertools 9.0.0-1 0.49 MiB extra/python-ordered-set 4.1.0-1 0.06 MiB extra/python-packaging 23.0-1 0.32 MiB extra/python-platformdirs 3.1.0-1 0.13 MiB extra/python-ply 3.11-10 0.31 MiB extra/python-pycparser 2.21-3 1.39 MiB community/python-pydantic 1.10.6-1 5.83 MiB extra/python-setuptools 1:67.5.1-1 3.34 MiB 0.58 MiB extra/python-six 1.16.0-6 0.09 MiB extra/python-tomli 2.0.1-1 0.08 MiB extra/python-trove-classifiers 2023.3.9-1 0.11 MiB community/python-typing_extensions 4.5.0-1 0.23 MiB extra/python-urllib3 1.26.7-5 0.69 MiB extra/python-validate-pyproject 0.12.1-1 0.22 MiB community/python-werkzeug 2.2.3-1 2.06 MiB community/gunicorn 20.1.0-4 0.65 MiB core/python 3.10.10-1 81.41 MiB extra/python-asgiref 3.5.2-1 0.15 MiB community/python-click 8.1.3-1 0.89 MiB community/python-faker 16.4.0-1 18.61 MiB 2.45 MiB community/python-flask 2.2.2-1 0.89 MiB extra/python-pyopenssl 23.0.0-1 0.56 MiB extra/python-requests 2.28.2-1 0.46 MiB Total Download Size: 3.03 MiB Total Installed Size: 137.27 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-faker-16.4.0-1-any downloading... python-setuptools-1:67.5.1-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools [pending] python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-click... installing python-six... installing python-dateutil... installing python-faker... installing python-markupsafe... installing python-werkzeug... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-itsdangerous... installing python-flask... Optional dependencies for python-flask python-asgiref: async functions and views [pending] python-dotenv: loading env vars from files installing python-asgiref... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... installing cython... installing python-typing_extensions... installing python-pydantic... Optional dependencies for python-pydantic python-dotenv: for .env file support python-email-validator: for email validation installing python-inflect... installing python-jaraco.text... installing python-ordered-set... installing python-packaging... installing python-platformdirs... installing python-tomli... installing python-fastjsonschema... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing gunicorn... Optional dependencies for gunicorn python-eventlet: For asynchronous request handling with eventlet. python-gevent: For asynchronous request handling with gevent. python-tornado: For asynchronous request handling with tornado. python-setproctitle: For process renaming. installing python-ply... installing python-pycparser... installing python-cffi... installing python-cryptography... installing python-pyopenssl... installing python-urllib3... Optional dependencies for python-urllib3 python-pysocks: SOCKS support python-brotli: Brotli support python-pyopenssl: security support [installed] python-idna: security support [pending] installing python-chardet... installing python-idna... installing python-requests... Optional dependencies for python-requests python-pysocks: SOCKS proxy support [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (14) New Version Net Change extra/perl-error 0.17029-4 0.04 MiB extra/perl-mailtools 2.21-6 0.11 MiB extra/perl-timedate 2.33-4 0.08 MiB extra/python-attrs 22.2.0-1 0.44 MiB community/python-exceptiongroup 1.1.1-1 0.09 MiB community/python-iniconfig 2.0.0-2 0.03 MiB community/python-pluggy 1.0.0-2 0.10 MiB community/python-pyproject-hooks 1.0.0-1 0.07 MiB extra/git 2.40.0-1 33.06 MiB community/python-build 0.10.0-1 1.08 MiB community/python-installer 0.6.0-1 1.20 MiB community/python-pytest 7.2.2-1 2.80 MiB community/python-setuptools-scm 7.1.0-1 0.27 MiB community/python-wheel 0.38.4-1 0.16 MiB Total Installed Size: 39.53 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-setuptools-scm... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-attrs... installing python-exceptiongroup... installing python-iniconfig... installing python-pluggy... installing python-pytest... :: Running post-transaction hooks... (1/1) Warn about old perl modules [?25h==> Retrieving sources...  -> Found http-service-async-mock.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Creating working copy of python-threat9-test-bed git repo... Cloning into 'python-threat9-test-bed'... done. Switched to a new branch 'makepkg' ==> Starting prepare()... patching file tests/service_mocks/test_http_service_mock.py patching file threat9_test_bed/service_mocks/http_service_mock.py ==> Starting pkgver()... ==> Starting build()... * Getting build dependencies for wheel... * Building wheel... running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/threat9_test_bed copying threat9_test_bed/__init__.py -> build/lib/threat9_test_bed copying threat9_test_bed/cli.py -> build/lib/threat9_test_bed copying threat9_test_bed/scenarios.py -> build/lib/threat9_test_bed copying threat9_test_bed/_version.py -> build/lib/threat9_test_bed creating build/lib/threat9_test_bed/http_service copying threat9_test_bed/http_service/__init__.py -> build/lib/threat9_test_bed/http_service copying threat9_test_bed/http_service/app.py -> build/lib/threat9_test_bed/http_service copying threat9_test_bed/http_service/gunicorn_server.py -> build/lib/threat9_test_bed/http_service creating build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/__init__.py -> build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/base_http_service.py -> build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/base_service.py -> build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/http_scenario_service.py -> build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/tcp_service_mock.py -> build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/telnet_service_mock.py -> build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/udp_service_mock.py -> build/lib/threat9_test_bed/service_mocks copying threat9_test_bed/service_mocks/http_service_mock.py -> build/lib/threat9_test_bed/service_mocks creating build/lib/threat9_test_bed/tcp_service copying threat9_test_bed/tcp_service/__init__.py -> build/lib/threat9_test_bed/tcp_service copying threat9_test_bed/tcp_service/tcp_server.py -> build/lib/threat9_test_bed/tcp_service creating build/lib/threat9_test_bed/telnet_service copying threat9_test_bed/telnet_service/__init__.py -> build/lib/threat9_test_bed/telnet_service copying threat9_test_bed/telnet_service/protocol.py -> build/lib/threat9_test_bed/telnet_service copying threat9_test_bed/telnet_service/telnet_server.py -> build/lib/threat9_test_bed/telnet_service creating build/lib/threat9_test_bed/udp_service copying threat9_test_bed/udp_service/__init__.py -> build/lib/threat9_test_bed/udp_service copying threat9_test_bed/udp_service/udp_server.py -> build/lib/threat9_test_bed/udp_service running egg_info creating threat9_test_bed.egg-info writing threat9_test_bed.egg-info/PKG-INFO writing dependency_links to threat9_test_bed.egg-info/dependency_links.txt writing entry points to threat9_test_bed.egg-info/entry_points.txt writing requirements to threat9_test_bed.egg-info/requires.txt writing top-level names to threat9_test_bed.egg-info/top_level.txt writing manifest file 'threat9_test_bed.egg-info/SOURCES.txt' writing manifest file 'threat9_test_bed.egg-info/SOURCES.txt' installing to build/bdist.linux-riscv64/wheel running install running install_lib creating build/bdist.linux-riscv64 creating build/bdist.linux-riscv64/wheel creating build/bdist.linux-riscv64/wheel/threat9_test_bed copying build/lib/threat9_test_bed/__init__.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed copying build/lib/threat9_test_bed/cli.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed copying build/lib/threat9_test_bed/scenarios.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed copying build/lib/threat9_test_bed/_version.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed creating build/bdist.linux-riscv64/wheel/threat9_test_bed/http_service copying build/lib/threat9_test_bed/http_service/__init__.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/http_service copying build/lib/threat9_test_bed/http_service/app.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/http_service copying build/lib/threat9_test_bed/http_service/gunicorn_server.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/http_service creating build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/__init__.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/base_http_service.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/base_service.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/http_scenario_service.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/tcp_service_mock.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/telnet_service_mock.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/udp_service_mock.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks copying build/lib/threat9_test_bed/service_mocks/http_service_mock.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/service_mocks creating build/bdist.linux-riscv64/wheel/threat9_test_bed/tcp_service copying build/lib/threat9_test_bed/tcp_service/__init__.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/tcp_service copying build/lib/threat9_test_bed/tcp_service/tcp_server.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/tcp_service creating build/bdist.linux-riscv64/wheel/threat9_test_bed/telnet_service copying build/lib/threat9_test_bed/telnet_service/__init__.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/telnet_service copying build/lib/threat9_test_bed/telnet_service/protocol.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/telnet_service copying build/lib/threat9_test_bed/telnet_service/telnet_server.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/telnet_service creating build/bdist.linux-riscv64/wheel/threat9_test_bed/udp_service copying build/lib/threat9_test_bed/udp_service/__init__.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/udp_service copying build/lib/threat9_test_bed/udp_service/udp_server.py -> build/bdist.linux-riscv64/wheel/threat9_test_bed/udp_service running install_egg_info Copying threat9_test_bed.egg-info to build/bdist.linux-riscv64/wheel/threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318-py3.10.egg-info running install_scripts creating build/bdist.linux-riscv64/wheel/threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318.dist-info/WHEEL creating '/build/python-threat9-test-bed/src/python-threat9-test-bed/dist/.tmp-o_cq78e9/threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318-py3-none-any.whl' and adding 'build/bdist.linux-riscv64/wheel' to it adding 'threat9_test_bed/__init__.py' adding 'threat9_test_bed/_version.py' adding 'threat9_test_bed/cli.py' adding 'threat9_test_bed/scenarios.py' adding 'threat9_test_bed/http_service/__init__.py' adding 'threat9_test_bed/http_service/app.py' adding 'threat9_test_bed/http_service/gunicorn_server.py' adding 'threat9_test_bed/service_mocks/__init__.py' adding 'threat9_test_bed/service_mocks/base_http_service.py' adding 'threat9_test_bed/service_mocks/base_service.py' adding 'threat9_test_bed/service_mocks/http_scenario_service.py' adding 'threat9_test_bed/service_mocks/http_service_mock.py' adding 'threat9_test_bed/service_mocks/tcp_service_mock.py' adding 'threat9_test_bed/service_mocks/telnet_service_mock.py' adding 'threat9_test_bed/service_mocks/udp_service_mock.py' adding 'threat9_test_bed/tcp_service/__init__.py' adding 'threat9_test_bed/tcp_service/tcp_server.py' adding 'threat9_test_bed/telnet_service/__init__.py' adding 'threat9_test_bed/telnet_service/protocol.py' adding 'threat9_test_bed/telnet_service/telnet_server.py' adding 'threat9_test_bed/udp_service/__init__.py' adding 'threat9_test_bed/udp_service/udp_server.py' adding 'threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318.dist-info/METADATA' adding 'threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318.dist-info/WHEEL' adding 'threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318.dist-info/entry_points.txt' adding 'threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318.dist-info/top_level.txt' adding 'threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318.dist-info/RECORD' removing build/bdist.linux-riscv64/wheel Successfully built threat9_test_bed-0.6.1.dev2+g1ed61b3.d20230318-py3-none-any.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.10, pytest-7.2.2, pluggy-1.0.0 rootdir: /build/python-threat9-test-bed/src/python-threat9-test-bed plugins: Faker-16.4.0 collected 18 items tests/service_mocks/test_http_scenario_service.py ....... [ 38%] tests/service_mocks/test_http_service_mock.py ... [ 55%] tests/service_mocks/test_tcp_service_mock.py . [ 61%] tests/service_mocks/test_telnet_service_mock.py ....F. [ 94%] tests/service_mocks/test_udp_service_mock.py . [100%] =================================== FAILURES =================================== _____________________ test_telnet_service_mock_add_banner ______________________ def test_telnet_service_mock_add_banner(): with TelnetServiceMock("127.0.0.1", 8023, scenario=TelnetScenario.GENERIC) as target: banner = b"Scoobeedoobeedoo where are you?" target.add_banner(banner) assert target.host == "127.0.0.1" assert target.port == 8023 tn = Telnet(target.host, target.port, timeout=1.0) _, match_object, _ = tn.expect([banner], 1.0) > assert match_object E assert None tests/service_mocks/test_telnet_service_mock.py:127: AssertionError =============================== warnings summary =============================== ../../../../usr/lib/python3.10/site-packages/pkg_resources/__init__.py:121 /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning) tests/service_mocks/test_tcp_service_mock.py:18 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_tcp_service_mock.py:18: DeprecationWarning: invalid escape sequence '\d' mocked_foo = target.get_command_mock(re.compile(b"\d\dfoo\d\d")) tests/service_mocks/test_telnet_service_mock.py:49 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:49: DeprecationWarning: invalid escape sequence '\$' tn.expect([b"admin@target:~\$"], 1.0) tests/service_mocks/test_telnet_service_mock.py:74 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:74: DeprecationWarning: invalid escape sequence '\$' tn.expect([login + b"@target:~\$"], 1.0) tests/service_mocks/test_telnet_service_mock.py:109 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:109: DeprecationWarning: invalid escape sequence '\$' _, match_object, foo = tn.expect([login + b"@target:~\$"], 1.0) tests/service_mocks/test_telnet_service_mock.py:140 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:140: DeprecationWarning: invalid escape sequence '\d' mock = target.get_command_mock(re.compile("\d\dscoo\d\d")) tests/service_mocks/test_telnet_service_mock.py:152 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_telnet_service_mock.py:152: DeprecationWarning: invalid escape sequence '\$' tn.expect([b"admin@target:~\$"], 1.0) tests/service_mocks/test_udp_service_mock.py:18 /build/python-threat9-test-bed/src/python-threat9-test-bed/tests/service_mocks/test_udp_service_mock.py:18: DeprecationWarning: invalid escape sequence '\d' mocked_scoo = target.get_command_mock(re.compile(b"\d\dfoo\d\d")) tests/service_mocks/test_http_service_mock.py::test_https_service_mock /usr/lib/python3.10/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/service_mocks/test_telnet_service_mock.py::test_telnet_service_mock_add_banner ============= 1 failed, 17 passed, 9 warnings in 68.13s (0:01:08) ============== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root25/build receiving incremental file list python-threat9-test-bed-0.6.0+2+g1ed61b3-8-riscv64-build.log python-threat9-test-bed-0.6.0+2+g1ed61b3-8-riscv64-check.log python-threat9-test-bed-0.6.0+2+g1ed61b3-8-riscv64-pkgver.log python-threat9-test-bed-0.6.0+2+g1ed61b3-8-riscv64-prepare.log sent 100 bytes received 2,521 bytes 1,747.33 bytes/sec total size is 13,014 speedup is 4.97