==> Building on minun ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 700 43% 0.00kB/s 0:00:00 1,610 100% 888.67kB/s 0:00:00 (xfr#1, to-chk=1/3) python-pytest-socket-0.6.0-3.log 315 100% 307.62kB/s 0:00:00 315 100% 307.62kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 408 bytes received 81 bytes 326.00 bytes/sec total size is 1,802 speedup is 3.69 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root13 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] -> [root13]...done ==> Making package: python-pytest-socket 0.6.0-3 (Mon May 8 18:14:52 2023) ==> Retrieving sources...  -> Found python-pytest-socket-0.6.0.tar.gz ==> Validating source files with sha512sums... python-pytest-socket-0.6.0.tar.gz ... Passed ==> Validating source files with b2sums... python-pytest-socket-0.6.0.tar.gz ... Passed ==> Making package: python-pytest-socket 0.6.0-3 (Mon May 8 18:15:00 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (6) New Version Net Change core/libnsl 2.0.0-3 0.06 MiB community/python-iniconfig 2.0.0-4 0.04 MiB extra/python-packaging 23.0-3 0.43 MiB community/python-pluggy 1.0.0-4 0.13 MiB core/python 3.11.3-1 104.68 MiB community/python-pytest 7.3.1-4 3.97 MiB Total Installed Size: 109.32 MiB :: Proceed with installation? [Y/n] 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 python-pip sqlite [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-iniconfig... installing python-packaging... installing python-pluggy... installing python-pytest... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (43) New Version Net Change community/flake8 1:6.0.0-1 0.44 MiB community/httpbin 0.7.0-13 0.27 MiB community/python-anyio 3.6.2-4 1.21 MiB extra/python-attrs 22.2.0-3 0.55 MiB core/python-brotli 1.0.9-12 0.67 MiB community/python-certifi 2022.12.07-3 0.02 MiB extra/python-chardet 5.1.0-3 3.02 MiB community/python-click 8.1.3-3 1.22 MiB community/python-coverage 6.5.0-5 1.68 MiB community/python-decorator 5.1.1-3 0.07 MiB community/python-entrypoints 0.4-2 0.03 MiB community/python-flask 2.2.5-1 1.14 MiB community/python-h11 0.14.0-2 0.65 MiB community/python-httpcore 0.17.0-3 0.87 MiB extra/python-idna 3.4-3 0.71 MiB community/python-itsdangerous 2.1.2-3 0.14 MiB community/python-jinja 1:3.1.2-4 1.82 MiB community/python-jsonschema 4.17.3-3 1.33 MiB community/python-lark-parser 1.1.5-3 1.30 MiB extra/python-markupsafe 2.1.2-3 0.07 MiB community/python-mccabe 0.7.0-4 0.04 MiB community/python-pycodestyle 2.10.0-1 0.26 MiB community/python-pyflakes 3.0.1-2 0.83 MiB community/python-pyproject-hooks 1.0.0-4 0.09 MiB community/python-pyrsistent 0.19.3-3 0.63 MiB extra/python-six 1.16.0-8 0.12 MiB community/python-sniffio 1.3.0-3 0.03 MiB extra/python-tomli 2.0.1-3 0.11 MiB community/python-tomlkit 0.11.8-2 0.59 MiB community/python-typing_extensions 4.5.0-4 0.29 MiB extra/python-urllib3 1.26.15-1 1.30 MiB community/python-werkzeug 2.3.2-1 2.78 MiB community/python-asynctest 0.13.0-6 0.22 MiB community/python-build 0.10.0-3 0.68 MiB community/python-httpx 0.24.0-2 1.05 MiB community/python-installer 0.7.0-3 0.82 MiB community/python-poetry-core 1.5.2-3 5.56 MiB community/python-pytest-cov 4.0.0-3 0.16 MiB community/python-pytest-flake8 1.1.1-1 0.03 MiB community/python-pytest-httpbin 1.0.2-2 0.04 MiB extra/python-requests 2.28.2-4 0.61 MiB community/python-starlette 0.26.1-1 0.62 MiB community/python-wheel 0.40.0-3 0.28 MiB Total Installed Size: 34.33 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-tomli... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-attrs... installing python-pyrsistent... installing python-typing_extensions... installing python-jsonschema... Optional dependencies for python-jsonschema python-isoduration: for duration format python-fqdn: for hostname format python-idna: for idn-hostname format [pending] python-jsonpointer: for json-pointer & relative-json-pointer format python-rfc3339-validator: for date-time format python-rfc3987: for iri, iri-reference, uri & uri-reference format python-uri-template: for uri-template format python-webcolors: for color format installing python-lark-parser... installing python-tomlkit... installing python-poetry-core... installing python-wheel... Optional dependencies for python-wheel python-keyring: for wheel.signatures python-xdg: for wheel.signatures installing python-asynctest... installing python-certifi... installing python-idna... installing python-sniffio... installing python-anyio... Optional dependencies for python-anyio python-trio: trio backend python-outcome: trio backend python-uvloop: use uvloop for asyncio backend python-pytest: pytest plugin [installed] installing python-h11... installing python-httpcore... Optional dependencies for python-httpcore python-h2: for HTTP/2 support python-socksio: for SOCKS support python-trio: for trio backend installing python-httpx... Optional dependencies for python-httpx python-brotlicffi: for brotli response decompression python-h2: HTTP/2 support python-socksio: SOCKS proxy support python-click: command line client support [pending] python-rich: command line client support python-pygments: command line client support python-trio: alternative async library installing python-coverage... Optional dependencies for python-coverage python-tomli: for pyproject.toml support [installed] installing python-pytest-cov... installing python-pyflakes... installing python-mccabe... installing python-pycodestyle... installing python-entrypoints... installing flake8... installing python-pytest-flake8... installing python-six... installing python-markupsafe... installing python-werkzeug... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-itsdangerous... installing python-click... installing python-flask... Optional dependencies for python-flask python-asgiref: async functions and views python-dotenv: loading env vars from files installing python-decorator... installing python-brotli... installing httpbin... installing python-pytest-httpbin... installing python-urllib3... Optional dependencies for python-urllib3 python-brotli: Brotli support [installed] python-certifi: security support [installed] python-cryptography: security support python-idna: security support [installed] python-pyopenssl: security support python-pysocks: SOCKS support installing python-chardet... installing python-requests... Optional dependencies for python-requests python-pysocks: SOCKS proxy support installing python-starlette... Optional dependencies for python-starlette python-itsdangerous: for session middleware support [installed] python-jinja: for jinja templates [installed] python-python-multipart: for form parsing python-pyyaml: for schema generator python-httpx: for test client [installed] [?25h==> Retrieving sources...  -> Found python-pytest-socket-0.6.0.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-pytest-socket-0.6.0.tar.gz with bsdtar ==> Starting build()... * Getting build dependencies for wheel... * Building wheel... Successfully built pytest_socket-0.6.0-py3-none-any.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python cachedir: .pytest_cache rootdir: /build/python-pytest-socket/src/pytest-socket-0.6.0 plugins: socket-0.6.0, anyio-3.6.2, cov-4.0.0, httpbin-1.0.2 collecting ... collected 61 items / 1 deselected / 60 selected tests/test_async.py::test_starlette FAILED [ 1%] tests/test_async.py::test_httpx_fails PASSED [ 3%] tests/test_combinations.py::test_parametrize_with_socket_enabled_and_allow_hosts PASSED [ 5%] tests/test_combinations.py::test_combine_unix_and_allow_hosts PASSED [ 6%] tests/test_doctest.py::test_function_with_doctest PASSED [ 8%] tests/test_precedence.py::test_disable_via_fixture PASSED [ 10%] tests/test_precedence.py::test_disable_via_marker PASSED [ 11%] tests/test_precedence.py::test_global_disable_via_cli_flag PASSED [ 13%] tests/test_precedence.py::test_global_disable_via_config PASSED [ 15%] tests/test_precedence.py::test_enable_via_fixture PASSED [ 16%] tests/test_precedence.py::test_enable_via_marker PASSED [ 18%] tests/test_precedence.py::test_enable_marker_for_test_class PASSED [ 20%] tests/test_precedence.py::test_global_disable_and_allow_host PASSED [ 21%] tests/test_restrict_hosts.py::test_help_message PASSED [ 23%] tests/test_restrict_hosts.py::test_marker_help_message PASSED [ 25%] tests/test_restrict_hosts.py::test_default_connect_enabled PASSED [ 26%] tests/test_restrict_hosts.py::test_single_cli_arg_connect_enabled PASSED [ 28%] tests/test_restrict_hosts.py::test_single_cli_arg_connect_enabled_hostname_resolved PASSED [ 30%] tests/test_restrict_hosts.py::test_single_cli_arg_connect_enabled_hostname_unresolvable PASSED [ 31%] tests/test_restrict_hosts.py::test_single_cli_arg_connect_unicode_enabled PASSED [ 33%] tests/test_restrict_hosts.py::test_multiple_cli_arg_connect_enabled PASSED [ 35%] tests/test_restrict_hosts.py::test_single_mark_arg_connect_enabled PASSED [ 36%] tests/test_restrict_hosts.py::test_multiple_mark_arg_csv_connect_enabled PASSED [ 38%] tests/test_restrict_hosts.py::test_multiple_mark_arg_list_connect_enabled PASSED [ 40%] tests/test_restrict_hosts.py::test_mark_cli_conflict_mark_wins_connect_enabled PASSED [ 41%] tests/test_restrict_hosts.py::test_single_cli_arg_connect_disabled PASSED [ 43%] tests/test_restrict_hosts.py::test_multiple_cli_arg_connect_disabled PASSED [ 45%] tests/test_restrict_hosts.py::test_single_mark_arg_connect_disabled PASSED [ 46%] tests/test_restrict_hosts.py::test_multiple_mark_arg_csv_connect_disabled PASSED [ 48%] tests/test_restrict_hosts.py::test_multiple_mark_arg_list_connect_disabled PASSED [ 50%] tests/test_restrict_hosts.py::test_mark_cli_conflict_mark_wins_connect_disabled PASSED [ 51%] tests/test_restrict_hosts.py::test_default_urlopen_succeeds_by_default PASSED [ 53%] tests/test_restrict_hosts.py::test_single_cli_arg_urlopen_enabled PASSED [ 55%] tests/test_restrict_hosts.py::test_single_mark_arg_urlopen_enabled PASSED [ 56%] tests/test_restrict_hosts.py::test_global_restrict_via_config_fail PASSED [ 58%] tests/test_restrict_hosts.py::test_global_restrict_via_config_pass PASSED [ 60%] tests/test_restrict_hosts.py::test_test_isolation PASSED [ 61%] tests/test_restrict_hosts.py::test_conflicting_cli_vs_marks PASSED [ 63%] tests/test_socket.py::test_socket_enabled_by_default[\n import socket\n\n def test_socket():\n socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n] PASSED [ 65%] tests/test_socket.py::test_socket_enabled_by_default[\n import socket\n\n def test_socket():\n socket.socket(family=socket.AF_INET, type=socket.SOCK_STREAM)\n] PASSED [ 66%] tests/test_socket.py::test_socket_enabled_by_default[\n import socket\n\n def test_socket():\n socket.socket()\n] PASSED [ 68%] tests/test_socket.py::test_global_disable_via_fixture PASSED [ 70%] tests/test_socket.py::test_global_disable_via_cli_flag[\n import socket\n\n def test_socket():\n socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n] PASSED [ 71%] tests/test_socket.py::test_global_disable_via_cli_flag[\n import socket\n\n def test_socket():\n socket.socket(family=socket.AF_INET, type=socket.SOCK_STREAM)\n] PASSED [ 73%] tests/test_socket.py::test_global_disable_via_cli_flag[\n import socket\n\n def test_socket():\n socket.socket()\n] PASSED [ 75%] tests/test_socket.py::test_help_message PASSED [ 76%] tests/test_socket.py::test_global_disable_via_config[\n import socket\n\n def test_socket():\n socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n] PASSED [ 78%] tests/test_socket.py::test_global_disable_via_config[\n import socket\n\n def test_socket():\n socket.socket(family=socket.AF_INET, type=socket.SOCK_STREAM)\n] PASSED [ 80%] tests/test_socket.py::test_global_disable_via_config[\n import socket\n\n def test_socket():\n socket.socket()\n] PASSED [ 81%] tests/test_socket.py::test_disable_socket_marker PASSED [ 83%] tests/test_socket.py::test_enable_socket_marker PASSED [ 85%] tests/test_socket.py::test_urllib_succeeds_by_default FAILED [ 86%] tests/test_socket.py::test_enabled_urllib_succeeds PASSED [ 88%] tests/test_socket.py::test_disabled_urllib_fails PASSED [ 90%] tests/test_socket.py::test_double_call_does_nothing PASSED [ 91%] tests/test_socket.py::test_socket_enabled_fixture PASSED [ 93%] tests/test_socket.py::test_mix_and_match PASSED [ 95%] tests/test_socket.py::test_socket_subclass_is_still_blocked PASSED [ 96%] tests/test_socket.py::test_unix_domain_sockets_blocked_with_disable_socket PASSED [ 98%] tests/test_socket.py::test_enabling_unix_domain_sockets_with_disable_socket PASSED [100%] =================================== FAILURES =================================== ________________________________ test_starlette ________________________________ testdir = @unix_sockets_only def test_starlette(testdir): testdir.makepyfile( """ from pytest_socket import disable_socket from starlette.responses import HTMLResponse from starlette.testclient import TestClient def pytest_runtest_setup(): disable_socket() async def app(scope, receive, send): assert scope['type'] == 'http' response = HTMLResponse('Hello, world!') await response(scope, receive, send) def test_app(): client = TestClient(app) response = client.get('/') assert response.status_code == 200 """ ) result = testdir.runpytest("--disable-socket", "--allow-unix-socket") > result.assert_outcomes(passed=1, skipped=0, failed=0) E AssertionError: assert {'passed': 0, 'skipped': 0, 'failed': 0, 'errors': 1, 'xpassed': 0, 'xfailed': 0} == {'passed': 1, 'skipped': 0, 'failed': 0, 'errors': 0, 'xpassed': 0, 'xfailed': 0} E Common items: E {'failed': 0, 'skipped': 0, 'xfailed': 0, 'xpassed': 0} E Differing items: E {'errors': 1} != {'errors': 0} E {'passed': 0} != {'passed': 1} E Full diff: E { E - 'errors': 0, E ? ^ E + 'errors': 1, E ? ^ E 'failed': 0, E - 'passed': 1, E ? ^ E + 'passed': 0, E ? ^ E 'skipped': 0, E 'xfailed': 0, E 'xpassed': 0, E } /build/python-pytest-socket/src/pytest-socket-0.6.0/tests/test_async.py:54: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 rootdir: /tmp/pytest-of-builduser/pytest-0/test_starlette0 plugins: socket-0.6.0, anyio-3.6.2, cov-4.0.0, httpbin-1.0.2 collected 0 items / 1 error ==================================== ERRORS ==================================== ______________________ ERROR collecting test_starlette.py ______________________ ImportError while importing test module '/tmp/pytest-of-builduser/pytest-0/test_starlette0/test_starlette.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) test_starlette.py:2: in from starlette.responses import HTMLResponse E ModuleNotFoundError: No module named 'starlette' =========================== short test summary info ============================ ERROR test_starlette.py !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! =============================== 1 error in 0.23s =============================== _______________________ test_urllib_succeeds_by_default ________________________ testdir = def test_urllib_succeeds_by_default(testdir): testdir.makepyfile( """ try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen def test_disable_socket_urllib(): assert urlopen('http://httpbin.org/get').getcode() == 200 """ ) result = testdir.runpytest() > result.assert_outcomes(1, 0, 0) E AssertionError: assert {'passed': 0, 'skipped': 0, 'failed': 1, 'errors': 0, 'xpassed': 0, 'xfailed': 0} == {'passed': 1, 'skipped': 0, 'failed': 0, 'errors': 0, 'xpassed': 0, 'xfailed': 0} E Common items: E {'errors': 0, 'skipped': 0, 'xfailed': 0, 'xpassed': 0} E Differing items: E {'failed': 1} != {'failed': 0} E {'passed': 0} != {'passed': 1} E Full diff: E { E 'errors': 0, E - 'failed': 0, E ? ^ E + 'failed': 1, E ? ^ E - 'passed': 1, E ? ^ E + 'passed': 0, E ? ^ E 'skipped': 0, E 'xfailed': 0, E 'xpassed': 0, E } /build/python-pytest-socket/src/pytest-socket-0.6.0/tests/test_socket.py:162: AssertionError ----------------------------- Captured stdout call ----------------------------- ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 rootdir: /tmp/pytest-of-builduser/pytest-0/test_urllib_succeeds_by_default0 plugins: socket-0.6.0, anyio-3.6.2, cov-4.0.0, httpbin-1.0.2 collected 1 item test_urllib_succeeds_by_default.py F [100%] =================================== FAILURES =================================== __________________________ test_disable_socket_urllib __________________________ def test_disable_socket_urllib(): > assert urlopen('http://httpbin.org/get').getcode() == 200 test_urllib_succeeds_by_default.py:7: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/urllib/request.py:216: in urlopen return opener.open(url, data, timeout) /usr/lib/python3.11/urllib/request.py:525: in open response = meth(req, response) /usr/lib/python3.11/urllib/request.py:634: in http_response response = self.parent.error( /usr/lib/python3.11/urllib/request.py:563: in error return self._call_chain(*args) /usr/lib/python3.11/urllib/request.py:496: in _call_chain result = func(*args) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = req = fp = , code = 504 msg = 'Gateway Time-out' hdrs = def http_error_default(self, req, fp, code, msg, hdrs): > raise HTTPError(req.full_url, code, msg, hdrs, fp) E urllib.error.HTTPError: HTTP Error 504: Gateway Time-out /usr/lib/python3.11/urllib/request.py:643: HTTPError =========================== short test summary info ============================ FAILED test_urllib_succeeds_by_default.py::test_disable_socket_urllib - urlli... ============================== 1 failed in 10.63s ============================== =========================== short test summary info ============================ FAILED tests/test_async.py::test_starlette - AssertionError: assert {'passed'... FAILED tests/test_socket.py::test_urllib_succeeds_by_default - AssertionError... ================= 2 failed, 58 passed, 1 deselected in 29.82s ================== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root13/build receiving incremental file list python-pytest-socket-0.6.0-3-riscv64-build.log python-pytest-socket-0.6.0-3-riscv64-check.log sent 62 bytes received 2,981 bytes 2,028.67 bytes/sec total size is 13,554 speedup is 4.45