nixbot

builds

failed python3.14-nixbot-tests checks.aarch64-darwin.nixbot-tests · build #361 · raw

1Sourcing python-remove-tests-dir-hook2Sourcing python-catch-conflicts-hook.sh3Sourcing python-remove-bin-bytecode-hook.sh4Sourcing pypa-build-hook5Using pypaBuildPhase6Sourcing python-runtime-deps-check-hook7Using pythonRuntimeDepsCheckHook8Sourcing pypa-install-hook9Using pypaInstallPhase10Sourcing python-imports-check-hook.sh11Using pythonImportsCheckPhase12Sourcing python-namespaces-hook13Sourcing python-catch-conflicts-hook.sh14Sourcing pytest-check-hook15Using pytestCheckPhase
unpackPhase
16unpacking source archive /nix/store/vlqpkic7km9iw0g06ga7cvbb5rsxn3pd-nixbot17source root is nixbot18setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "nixbot/pyproject.toml"
configurePhase
19no configure script, doing nothing
buildPhase
20Executing pypaBuildPhase21Creating a wheel...22pypa build flags: --no-isolation --outdir dist/ --wheel23* Getting build dependencies for wheel...24* Building wheel...25Successfully built nixbot-0.0.1-py3-none-any.whl26Finished creating a wheel...27Finished executing pypaBuildPhase
pythonRuntimeDepsCheckHook
28Executing pythonRuntimeDepsCheck29Checking runtime dependencies for nixbot-0.0.1-py3-none-any.whl30Finished executing pythonRuntimeDepsCheck
installPhase
31Executing pypaInstallPhase32Successfully installed nixbot-0.0.1-py3-none-any.whl33Finished executing pypaInstallPhase
pythonOutputDistPhase
34Executing pythonOutputDistPhase35Finished executing pythonOutputDistPhase
fixupPhase
36checking for references to /nix/var/nix/builds/nix-95767-2866448265/ in /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests...37patching script interpreter paths in /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests38stripping (with command strip and flags -S) in /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests/lib /nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests/bin39checking for references to /nix/var/nix/builds/nix-95767-2866448265/ in /nix/store/jrp1mawhqkarkfn6wzd2mrkjk4jkg53m-python3.14-nixbot-tests-dist...40patching script interpreter paths in /nix/store/jrp1mawhqkarkfn6wzd2mrkjk4jkg53m-python3.14-nixbot-tests-dist41Rewriting #!/nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.14 to #!/nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.642wrapping `/nix/store/6mbxlid4g2znsw22b3wvfzlv27vmabjg-python3.14-nixbot-tests/bin/nixbot'...43Executing pythonRemoveTestsDir44Finished executing pythonRemoveTestsDir
installCheckPhase
45no Makefile or custom installCheckPhase, doing nothing
pythonImportsCheckPhase
46Executing pythonImportsCheckPhase
pytestCheckPhase
47Executing pytestCheckPhase48pytest flags: -m pytest --numprocesses=1049/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.50 warner(PytestBenchmarkWarning(text))51============================= test session starts ==============================52platform darwin -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.053benchmark: 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)54rootdir: /nix/var/nix/builds/nix-95767-2866448265/nixbot55configfile: pyproject.toml56plugins: asyncio-1.4.0, timeout-2.4.0, xdist-3.8.0, benchmark-5.2.3, anyio-4.14.257asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function58timeout: 60.0s59timeout method: signal60timeout func_only: False61initialized: 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.62 warner(PytestBenchmarkWarning(text))63initialized: 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.64 warner(PytestBenchmarkWarning(text))65initialized: 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.66 warner(PytestBenchmarkWarning(text))67ready: 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.68 warner(PytestBenchmarkWarning(text))69ready: 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.70 warner(PytestBenchmarkWarning(text))71ready: 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.72 warner(PytestBenchmarkWarning(text))73ready: 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.74 warner(PytestBenchmarkWarning(text))75ready: 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.76 warner(PytestBenchmarkWarning(text))77ready: 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.78 warner(PytestBenchmarkWarning(text))79ready: 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.80 warner(PytestBenchmarkWarning(text))8110 workers [801 items] 82.......................ssss..ss..s.ss................................... [ 8%]83........................................................................ [ 17%]84........................................................................ [ 26%]85........................................................................ [ 35%]86...........s............................................................ [ 44%]87........s............................................................... [ 53%]88...........sssss.sssssss................................................ [ 62%]89........................................................................ [ 71%]90.......................................................ssss............. [ 80%]91....................EFE..s.............................................. [ 89%]92........................................................................ [ 98%]93......... [100%]94==================================== ERRORS ====================================95_____________________ ERROR at setup of test_full_pipeline _____________________96[gw6] darwin -- Python 3.14.6 /nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.149798tmp_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')99100 @pytest.fixture(scope="module")101 def flake(tmp_path_factory: pytest.TempPathFactory) -> Path:102 path = tmp_path_factory.mktemp("flake")103 salt = path.name # unique store paths per test session104 (path / "flake.nix").write_text(105> FLAKE_TEMPLATE.format(system=current_system(), salt=salt)106 ^^^^^^^^^^^^^^^^107 )108109nixbot/tests/test_pipeline.py:124: 110_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 111nixbot/tests/test_pipeline.py:56: in current_system112 return _nix_eval("builtins.currentSystem")113 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^114_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 115116expr = 'builtins.currentSystem'117118 @functools.cache119 def _nix_eval(expr: str) -> str:120 proc = subprocess.run( # noqa: S603121 ["nix", "eval", "--raw", "--impure", "--expr", expr],122 capture_output=True,123 text=True,124 check=False,125 )126 if proc.returncode:127> pytest.fail(128 f"nix eval {expr} failed ({proc.returncode}): {proc.stderr.strip()}"129 )130E Failed: nix eval builtins.currentSystem failed (1): error: SQLite database '/nix/var/nix/builds/nix-95767-2866448265/nix/var/db/db.sqlite' is busy131132nixbot/tests/test_pipeline.py:49: Failed133_______________ ERROR at setup of test_cached_skip_on_second_run _______________134[gw6] darwin -- Python 3.14.6 /nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.14135136tmp_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')137138 @pytest.fixture(scope="module")139 def flake(tmp_path_factory: pytest.TempPathFactory) -> Path:140 path = tmp_path_factory.mktemp("flake")141 salt = path.name # unique store paths per test session142 (path / "flake.nix").write_text(143> FLAKE_TEMPLATE.format(system=current_system(), salt=salt)144 ^^^^^^^^^^^^^^^^145 )146147nixbot/tests/test_pipeline.py:124: 148_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 149nixbot/tests/test_pipeline.py:56: in current_system150 return _nix_eval("builtins.currentSystem")151 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^152_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 153154expr = 'builtins.currentSystem'155156 @functools.cache157 def _nix_eval(expr: str) -> str:158 proc = subprocess.run( # noqa: S603159 ["nix", "eval", "--raw", "--impure", "--expr", expr],160 capture_output=True,161 text=True,162 check=False,163 )164 if proc.returncode:165> pytest.fail(166 f"nix eval {expr} failed ({proc.returncode}): {proc.stderr.strip()}"167 )168E Failed: nix eval builtins.currentSystem failed (1): error: SQLite database '/nix/var/nix/builds/nix-95767-2866448265/nix/var/db/db.sqlite' is busy169170nixbot/tests/test_pipeline.py:49: Failed171=================================== FAILURES ===================================172__________________________ test_prefetch_integration ___________________________173[gw3] darwin -- Python 3.14.6 /nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/bin/python3.14174175tmp_path = PosixPath('/nix/var/nix/builds/nix-95767-2866448265/pytest-of-_nixbld1/pytest-0/popen-gw3/test_prefetch_integration0')176177 @needs_nix178 async def test_prefetch_integration(tmp_path: Path) -> None:179 """A locked git input is copied to the store and gc-rooted; after180 the input's source repo is gone, evaluation still succeeds purely181 from the store (the sandboxed eval has no credentials for private182 inputs)."""183 dep = init_upstream(184 tmp_path / "dep",185 {"flake.nix": '{ outputs = { self }: { greeting = "hello"; }; }'},186 )187 repo = init_upstream(188 tmp_path / "repo",189 {190 "flake.nix": f"""191 {{192 inputs.dep.url = "git+file://{dep}";193 outputs = {{ self, dep }}: {{194 checks.x86_64-linux.ok = derivation {{195 name = "ok-" + dep.greeting;196 system = "x86_64-linux";197 builder = "/bin/sh";198 args = [ "-c" "echo ok > $out" ];199 }};200 }};201 }}202 """203 },204 )205> _nix_flake_lock(repo)206207nixbot/tests/test_flake_prefetch.py:129: 208_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 209nixbot/tests/test_flake_prefetch.py:86: in _nix_flake_lock210 subprocess.run(211_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 212213input = None, capture_output = False, timeout = None, check = True214popenargs = (['nix', '--option', 'extra-experimental-features', 'nix-command flakes', 'flake', 'lock'],)215kwargs = {'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 ', ...}}216217 def run(*popenargs,218 input=None, capture_output=False, timeout=None, check=False, **kwargs):219 """Run command with arguments and return a CompletedProcess instance.220 221 The returned instance will have attributes args, returncode, stdout and222 stderr. By default, stdout and stderr are not captured, and those attributes223 will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,224 or pass capture_output=True to capture both.225 226 If check is True and the exit code was non-zero, it raises a227 CalledProcessError. The CalledProcessError object will have the return code228 in the returncode attribute, and output & stderr attributes if those streams229 were captured.230 231 If timeout (seconds) is given and the process takes too long,232 a TimeoutExpired exception will be raised.233 234 There is an optional argument "input", allowing you to235 pass bytes or a string to the subprocess's stdin. If you use this argument236 you may not also use the Popen constructor's "stdin" argument, as237 it will be used internally.238 239 By default, all communication is in bytes, and therefore any "input" should240 be bytes, and the stdout and stderr will be bytes. If in text mode, any241 "input" should be a string, and stdout and stderr will be strings decoded242 according to locale encoding, or by "encoding" if set. Text mode is243 triggered by setting any of text, encoding, errors or universal_newlines.244 245 The other arguments are the same as for the Popen constructor.246 """247 if input is not None:248 if kwargs.get('stdin') is not None:249 raise ValueError('stdin and input arguments may not both be used.')250 kwargs['stdin'] = PIPE251 252 if capture_output:253 if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:254 raise ValueError('stdout and stderr arguments may not be used '255 'with capture_output.')256 kwargs['stdout'] = PIPE257 kwargs['stderr'] = PIPE258 259 with Popen(*popenargs, **kwargs) as process:260 try:261 stdout, stderr = process.communicate(input, timeout=timeout)262 except TimeoutExpired as exc:263 process.kill()264 if _mswindows:265 # Windows accumulates the output in a single blocking266 # read() call run on child threads, with the timeout267 # being done in a join() on those threads. communicate()268 # _after_ kill() is required to collect that and add it269 # to the exception.270 exc.stdout, exc.stderr = process.communicate()271 else:272 # POSIX _communicate already populated the output so273 # far into the TimeoutExpired exception.274 process.wait()275 raise276 except: # Including KeyboardInterrupt, communicate handled that.277 process.kill()278 # We don't call process.wait() as .__exit__ does that for us.279 raise280 retcode = process.poll()281 if check and retcode:282> raise CalledProcessError(retcode, process.args,283 output=stdout, stderr=stderr)284E subprocess.CalledProcessError: Command '['nix', '--option', 'extra-experimental-features', 'nix-command flakes', 'flake', 'lock']' returned non-zero exit status 1.285286/nix/store/i9q7np6h9bwa3ps6937lpwarkqw0izbf-python3-3.14.6/lib/python3.14/subprocess.py:578: CalledProcessError287----------------------------- Captured stderr call -----------------------------288error: SQLite database '/nix/var/nix/builds/nix-95767-2866448265/nix/var/db/db.sqlite' is busy289=========================== short test summary info ============================290FAILED nixbot/tests/test_flake_prefetch.py::test_prefetch_integration - subprocess.CalledProcessError: Command '['nix', '--option', 'extra-experime...291ERROR nixbot/tests/test_pipeline.py::test_full_pipeline - Failed: nix eval builtins.currentSystem failed (1): error: SQLite database ...292ERROR nixbot/tests/test_pipeline.py::test_cached_skip_on_second_run - Failed: nix eval builtins.currentSystem failed (1): error: SQLite database ...293============= 1 failed, 770 passed, 28 skipped, 2 errors in 35.18s =============