==> Building on larvesta ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/python-cmsis-pack-manager ./ PKGBUILD 1,342 100% 0.00kB/s 0:00:00 1,342 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) python-cmsis-pack-manager-0.5.1-1.log 260 100% 253.91kB/s 0:00:00 260 100% 253.91kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 1,163 bytes received 114 bytes 510.80 bytes/sec total size is 1,537 speedup is 1.20 ==> Applying RISC-V patches... sending incremental file list ./ riscv64.patch 749 100% 0.00kB/s 0:00:00 749 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=0/2) sent 632 bytes received 38 bytes 268.00 bytes/sec total size is 749 speedup is 1.12 patching file PKGBUILD ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root3 on remote host... ==> Locking clean chroot...done [?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] -> [root3]...done ==> Making package: python-cmsis-pack-manager 0.5.1-1 (Tue Apr 4 15:24:37 2023) ==> Retrieving sources...  -> Downloading cmsis_pack_manager-0.5.1.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 39 53867 39 20990 0 0 16184 0 0:00:03 0:00:01 0:00:02 16184 100 53867 100 53867 0 0 37115 0 0:00:01 0:00:01 --:--:-- 208k ==> Validating source files with sha512sums... cmsis_pack_manager-0.5.1.tar.gz ... Passed ==> Validating source files with b2sums... cmsis_pack_manager-0.5.1.tar.gz ... Passed ==> Making package: python-cmsis-pack-manager 0.5.1-1 (Tue Apr 4 15:25:27 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (8) New Version Net Change core/libnsl 2.0.0-3 0.06 MiB extra/libyaml 0.2.5-2 0.15 MiB core/python 3.10.10-1 81.41 MiB extra/python-ply 3.11-10 0.31 MiB extra/python-pycparser 2.21-3 1.39 MiB extra/python-appdirs 1.4.4-7 0.07 MiB extra/python-cffi 1.15.1-1 1.00 MiB community/python-yaml 6.0-1 0.68 MiB Total Installed Size: 85.06 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-appdirs... installing python-ply... installing python-pycparser... installing python-cffi... installing libyaml... installing python-yaml... [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (16) New Version Net Change Download Size core/libedit 20221030_3.1-1 0.24 MiB extra/llvm-libs 15.0.7-2 99.58 MiB extra/python-attrs 22.2.0-1 0.44 MiB community/python-exceptiongroup 1.1.1-1 0.09 MiB community/python-iniconfig 2.0.0-2 0.03 MiB extra/python-markupsafe 2.1.2-1 0.06 MiB extra/python-packaging 23.0-1 0.32 MiB community/python-pluggy 1.0.0-2 0.10 MiB community/python-sortedcontainers 2.4.0-3 0.33 MiB extra/python-tomli 2.0.1-1 0.08 MiB community/maturin 0.14.16-1 17.91 MiB 5.70 MiB community/python-hypothesis 6.59.0-1 2.88 MiB community/python-installer 0.7.0-1 1.22 MiB community/python-jinja 1:3.1.2-2 1.28 MiB community/python-pytest 7.2.2-1 2.80 MiB extra/rust 1:1.68.2-1 526.19 MiB Total Download Size: 5.70 MiB Total Installed Size: 653.53 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... maturin-0.14.16-1-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libedit... installing llvm-libs... installing rust... Optional dependencies for rust gdb: rust-gdb script lldb: rust-lldb script installing maturin... installing python-installer... installing python-attrs... installing python-sortedcontainers... installing python-exceptiongroup... installing python-hypothesis... Optional dependencies for python-hypothesis python-pytz: for datetime and django module python-faker: for fakefactory and django module python-django: for django module python-numpy: for numpy module python-pytest: for pytest module [pending] python-lark-parser: for lark module python-libcst: for codemods module installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-iniconfig... installing python-packaging... installing python-pluggy... installing python-tomli... installing python-pytest... [?25h==> Retrieving sources...  -> Found cmsis_pack_manager-0.5.1.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting cmsis_pack_manager-0.5.1.tar.gz with bsdtar ==> Starting prepare()... Updating crates.io index Updating git repository `https://github.com/felixonmars/ring` Removing ring v0.16.20 Adding ring v0.16.20 (https://github.com/felixonmars/ring?branch=0.16.20#80697f42) Downloading crates ... Downloaded cfg-if v1.0.0 Downloaded time v0.3.17 Downloaded futures-executor v0.3.25 Downloaded adler v1.0.2 Downloaded backtrace v0.3.66 Downloaded quick-xml v0.17.2 Downloaded indexmap v1.9.1 Downloaded anyhow v1.0.66 Downloaded hashbrown v0.12.3 Downloaded addr2line v0.17.0 Downloaded object v0.29.0 Downloaded mime v0.3.16 Downloaded futures v0.3.25 Downloaded slab v0.4.7 Downloaded tokio-rustls v0.23.4 Downloaded httparse v1.8.0 Downloaded parking_lot_core v0.9.4 Downloaded gimli v0.26.2 Downloaded tokio-util v0.7.4 Downloaded encoding_rs v0.8.31 Downloaded num_cpus v1.14.0 Downloaded windows-sys v0.42.0 Downloaded syn v1.0.103 Downloaded socket2 v0.4.7 Downloaded quote v1.0.21 Downloaded windows_aarch64_msvc v0.42.0 Downloaded windows_x86_64_msvc v0.42.0 Downloaded time-macros v0.2.6 Downloaded match_cfg v0.1.0 Downloaded resolv-conf v0.7.0 Downloaded futures-macro v0.3.25 Downloaded tokio v1.21.2 Downloaded trust-dns-proto v0.22.0 Downloaded web-sys v0.3.60 Downloaded windows_i686_gnu v0.42.0 Downloaded windows_i686_msvc v0.42.0 Downloaded libc v0.2.137 Downloaded winapi v0.3.9 Downloaded unicode-ident v1.0.5 Downloaded windows_aarch64_gnullvm v0.42.0 Downloaded serde v1.0.147 Downloaded winapi-i686-pc-windows-gnu v0.4.0 Downloaded winapi-x86_64-pc-windows-gnu v0.4.0 Downloaded want v0.3.0 Downloaded base64 v0.13.1 Downloaded redox_syscall v0.2.16 Downloaded quick-error v1.2.3 Downloaded idna v0.2.3 Downloaded mio v0.8.5 Downloaded termcolor v1.1.3 Downloaded proc-macro2 v1.0.47 Downloaded serde_derive v1.0.147 Downloaded smallvec v1.10.0 Downloaded ppv-lite86 v0.2.17 Downloaded rand_chacha v0.3.1 Downloaded getrandom v0.2.8 Downloaded rand v0.8.5 Downloaded thiserror v1.0.37 Downloaded unicode-normalization v0.1.22 Downloaded linked-hash-map v0.5.6 Downloaded rand_core v0.6.4 Downloaded tracing-attributes v0.1.23 Downloaded tracing v0.1.37 Downloaded url v2.3.1 Downloaded once_cell v1.16.0 Downloaded rustls-pemfile v1.0.1 Downloaded widestring v0.5.1 Downloaded parking_lot v0.12.1 Downloaded tinyvec v1.6.0 Downloaded js-sys v0.3.60 Downloaded tokio-macros v1.8.0 Downloaded winapi-util v0.1.5 Downloaded itoa v1.0.4 Downloaded time-core v0.1.0 Downloaded lock_api v0.4.9 Downloaded bitflags v1.3.2 Downloaded data-encoding v2.3.2 Downloaded reqwest v0.11.13 Downloaded h2 v0.3.15 Downloaded hostname v0.3.1 Downloaded heck v0.4.0 Downloaded matches v0.1.9 Downloaded wasm-bindgen-backend v0.2.83 Downloaded wasm-bindgen v0.2.83 Downloaded winreg v0.10.1 Downloaded serde_json v1.0.87 Downloaded http v0.2.8 Downloaded tinyvec_macros v0.1.0 Downloaded spin v0.5.2 Downloaded bumpalo v3.11.1 Downloaded wasm-bindgen-macro-support v0.2.83 Downloaded webpki v0.22.0 Downloaded rustc-demangle v0.1.21 Downloaded ryu v1.0.11 Downloaded bytes v1.2.1 Downloaded wasi v0.11.0+wasi-snapshot-preview1 Downloaded simplelog v0.12.0 Downloaded hyper v0.14.23 Downloaded ipconfig v0.3.1 Downloaded async-trait v0.1.58 Downloaded enum-as-inner v0.5.1 Downloaded ipnet v2.5.1 Downloaded thiserror-impl v1.0.37 Downloaded trust-dns-resolver v0.22.0 Downloaded unicode-bidi v0.3.8 Downloaded wasm-bindgen-futures v0.4.33 Downloaded cc v1.0.76 Downloaded wasm-bindgen-shared v0.2.83 Downloaded pin-project-lite v0.2.9 Downloaded ctor v0.1.26 Downloaded log v0.4.17 Downloaded fnv v1.0.7 Downloaded try-lock v0.2.3 Downloaded hyper-rustls v0.23.1 Downloaded serde_urlencoded v0.7.1 Downloaded rustls v0.20.7 Downloaded tower-service v0.3.2 Downloaded lru-cache v0.1.2 Downloaded scopeguard v1.1.0 Downloaded futures-channel v0.3.25 Downloaded futures-core v0.3.25 Downloaded futures-io v0.3.25 Downloaded futures-sink v0.3.25 Downloaded futures-task v0.3.25 Downloaded pin-utils v0.1.0 Downloaded futures-util v0.3.25 Downloaded tracing-core v0.1.30 Downloaded form_urlencoded v1.1.0 Downloaded idna v0.3.0 Downloaded percent-encoding v2.2.0 Downloaded wasm-bindgen-macro v0.2.83 Downloaded untrusted v0.7.1 Downloaded webpki-roots v0.22.5 Downloaded autocfg v1.1.0 Downloaded memchr v2.5.0 Downloaded minidom v0.12.0 Downloaded sct v0.7.0 Downloaded lazy_static v1.4.0 Downloaded windows_x86_64_gnu v0.42.0 Downloaded miniz_oxide v0.5.4 Downloaded http-body v0.4.5 Downloaded httpdate v1.0.2 Downloaded windows_x86_64_gnullvm v0.42.0 Downloaded hermit-abi v0.1.19 ==> Starting build()... 🍹 Building a mixed python/rust project 🔗 Found cffi bindings 🐍 Using CPython 3.10 at /usr/bin/python3 to generate the cffi bindings 📡 Using build options bindings from pyproject.toml Compiling libc v0.2.137 Compiling proc-macro2 v1.0.47 Compiling quote v1.0.21 Compiling unicode-ident v1.0.5 Compiling syn v1.0.103 Compiling cfg-if v1.0.0 Compiling autocfg v1.1.0 Compiling memchr v2.5.0 Compiling cc v1.0.76 Compiling once_cell v1.16.0 Compiling log v0.4.17 Compiling pin-project-lite v0.2.9 Compiling futures-core v0.3.25 Compiling slab v0.4.7 Compiling bytes v1.2.1 Compiling futures-channel v0.3.25 Compiling futures-task v0.3.25 Compiling futures-sink v0.3.25 Compiling tokio v1.21.2 Compiling ring v0.16.20 (https://github.com/felixonmars/ring?branch=0.16.20#80697f42) Compiling futures-util v0.3.25 Compiling itoa v1.0.4 Compiling mio v0.8.5 Compiling socket2 v0.4.7 Compiling num_cpus v1.14.0 Compiling futures-io v0.3.25 Compiling pin-utils v0.1.0 Compiling tracing-core v0.1.30 Compiling tinyvec_macros v0.1.0 Compiling untrusted v0.7.1 Compiling tinyvec v1.6.0 Compiling getrandom v0.2.8 Compiling unicode-normalization v0.1.22 Compiling indexmap v1.9.1 Compiling serde_derive v1.0.147 Compiling fnv v1.0.7 Compiling percent-encoding v2.2.0 Compiling unicode-bidi v0.3.8 Compiling form_urlencoded v1.1.0 Compiling http v0.2.8 Compiling rand_core v0.6.4 Compiling webpki v0.22.0 Compiling futures-macro v0.3.25 Compiling tokio-macros v1.8.0 Compiling tracing-attributes v0.1.23 Compiling lock_api v0.4.9 Compiling ppv-lite86 v0.2.17 Compiling smallvec v1.10.0 Compiling hashbrown v0.12.3 Compiling parking_lot_core v0.9.4 Compiling async-trait v0.1.58 Compiling rustls v0.20.7 Compiling httparse v1.8.0 Compiling thiserror v1.0.37 Compiling serde v1.0.147 Compiling tracing v0.1.37 Compiling rand_chacha v0.3.1 Compiling tokio-util v0.7.4 Compiling thiserror-impl v1.0.37 Compiling idna v0.3.0 Compiling sct v0.7.0 Compiling matches v0.1.9 Compiling match_cfg v0.1.0 Compiling heck v0.4.0 Compiling scopeguard v1.1.0 Compiling try-lock v0.2.3 Compiling want v0.3.0 Compiling enum-as-inner v0.5.1 Compiling hostname v0.3.1 Compiling idna v0.2.3 Compiling url v2.3.1 Compiling h2 v0.3.15 Compiling rand v0.8.5 Compiling http-body v0.4.5 Compiling backtrace v0.3.66 Compiling ipnet v2.5.1 Compiling data-encoding v2.3.2 Compiling gimli v0.26.2 Compiling adler v1.0.2 Compiling ryu v1.0.11 Compiling httpdate v1.0.2 Compiling encoding_rs v0.8.31 Compiling quick-error v1.2.3 Compiling lazy_static v1.4.0 Compiling linked-hash-map v0.5.6 Compiling tower-service v0.3.2 Compiling hyper v0.14.23 Compiling lru-cache v0.1.2 Compiling trust-dns-proto v0.22.0 Compiling resolv-conf v0.7.0 Compiling miniz_oxide v0.5.4 Compiling addr2line v0.17.0 Compiling parking_lot v0.12.1 Compiling tokio-rustls v0.23.4 Compiling object v0.29.0 Compiling time-core v0.1.0 Compiling anyhow v1.0.66 Compiling serde_json v1.0.87 Compiling rustc-demangle v0.1.21 Compiling base64 v0.13.1 Compiling rustls-pemfile v1.0.1 Compiling time-macros v0.2.6 Compiling hyper-rustls v0.23.1 Compiling trust-dns-resolver v0.22.0 Compiling serde_urlencoded v0.7.1 Compiling futures-executor v0.3.25 Compiling webpki-roots v0.22.5 Compiling quick-xml v0.17.2 Compiling mime v0.3.16 Compiling time v0.3.17 Compiling minidom v0.12.0 Compiling reqwest v0.11.13 Compiling futures v0.3.25 Compiling termcolor v1.1.3 Compiling cmsis-pack v0.6.0 (/build/python-cmsis-pack-manager/src/cmsis_pack_manager-0.5.1/local_dependencies/cmsis-pack) warning: unused import: `Pidx` --> local_dependencies/cmsis-pack/src/update/download.rs:12:34 | 12 | use crate::pack_index::{PdscRef, Pidx, Vidx}; | ^^^^ | = note: `#[warn(unused_imports)]` on by default warning: fields `name`, `description`, and `doc` are never read --> local_dependencies/cmsis-pack/src/pdsc/component.rs:160:5 | 159 | pub struct Bundle { | ------ fields in this struct 160 | name: String, | ^^^^ ... 164 | description: String, | ^^^^^^^^^^^ 165 | doc: String, | ^^^ | = note: `Bundle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default warning: function `parse_vidx` is never used --> local_dependencies/cmsis-pack/src/update/download.rs:19:4 | 19 | fn parse_vidx(body: Bytes) -> Result { | ^^^^^^^^^^ warning: associated function `download_vidx_list` is never used --> local_dependencies/cmsis-pack/src/update/download.rs:297:19 | 297 | pub(crate) fn download_vidx_list(&'a self, list: I) -> impl Stream> + 'a | ^^^^^^^^^^^^^^^^^^ warning: unused `std::result::Result` that must be used --> local_dependencies/cmsis-pack/src/update/download.rs:164:25 | 164 | std::fs::remove_file(temp); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled = note: `#[warn(unused_must_use)]` on by default warning: unused `std::result::Result` that must be used --> local_dependencies/cmsis-pack/src/update/download.rs:169:21 | 169 | std::fs::remove_file(temp); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled warning: unused `std::result::Result` that must be used --> local_dependencies/cmsis-pack/src/update/download.rs:175:13 | 175 | std::fs::remove_file(temp); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this `Result` may be an `Err` variant, which should be handled Compiling simplelog v0.12.0 Compiling ctor v0.1.26 warning: 7 warnings emitted Compiling cmsis-pack-manager v0.5.1 (/build/python-cmsis-pack-manager/src/cmsis_pack_manager-0.5.1) warning: unused return value of `std::mem::replace` that must be used --> src/pack_index.rs:145:13 | 145 | mem::replace(boxed.borrow_mut(), next_state); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly = note: `#[warn(unused_must_use)]` on by default warning: unused return value of `std::mem::replace` that must be used --> src/pack_index.rs:191:13 | 191 | mem::replace(boxed.borrow_mut(), next_state); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: 2 warnings emitted Finished release [optimized] target(s) in 95m 32s warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.17.2 note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` ⚠️ Warning: No compatible platform tag found, using the linux tag instead. You won't be able to upload those wheels to PyPI. 💼 Using the existing header at /build/python-cmsis-pack-manager/src/cmsis_pack_manager-0.5.1/target/header.h 📦 Built wheel to /build/python-cmsis-pack-manager/src/cmsis_pack_manager-0.5.1/target/wheels/cmsis_pack_manager-0.5.1-py3-none-linux_riscv64.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.10.10, pytest-7.2.2, pluggy-1.0.0 -- /usr/bin/python cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/build/python-cmsis-pack-manager/src/cmsis_pack_manager-0.5.1/.hypothesis/examples') rootdir: /build/python-cmsis-pack-manager/src/cmsis_pack_manager-0.5.1, configfile: setup.cfg plugins: hypothesis-6.59.0 collecting ... collected 11 items tests/integration.py::test_empyt_cache PASSED [ 9%] tests/integration.py::test_pull_pdscs PASSED [ 18%] tests/integration.py::test_install_pack PASSED [ 27%] tests/integration.py::test_pull_pdscs_cli PASSED [ 36%] tests/integration.py::test_add_pack_from_path PASSED [ 45%] tests/integration.py::test_add_pack_from_path_cli PASSED [ 54%] tests/integration.py::test_dump_parts_cli PASSED [ 63%] tests/integration.py::test_panic_handling PASSED [ 72%] tests/integration.py::test_print_cache_dir_cli PASSED [ 81%] tests/unit.py::test_pdsc_from_cache PASSED [ 90%] tests/unit.py::test_pack_from_cache FAILED [100%] =================================== FAILURES =================================== _____________________________ test_pack_from_cache _____________________________ self = data = ConjectureData(INTERESTING, 140 bytes, frozen) def _execute_once_for_engine(self, data): """Wrapper around ``execute_once`` that intercepts test failure exceptions and single-test control exceptions, and turns them into appropriate method calls to `data` instead. This allows the engine to assume that any exception other than ``StopTest`` must be a fatal error, and should stop the entire engine. """ try: trace = frozenset() if ( self.failed_normally and not self.failed_due_to_deadline and Phase.shrink in self.settings.phases and Phase.explain in self.settings.phases and sys.gettrace() is None and not PYPY ): # pragma: no cover # This is in fact covered by our *non-coverage* tests, but due to the # settrace() contention *not* by our coverage tests. Ah well. tracer = Tracer() try: sys.settrace(tracer.trace) result = self.execute_once(data) if data.status == Status.VALID: self.explain_traces[None].add(frozenset(tracer.branches)) finally: sys.settrace(None) trace = frozenset(tracer.branches) else: > result = self.execute_once(data) /usr/lib/python3.10/site-packages/hypothesis/core.py:807: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = ConjectureData(INTERESTING, 140 bytes, frozen), print_example = False is_final = False, expected_failure = None def execute_once( self, data, print_example=False, is_final=False, expected_failure=None ): """Run the test function once, using ``data`` as input. If the test raises an exception, it will propagate through to the caller of this method. Depending on its type, this could represent an ordinary test failure, or a fatal error, or a control exception. If this method returns normally, the test might have passed, or it might have placed ``data`` in an unsuccessful state and then swallowed the corresponding control exception. """ self.ever_executed = True data.is_find = self.is_find text_repr = None if self.settings.deadline is None: test = self.test else: @proxies(self.test) def test(*args, **kwargs): self.__test_runtime = None initial_draws = len(data.draw_times) start = time.perf_counter() result = self.test(*args, **kwargs) finish = time.perf_counter() internal_draw_time = sum(data.draw_times[initial_draws:]) runtime = datetime.timedelta( seconds=finish - start - internal_draw_time ) self.__test_runtime = runtime current_deadline = self.settings.deadline if not is_final: current_deadline = (current_deadline // 4) * 5 if runtime >= current_deadline: raise DeadlineExceeded(runtime, self.settings.deadline) return result def run(data): # Set up dynamic context needed by a single test run. with local_settings(self.settings): with deterministic_PRNG(): with BuildContext(data, is_final=is_final): # Generate all arguments to the test function. args, kwargs = data.draw(self.search_strategy) if expected_failure is not None: nonlocal text_repr text_repr = repr_call(test, args, kwargs) if print_example or current_verbosity() >= Verbosity.verbose: output = StringIO() printer = RepresentationPrinter(output) if print_example: printer.text("Falsifying example:") else: printer.text("Trying example:") if self.print_given_args: printer.text(" ") printer.text(test.__name__) with printer.group(indent=4, open="(", close=""): printer.break_() for v in args: printer.pretty(v) # We add a comma unconditionally because # generated arguments will always be kwargs, # so there will always be more to come. printer.text(",") printer.breakable() for i, (k, v) in enumerate(kwargs.items()): printer.text(k) printer.text("=") printer.pretty(v) printer.text(",") if i + 1 < len(kwargs): printer.breakable() printer.break_() printer.text(")") printer.flush() report(output.getvalue()) return test(*args, **kwargs) # Run the test function once, via the executor hook. # In most cases this will delegate straight to `run(data)`. > result = self.test_runner(data, run) /usr/lib/python3.10/site-packages/hypothesis/core.py:746: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = ConjectureData(INTERESTING, 140 bytes, frozen) function = .run at 0x3f88b6b9a0> def default_new_style_executor(data, function): > return function(data) /usr/lib/python3.10/site-packages/hypothesis/executors.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = ConjectureData(INTERESTING, 140 bytes, frozen) def run(data): # Set up dynamic context needed by a single test run. with local_settings(self.settings): with deterministic_PRNG(): with BuildContext(data, is_final=is_final): # Generate all arguments to the test function. args, kwargs = data.draw(self.search_strategy) if expected_failure is not None: nonlocal text_repr text_repr = repr_call(test, args, kwargs) if print_example or current_verbosity() >= Verbosity.verbose: output = StringIO() printer = RepresentationPrinter(output) if print_example: printer.text("Falsifying example:") else: printer.text("Trying example:") if self.print_given_args: printer.text(" ") printer.text(test.__name__) with printer.group(indent=4, open="(", close=""): printer.break_() for v in args: printer.pretty(v) # We add a comma unconditionally because # generated arguments will always be kwargs, # so there will always be more to come. printer.text(",") printer.breakable() for i, (k, v) in enumerate(kwargs.items()): printer.text(k) printer.text("=") printer.pretty(v) printer.text(",") if i + 1 < len(kwargs): printer.breakable() printer.break_() printer.text(")") printer.flush() report(output.getvalue()) > return test(*args, **kwargs) /usr/lib/python3.10/site-packages/hypothesis/core.py:742: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data_path = 'xlzjqn', vendor = 'lsmrrkclanqdsglddonuasgtne', pack = 'vykh' version = 'qdomnmtvac' @given(text(alphabet=ascii_lowercase + "/", min_size=1), > text(alphabet=ascii_lowercase, min_size=1), text(alphabet=ascii_lowercase, min_size=1), text(alphabet=ascii_lowercase, min_size=1)) tests/unit.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = ('xlzjqn', 'lsmrrkclanqdsglddonuasgtne', 'vykh', 'qdomnmtvac') kwargs = {}, initial_draws = 1, start = 2557375.10185334, result = None finish = 2557375.542625885, internal_draw_time = 0 runtime = datetime.timedelta(microseconds=440773) current_deadline = datetime.timedelta(microseconds=250000) @proxies(self.test) def test(*args, **kwargs): self.__test_runtime = None initial_draws = len(data.draw_times) start = time.perf_counter() result = self.test(*args, **kwargs) finish = time.perf_counter() internal_draw_time = sum(data.draw_times[initial_draws:]) runtime = datetime.timedelta( seconds=finish - start - internal_draw_time ) self.__test_runtime = runtime current_deadline = self.settings.deadline if not is_final: current_deadline = (current_deadline // 4) * 5 if runtime >= current_deadline: > raise DeadlineExceeded(runtime, self.settings.deadline) E hypothesis.errors.DeadlineExceeded: Test took 440.77ms, which exceeds the deadline of 200.00ms /usr/lib/python3.10/site-packages/hypothesis/core.py:694: DeadlineExceeded The above exception was the direct cause of the following exception: @given(text(alphabet=ascii_lowercase + "/", min_size=1), > text(alphabet=ascii_lowercase, min_size=1), text(alphabet=ascii_lowercase, min_size=1), text(alphabet=ascii_lowercase, min_size=1)) tests/unit.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = ConjectureData(VALID, 140 bytes, frozen), print_example = True is_final = True expected_failure = (DeadlineExceeded('Test took 440.77ms, which exceeds the deadline of 200.00ms'), "args = ('xlzjqn', 'lsmrrkclanqdsgldd...hich exceeds the deadline of 200.00ms\n\n/usr/lib/python3.10/site-packages/hypothesis/core.py:694: DeadlineExceeded\n") def execute_once( self, data, print_example=False, is_final=False, expected_failure=None ): """Run the test function once, using ``data`` as input. If the test raises an exception, it will propagate through to the caller of this method. Depending on its type, this could represent an ordinary test failure, or a fatal error, or a control exception. If this method returns normally, the test might have passed, or it might have placed ``data`` in an unsuccessful state and then swallowed the corresponding control exception. """ self.ever_executed = True data.is_find = self.is_find text_repr = None if self.settings.deadline is None: test = self.test else: @proxies(self.test) def test(*args, **kwargs): self.__test_runtime = None initial_draws = len(data.draw_times) start = time.perf_counter() result = self.test(*args, **kwargs) finish = time.perf_counter() internal_draw_time = sum(data.draw_times[initial_draws:]) runtime = datetime.timedelta( seconds=finish - start - internal_draw_time ) self.__test_runtime = runtime current_deadline = self.settings.deadline if not is_final: current_deadline = (current_deadline // 4) * 5 if runtime >= current_deadline: raise DeadlineExceeded(runtime, self.settings.deadline) return result def run(data): # Set up dynamic context needed by a single test run. with local_settings(self.settings): with deterministic_PRNG(): with BuildContext(data, is_final=is_final): # Generate all arguments to the test function. args, kwargs = data.draw(self.search_strategy) if expected_failure is not None: nonlocal text_repr text_repr = repr_call(test, args, kwargs) if print_example or current_verbosity() >= Verbosity.verbose: output = StringIO() printer = RepresentationPrinter(output) if print_example: printer.text("Falsifying example:") else: printer.text("Trying example:") if self.print_given_args: printer.text(" ") printer.text(test.__name__) with printer.group(indent=4, open="(", close=""): printer.break_() for v in args: printer.pretty(v) # We add a comma unconditionally because # generated arguments will always be kwargs, # so there will always be more to come. printer.text(",") printer.breakable() for i, (k, v) in enumerate(kwargs.items()): printer.text(k) printer.text("=") printer.pretty(v) printer.text(",") if i + 1 < len(kwargs): printer.breakable() printer.break_() printer.text(")") printer.flush() report(output.getvalue()) return test(*args, **kwargs) # Run the test function once, via the executor hook. # In most cases this will delegate straight to `run(data)`. result = self.test_runner(data, run) # If a failure was expected, it should have been raised already, so # instead raise an appropriate diagnostic error. if expected_failure is not None: exception, traceback = expected_failure if ( isinstance(exception, DeadlineExceeded) and self.__test_runtime is not None ): report( "Unreliable test timings! On an initial run, this " "test took %.2fms, which exceeded the deadline of " "%.2fms, but on a subsequent run it took %.2f ms, " "which did not. If you expect this sort of " "variability in your test timings, consider turning " "deadlines off for this test by setting deadline=None." % ( exception.runtime.total_seconds() * 1000, self.settings.deadline.total_seconds() * 1000, self.__test_runtime.total_seconds() * 1000, ) ) else: report("Failed to reproduce exception. Expected: \n" + traceback) > raise Flaky( f"Hypothesis {text_repr} produces unreliable results: " "Falsified on the first call but did not on a subsequent one" ) from exception E hypothesis.errors.Flaky: Hypothesis test_pack_from_cache(data_path='xlzjqn', vendor='lsmrrkclanqdsglddonuasgtne', pack='vykh', version='qdomnmtvac') produces unreliable results: Falsified on the first call but did not on a subsequent one E Falsifying example: test_pack_from_cache( E version='qdomnmtvac', E pack='vykh', E vendor='lsmrrkclanqdsglddonuasgtne', E data_path='xlzjqn', E ) E Unreliable test timings! On an initial run, this test took 440.77ms, which exceeded the deadline of 200.00ms, but on a subsequent run it took 18.93 ms, which did not. If you expect this sort of variability in your test timings, consider turning deadlines off for this test by setting deadline=None. /usr/lib/python3.10/site-packages/hypothesis/core.py:771: Flaky =============================== warnings summary =============================== tests/integration.py::test_pull_pdscs tests/integration.py::test_install_pack tests/integration.py::test_pull_pdscs_cli tests/integration.py::test_dump_parts_cli /build/python-cmsis-pack-manager/src/cmsis_pack_manager-0.5.1/tests/integration.py:42: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead httpd_thread.setDaemon(True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/unit.py::test_pack_from_cache - hypothesis.errors.Flaky: Hypothe... ================== 1 failed, 10 passed, 4 warnings in 54.21s =================== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root3/build receiving incremental file list python-cmsis-pack-manager-0.5.1-1-riscv64-build.log python-cmsis-pack-manager-0.5.1-1-riscv64-check.log python-cmsis-pack-manager-0.5.1-1-riscv64-prepare.log sent 81 bytes received 7,969 bytes 5,366.67 bytes/sec total size is 33,182 speedup is 4.12