==> Building on salazzle ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-vcrpy ./ PKGBUILD 899 100% 0.00kB/s 0:00:00 899 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-vcrpy-4.2.1-3.log 358 100% 349.61kB/s 0:00:00 358 100% 349.61kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 931 bytes received 101 bytes 2,064.00 bytes/sec total size is 1,094 speedup is 1.06 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root0 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] -> [root0]...done ==> Making package: python-vcrpy 4.2.1-3 (Tue May 9 20:20:52 2023) ==> Retrieving sources...  -> Downloading python-vcrpy-4.2.1.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 17182 0 17182 0 0 12066 0 --:--:-- 0:00:01 --:--:-- 12066 100 323k 0 323k 0 0 192k 0 --:--:-- 0:00:01 --:--:-- 1202k ==> Validating source files with sha512sums... python-vcrpy-4.2.1.tar.gz ... Passed ==> Making package: python-vcrpy 4.2.1-3 (Tue May 9 20:21:42 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (9) New Version Net Change Download Size core/libnsl 2.0.0-3 0.06 MiB extra/libyaml 0.2.5-2 0.15 MiB core/python 3.11.3-1 104.68 MiB extra/python-idna 3.4-3 0.71 MiB community/python-multidict 6.0.4-2 0.16 MiB 0.04 MiB extra/python-six 1.16.0-8 0.12 MiB extra/python-wrapt 1.14.1-2 0.24 MiB community/python-yaml 6.0-3 0.93 MiB 0.18 MiB community/python-yarl 1.9.2-1 0.27 MiB 0.08 MiB Total Download Size: 0.30 MiB Total Installed Size: 107.32 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-yaml-6.0-3-riscv64 downloading... python-yarl-1.9.2-1-riscv64 downloading... python-multidict-6.0.4-2-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libyaml... 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-yaml... installing python-wrapt... installing python-six... installing python-multidict... installing python-idna... installing python-yarl... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (29) New Version Net Change community/httpbin 0.7.0-13 0.27 MiB community/python-autocommand 2.2.2-4 0.08 MiB core/python-brotli 1.0.9-12 0.67 MiB community/python-click 8.1.3-3 1.22 MiB community/python-decorator 5.1.1-3 0.07 MiB community/python-fastjsonschema 2.16.3-4 0.29 MiB community/python-flask 2.2.5-1 1.14 MiB community/python-inflect 6.0.4-2 0.38 MiB community/python-iniconfig 2.0.0-4 0.04 MiB community/python-itsdangerous 2.1.2-3 0.14 MiB community/python-jaraco.context 4.3.0-3 0.04 MiB community/python-jaraco.functools 3.6.0-3 0.06 MiB community/python-jaraco.text 3.11.1-3 0.09 MiB community/python-jinja 1:3.1.2-4 1.82 MiB extra/python-markupsafe 2.1.2-3 0.07 MiB community/python-more-itertools 9.1.1-4 0.61 MiB extra/python-ordered-set 4.1.0-4 0.07 MiB extra/python-packaging 23.0-3 0.43 MiB extra/python-platformdirs 3.5.0-2 0.20 MiB community/python-pluggy 1.0.0-4 0.13 MiB community/python-pydantic 1.10.7-4 6.36 MiB community/python-pytest 7.3.1-4 3.97 MiB extra/python-tomli 2.0.1-3 0.11 MiB extra/python-trove-classifiers 2023.4.22-1 0.11 MiB community/python-typing_extensions 4.5.0-4 0.29 MiB extra/python-validate-pyproject 0.12.2-4 0.29 MiB community/python-werkzeug 2.3.2-1 2.78 MiB community/python-pytest-httpbin 1.0.2-2 0.04 MiB extra/python-setuptools 1:67.7.0-1 4.68 MiB Total Installed Size: 26.45 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-more-itertools... installing python-jaraco.functools... installing python-jaraco.context... installing python-autocommand... 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 python-iniconfig... installing python-pluggy... installing python-pytest... 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... [?25h==> Retrieving sources...  -> Found python-vcrpy-4.2.1.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting python-vcrpy-4.2.1.tar.gz with bsdtar ==> Starting build()... running build running build_py creating build creating build/lib creating build/lib/vcr copying vcr/__init__.py -> build/lib/vcr copying vcr/util.py -> build/lib/vcr copying vcr/filters.py -> build/lib/vcr copying vcr/errors.py -> build/lib/vcr copying vcr/request.py -> build/lib/vcr copying vcr/migration.py -> build/lib/vcr copying vcr/cassette.py -> build/lib/vcr copying vcr/config.py -> build/lib/vcr copying vcr/serialize.py -> build/lib/vcr copying vcr/patch.py -> build/lib/vcr copying vcr/matchers.py -> build/lib/vcr copying vcr/record_mode.py -> build/lib/vcr copying vcr/_handle_coroutine.py -> build/lib/vcr creating build/lib/vcr/serializers copying vcr/serializers/__init__.py -> build/lib/vcr/serializers copying vcr/serializers/jsonserializer.py -> build/lib/vcr/serializers copying vcr/serializers/yamlserializer.py -> build/lib/vcr/serializers copying vcr/serializers/compat.py -> build/lib/vcr/serializers creating build/lib/vcr/persisters copying vcr/persisters/__init__.py -> build/lib/vcr/persisters copying vcr/persisters/filesystem.py -> build/lib/vcr/persisters creating build/lib/vcr/stubs copying vcr/stubs/__init__.py -> build/lib/vcr/stubs copying vcr/stubs/aiohttp_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/httpx_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/tornado_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/requests_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/boto3_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/urllib3_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/boto_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/httplib2_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/compat.py -> build/lib/vcr/stubs ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 rootdir: /build/python-vcrpy/src/vcrpy-4.2.1 plugins: httpbin-1.0.2 collected 225 items / 10 skipped tests/integration/test_basic.py ..... [ 2%] tests/integration/test_config.py ..... [ 4%] tests/integration/test_disksaver.py .. [ 5%] tests/integration/test_filter.py ........ [ 8%] tests/integration/test_ignore.py .... [ 10%] tests/integration/test_matchers.py .............. [ 16%] tests/integration/test_multiple.py . [ 17%] tests/integration/test_record_mode.py ....F... [ 20%] tests/integration/test_register_matcher.py .. [ 21%] tests/integration/test_register_persister.py .. [ 22%] tests/integration/test_register_serializer.py . [ 23%] tests/integration/test_request.py .. [ 24%] tests/integration/test_stubs.py .127.0.0.1 - - [09/May/2023 20:22:59] "GET /response-headers?foo=bar&foo=baz HTTP/1.1" 200 78 ... [ 25%] tests/integration/test_urllib2.py .F.F.....F.F...... [ 33%] tests/unit/test_cassettes.py ............................. [ 46%] tests/unit/test_errors.py .... [ 48%] tests/unit/test_filters.py ...................... [ 58%] tests/unit/test_json_serializer.py . [ 58%] tests/unit/test_matchers.py ......................... [ 69%] tests/unit/test_migration.py ... [ 71%] tests/unit/test_persist.py .... [ 72%] tests/unit/test_request.py ................. [ 80%] tests/unit/test_response.py .... [ 82%] tests/unit/test_serialize.py ............... [ 88%] tests/unit/test_stubs.py .. [ 89%] tests/unit/test_vcr.py ...................... [ 99%] tests/unit/test_vcr_import.py . [100%] =================================== FAILURES =================================== ___________________ test_new_episodes_record_mode_two_times ____________________ tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_new_episodes_record_mode_0') httpbin = def test_new_episodes_record_mode_two_times(tmpdir, httpbin): testfile = str(tmpdir.join("recordmode.yml")) url = httpbin.url + "/bytes/1024" with vcr.use_cassette(testfile, record_mode=vcr.mode.NEW_EPISODES): # cassette file doesn't exist, so create. > original_first_response = urlopen(url).read() tests/integration/test_record_mode.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /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 = 500 msg = 'Internal Server Error' 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 500: Internal Server Error /usr/lib/python3.11/urllib/request.py:643: HTTPError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.11/wsgiref/handlers.py", line 184, in finish_response self.write(data) File "/usr/lib/python3.11/wsgiref/handlers.py", line 278, in write assert type(data) is bytes, \ ^^^^^^^^^^^^^^^^^^^ AssertionError: write() argument must be a bytes instance 127.0.0.1 - - [09/May/2023 20:22:49] "GET /bytes/1024 HTTP/1.1" 500 59 ____________________________ test_random_body[http] ____________________________ httpbin_both = tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_random_body_http_0') def test_random_body(httpbin_both, tmpdir): """Ensure we can read the content, and that it's served from cache""" url = httpbin_both.url + "/bytes/1024" with vcr.use_cassette(str(tmpdir.join("body.yaml"))): > body = urlopen_with_cafile(url).read() tests/integration/test_urllib2.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_urllib2.py:20: in urlopen_with_cafile return urlopen(*args, **kwargs) /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 = 500 msg = 'Internal Server Error' 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 500: Internal Server Error /usr/lib/python3.11/urllib/request.py:643: HTTPError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.11/wsgiref/handlers.py", line 184, in finish_response self.write(data) File "/usr/lib/python3.11/wsgiref/handlers.py", line 278, in write assert type(data) is bytes, \ ^^^^^^^^^^^^^^^^^^^ AssertionError: write() argument must be a bytes instance 127.0.0.1 - - [09/May/2023 20:22:59] "GET /bytes/1024 HTTP/1.1" 500 59 _________________________ test_multiple_requests[http] _________________________ httpbin_both = tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_multiple_requests_http_0') def test_multiple_requests(httpbin_both, tmpdir): """Ensure that we can cache multiple requests""" urls = [httpbin_both.url, httpbin_both.url, httpbin_both.url + "/get", httpbin_both.url + "/bytes/1024"] with vcr.use_cassette(str(tmpdir.join("multiple.yaml"))) as cass: > [urlopen_with_cafile(url) for url in urls] tests/integration/test_urllib2.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_urllib2.py:75: in [urlopen_with_cafile(url) for url in urls] tests/integration/test_urllib2.py:20: in urlopen_with_cafile return urlopen(*args, **kwargs) /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 = 500 msg = 'Internal Server Error' 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 500: Internal Server Error /usr/lib/python3.11/urllib/request.py:643: HTTPError ----------------------------- Captured stderr call ----------------------------- 127.0.0.1 - - [09/May/2023 20:23:02] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [09/May/2023 20:23:02] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [09/May/2023 20:23:02] "GET /get HTTP/1.1" 200 189 Traceback (most recent call last): File "/usr/lib/python3.11/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.11/wsgiref/handlers.py", line 184, in finish_response self.write(data) File "/usr/lib/python3.11/wsgiref/handlers.py", line 278, in write assert type(data) is bytes, \ ^^^^^^^^^^^^^^^^^^^ AssertionError: write() argument must be a bytes instance 127.0.0.1 - - [09/May/2023 20:23:02] "GET /bytes/1024 HTTP/1.1" 500 59 ___________________________ test_random_body[https] ____________________________ httpbin_both = tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_random_body_https_0') def test_random_body(httpbin_both, tmpdir): """Ensure we can read the content, and that it's served from cache""" url = httpbin_both.url + "/bytes/1024" with vcr.use_cassette(str(tmpdir.join("body.yaml"))): > body = urlopen_with_cafile(url).read() tests/integration/test_urllib2.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_urllib2.py:20: in urlopen_with_cafile return urlopen(*args, **kwargs) /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 = 500 msg = 'Internal Server Error' 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 500: Internal Server Error /usr/lib/python3.11/urllib/request.py:643: HTTPError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.11/wsgiref/handlers.py", line 184, in finish_response self.write(data) File "/usr/lib/python3.11/wsgiref/handlers.py", line 278, in write assert type(data) is bytes, \ ^^^^^^^^^^^^^^^^^^^ AssertionError: write() argument must be a bytes instance 127.0.0.1 - - [09/May/2023 20:23:06] "GET /bytes/1024 HTTP/1.1" 500 59 ________________________ test_multiple_requests[https] _________________________ httpbin_both = tmpdir = local('/tmp/pytest-of-builduser/pytest-0/test_multiple_requests_https_0') def test_multiple_requests(httpbin_both, tmpdir): """Ensure that we can cache multiple requests""" urls = [httpbin_both.url, httpbin_both.url, httpbin_both.url + "/get", httpbin_both.url + "/bytes/1024"] with vcr.use_cassette(str(tmpdir.join("multiple.yaml"))) as cass: > [urlopen_with_cafile(url) for url in urls] tests/integration/test_urllib2.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration/test_urllib2.py:75: in [urlopen_with_cafile(url) for url in urls] tests/integration/test_urllib2.py:20: in urlopen_with_cafile return urlopen(*args, **kwargs) /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 = 500 msg = 'Internal Server Error' 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 500: Internal Server Error /usr/lib/python3.11/urllib/request.py:643: HTTPError ----------------------------- Captured stderr call ----------------------------- 127.0.0.1 - - [09/May/2023 20:23:09] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [09/May/2023 20:23:09] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [09/May/2023 20:23:09] "GET /get HTTP/1.1" 200 190 Traceback (most recent call last): File "/usr/lib/python3.11/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.11/wsgiref/handlers.py", line 184, in finish_response self.write(data) File "/usr/lib/python3.11/wsgiref/handlers.py", line 278, in write assert type(data) is bytes, \ ^^^^^^^^^^^^^^^^^^^ AssertionError: write() argument must be a bytes instance 127.0.0.1 - - [09/May/2023 20:23:10] "GET /bytes/1024 HTTP/1.1" 500 59 =============================== warnings summary =============================== tests/integration/test_urllib2.py: 12 warnings /usr/lib/python3.11/site-packages/pytest_httpbin/serve.py:65: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() ssock = ssl.wrap_socket( tests/integration/test_urllib2.py: 12 warnings /usr/lib/python3.11/ssl.py:1438: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = SSLContext(ssl_version) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/integration/test_record_mode.py::test_new_episodes_record_mode_two_times FAILED tests/integration/test_urllib2.py::test_random_body[http] - urllib.err... FAILED tests/integration/test_urllib2.py::test_multiple_requests[http] - urll... FAILED tests/integration/test_urllib2.py::test_random_body[https] - urllib.er... FAILED tests/integration/test_urllib2.py::test_multiple_requests[https] - url... ====== 5 failed, 220 passed, 10 skipped, 24 warnings in 61.31s (0:01:01) ======= ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root0/build receiving incremental file list python-vcrpy-4.2.1-3-riscv64-build.log python-vcrpy-4.2.1-3-riscv64-check.log sent 62 bytes received 2,816 bytes 5,756.00 bytes/sec total size is 17,964 speedup is 6.24