==> Building on minun ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ PKGBUILD 700 77% 0.00kB/s 0:00:00 899 100% 194.34kB/s 0:00:00 (xfr#1, to-chk=1/3) python-vcrpy-4.2.1-3.log 204 100% 199.22kB/s 0:00:00 204 100% 199.22kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 340 bytes received 69 bytes 272.67 bytes/sec total size is 1,091 speedup is 2.67 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix20 on remote host... [?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] -> [felix20]...done ==> Making package: python-vcrpy 4.2.1-3 (Fri Jun 23 10:59:30 2023) ==> Retrieving sources...  -> Found python-vcrpy-4.2.1.tar.gz ==> Validating source files with sha512sums... python-vcrpy-4.2.1.tar.gz ... Passed ==> Making package: python-vcrpy 4.2.1-3 (Fri Jun 23 10:59:40 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 extra/python-multidict 6.0.4-2 0.16 MiB extra/python-six 1.16.0-8 0.12 MiB extra/python-wrapt 1.14.1-2 0.24 MiB extra/python-yaml 6.0-3 0.93 MiB extra/python-yarl 1.9.2-1 0.27 MiB 0.08 MiB Total Download Size: 0.08 MiB Total Installed Size: 107.32 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-yarl-1.9.2-1-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 Download Size extra/httpbin 0.7.0-13 0.27 MiB extra/python-autocommand 2.2.2-4 0.08 MiB core/python-brotli 1.0.9-12 0.67 MiB extra/python-click 8.1.3-3 1.22 MiB extra/python-decorator 5.1.1-3 0.07 MiB extra/python-fastjsonschema 2.17.1-1 0.29 MiB extra/python-flask 2.2.5-1 1.14 MiB extra/python-inflect 6.0.4-2 0.38 MiB extra/python-iniconfig 2.0.0-4 0.04 MiB extra/python-itsdangerous 2.1.2-3 0.14 MiB extra/python-jaraco.context 4.3.0-3 0.04 MiB extra/python-jaraco.functools 3.7.0-1 0.07 MiB extra/python-jaraco.text 3.11.1-3 0.09 MiB extra/python-jinja 1:3.1.2-4 1.82 MiB extra/python-markupsafe 2.1.3-1 0.08 MiB extra/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.1-1 0.47 MiB extra/python-platformdirs 3.5.1-1 0.20 MiB extra/python-pluggy 1.0.0-4 0.13 MiB extra/python-pydantic 1.10.7-4 6.36 MiB extra/python-pytest 7.3.2-1 3.98 MiB extra/python-tomli 2.0.1-3 0.11 MiB extra/python-trove-classifiers 2023.5.24-1 0.11 MiB extra/python-typing_extensions 4.6.3-1 0.36 MiB extra/python-validate-pyproject 0.13-1 0.29 MiB extra/python-werkzeug 2.3.2-1 2.78 MiB extra/python-pytest-httpbin 2.0.0-1 0.04 MiB 0.02 MiB extra/python-setuptools 1:67.7.0-1 4.68 MiB Total Download Size: 0.02 MiB Total Installed Size: 26.57 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-pytest-httpbin-2.0.0-1-any downloading... 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/_handle_coroutine.py -> build/lib/vcr copying vcr/cassette.py -> build/lib/vcr copying vcr/config.py -> build/lib/vcr copying vcr/errors.py -> build/lib/vcr copying vcr/filters.py -> build/lib/vcr copying vcr/matchers.py -> build/lib/vcr copying vcr/migration.py -> build/lib/vcr copying vcr/patch.py -> build/lib/vcr copying vcr/record_mode.py -> build/lib/vcr copying vcr/request.py -> build/lib/vcr copying vcr/serialize.py -> build/lib/vcr copying vcr/util.py -> build/lib/vcr 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/serializers copying vcr/serializers/__init__.py -> build/lib/vcr/serializers copying vcr/serializers/compat.py -> build/lib/vcr/serializers copying vcr/serializers/jsonserializer.py -> build/lib/vcr/serializers copying vcr/serializers/yamlserializer.py -> build/lib/vcr/serializers 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/boto3_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/boto_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/compat.py -> build/lib/vcr/stubs copying vcr/stubs/httplib2_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/httpx_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/requests_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/tornado_stubs.py -> build/lib/vcr/stubs copying vcr/stubs/urllib3_stubs.py -> build/lib/vcr/stubs ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.2, pluggy-1.0.0 rootdir: /build/python-vcrpy/src/vcrpy-4.2.1 plugins: httpbin-2.0.0 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 .... [ 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 - - [23/Jun/2023 11:00:28] "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 - - [23/Jun/2023 11:00:31] "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 - - [23/Jun/2023 11:00:32] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [23/Jun/2023 11:00:33] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [23/Jun/2023 11:00:33] "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 - - [23/Jun/2023 11:00:33] "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 - - [23/Jun/2023 11:00:35] "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 - - [23/Jun/2023 11:00:37] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [23/Jun/2023 11:00:37] "GET / HTTP/1.1" 200 12120 127.0.0.1 - - [23/Jun/2023 11:00:37] "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 - - [23/Jun/2023 11:00:37] "GET /bytes/1024 HTTP/1.1" 500 59 =========================== 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 in 28.93s ================== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix20/build receiving incremental file list python-vcrpy-4.2.1-3-riscv64-build.log python-vcrpy-4.2.1-3-riscv64-check.log python-vcrpy-4.2.1-3-x86_64-build.log python-vcrpy-4.2.1-3-x86_64-check.log python-vcrpy-4.2.1-3-x86_64-package.log sent 119 bytes received 4,786 bytes 3,270.00 bytes/sec total size is 31,250 speedup is 6.37