============================= test session starts ============================== platform darwin -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0 -- /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/bin/python3.13 cachedir: .pytest_cache rootdir: /nix/var/nix/builds/nix-49414-860316410 collected 23 items tests-functional/test_eval.py::test_flake PASSED [ 4%] tests-functional/test_eval.py::test_query_cache_status PASSED [ 8%] tests-functional/test_eval.py::test_expression PASSED [ 13%] tests-functional/test_eval.py::test_input_drvs PASSED [ 17%] tests-functional/test_eval.py::test_eval_error PASSED [ 21%] tests-functional/test_eval.py::test_no_gcroot_dir PASSED [ 26%] tests-functional/test_eval.py::test_daemon_only_settings_do_not_warn PASSED [ 30%] tests-functional/test_eval.py::test_constituents PASSED [ 34%] tests-functional/test_eval.py::test_constituents_all PASSED [ 39%] tests-functional/test_eval.py::test_constituents_glob_misc PASSED [ 43%] tests-functional/test_eval.py::test_constituents_cycle PASSED [ 47%] tests-functional/test_eval.py::test_constituents_error PASSED [ 52%] tests-functional/test_eval.py::test_empty_needed PASSED [ 56%] tests-functional/test_eval.py::test_apply PASSED [ 60%] tests-functional/test_eval.py::test_select_flake PASSED [ 65%] tests-functional/test_eval.py::test_recursion_error PASSED [ 69%] tests-functional/test_eval.py::test_no_instantiate_mode PASSED [ 73%] tests-functional/test_eval.py::test_fod_with_uncached_input_issue413[file] PASSED [ 78%] tests-functional/test_eval.py::test_fod_with_uncached_input_issue413[http] PASSED [ 82%] tests-functional/test_eval.py::test_worker_log_format_survives_fork PASSED [ 86%] tests-functional/test_eval.py::test_worker_restart_on_last_job_exits_cleanly PASSED [ 91%] tests-functional/test_eval.py::test_fetchers_survive_worker_restart PASSED [ 95%] tests-functional/test_eval.py::test_workers_do_not_race_flake_fetch FAILED [100%] =================================== FAILURES =================================== _____________________ test_workers_do_not_race_flake_fetch _____________________ tmp_path = PosixPath('/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0') def test_workers_do_not_race_flake_fetch(tmp_path: Path) -> None: """Workers fetching the same flake input concurrently spam "waiting for another Nix process to finish fetching input" (issue #432).""" env = _hermetic_nix_env(tmp_path) repo = tmp_path / "flake" repo.mkdir() jobs = "\n".join( f""" job-{i} = derivation {{ name = "race-{i}"; system = "x86_64-linux"; builder = "/bin/sh"; args = [ "-c" "echo {i} > $out" ]; }};""" for i in range(8) ) repo.joinpath("flake.nix").write_text(f"{{ outputs = _: {{ hydraJobs = {{ {jobs} }}; }}; }}") subprocess.run(["git", "init", "-q"], cwd=repo, check=True, env=env) subprocess.run(["git", "add", "flake.nix"], cwd=repo, check=True, env=env) subprocess.run( ["git", "-c", "user.email=t@t", "-c", "user.name=t", "commit", "-qm", "init"], cwd=repo, check=True, env=env, ) res = subprocess.run( [ str(BIN), "--gc-roots-dir", str(tmp_path / "gc"), "--workers", "8", *COMMON_FLAGS, "--flake", f"git+file://{repo}#hydraJobs", ], env=env, text=True, check=True, capture_output=True, ) assert len(res.stdout.splitlines()) == 8 > assert "waiting for another Nix process" not in res.stderr, res.stderr E AssertionError: warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E waiting for another Nix process to finish fetching input 'git+file:///nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=44cf4afd51dfe199278a67a20cb284a3f73a6cc4'... E waiting for another Nix process to finish fetching input 'git+file:///nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=44cf4afd51dfe199278a67a20cb284a3f73a6cc4'... E waiting for another Nix process to finish fetching input 'git+file:///nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=44cf4afd51dfe199278a67a20cb284a3f73a6cc4'... E error (ignored): SQLite database '/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/eval-cache-v6/61090182bf981984a1ef77b51be102cd0fcd6af69c4a1da0f7c1003ae672a552.sqlite' is busy E error (ignored): SQLite database '/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/eval-cache-v6/61090182bf981984a1ef77b51be102cd0fcd6af69c4a1da0f7c1003ae672a552.sqlite' is busy E error (ignored): SQLite database '/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/eval-cache-v6/61090182bf981984a1ef77b51be102cd0fcd6af69c4a1da0f7c1003ae672a552.sqlite' is busy E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E waiting for another Nix process to finish fetching input 'git+file:///nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=44cf4afd51dfe199278a67a20cb284a3f73a6cc4'... E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E error (ignored): SQLite database '/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/eval-cache-v6/61090182bf981984a1ef77b51be102cd0fcd6af69c4a1da0f7c1003ae672a552.sqlite' is busy E error (ignored): SQLite database '/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/eval-cache-v6/61090182bf981984a1ef77b51be102cd0fcd6af69c4a1da0f7c1003ae672a552.sqlite' is busy E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E error (ignored): SQLite database '/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/eval-cache-v6/61090182bf981984a1ef77b51be102cd0fcd6af69c4a1da0f7c1003ae672a552.sqlite' is busy E error (ignored): SQLite database '/nix/var/nix/builds/nix-49414-860316410/pytest-of-_nixbld10/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/eval-cache-v6/61090182bf981984a1ef77b51be102cd0fcd6af69c4a1da0f7c1003ae672a552.sqlite' is busy E E assert 'waiting for... Nix process' not in "warning: un...e' is busy\n" E E 'waiting for another Nix process' is contained here: E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors from file: /no-cert-file.crt E warning: unable to download 'https://cache.nixos.org/nix-cache-info': Problem with the SSL CA cert (path? access rights?) (77) error adding trust anchors ... E E ...Full output truncated (19 lines hidden), use '-vv' to show tests-functional/test_eval.py:901: AssertionError =========================== short test summary info ============================ FAILED tests-functional/test_eval.py::test_workers_do_not_race_flake_fetch - AssertionError: warning: unable to download 'https://cache.nixos.org/nix-ca... ========================= 1 failed, 22 passed in 4.48s =========================