Hit:1 https://deb.debian.org/debian trixie InRelease
Hit:2 https://deb.debian.org/debian trixie-updates InRelease
Hit:3 https://deb.debian.org/debian-security trixie-security InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (8.14.1-2+deb13u2).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
no checksums to verify
installing to /root/.local/bin
  uv
  uvx
everything's installed!

To add $HOME/.local/bin to your PATH, either restart your shell or run:

    source $HOME/.local/bin/env (sh, bash, zsh)
    source $HOME/.local/bin/env.fish (fish)
============================= test session starts ==============================
platform linux -- Python 3.9.24, pytest-8.4.1, pluggy-1.6.0
rootdir: /tests
plugins: json-ctrf-0.3.5
collected 6 items

../tests/test_outputs.py ....FF                                          [100%]

=================================== FAILURES ===================================
_______________ test_chunked_checksum32_threadsafe_and_streaming _______________

    def test_chunked_checksum32_threadsafe_and_streaming():
        # Basic correctness on python3.8 (GIL build).
>       out38 = run(
            [
                str(PY38),
                "-c",
                (
                    "import nogil_ext\n"
                    "chunks=[b'abc', b'def', b'ghi', b'jkl']\n"
                    "h=nogil_ext.ChunkedChecksum32(len(chunks), 3)\n"
                    "for i,c in enumerate(chunks):\n"
                    "    h.submit(i, c)\n"
                    "assert h.missing() == 0\n"
                    "expected=nogil_ext.checksum32(b''.join(chunks))\n"
                    "assert h.finalize() == expected\n"
                    "print('ok')\n"
                ),
            ]
        )

/tests/test_outputs.py:277: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tests/test_outputs.py:45: in run
    return subprocess.check_output(cmd, text=True, env=env, cwd=cwd).strip()
/root/.local/share/uv/python/cpython-3.9.24-linux-x86_64-gnu/lib/python3.9/subprocess.py:424: in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (['/usr/local/bin/python3.8', '-c', "import nogil_ext\nchunks=[b'abc', b'def', b'ghi', b'jkl']\nh=nogil_ext.ChunkedChe...t h.missing() == 0\nexpected=nogil_ext.checksum32(b''.join(chunks))\nassert h.finalize() == expected\nprint('ok')\n"],)
kwargs = {'cwd': None, 'env': None, 'stdout': -1, 'text': True}
process = <Popen: returncode: 1 args: ['/usr/local/bin/python3.8', '-c', "import nogil...>
stdout = '', stderr = None, retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.
    
        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
    
        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.
    
        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.
    
        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.
    
        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.
    
        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE
    
        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE
    
        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['/usr/local/bin/python3.8', '-c', "import nogil_ext\nchunks=[b'abc', b'def', b'ghi', b'jkl']\nh=nogil_ext.ChunkedChecksum32(len(chunks), 3)\nfor i,c in enumerate(chunks):\n    h.submit(i, c)\nassert h.missing() == 0\nexpected=nogil_ext.checksum32(b''.join(chunks))\nassert h.finalize() == expected\nprint('ok')\n"]' returned non-zero exit status 1.

/root/.local/share/uv/python/cpython-3.9.24-linux-x86_64-gnu/lib/python3.9/subprocess.py:528: CalledProcessError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "<string>", line 8, in <module>
AssertionError
_______________________ test_parallel_speedup_and_report _______________________

    def test_parallel_speedup_and_report():
        # Ensure benchmark inputs are pristine (and also overwrite in case of tampering).
        orig_conf = Path(__file__).parent / "original_redis.conf"
        orig_bench = Path(__file__).parent / "original_redis_io_bench.py"
        assert sha256(REDIS_CONF) == sha256(orig_conf), "redis.conf was modified"
        assert sha256(BENCH) == sha256(orig_bench), "redis_io_bench.py was modified"
        shutil.copyfile(orig_conf, REDIS_CONF)
        shutil.copyfile(orig_bench, BENCH)
    
        proc = start_redis()
        try:
            measured_serial_38 = bench_best(PY38, 1, nogil=False)
            measured_parallel_38 = bench_best(PY38, 8, nogil=False)
            measured_speedup_38 = float(measured_parallel_38["ops_per_sec"]) / float(
                measured_serial_38["ops_per_sec"]
            )
    
            measured_serial_t = bench_best(PY13T, 1, nogil=True)
            measured_parallel_t = bench_best(PY13T, 8, nogil=True)
            measured_speedup_t = float(measured_parallel_t["ops_per_sec"]) / float(
                measured_serial_t["ops_per_sec"]
            )
        finally:
            stop_redis(proc)
    
>       assert REPORT.exists(), "Missing /app/bench_report.json"
E       AssertionError: Missing /app/bench_report.json
E       assert False
E        +  where False = exists()
E        +    where exists = PosixPath('/app/bench_report.json').exists

/tests/test_outputs.py:463: AssertionError
==================================== PASSES ====================================
=========================== short test summary info ============================
PASSED ../tests/test_outputs.py::test_binaries_exist_and_versions
PASSED ../tests/test_outputs.py::test_sources_present
PASSED ../tests/test_outputs.py::test_benchmark_inputs_not_modified
PASSED ../tests/test_outputs.py::test_nogil_extension_module_built
FAILED ../tests/test_outputs.py::test_chunked_checksum32_threadsafe_and_streaming
FAILED ../tests/test_outputs.py::test_parallel_speedup_and_report - Assertion...
========================= 2 failed, 4 passed in 40.91s =========================
