==> Building on c ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/borg ./ PKGBUILD 1,887 100% 0.00kB/s 0:00:00 1,887 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=4/6) borg-1.2.2-2.log 343 100% 334.96kB/s 0:00:00 343 100% 334.96kB/s 0:00:00 (xfr#2, to-chk=3/6) keys/ keys/pgp/ keys/pgp/6D5BEF9ADD2075805747B70F9F88FB52FAF7B393.asc 7,985 100% 7.62MB/s 0:00:00 7,985 100% 7.62MB/s 0:00:00 (xfr#3, to-chk=0/6) sent 7,368 bytes received 124 bytes 2,996.80 bytes/sec total size is 10,060 speedup is 1.34 ==> Ensuring required PGP keys are present... ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix6 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] -> [felix6]...done ==> Making package: borg 1.2.2-2 (Tue Nov 8 04:16:00 2022) ==> Retrieving sources...  -> Downloading borgbackup-1.2.2.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 3948k 100 3948k 0 0 3307k 0 0:00:01 0:00:01 --:--:-- 3307k  -> Downloading borgbackup-1.2.2.tar.gz.asc... % 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 862 100 862 0 0 1212 0 --:--:-- --:--:-- --:--:-- 1212 ==> Validating source files with sha256sums... borgbackup-1.2.2.tar.gz ... Passed borgbackup-1.2.2.tar.gz.asc ... Skipped ==> Verifying source file signatures with gpg... borgbackup-1.2.2.tar.gz ... Passed ==> Making package: borg 1.2.2-2 (Tue Nov 8 04:16:35 2022) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (5) New Version Net Change core/libnsl 2.0.0-2 0.06 MiB extra/python-pyparsing 3.0.9-1 0.96 MiB core/python 3.10.8-2 81.32 MiB community/python-msgpack 1.0.4-1 0.22 MiB extra/python-packaging 21.3-1 0.26 MiB Total Installed Size: 82.82 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-pyparsing... Optional dependencies for python-pyparsing python-railroad-diagrams: for generating Railroad Diagrams python-jinja: for generating Railroad Diagrams installing python-packaging... installing python-msgpack... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (45) New Version Net Change Download Size community/cython 0.29.32-2 7.52 MiB extra/python-appdirs 1.4.4-7 0.07 MiB extra/python-attrs 22.1.0-1 0.43 MiB community/python-autocommand 2.2.1-1 0.07 MiB community/python-babel 2.11.0-1 29.16 MiB extra/python-chardet 5.0.0-1 2.44 MiB community/python-docutils 1:0.19-2 4.26 MiB community/python-exceptiongroup 1.0.1-1 0.08 MiB extra/python-idna 3.4-1 0.67 MiB community/python-imagesize 1.4.1-2 0.03 MiB community/python-inflect 6.0.2-1 0.28 MiB community/python-iniconfig 1.1.1-5 0.02 MiB community/python-jaraco.context 4.1.2-1 0.02 MiB community/python-jaraco.functools 3.5.2-1 0.05 MiB community/python-jaraco.text 3.10.0-1 0.07 MiB community/python-jinja 1:3.1.2-2 1.28 MiB extra/python-markupsafe 2.1.1-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 community/python-pluggy 1.0.0-1 0.10 MiB community/python-pydantic 1.10.2-1 5.79 MiB community/python-pygments 2.13.0-1 11.59 MiB community/python-pytz 2022.1-1 0.14 MiB extra/python-requests 2.28.1-1 0.45 MiB extra/python-six 1.16.0-6 0.09 MiB community/python-snowballstemmer 2.2.0-3 1.78 MiB community/python-sphinx-alabaster-theme 0.7.12-9 0.04 MiB community/python-sphinxcontrib-applehelp 1.0.2-9 0.25 MiB community/python-sphinxcontrib-devhelp 1.0.2-9 0.13 MiB community/python-sphinxcontrib-htmlhelp 2.0.0-5 0.16 MiB community/python-sphinxcontrib-jsmath 1.0.1-12 0.01 MiB community/python-sphinxcontrib-qthelp 1.0.3-9 0.16 MiB community/python-sphinxcontrib-serializinghtml 1.1.5-4 0.13 MiB extra/python-tomli 2.0.1-1 0.08 MiB extra/python-trove-classifiers 2022.10.19-1 0.11 MiB community/python-typing_extensions 4.4.0-1 0.22 MiB extra/python-urllib3 1.26.7-5 0.69 MiB extra/python-validate-pyproject 0.10.1-1 0.41 MiB community/python-dateutil 2.8.2-4 0.82 MiB community/python-guzzle-sphinx-theme 0.7.11-10 4.41 MiB 1.53 MiB community/python-pkgconfig 1.5.5-3 0.03 MiB community/python-pytest 7.2.0-3 2.79 MiB extra/python-setuptools 1:64.0.2-1 3.41 MiB community/python-setuptools-scm 7.0.5-1 0.26 MiB community/python-sphinx 5.3.0-1 15.45 MiB Total Download Size: 1.53 MiB Total Installed Size: 96.56 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-guzzle-sphinx-theme-0.7.11-10-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-appdirs... 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-tomli... installing python-trove-classifiers... installing python-validate-pyproject... installing python-setuptools... installing python-setuptools-scm... installing python-pkgconfig... installing python-pytz... installing python-babel... installing python-docutils... installing python-imagesize... installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support [installed] installing python-pygments... installing python-urllib3... Optional dependencies for python-urllib3 python-pysocks: SOCKS support python-brotli: Brotli support python-pyopenssl: security support python-idna: security support [pending] installing python-chardet... installing python-idna... installing python-requests... Optional dependencies for python-requests python-pysocks: SOCKS proxy support installing python-snowballstemmer... Optional dependencies for python-snowballstemmer python-pystemmer: for improved performance installing python-sphinx-alabaster-theme... installing python-sphinxcontrib-applehelp... installing python-sphinxcontrib-devhelp... installing python-sphinxcontrib-htmlhelp... installing python-sphinxcontrib-jsmath... installing python-sphinxcontrib-qthelp... installing python-sphinxcontrib-serializinghtml... installing python-sphinx... Optional dependencies for python-sphinx imagemagick: for ext.imgconverter texlive-latexextra: for generation of PDF documentation installing python-guzzle-sphinx-theme... installing python-attrs... installing python-exceptiongroup... installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-six... installing python-dateutil... [?25h==> Retrieving sources...  -> Found borgbackup-1.2.2.tar.gz  -> Found borgbackup-1.2.2.tar.gz.asc ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting borgbackup-1.2.2.tar.gz with bsdtar ==> Starting build()... Detected OpenSSL [via pkg-config] Detected and preferring liblz4 [via pkg-config] Detected and preferring libzstd [via pkg-config] Using bundled xxhash running build running build_py creating build creating build/lib.linux-riscv64-cpython-310 creating build/lib.linux-riscv64-cpython-310/borg copying src/borg/__init__.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/__main__.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/_version.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/archive.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/archiver.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/cache.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/constants.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/fuse.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/fuse_impl.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/locking.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/logger.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/lrucache.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/nanorst.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/patterns.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/platformflags.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/remote.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/repository.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/selftest.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/shellpattern.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/upgrader.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/version.py -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/xattr.py -> build/lib.linux-riscv64-cpython-310/borg creating build/lib.linux-riscv64-cpython-310/borg/algorithms copying src/borg/algorithms/__init__.py -> build/lib.linux-riscv64-cpython-310/borg/algorithms creating build/lib.linux-riscv64-cpython-310/borg/crypto copying src/borg/crypto/__init__.py -> build/lib.linux-riscv64-cpython-310/borg/crypto copying src/borg/crypto/file_integrity.py -> build/lib.linux-riscv64-cpython-310/borg/crypto copying src/borg/crypto/key.py -> build/lib.linux-riscv64-cpython-310/borg/crypto copying src/borg/crypto/keymanager.py -> build/lib.linux-riscv64-cpython-310/borg/crypto copying src/borg/crypto/nonces.py -> build/lib.linux-riscv64-cpython-310/borg/crypto creating build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/__init__.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/checks.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/datastruct.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/errors.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/fs.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/manifest.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/misc.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/msgpack.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/parseformat.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/process.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/progress.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/time.py -> build/lib.linux-riscv64-cpython-310/borg/helpers copying src/borg/helpers/yes.py -> build/lib.linux-riscv64-cpython-310/borg/helpers creating build/lib.linux-riscv64-cpython-310/borg/platform copying src/borg/platform/__init__.py -> build/lib.linux-riscv64-cpython-310/borg/platform copying src/borg/platform/base.py -> build/lib.linux-riscv64-cpython-310/borg/platform copying src/borg/platform/xattr.py -> build/lib.linux-riscv64-cpython-310/borg/platform creating build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/__init__.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/archive.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/archiver.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/benchmark.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/cache.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/checksums.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/chunker.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/chunker_pytest.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/chunker_slow.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/compress.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/crypto.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/efficient_collection_queue.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/file_integrity.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/hashindex.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/helpers.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/item.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/key.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/locking.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/logger.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/lrucache.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/nanorst.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/nonces.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/patterns.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/platform.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/remote.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/repository.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/shellpattern.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/upgrader.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/version.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite copying src/borg/testsuite/xattr.py -> build/lib.linux-riscv64-cpython-310/borg/testsuite running egg_info writing src/borgbackup.egg-info/PKG-INFO writing dependency_links to src/borgbackup.egg-info/dependency_links.txt writing entry points to src/borgbackup.egg-info/entry_points.txt writing requirements to src/borgbackup.egg-info/requires.txt writing top-level names to src/borgbackup.egg-info/top_level.txt reading manifest file 'src/borgbackup.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching '.coafile' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.gitattributes' warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching '.mailmap' warning: no previously-included files found matching 'Vagrantfile' no previously-included directories found matching '.github' adding license file 'LICENSE' adding license file 'AUTHORS' writing manifest file 'src/borgbackup.egg-info/SOURCES.txt' copying src/borg/paperkey.html -> build/lib.linux-riscv64-cpython-310/borg copying src/borg/testsuite/attic.tar.gz -> build/lib.linux-riscv64-cpython-310/borg/testsuite running build_ext building 'borg.crypto.low_level' extension creating build/temp.linux-riscv64-cpython-310 creating build/temp.linux-riscv64-cpython-310/src creating build/temp.linux-riscv64-cpython-310/src/borg creating build/temp.linux-riscv64-cpython-310/src/borg/crypto gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -Isrc/borg/crypto -I/usr/include/python3.10 -c src/borg/crypto/_crypto_helpers.c -o build/temp.linux-riscv64-cpython-310/src/borg/crypto/_crypto_helpers.o -Wall -Wextra -Wpointer-arith gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -Isrc/borg/crypto -I/usr/include/python3.10 -c src/borg/crypto/low_level.c -o build/temp.linux-riscv64-cpython-310/src/borg/crypto/low_level.o -Wall -Wextra -Wpointer-arith src/borg/crypto/low_level.c: In function ‘__pyx_pf_4borg_6crypto_9low_level_22AES256_CTR_HMAC_SHA256_2__cinit__’: src/borg/crypto/low_level.c:6854:3: warning: ‘HMAC_CTX_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 6854 | __pyx_v_self->hmac_ctx = HMAC_CTX_new(); | ^~~~~~~~~~~~ In file included from src/borg/crypto/low_level.c:776: /usr/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ src/borg/crypto/low_level.c: In function ‘__pyx_pf_4borg_6crypto_9low_level_22AES256_CTR_HMAC_SHA256_4__dealloc__’: src/borg/crypto/low_level.c:6900:3: warning: ‘HMAC_CTX_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 6900 | HMAC_CTX_free(__pyx_v_self->hmac_ctx); | ^~~~~~~~~~~~~ /usr/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ src/borg/crypto/low_level.c: In function ‘__pyx_f_4borg_6crypto_9low_level_22AES256_CTR_HMAC_SHA256_mac_compute’: src/borg/crypto/low_level.c:6941:3: warning: ‘HMAC_Init_ex’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 6941 | __pyx_t_1 = ((!(HMAC_Init_ex(__pyx_v_self->hmac_ctx, __pyx_v_self->mac_key, __pyx_v_self->__pyx_base.mac_len, EVP_sha256(), NULL) != 0)) != 0); | ^~~~~~~~~ /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ src/borg/crypto/low_level.c:6988:3: warning: ‘HMAC_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 6988 | __pyx_t_1 = ((!(HMAC_Update(__pyx_v_self->hmac_ctx, __pyx_v_data1, __pyx_v_data1_len) != 0)) != 0); | ^~~~~~~~~ /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ src/borg/crypto/low_level.c:7035:3: warning: ‘HMAC_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 7035 | __pyx_t_1 = ((!(HMAC_Update(__pyx_v_self->hmac_ctx, __pyx_v_data2, __pyx_v_data2_len) != 0)) != 0); | ^~~~~~~~~ /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ src/borg/crypto/low_level.c:7082:3: warning: ‘HMAC_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 7082 | __pyx_t_1 = ((!(HMAC_Final(__pyx_v_self->hmac_ctx, __pyx_v_mac_buf, NULL) != 0)) != 0); | ^~~~~~~~~ /usr/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/crypto/_crypto_helpers.o build/temp.linux-riscv64-cpython-310/src/borg/crypto/low_level.o -L/usr/lib -lcrypto -o build/lib.linux-riscv64-cpython-310/borg/crypto/low_level.cpython-310-riscv64-linux-gnu.so building 'borg.compress' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -Isrc/borg -I/usr/include/python3.10 -c src/borg/compress.c -o build/temp.linux-riscv64-cpython-310/src/borg/compress.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/compress.o -L/usr/lib -llz4 -lzstd -o build/lib.linux-riscv64-cpython-310/borg/compress.cpython-310-riscv64-linux-gnu.so building 'borg.hashindex' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -Isrc/borg -I/usr/include/python3.10 -c src/borg/hashindex.c -o build/temp.linux-riscv64-cpython-310/src/borg/hashindex.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/hashindex.o -L/usr/lib -o build/lib.linux-riscv64-cpython-310/borg/hashindex.cpython-310-riscv64-linux-gnu.so building 'borg.item' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -Isrc/borg -I/usr/include/python3.10 -c src/borg/item.c -o build/temp.linux-riscv64-cpython-310/src/borg/item.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/item.o -L/usr/lib -o build/lib.linux-riscv64-cpython-310/borg/item.cpython-310-riscv64-linux-gnu.so building 'borg.chunker' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -Isrc/borg -I/usr/include/python3.10 -c src/borg/chunker.c -o build/temp.linux-riscv64-cpython-310/src/borg/chunker.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/chunker.o -L/usr/lib -o build/lib.linux-riscv64-cpython-310/borg/chunker.cpython-310-riscv64-linux-gnu.so building 'borg.algorithms.checksums' extension creating build/temp.linux-riscv64-cpython-310/src/borg/algorithms creating build/temp.linux-riscv64-cpython-310/src/borg/algorithms/xxh64 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -DBORG_USE_BUNDLED_XXHASH=YES -Isrc/borg/algorithms -Isrc/borg/algorithms/xxh64/ -I/usr/include/python3.10 -c src/borg/algorithms/checksums.c -o build/temp.linux-riscv64-cpython-310/src/borg/algorithms/checksums.o -Wall -Wextra -Wpointer-arith gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -DBORG_USE_BUNDLED_XXHASH=YES -Isrc/borg/algorithms -Isrc/borg/algorithms/xxh64/ -I/usr/include/python3.10 -c src/borg/algorithms/xxh64/xxhash.c -o build/temp.linux-riscv64-cpython-310/src/borg/algorithms/xxh64/xxhash.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/algorithms/checksums.o build/temp.linux-riscv64-cpython-310/src/borg/algorithms/xxh64/xxhash.o -L/usr/lib -o build/lib.linux-riscv64-cpython-310/borg/algorithms/checksums.cpython-310-riscv64-linux-gnu.so building 'borg.platform.posix' extension creating build/temp.linux-riscv64-cpython-310/src/borg/platform gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -I/usr/include/python3.10 -c src/borg/platform/posix.c -o build/temp.linux-riscv64-cpython-310/src/borg/platform/posix.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/platform/posix.o -L/usr/lib -o build/lib.linux-riscv64-cpython-310/borg/platform/posix.cpython-310-riscv64-linux-gnu.so building 'borg.platform.linux' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -I/usr/include/python3.10 -c src/borg/platform/linux.c -o build/temp.linux-riscv64-cpython-310/src/borg/platform/linux.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/platform/linux.o -L/usr/lib -lacl -o build/lib.linux-riscv64-cpython-310/borg/platform/linux.cpython-310-riscv64-linux-gnu.so building 'borg.platform.syncfilerange' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -ffat-lto-objects -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -I/usr/include/python3.10 -c src/borg/platform/syncfilerange.c -o build/temp.linux-riscv64-cpython-310/src/borg/platform/syncfilerange.o -Wall -Wextra -Wpointer-arith gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-cpython-310/src/borg/platform/syncfilerange.o -L/usr/lib -o build/lib.linux-riscv64-cpython-310/borg/platform/syncfilerange.cpython-310-riscv64-linux-gnu.so ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.8, pytest-7.2.0, pluggy-1.0.0 Tests enabled: root, symlinks, hardlinks, atime/mtime, modes Tests disabled: BSD flags, fuse2, fuse3 rootdir: /build/borg/src/borgbackup-1.2.2, configfile: setup.cfg collected 1518 items / 54 deselected / 1464 selected borg/testsuite/archive.py ..................................... [ 2%] borg/testsuite/archiver.py .s.....s....................F.F..FFF.FF...... [ 5%] ..F..F.F....F...F..ss.........s...........s.....sssss....FF............. [ 10%] ....F..FF.ss................s........FF..F....................s.......ss [ 15%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 20%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 25%] sssssssssssssssssssssssssssssssssssssss.............FF.......s.......... [ 30%] ........s.F.F..FFF.FF........F..F.F...sF...F..ss.........s...........s.. [ 35%] ...sssss....FF.................F..FF.ss................s........FF..F... [ 40%] ....................s.......FFFFFF...................................... [ 44%] ................... [ 46%] borg/testsuite/cache.py ................................................ [ 49%] ............................ [ 51%] borg/testsuite/checksums.py ... [ 51%] borg/testsuite/chunker.py ......... [ 52%] borg/testsuite/chunker_pytest.py .................... [ 53%] borg/testsuite/chunker_slow.py . [ 53%] borg/testsuite/compress.py ............. [ 54%] borg/testsuite/crypto.py .......... [ 55%] borg/testsuite/efficient_collection_queue.py ... [ 55%] borg/testsuite/file_integrity.py ................... [ 56%] borg/testsuite/hashindex.py ..................................... [ 59%] borg/testsuite/helpers.py .............................................. [ 62%] .............................................................. [ 66%] borg/testsuite/item.py ............. [ 67%] borg/testsuite/key.py .................................................. [ 70%] ..... [ 71%] borg/testsuite/locking.py ..................... [ 72%] borg/testsuite/logger.py .... [ 73%] borg/testsuite/lrucache.py .. [ 73%] borg/testsuite/nanorst.py ........ [ 73%] borg/testsuite/nonces.py ......... [ 74%] borg/testsuite/patterns.py ............................................. [ 77%] ........................................................................ [ 82%] ......................... [ 84%] borg/testsuite/platform.py ..s.s..... [ 84%] borg/testsuite/remote.py ......................................... [ 87%] borg/testsuite/repository.py ........................................... [ 90%] ........................................ [ 93%] borg/testsuite/shellpattern.py ......................................... [ 95%] ..................... [ 97%] borg/testsuite/upgrader.py ....... [ 97%] borg/testsuite/version.py ........................ [ 99%] borg/testsuite/xattr.py sss.... [100%] =================================== FAILURES =================================== ______________ ArchiverTestCase.test_create_content_from_command _______________ self = def test_create_content_from_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) input_data = 'some test content' name = 'a/b/c' self.cmd('create', '--stdin-name', name, '--content-from-command', self.repository_location + '::test', '--', 'echo', input_data) > item = json.loads(self.cmd('list', '--json-lines', self.repository_location + '::test')) borg/testsuite/archiver.py:1091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth.../c", "healthy": true, "source": "", "linktarget": "", "flags": 0, "mtime": "2022-11-08T04:27:50.000000", "size": 18}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ____ ArchiverTestCase.test_create_content_from_command_with_failed_command _____ self = def test_create_content_from_command_with_failed_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) output = self.cmd('create', '--content-from-command', self.repository_location + '::test', '--', 'sh', '-c', 'exit 73;', exit_code=2) assert output.endswith("Command 'sh' exited with status 73\n") > archive_list = json.loads(self.cmd('list', '--json', self.repository_location)) borg/testsuite/archiver.py:1104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...n "last_modified": "2022-11-08T04:27:52.000000",\n "location": "/tmp/tmp_ikstlqw/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ______________________ ArchiverTestCase.test_create_json _______________________ self = def test_create_json(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) > create_info = json.loads(self.cmd('create', '--json', self.repository_location + '::test', 'input')) borg/testsuite/archiver.py:1991: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...n "last_modified": "2022-11-08T04:27:55.000000",\n "location": "/tmp/tmp1k4dd18g/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError __________________ ArchiverTestCase.test_create_no_cache_sync __________________ self = def test_create_no_cache_sync(self): self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('delete', '--cache-only', self.repository_location) create_json = json.loads(self.cmd('create', '--no-cache-sync', self.repository_location + '::test', 'input', '--json', '--error')) # ignore experimental warning > info_json = json.loads(self.cmd('info', self.repository_location + '::test', '--json')) borg/testsuite/archiver.py:1260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...n "last_modified": "2022-11-08T04:27:58.000000",\n "location": "/tmp/tmp6btvikdi/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _______________ ArchiverTestCase.test_create_paths_from_command ________________ self = def test_create_paths_from_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.create_regular_file("file1", size=1024 * 80) self.create_regular_file("file2", size=1024 * 80) self.create_regular_file("file3", size=1024 * 80) self.create_regular_file("file4", size=1024 * 80) input_data = 'input/file1\ninput/file2\ninput/file3' self.cmd('create', '--paths-from-command', self.repository_location + '::test', '--', 'echo', input_data) archive_list = self.cmd('list', '--json-lines', self.repository_location + '::test') > paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] borg/testsuite/archiver.py:1137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ borg/testsuite/archiver.py:1137: in paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _____ ArchiverTestCase.test_create_paths_from_command_with_failed_command ______ self = def test_create_paths_from_command_with_failed_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) output = self.cmd('create', '--paths-from-command', self.repository_location + '::test', '--', 'sh', '-c', 'exit 73;', exit_code=2) assert output.endswith("Command 'sh' exited with status 73\n") > archive_list = json.loads(self.cmd('list', '--json', self.repository_location)) borg/testsuite/archiver.py:1145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...n "last_modified": "2022-11-08T04:28:01.000000",\n "location": "/tmp/tmpz8oey98o/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ________________ ArchiverTestCase.test_create_paths_from_stdin _________________ self = def test_create_paths_from_stdin(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.create_regular_file("file1", size=1024 * 80) self.create_regular_file("dir1/file2", size=1024 * 80) self.create_regular_file("dir1/file3", size=1024 * 80) self.create_regular_file("file4", size=1024 * 80) input_data = b'input/file1\0input/dir1\0input/file4' self.cmd('create', '--paths-from-stdin', '--paths-delimiter', '\\0', self.repository_location + '::test', input=input_data) archive_list = self.cmd('list', '--json-lines', self.repository_location + '::test') > paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] borg/testsuite/archiver.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ borg/testsuite/archiver.py:1123: in paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ______________________ ArchiverTestCase.test_create_stdin ______________________ self = def test_create_stdin(self): self.cmd('init', '--encryption=repokey', self.repository_location) input_data = b'\x00foo\n\nbar\n \n' self.cmd('create', self.repository_location + '::test', '-', input=input_data) > item = json.loads(self.cmd('list', '--json-lines', self.repository_location + '::test')) borg/testsuite/archiver.py:1077: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...in", "healthy": true, "source": "", "linktarget": "", "flags": 0, "mtime": "2022-11-08T04:28:15.000000", "size": 14}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ___________________ ArchiverTestCase.test_debug_dump_archive ___________________ self = def test_debug_dump_archive(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') dump_file = self.output_path + '/dump' output = self.cmd('debug', 'dump-archive', self.repository_location + "::test", dump_file) > assert output == "" E AssertionError: assert '/build/borg/...deprecated.\n' == '' E + /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. borg/testsuite/archiver.py:3301: AssertionError __________________ ArchiverTestCase.test_debug_dump_manifest ___________________ self = def test_debug_dump_manifest(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') dump_file = self.output_path + '/dump' output = self.cmd('debug', 'dump-manifest', self.repository_location, dump_file) > assert output == "" E AssertionError: assert '/build/borg/...deprecated.\n' == '' E + /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. borg/testsuite/archiver.py:3286: AssertionError ___________________ ArchiverTestCase.test_debug_refcount_obj ___________________ self = def test_debug_refcount_obj(self): self.cmd('init', '--encryption=repokey', self.repository_location) output = self.cmd('debug', 'refcount-obj', self.repository_location, '0' * 64).strip() > assert output == 'object 0000000000000000000000000000000000000000000000000000000000000000 not found [info from chunks cache].' E AssertionError: assert '/build/borg/...hunks cache].' == 'object 00000...hunks cache].' E + /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. E object 0000000000000000000000000000000000000000000000000000000000000000 not found [info from chunks cache]. borg/testsuite/archiver.py:3312: AssertionError ____________________ ArchiverTestCase.test_delete_multiple _____________________ self = def test_delete_multiple(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test1', 'input') self.cmd('create', self.repository_location + '::test2', 'input') self.cmd('create', self.repository_location + '::test3', 'input') self.cmd('delete', self.repository_location + '::test1', 'test2') self.cmd('extract', '--dry-run', self.repository_location + '::test3') self.cmd('delete', self.repository_location, 'test3') > assert not self.cmd('list', self.repository_location) E AssertionError: assert not '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' E + where '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' = >('list', '/tmp/tmp0ip0214l/repository') E + where > = .cmd E + and '/tmp/tmp0ip0214l/repository' = .repository_location borg/testsuite/archiver.py:1597: AssertionError _______________________ ArchiverTestCase.test_info_json ________________________ self = def test_info_json(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') > info_repo = json.loads(self.cmd('info', '--json', self.repository_location)) borg/testsuite/archiver.py:1514: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...duser/pytest-0/xdg-config-home133/borg/security/6eee45a62b2363556cf0cce88007c598535a114e6c7ead1a31f7c6b9f0b070f6"\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _______________ ArchiverTestCase.test_info_json_of_empty_archive _______________ self = def test_info_json_of_empty_archive(self): """See https://github.com/borgbackup/borg/issues/6120""" self.cmd('init', '--encryption=repokey', self.repository_location) > info_repo = json.loads(self.cmd('info', '--json', '--first=1', self.repository_location)) borg/testsuite/archiver.py:1543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...n "last_modified": "2022-11-08T04:31:59.000000",\n "location": "/tmp/tmpvg104i4j/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _______________________ ArchiverTestCase.test_list_json ________________________ self = def test_list_json(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') > list_repo = json.loads(self.cmd('list', '--json', self.repository_location)) borg/testsuite/archiver.py:2355: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...n "last_modified": "2022-11-08T04:32:33.000000",\n "location": "/tmp/tmpj71x4wxz/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _________________ ArchiverTestCase.test_list_repository_format _________________ self = def test_list_repository_format(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', '--comment', 'comment 1', self.repository_location + '::test-1', src_dir) self.cmd('create', '--comment', 'comment 2', self.repository_location + '::test-2', src_dir) output_1 = self.cmd('list', self.repository_location) output_2 = self.cmd('list', '--format', '{archive:<36} {time} [{id}]{NL}', self.repository_location) self.assertEqual(output_1, output_2) output_1 = self.cmd('list', '--short', self.repository_location) > self.assertEqual(output_1, 'test-1\ntest-2\n') E AssertionError: '/build/borg/src/borgbackup-1.2.2/build/li[139 chars]-2\n' != 'test-1\ntest-2\n' E - /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. E test-1 E test-2 borg/testsuite/archiver.py:2294: AssertionError _______________________ ArchiverTestCase.test_list_size ________________________ self = def test_list_size(self): self.create_regular_file('compressible_file', size=10000) self.cmd('init', '--encryption=repokey', self.repository_location) test_archive = self.repository_location + '::test' self.cmd('create', '-C', 'lz4', test_archive, 'input') output = self.cmd('list', '--format', '{size} {csize} {dsize} {dcsize} {path}{NL}', test_archive) size, csize, dsize, dcsize, path = output.split("\n")[1].split(" ") > assert int(csize) < int(size) E AssertionError: assert 0 < 0 E + where 0 = int('0') E + and 0 = int('0') borg/testsuite/archiver.py:2346: AssertionError __________________ ArchiverTestCase.test_recreate_rechunkify ___________________ self = def test_recreate_rechunkify(self): with open(os.path.join(self.input_path, 'large_file'), 'wb') as fd: fd.write(b'a' * 280) fd.write(b'b' * 280) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', '--chunker-params', '7,9,8,128', self.repository_location + '::test1', 'input') self.cmd('create', self.repository_location + '::test2', 'input', '--files-cache=disabled') list = self.cmd('list', self.repository_location + '::test1', 'input/large_file', '--format', '{num_chunks} {unique_chunks}') > num_chunks, unique_chunks = map(int, list.split(' ')) E ValueError: invalid literal for int() with base 10: '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523:' borg/testsuite/archiver.py:2985: ValueError __________________ ArchiverTestCase.test_recreate_recompress ___________________ self = def test_recreate_recompress(self): self.create_regular_file('compressible', size=10000) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input', '-C', 'none') file_list = self.cmd('list', self.repository_location + '::test', 'input/compressible', '--format', '{size} {csize} {sha256}') > size, csize, sha256_before = file_list.split(' ') E ValueError: too many values to unpack (expected 3) borg/testsuite/archiver.py:3001: ValueError ____________________ ArchiverTestCase.test_recreate_target _____________________ self = def test_recreate_target(self): self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) self.check_cache() archive = self.repository_location + '::test0' self.cmd('create', archive, 'input') self.check_cache() original_archive = self.cmd('list', self.repository_location) self.cmd('recreate', archive, 'input/dir2', '-e', 'input/dir2/file3', '--target=new-archive') self.check_cache() archives = self.cmd('list', self.repository_location) > assert original_archive in archives E AssertionError: assert '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth... Tue, 2022-11-08 04:36:11 [ad999d36bab9c8b423428c28ff8f45fb15c8f0ca59aec2007612fafeea697d1c]\n' in '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth... Tue, 2022-11-08 04:36:11 [ad999d36bab9c8b423428c28ff8f45fb15c8f0ca59aec2007612fafeea697d1c]\n' borg/testsuite/archiver.py:2937: AssertionError ___________________ ManifestAuthenticationTest.test_disable ____________________ self = def test_disable(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.create_src_archive('archive1234') self.cmd('upgrade', '--disable-tam', self.repository_location) repository = Repository(self.repository_path, exclusive=True) self.spoof_manifest(repository) > assert not self.cmd('list', self.repository_location) E AssertionError: assert not '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' E + where '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' = >('list', '/tmp/tmpcgzxotni/repository') E + where > = .cmd E + and '/tmp/tmpcgzxotni/repository' = .repository_location borg/testsuite/archiver.py:3926: AssertionError ___________________ ManifestAuthenticationTest.test_disable2 ___________________ self = def test_disable2(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.create_src_archive('archive1234') repository = Repository(self.repository_path, exclusive=True) self.spoof_manifest(repository) self.cmd('upgrade', '--disable-tam', self.repository_location) > assert not self.cmd('list', self.repository_location) E AssertionError: assert not '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' E + where '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' = >('list', '/tmp/tmpclbgz6qh/repository') E + where > = .cmd E + and '/tmp/tmpclbgz6qh/repository' = .repository_location borg/testsuite/archiver.py:3934: AssertionError ___________ RemoteArchiverTestCase.test_create_content_from_command ____________ self = def test_create_content_from_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) input_data = 'some test content' name = 'a/b/c' self.cmd('create', '--stdin-name', name, '--content-from-command', self.repository_location + '::test', '--', 'echo', input_data) > item = json.loads(self.cmd('list', '--json-lines', self.repository_location + '::test')) borg/testsuite/archiver.py:1091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth.../c", "healthy": true, "source": "", "linktarget": "", "flags": 0, "mtime": "2022-11-08T04:53:05.000000", "size": 18}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _ RemoteArchiverTestCase.test_create_content_from_command_with_failed_command __ self = def test_create_content_from_command_with_failed_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) output = self.cmd('create', '--content-from-command', self.repository_location + '::test', '--', 'sh', '-c', 'exit 73;', exit_code=2) assert output.endswith("Command 'sh' exited with status 73\n") > archive_list = json.loads(self.cmd('list', '--json', self.repository_location)) borg/testsuite/archiver.py:1104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...fied": "2022-11-08T04:53:31.000000",\n "location": "ssh://__testsuite__/tmp/tmpvgt1wvq6/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ___________________ RemoteArchiverTestCase.test_create_json ____________________ self = def test_create_json(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) > create_info = json.loads(self.cmd('create', '--json', self.repository_location + '::test', 'input')) borg/testsuite/archiver.py:1991: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...fied": "2022-11-08T04:54:38.000000",\n "location": "ssh://__testsuite__/tmp/tmpsyipfxif/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _______________ RemoteArchiverTestCase.test_create_no_cache_sync _______________ self = def test_create_no_cache_sync(self): self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('delete', '--cache-only', self.repository_location) create_json = json.loads(self.cmd('create', '--no-cache-sync', self.repository_location + '::test', 'input', '--json', '--error')) # ignore experimental warning > info_json = json.loads(self.cmd('info', self.repository_location + '::test', '--json')) borg/testsuite/archiver.py:1260: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...fied": "2022-11-08T04:55:07.000000",\n "location": "ssh://__testsuite__/tmp/tmpo84l3112/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ____________ RemoteArchiverTestCase.test_create_paths_from_command _____________ self = def test_create_paths_from_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.create_regular_file("file1", size=1024 * 80) self.create_regular_file("file2", size=1024 * 80) self.create_regular_file("file3", size=1024 * 80) self.create_regular_file("file4", size=1024 * 80) input_data = 'input/file1\ninput/file2\ninput/file3' self.cmd('create', '--paths-from-command', self.repository_location + '::test', '--', 'echo', input_data) archive_list = self.cmd('list', '--json-lines', self.repository_location + '::test') > paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] borg/testsuite/archiver.py:1137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ borg/testsuite/archiver.py:1137: in paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError __ RemoteArchiverTestCase.test_create_paths_from_command_with_failed_command ___ self = def test_create_paths_from_command_with_failed_command(self): self.cmd('init', '--encryption=repokey', self.repository_location) output = self.cmd('create', '--paths-from-command', self.repository_location + '::test', '--', 'sh', '-c', 'exit 73;', exit_code=2) assert output.endswith("Command 'sh' exited with status 73\n") > archive_list = json.loads(self.cmd('list', '--json', self.repository_location)) borg/testsuite/archiver.py:1145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...fied": "2022-11-08T04:56:00.000000",\n "location": "ssh://__testsuite__/tmp/tmpr_1d_u2o/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _____________ RemoteArchiverTestCase.test_create_paths_from_stdin ______________ self = def test_create_paths_from_stdin(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.create_regular_file("file1", size=1024 * 80) self.create_regular_file("dir1/file2", size=1024 * 80) self.create_regular_file("dir1/file3", size=1024 * 80) self.create_regular_file("file4", size=1024 * 80) input_data = b'input/file1\0input/dir1\0input/file4' self.cmd('create', '--paths-from-stdin', '--paths-delimiter', '\\0', self.repository_location + '::test', input=input_data) archive_list = self.cmd('list', '--json-lines', self.repository_location + '::test') > paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] borg/testsuite/archiver.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ borg/testsuite/archiver.py:1123: in paths = [json.loads(line)['path'] for line in archive_list.split('\n') if line] /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ___________________ RemoteArchiverTestCase.test_create_stdin ___________________ self = def test_create_stdin(self): self.cmd('init', '--encryption=repokey', self.repository_location) input_data = b'\x00foo\n\nbar\n \n' self.cmd('create', self.repository_location + '::test', '-', input=input_data) > item = json.loads(self.cmd('list', '--json-lines', self.repository_location + '::test')) borg/testsuite/archiver.py:1077: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...in", "healthy": true, "source": "", "linktarget": "", "flags": 0, "mtime": "2022-11-08T04:59:40.000000", "size": 14}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ________________ RemoteArchiverTestCase.test_debug_dump_archive ________________ self = def test_debug_dump_archive(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') dump_file = self.output_path + '/dump' output = self.cmd('debug', 'dump-archive', self.repository_location + "::test", dump_file) > assert output == "" E AssertionError: assert '/build/borg/...deprecated.\n' == '' E + /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. borg/testsuite/archiver.py:3301: AssertionError _______________ RemoteArchiverTestCase.test_debug_dump_manifest ________________ self = def test_debug_dump_manifest(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') dump_file = self.output_path + '/dump' output = self.cmd('debug', 'dump-manifest', self.repository_location, dump_file) > assert output == "" E AssertionError: assert '/build/borg/...deprecated.\n' == '' E + /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. borg/testsuite/archiver.py:3286: AssertionError ________________ RemoteArchiverTestCase.test_debug_refcount_obj ________________ self = def test_debug_refcount_obj(self): self.cmd('init', '--encryption=repokey', self.repository_location) output = self.cmd('debug', 'refcount-obj', self.repository_location, '0' * 64).strip() > assert output == 'object 0000000000000000000000000000000000000000000000000000000000000000 not found [info from chunks cache].' E AssertionError: assert '/build/borg/...hunks cache].' == 'object 00000...hunks cache].' E + /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. E object 0000000000000000000000000000000000000000000000000000000000000000 not found [info from chunks cache]. borg/testsuite/archiver.py:3312: AssertionError _________________ RemoteArchiverTestCase.test_delete_multiple __________________ self = def test_delete_multiple(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test1', 'input') self.cmd('create', self.repository_location + '::test2', 'input') self.cmd('create', self.repository_location + '::test3', 'input') self.cmd('delete', self.repository_location + '::test1', 'test2') self.cmd('extract', '--dry-run', self.repository_location + '::test3') self.cmd('delete', self.repository_location, 'test3') > assert not self.cmd('list', self.repository_location) E AssertionError: assert not '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' E + where '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.\n' = >('list', '__testsuite__:/tmp/tmpub0nr21s/repository') E + where > = .cmd E + and '__testsuite__:/tmp/tmpub0nr21s/repository' = .repository_location borg/testsuite/archiver.py:1597: AssertionError ____________________ RemoteArchiverTestCase.test_info_json _____________________ self = def test_info_json(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') > info_repo = json.loads(self.cmd('info', '--json', self.repository_location)) borg/testsuite/archiver.py:1514: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...duser/pytest-0/xdg-config-home329/borg/security/9e73a8e9b2b9fbf8c2be46ee014368f120e48e378b4a061286cc494d2b574cec"\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ____________ RemoteArchiverTestCase.test_info_json_of_empty_archive ____________ self = def test_info_json_of_empty_archive(self): """See https://github.com/borgbackup/borg/issues/6120""" self.cmd('init', '--encryption=repokey', self.repository_location) > info_repo = json.loads(self.cmd('info', '--json', '--first=1', self.repository_location)) borg/testsuite/archiver.py:1543: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...fied": "2022-11-08T05:14:44.000000",\n "location": "ssh://__testsuite__/tmp/tmpkkrlhbn_/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ____________________ RemoteArchiverTestCase.test_list_json _____________________ self = def test_list_json(self): self.create_regular_file('file1', size=1024 * 80) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input') > list_repo = json.loads(self.cmd('list', '--json', self.repository_location)) borg/testsuite/archiver.py:2355: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...fied": "2022-11-08T05:21:35.000000",\n "location": "ssh://__testsuite__/tmp/tmpzf6hdm3f/repository"\n }\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ______________ RemoteArchiverTestCase.test_list_repository_format ______________ self = def test_list_repository_format(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', '--comment', 'comment 1', self.repository_location + '::test-1', src_dir) self.cmd('create', '--comment', 'comment 2', self.repository_location + '::test-2', src_dir) output_1 = self.cmd('list', self.repository_location) output_2 = self.cmd('list', '--format', '{archive:<36} {time} [{id}]{NL}', self.repository_location) self.assertEqual(output_1, output_2) output_1 = self.cmd('list', '--short', self.repository_location) > self.assertEqual(output_1, 'test-1\ntest-2\n') E AssertionError: '/build/borg/src/borgbackup-1.2.2/build/li[139 chars]-2\n' != 'test-1\ntest-2\n' E - /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. E test-1 E test-2 borg/testsuite/archiver.py:2294: AssertionError ____________________ RemoteArchiverTestCase.test_list_size _____________________ self = def test_list_size(self): self.create_regular_file('compressible_file', size=10000) self.cmd('init', '--encryption=repokey', self.repository_location) test_archive = self.repository_location + '::test' self.cmd('create', '-C', 'lz4', test_archive, 'input') output = self.cmd('list', '--format', '{size} {csize} {dsize} {dcsize} {path}{NL}', test_archive) size, csize, dsize, dcsize, path = output.split("\n")[1].split(" ") > assert int(csize) < int(size) E AssertionError: assert 0 < 0 E + where 0 = int('0') E + and 0 = int('0') borg/testsuite/archiver.py:2346: AssertionError _______________ RemoteArchiverTestCase.test_recreate_rechunkify ________________ self = def test_recreate_rechunkify(self): with open(os.path.join(self.input_path, 'large_file'), 'wb') as fd: fd.write(b'a' * 280) fd.write(b'b' * 280) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', '--chunker-params', '7,9,8,128', self.repository_location + '::test1', 'input') self.cmd('create', self.repository_location + '::test2', 'input', '--files-cache=disabled') list = self.cmd('list', self.repository_location + '::test1', 'input/large_file', '--format', '{num_chunks} {unique_chunks}') > num_chunks, unique_chunks = map(int, list.split(' ')) E ValueError: invalid literal for int() with base 10: '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523:' borg/testsuite/archiver.py:2985: ValueError _______________ RemoteArchiverTestCase.test_recreate_recompress ________________ self = def test_recreate_recompress(self): self.create_regular_file('compressible', size=10000) self.cmd('init', '--encryption=repokey', self.repository_location) self.cmd('create', self.repository_location + '::test', 'input', '-C', 'none') file_list = self.cmd('list', self.repository_location + '::test', 'input/compressible', '--format', '{size} {csize} {sha256}') > size, csize, sha256_before = file_list.split(' ') E ValueError: too many values to unpack (expected 3) borg/testsuite/archiver.py:3001: ValueError _________________ RemoteArchiverTestCase.test_recreate_target __________________ self = def test_recreate_target(self): self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) self.check_cache() archive = self.repository_location + '::test0' self.cmd('create', archive, 'input') self.check_cache() original_archive = self.cmd('list', self.repository_location) self.cmd('recreate', archive, 'input/dir2', '-e', 'input/dir2/file3', '--target=new-archive') self.check_cache() archives = self.cmd('list', self.repository_location) > assert original_archive in archives E AssertionError: assert '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth... Tue, 2022-11-08 05:51:34 [b856e36ed9accebe4bc3dfb27d90188d53bff37e3b8c446fd472bcf75c098ee2]\n' in '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth... Tue, 2022-11-08 05:51:34 [b856e36ed9accebe4bc3dfb27d90188d53bff37e3b8c446fd472bcf75c098ee2]\n' borg/testsuite/archiver.py:2937: AssertionError _________________ ArchiverCorruptionTestCase.test_cache_chunks _________________ self = def setUp(self): super().setUp() self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) > self.cache_path = json.loads(self.cmd('info', self.repository_location, '--json'))['cache']['path'] /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4013: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...duser/pytest-0/xdg-config-home416/borg/security/b16e3bdc693faf5ffbb2e0888c53e11a5e02be4be152b378876d40ea895e194a"\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError _________________ ArchiverCorruptionTestCase.test_cache_files __________________ self = def setUp(self): super().setUp() self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) > self.cache_path = json.loads(self.cmd('info', self.repository_location, '--json'))['cache']['path'] /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4013: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...duser/pytest-0/xdg-config-home417/borg/security/3812ecc97af36a3fdd6929b3ef9c8fba552a6b3be96493104e295e1628c06ff0"\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ________________ ArchiverCorruptionTestCase.test_chunks_archive ________________ self = def setUp(self): super().setUp() self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) > self.cache_path = json.loads(self.cmd('info', self.repository_location, '--json'))['cache']['path'] /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4013: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...duser/pytest-0/xdg-config-home418/borg/security/e62085395c00a227a42a6d40c5b5b2ddb2def90a65930d40d24303e9847fc7cc"\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ____________ ArchiverCorruptionTestCase.test_old_version_interfered ____________ self = def setUp(self): super().setUp() self.create_test_files() self.cmd('init', '--encryption=repokey', self.repository_location) > self.cache_path = json.loads(self.cmd('info', self.repository_location, '--json'))['cache']['path'] /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4013: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Pyth...duser/pytest-0/xdg-config-home419/borg/security/d7e053be2d21d483fb28ad98dfc418332ababee9ebc708b74f3bc26aff500ca6"\n}\n' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ________________ DiffArchiverTestCase.test_basic_functionality _________________ self = def test_basic_functionality(self): # Setup files for the first snapshot self.create_regular_file('empty', size=0) self.create_regular_file('file_unchanged', size=128) self.create_regular_file('file_removed', size=256) self.create_regular_file('file_removed2', size=512) self.create_regular_file('file_replaced', size=1024) os.mkdir('input/dir_replaced_with_file') os.chmod('input/dir_replaced_with_file', stat.S_IFDIR | 0o755) os.mkdir('input/dir_removed') if are_symlinks_supported(): os.mkdir('input/dir_replaced_with_link') os.symlink('input/dir_replaced_with_file', 'input/link_changed') os.symlink('input/file_unchanged', 'input/link_removed') os.symlink('input/file_removed2', 'input/link_target_removed') os.symlink('input/empty', 'input/link_target_contents_changed') os.symlink('input/empty', 'input/link_replaced_by_file') if are_hardlinks_supported(): os.link('input/file_replaced', 'input/hardlink_target_replaced') os.link('input/empty', 'input/hardlink_contents_changed') os.link('input/file_removed', 'input/hardlink_removed') os.link('input/file_removed2', 'input/hardlink_target_removed') self.cmd('init', '--encryption=repokey', self.repository_location) # Create the first snapshot self.cmd('create', self.repository_location + '::test0', 'input') # Setup files for the second snapshot self.create_regular_file('file_added', size=2048) self.create_regular_file('file_empty_added', size=0) os.unlink('input/file_replaced') self.create_regular_file('file_replaced', contents=b'0' * 4096) os.unlink('input/file_removed') os.unlink('input/file_removed2') os.rmdir('input/dir_replaced_with_file') self.create_regular_file('dir_replaced_with_file', size=8192) os.chmod('input/dir_replaced_with_file', stat.S_IFREG | 0o755) os.mkdir('input/dir_added') os.rmdir('input/dir_removed') if are_symlinks_supported(): os.rmdir('input/dir_replaced_with_link') os.symlink('input/dir_added', 'input/dir_replaced_with_link') os.unlink('input/link_changed') os.symlink('input/dir_added', 'input/link_changed') os.symlink('input/dir_added', 'input/link_added') os.unlink('input/link_replaced_by_file') self.create_regular_file('link_replaced_by_file', size=16384) os.unlink('input/link_removed') if are_hardlinks_supported(): os.unlink('input/hardlink_removed') os.link('input/file_added', 'input/hardlink_added') with open('input/empty', 'ab') as fd: fd.write(b'appended_data') # Create the second snapshot self.cmd('create', self.repository_location + '::test1a', 'input') self.cmd('create', '--chunker-params', '16,18,17,4095', self.repository_location + '::test1b', 'input') def do_asserts(output, can_compare_ids): # File contents changed (deleted and replaced with a new file) change = 'B' if can_compare_ids else '{:<19}'.format('modified') assert 'file_replaced' in output # added to debug #3494 assert f'{change} input/file_replaced' in output # File unchanged assert 'input/file_unchanged' not in output # Directory replaced with a regular file if 'BORG_TESTS_IGNORE_MODES' not in os.environ: assert '[drwxr-xr-x -> -rwxr-xr-x] input/dir_replaced_with_file' in output # Basic directory cases assert 'added directory input/dir_added' in output assert 'removed directory input/dir_removed' in output if are_symlinks_supported(): # Basic symlink cases assert 'changed link input/link_changed' in output assert 'added link input/link_added' in output assert 'removed link input/link_removed' in output # Symlink replacing or being replaced assert '] input/dir_replaced_with_link' in output assert '] input/link_replaced_by_file' in output # Symlink target removed. Should not affect the symlink at all. assert 'input/link_target_removed' not in output # The inode has two links and the file contents changed. Borg # should notice the changes in both links. However, the symlink # pointing to the file is not changed. change = '0 B' if can_compare_ids else '{:<19}'.format('modified') assert f'{change} input/empty' in output if are_hardlinks_supported(): assert f'{change} input/hardlink_contents_changed' in output if are_symlinks_supported(): assert 'input/link_target_contents_changed' not in output # Added a new file and a hard link to it. Both links to the same # inode should appear as separate files. assert 'added 2.05 kB input/file_added' in output if are_hardlinks_supported(): assert 'added 2.05 kB input/hardlink_added' in output # check if a diff between non-existent and empty new file is found assert 'added 0 B input/file_empty_added' in output # The inode has two links and both of them are deleted. They should # appear as two deleted files. assert 'removed 256 B input/file_removed' in output if are_hardlinks_supported(): assert 'removed 256 B input/hardlink_removed' in output # Another link (marked previously as the source in borg) to the # same inode was removed. This should not change this link at all. if are_hardlinks_supported(): assert 'input/hardlink_target_removed' not in output # Another link (marked previously as the source in borg) to the # same inode was replaced with a new regular file. This should not # change this link at all. if are_hardlinks_supported(): assert 'input/hardlink_target_replaced' not in output def do_json_asserts(output, can_compare_ids): def get_changes(filename, data): chgsets = [j['changes'] for j in data if j['path'] == filename] assert len(chgsets) < 2 # return a flattened list of changes for given filename return [chg for chgset in chgsets for chg in chgset] # convert output to list of dicts joutput = [json.loads(line) for line in output.split('\n') if line] # File contents changed (deleted and replaced with a new file) expected = {'type': 'modified', 'added': 4096, 'removed': 1024} if can_compare_ids else {'type': 'modified'} assert expected in get_changes('input/file_replaced', joutput) # File unchanged assert not any(get_changes('input/file_unchanged', joutput)) # Directory replaced with a regular file if 'BORG_TESTS_IGNORE_MODES' not in os.environ: assert {'type': 'mode', 'old_mode': 'drwxr-xr-x', 'new_mode': '-rwxr-xr-x'} in \ get_changes('input/dir_replaced_with_file', joutput) # Basic directory cases assert {'type': 'added directory'} in get_changes('input/dir_added', joutput) assert {'type': 'removed directory'} in get_changes('input/dir_removed', joutput) if are_symlinks_supported(): # Basic symlink cases assert {'type': 'changed link'} in get_changes('input/link_changed', joutput) assert {'type': 'added link'} in get_changes('input/link_added', joutput) assert {'type': 'removed link'} in get_changes('input/link_removed', joutput) # Symlink replacing or being replaced assert any(chg['type'] == 'mode' and chg['new_mode'].startswith('l') for chg in get_changes('input/dir_replaced_with_link', joutput)) assert any(chg['type'] == 'mode' and chg['old_mode'].startswith('l') for chg in get_changes('input/link_replaced_by_file', joutput)) # Symlink target removed. Should not affect the symlink at all. assert not any(get_changes('input/link_target_removed', joutput)) # The inode has two links and the file contents changed. Borg # should notice the changes in both links. However, the symlink # pointing to the file is not changed. expected = {'type': 'modified', 'added': 13, 'removed': 0} if can_compare_ids else {'type': 'modified'} assert expected in get_changes('input/empty', joutput) if are_hardlinks_supported(): assert expected in get_changes('input/hardlink_contents_changed', joutput) if are_symlinks_supported(): assert not any(get_changes('input/link_target_contents_changed', joutput)) # Added a new file and a hard link to it. Both links to the same # inode should appear as separate files. assert {'type': 'added', 'size': 2048} in get_changes('input/file_added', joutput) if are_hardlinks_supported(): assert {'type': 'added', 'size': 2048} in get_changes('input/hardlink_added', joutput) # check if a diff between non-existent and empty new file is found assert {'type': 'added', 'size': 0} in get_changes('input/file_empty_added', joutput) # The inode has two links and both of them are deleted. They should # appear as two deleted files. assert {'type': 'removed', 'size': 256} in get_changes('input/file_removed', joutput) if are_hardlinks_supported(): assert {'type': 'removed', 'size': 256} in get_changes('input/hardlink_removed', joutput) # Another link (marked previously as the source in borg) to the # same inode was removed. This should not change this link at all. if are_hardlinks_supported(): assert not any(get_changes('input/hardlink_target_removed', joutput)) # Another link (marked previously as the source in borg) to the # same inode was replaced with a new regular file. This should not # change this link at all. if are_hardlinks_supported(): assert not any(get_changes('input/hardlink_target_replaced', joutput)) do_asserts(self.cmd('diff', self.repository_location + '::test0', 'test1a'), True) # We expect exit_code=1 due to the chunker params warning do_asserts(self.cmd('diff', self.repository_location + '::test0', 'test1b', exit_code=1), False) > do_json_asserts(self.cmd('diff', self.repository_location + '::test0', 'test1a', '--json-lines'), True) /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4289: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4217: in do_json_asserts joutput = [json.loads(line) for line in output.split('\n') if line] /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4217: in joutput = [json.loads(line) for line in output.split('\n') if line] /usr/lib/python3.10/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib/python3.10/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = '/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated.' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib/python3.10/json/decoder.py:355: JSONDecodeError ____________________ DiffArchiverTestCase.test_sort_option _____________________ self = def test_sort_option(self): self.cmd('init', '--encryption=repokey', self.repository_location) self.create_regular_file('a_file_removed', size=8) self.create_regular_file('f_file_removed', size=16) self.create_regular_file('c_file_changed', size=32) self.create_regular_file('e_file_changed', size=64) self.cmd('create', self.repository_location + '::test0', 'input') os.unlink('input/a_file_removed') os.unlink('input/f_file_removed') os.unlink('input/c_file_changed') os.unlink('input/e_file_changed') self.create_regular_file('c_file_changed', size=512) self.create_regular_file('e_file_changed', size=1024) self.create_regular_file('b_file_added', size=128) self.create_regular_file('d_file_added', size=256) self.cmd('create', self.repository_location + '::test1', 'input') output = self.cmd('diff', '--sort', self.repository_location + '::test0', 'test1') expected = [ 'a_file_removed', 'b_file_added', 'c_file_changed', 'd_file_added', 'e_file_changed', 'f_file_removed', ] > assert all(x in line for x, line in zip(expected, output.splitlines())) E assert False E + where False = all(. at 0x40063b7060>) /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/testsuite/archiver.py:4320: AssertionError =============================== warnings summary =============================== build/lib.linux-riscv64-cpython-310/borg/testsuite/cache.py: 50 warnings build/lib.linux-riscv64-cpython-310/borg/testsuite/key.py: 57 warnings build/lib.linux-riscv64-cpython-310/borg/testsuite/remote.py: 41 warnings /build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/crypto/key.py:523: DeprecationWarning: Python implementation of pbkdf2_hmac() is deprecated. return pbkdf2_hmac('sha256', self.encode('utf-8'), salt, iterations, length) build/lib.linux-riscv64-cpython-310/borg/testsuite/repository.py::NonceReservation::test_commit_nonce_reservation_asserts build/lib.linux-riscv64-cpython-310/borg/testsuite/repository.py::NonceReservation::test_get_free_nonce_asserts build/lib.linux-riscv64-cpython-310/borg/testsuite/repository.py::RepositoryHintsTestCase::test_hints_persistence /usr/lib/python3.10/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: Traceback (most recent call last): File "/build/borg/src/borgbackup-1.2.2/build/lib.linux-riscv64-cpython-310/borg/repository.py", line 190, in __del__ assert False, "cleanup happened in Repository.__del__" AssertionError: cleanup happened in Repository.__del__ warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_content_from_command FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_content_from_command_with_failed_command FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_json - json.... FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_no_cache_sync FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_paths_from_command FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_paths_from_command_with_failed_command FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_paths_from_stdin FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_create_stdin - json... FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_debug_dump_archive FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_debug_dump_manifest FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_debug_refcount_obj FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_delete_multiple - A... FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_info_json - json.de... FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_info_json_of_empty_archive FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_list_json - json.de... FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_list_repository_format FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_list_size - Asserti... FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_recreate_rechunkify FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_recreate_recompress FAILED borg/testsuite/archiver.py::ArchiverTestCase::test_recreate_target - A... FAILED borg/testsuite/archiver.py::ManifestAuthenticationTest::test_disable FAILED borg/testsuite/archiver.py::ManifestAuthenticationTest::test_disable2 FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_content_from_command FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_content_from_command_with_failed_command FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_json FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_no_cache_sync FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_paths_from_command FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_paths_from_command_with_failed_command FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_paths_from_stdin FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_create_stdin FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_debug_dump_archive FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_debug_dump_manifest FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_debug_refcount_obj FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_delete_multiple FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_info_json - j... FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_info_json_of_empty_archive FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_list_json - j... FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_list_repository_format FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_list_size - A... FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_recreate_rechunkify FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_recreate_recompress FAILED borg/testsuite/archiver.py::RemoteArchiverTestCase::test_recreate_target FAILED borg/testsuite/archiver.py::ArchiverCorruptionTestCase::test_cache_chunks FAILED borg/testsuite/archiver.py::ArchiverCorruptionTestCase::test_cache_files FAILED borg/testsuite/archiver.py::ArchiverCorruptionTestCase::test_chunks_archive FAILED borg/testsuite/archiver.py::ArchiverCorruptionTestCase::test_old_version_interfered FAILED borg/testsuite/archiver.py::DiffArchiverTestCase::test_basic_functionality FAILED borg/testsuite/archiver.py::DiffArchiverTestCase::test_sort_option - a... = 48 failed, 1195 passed, 221 skipped, 54 deselected, 151 warnings in 6776.00s (1:52:56) = ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/felix6/build receiving incremental file list borg-1.2.2-2-riscv64-build.log borg-1.2.2-2-riscv64-check.log sent 62 bytes received 12,630 bytes 3,626.29 bytes/sec total size is 127,084 speedup is 10.01