nixbot

builds

failed nix-eval-jobs-functional-tests default.checks.aarch64-darwin.functional-tests · build #50 · raw

1============================= test session starts ==============================2platform darwin -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0 -- /nix/store/xcjk9ill54kjk8mzgq6yydnx9015lidg-python3-3.13.9/bin/python3.133cachedir: .pytest_cache4rootdir: /nix/var/nix/builds/nix-49889-40899742945collected 23 items 67tests-functional/test_eval.py::test_flake PASSED [ 4%]8tests-functional/test_eval.py::test_query_cache_status PASSED [ 8%]9tests-functional/test_eval.py::test_expression PASSED [ 13%]10tests-functional/test_eval.py::test_input_drvs PASSED [ 17%]11tests-functional/test_eval.py::test_eval_error PASSED [ 21%]12tests-functional/test_eval.py::test_no_gcroot_dir PASSED [ 26%]13tests-functional/test_eval.py::test_daemon_only_settings_do_not_warn PASSED [ 30%]14tests-functional/test_eval.py::test_constituents PASSED [ 34%]15tests-functional/test_eval.py::test_constituents_all PASSED [ 39%]16tests-functional/test_eval.py::test_constituents_glob_misc PASSED [ 43%]17tests-functional/test_eval.py::test_constituents_cycle PASSED [ 47%]18tests-functional/test_eval.py::test_constituents_error PASSED [ 52%]19tests-functional/test_eval.py::test_empty_needed PASSED [ 56%]20tests-functional/test_eval.py::test_apply PASSED [ 60%]21tests-functional/test_eval.py::test_select_flake PASSED [ 65%]22tests-functional/test_eval.py::test_recursion_error PASSED [ 69%]23tests-functional/test_eval.py::test_no_instantiate_mode PASSED [ 73%]24tests-functional/test_eval.py::test_fod_with_uncached_input_issue413[file] PASSED [ 78%]25tests-functional/test_eval.py::test_fod_with_uncached_input_issue413[http] PASSED [ 82%]26tests-functional/test_eval.py::test_worker_log_format_survives_fork PASSED [ 86%]27tests-functional/test_eval.py::test_worker_restart_on_last_job_exits_cleanly PASSED [ 91%]28tests-functional/test_eval.py::test_fetchers_survive_worker_restart PASSED [ 95%]29tests-functional/test_eval.py::test_workers_do_not_race_flake_fetch FAILED [100%]3031=================================== FAILURES ===================================32_____________________ test_workers_do_not_race_flake_fetch _____________________3334tmp_path = PosixPath('/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0')3536 def test_workers_do_not_race_flake_fetch(tmp_path: Path) -> None:37 """Workers fetching the same flake input concurrently spam "waiting38 for another Nix process to finish fetching input" (issue #432)."""39 env = _hermetic_nix_env(tmp_path)40 repo = tmp_path / "flake"41 repo.mkdir()42 jobs = "\n".join(43 f"""44 job-{i} = derivation {{45 name = "race-{i}";46 system = "x86_64-linux";47 builder = "/bin/sh";48 args = [ "-c" "echo {i} > $out" ]; }};"""49 for i in range(8)50 )51 repo.joinpath("flake.nix").write_text(f"{{ outputs = _: {{ hydraJobs = {{ {jobs} }}; }}; }}")52 subprocess.run(["git", "init", "-q"], cwd=repo, check=True, env=env)53 subprocess.run(["git", "add", "flake.nix"], cwd=repo, check=True, env=env)54 subprocess.run(55 ["git", "-c", "user.email=t@t", "-c", "user.name=t", "commit", "-qm", "init"],56 cwd=repo,57 check=True,58 env=env,59 )60 61 res = subprocess.run(62 [63 str(BIN),64 "--gc-roots-dir",65 str(tmp_path / "gc"),66 "--workers",67 "8",68 "-vvvv", # TODO: drop after darwin fast-path debugging69 *COMMON_FLAGS,70 "--flake",71 f"git+file://{repo}#hydraJobs",72 ],73 env=env,74 text=True,75 check=True,76 capture_output=True,77 )78 assert len(res.stdout.splitlines()) == 879 debug = [80 line81 for line in res.stderr.splitlines()82 if "substitut" in line or "waiting for another" in line or "cached input" in line83 ]84> assert "waiting for another Nix process" not in res.stderr, "\n".join(debug)85E AssertionError: substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created86E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up87E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init88E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done89E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter90E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 6.095ms91E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed92E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it93E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created94E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up95E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init96E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created97E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up98E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init99E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created100E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up101E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init102E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done103E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter104E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 8.675ms105E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed106E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it107E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created108E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up109E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init110E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created111E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up112E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init113E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created114E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up115E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init116E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done117E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter118E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': created119E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 7.492ms120E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': woken up121E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': init122E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed123E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it124E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done125E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter126E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 6.866ms127E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed128E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it129E waiting for another Nix process to finish fetching input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6'...130E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done131E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done132E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter133E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 6.608ms134E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter135E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed136E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 6.295ms137E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed138E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it139E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it140E waiting for another Nix process to finish fetching input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6'...141E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done142E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter143E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 5.775ms144E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed145E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it146E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': done147E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': in final_awaiter148E worker event loop worked goal 'substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source'' for 5.593ms149E substitution of '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source': goal destroyed150E substitution of input 'git+file:///nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/flake?ref=refs/heads/master&rev=654d100861eb0d4244b7f5a1081565c738143af6' failed: error: path '/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/store/ymfllf1cyi2lh9iflx6ckp9dvmlkrhv3-source' is required, but there is no substituter that can build it151E assert 'waiting for... Nix process' not in 'executing N...cess 50048\n'152E 153E 'waiting for another Nix process' is contained here:154E executing Nix database schema migration '20260309-drop-redundant-indexreferrer'...155E evaluating file '«nix-internal»/derivation-internal.nix'156E locking path "/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/fetcher-locks/edda52db1b279b22dafb6a6cdedec2acbb28f6a696964798c93707cdaf9bba49"157E lock acquired on "/nix/var/nix/builds/nix-49889-4089974294/pytest-of-_nixbld1/pytest-0/test_workers_do_not_race_flake0/home/.cache/nix/fetcher-locks/edda52db1b279b22daf...158E 159E ...Full output truncated (603 lines hidden), use '-vv' to show160161tests-functional/test_eval.py:907: AssertionError162=========================== short test summary info ============================163FAILED tests-functional/test_eval.py::test_workers_do_not_race_flake_fetch - AssertionError: substitution of '/nix/var/nix/builds/nix-49889-4089974294/p...164========================= 1 failed, 22 passed in 3.88s =========================