Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing pypa-build-hook Using pypaBuildPhase Sourcing python-runtime-deps-check-hook Using pythonRuntimeDepsCheckHook Sourcing pypa-install-hook Using pypaInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing python-catch-conflicts-hook.sh Sourcing pytest-check-hook Using pytestCheckPhase Running phase: unpackPhase unpacking source archive /nix/store/vlqpkic7km9iw0g06ga7cvbb5rsxn3pd-nixbot source root is nixbot setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "nixbot/pyproject.toml" Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase Executing pypaBuildPhase Creating a wheel... pypa build flags: --no-isolation --outdir dist/ --wheel * Getting build dependencies for wheel... * Building wheel... Successfully built nixbot-0.0.1-py3-none-any.whl Finished creating a wheel... Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook Executing pythonRuntimeDepsCheck Checking runtime dependencies for nixbot-0.0.1-py3-none-any.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase Executing pypaInstallPhase Successfully installed nixbot-0.0.1-py3-none-any.whl Finished executing pypaInstallPhase Running phase: pythonOutputDistPhase Executing pythonOutputDistPhase Finished executing pythonOutputDistPhase Running phase: fixupPhase checking for references to /nix/var/nix/builds/nix-95767-2866448265/ in /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests... patching script interpreter paths in /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests stripping (with command strip and flags -S) in /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests/lib /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests/bin checking for references to /nix/var/nix/builds/nix-95767-2866448265/ in /nix/store/jrp1mawhqkarkfn6wzd2mrkjk4jkg53m-python3.14-nixbot-tests-dist... patching script interpreter paths in /nix/store/jrp1mawhqkarkfn6wzd2mrkjk4jkg53m-python3.14-nixbot-tests-dist Rewriting #!/nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.14 to #!/nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6 wrapping `/nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests/bin/nixbot'... Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir Running phase: installCheckPhase no Makefile or custom installCheckPhase, doing nothing Running phase: pythonCatchConflictsPhase Running phase: pythonRemoveBinBytecodePhase Running phase: pythonImportsCheckPhase Executing pythonImportsCheckPhase Running phase: pytestCheckPhase Executing pytestCheckPhase pytest flags: -m pytest --numprocesses=10 /nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ============================= test session starts ============================== platform darwin -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0 benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000) rootdir: /nix/var/nix/builds/nix-95767-2866448265/nixbot configfile: pyproject.toml plugins: asyncio-1.4.0, timeout-2.4.0, xdist-3.8.0, benchmark-5.2.3, anyio-4.14.2 asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function timeout: 60.0s timeout method: signal timeout func_only: False initialized: 7/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) initialized: 8/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) initialized: 9/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ready: 3/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ready: 4/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ready: 5/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ready: 6/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ready: 7/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ready: 8/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) ready: 9/10 workers/nix/store/kfbmrm2rads9m3za8am89kll1xmzlbra-python3.14-pytest-benchmark-5.2.3/lib/python3.14/site-packages/pytest_benchmark/logger.py:44: PytestBenchmarkWarning: Benchmarks are automatically disabled because xdist plugin is active.Benchmarks cannot be performed reliably in a parallelized environment. warner(PytestBenchmarkWarning(text)) 10 workers [801 items] .......................ssss..ss..s.ss................................... [ 8%] ........................................................................ [ 17%] ........................................................................ [ 26%] ........................................................................ [ 35%] ...........s............................................................ [ 44%] ........s............................................................... [ 53%] ...........sssss.sssssss................................................ [ 62%] ........................................................................ [ 71%] .......................................................ssss............. [ 80%] ....................EFE..s.............................................. [ 89%] ........................................................................ [ 98%] ......... [100%] ==================================== ERRORS ==================================== _____________________ ERROR at setup of test_full_pipeline _____________________ [gw6] darwin -- Python 3.14.6 /nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.14 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/nix/var/nix/builds/nix-95767-2866448265/pytest-of-_nixbld1/pytest-0/popen-...r/nix/builds/nix-95767-2866448265/pytest-of-_nixbld1/pytest-0/popen-gw6'), _retention_count=3, _retention_policy='all') @pytest.fixture(scope="module") def flake(tmp_path_factory: pytest.TempPathFactory) -> Path: path = tmp_path_factory.mktemp("flake") salt = path.name # unique store paths per test session (path / "flake.nix").write_text( > FLAKE_TEMPLATE.format(system=current_system(), salt=salt) ^^^^^^^^^^^^^^^^ ) nixbot/tests/test_pipeline.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nixbot/tests/test_pipeline.py:56: in current_system return _nix_eval("builtins.currentSystem") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ expr = 'builtins.currentSystem' @functools.cache def _nix_eval(expr: str) -> str: proc = subprocess.run( # noqa: S603 ["nix", "eval", "--raw", "--impure", "--expr", expr], capture_output=True, text=True, check=False, ) if proc.returncode: > pytest.fail( f"nix eval {expr} failed ({proc.returncode}): {proc.stderr.strip()}" ) E Failed: nix eval builtins.currentSystem failed (1): error: SQLite database '/nix/var/nix/builds/nix-95767-2866448265/nix/var/db/db.sqlite' is busy nixbot/tests/test_pipeline.py:49: Failed _______________ ERROR at setup of test_cached_skip_on_second_run _______________ [gw6] darwin -- Python 3.14.6 /nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.14 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/nix/var/nix/builds/nix-95767-2866448265/pytest-of-_nixbld1/pytest-0/popen-...r/nix/builds/nix-95767-2866448265/pytest-of-_nixbld1/pytest-0/popen-gw6'), _retention_count=3, _retention_policy='all') @pytest.fixture(scope="module") def flake(tmp_path_factory: pytest.TempPathFactory) -> Path: path = tmp_path_factory.mktemp("flake") salt = path.name # unique store paths per test session (path / "flake.nix").write_text( > FLAKE_TEMPLATE.format(system=current_system(), salt=salt) ^^^^^^^^^^^^^^^^ ) nixbot/tests/test_pipeline.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nixbot/tests/test_pipeline.py:56: in current_system return _nix_eval("builtins.currentSystem") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ expr = 'builtins.currentSystem' @functools.cache def _nix_eval(expr: str) -> str: proc = subprocess.run( # noqa: S603 ["nix", "eval", "--raw", "--impure", "--expr", expr], capture_output=True, text=True, check=False, ) if proc.returncode: > pytest.fail( f"nix eval {expr} failed ({proc.returncode}): {proc.stderr.strip()}" ) E Failed: nix eval builtins.currentSystem failed (1): error: SQLite database '/nix/var/nix/builds/nix-95767-2866448265/nix/var/db/db.sqlite' is busy nixbot/tests/test_pipeline.py:49: Failed =================================== FAILURES =================================== __________________________ test_prefetch_integration ___________________________ [gw3] darwin -- Python 3.14.6 /nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.14 tmp_path = PosixPath('/nix/var/nix/builds/nix-95767-2866448265/pytest-of-_nixbld1/pytest-0/popen-gw3/test_prefetch_integration0') @needs_nix async def test_prefetch_integration(tmp_path: Path) -> None: """A locked git input is copied to the store and gc-rooted; after the input's source repo is gone, evaluation still succeeds purely from the store (the sandboxed eval has no credentials for private inputs).""" dep = init_upstream( tmp_path / "dep", {"flake.nix": '{ outputs = { self }: { greeting = "hello"; }; }'}, ) repo = init_upstream( tmp_path / "repo", { "flake.nix": f""" {{ inputs.dep.url = "git+file://{dep}"; outputs = {{ self, dep }}: {{ checks.x86_64-linux.ok = derivation {{ name = "ok-" + dep.greeting; system = "x86_64-linux"; builder = "/bin/sh"; args = [ "-c" "echo ok > $out" ]; }}; }}; }} """ }, ) > _nix_flake_lock(repo) nixbot/tests/test_flake_prefetch.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ nixbot/tests/test_flake_prefetch.py:86: in _nix_flake_lock subprocess.run( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = False, timeout = None, check = True popenargs = (['nix', '--option', 'extra-experimental-features', 'nix-command flakes', 'flake', 'lock'],) kwargs = {'cwd': PosixPath('/nix/var/nix/builds/nix-95767-2866448265/pytest-of-_nixbld1/pytest-0/popen-gw3/test_prefetch_integr...bot-tests/libexec --localedir=/nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests/share/locale ', ...}} 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, or pass capture_output=True to capture both. 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 (seconds) 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 '['nix', '--option', 'extra-experimental-features', 'nix-command flakes', 'flake', 'lock']' returned non-zero exit status 1. /nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/lib/python3.14/subprocess.py:578: CalledProcessError ----------------------------- Captured stderr call ----------------------------- error: SQLite database '/nix/var/nix/builds/nix-95767-2866448265/nix/var/db/db.sqlite' is busy =========================== short test summary info ============================ FAILED nixbot/tests/test_flake_prefetch.py::test_prefetch_integration - subprocess.CalledProcessError: Command '['nix', '--option', 'extra-experime... ERROR nixbot/tests/test_pipeline.py::test_full_pipeline - Failed: nix eval builtins.currentSystem failed (1): error: SQLite database ... ERROR nixbot/tests/test_pipeline.py::test_cached_skip_on_second_run - Failed: nix eval builtins.currentSystem failed (1): error: SQLite database ... ============= 1 failed, 770 passed, 28 skipped, 2 errors in 35.18s =============