tribuchet: building on mac02 structuredAttrs is enabled 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 Running phase: unpackPhase unpacking source archive /nix/store/rjshzyiafm037hqgkimh1vdrfkfj38im-source source root is source setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tests/test_wip.py" 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... /nix/store/p11h2n9yz1nz8248g3zd1hyx9xvzi5r0-python3.14-setuptools-83.0.0/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2027-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) running egg_info creating nixpkgs_review.egg-info writing nixpkgs_review.egg-info/PKG-INFO writing dependency_links to nixpkgs_review.egg-info/dependency_links.txt writing entry points to nixpkgs_review.egg-info/entry_points.txt writing top-level names to nixpkgs_review.egg-info/top_level.txt writing manifest file 'nixpkgs_review.egg-info/SOURCES.txt' reading manifest file 'nixpkgs_review.egg-info/SOURCES.txt' writing manifest file 'nixpkgs_review.egg-info/SOURCES.txt' * Building wheel... /nix/store/p11h2n9yz1nz8248g3zd1hyx9xvzi5r0-python3.14-setuptools-83.0.0/lib/python3.14/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2027-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) running bdist_wheel running build running build_py creating build/lib/tests copying tests/conftest.py -> build/lib/tests copying tests/test_escape_attr.py -> build/lib/tests copying tests/test_github.py -> build/lib/tests copying tests/__init__.py -> build/lib/tests copying tests/test_rev.py -> build/lib/tests copying tests/test_nixpkgs.py -> build/lib/tests copying tests/test_store_flag.py -> build/lib/tests copying tests/test_pr.py -> build/lib/tests copying tests/test_github_actions.py -> build/lib/tests copying tests/test_wip.py -> build/lib/tests copying tests/test_option_flag.py -> build/lib/tests copying tests/test_eval.py -> build/lib/tests creating build/lib/nixpkgs_review copying nixpkgs_review/overlay.py -> build/lib/nixpkgs_review copying nixpkgs_review/git.py -> build/lib/nixpkgs_review copying nixpkgs_review/nix.py -> build/lib/nixpkgs_review copying nixpkgs_review/__init__.py -> build/lib/nixpkgs_review copying nixpkgs_review/review.py -> build/lib/nixpkgs_review copying nixpkgs_review/allow.py -> build/lib/nixpkgs_review copying nixpkgs_review/utils.py -> build/lib/nixpkgs_review copying nixpkgs_review/nixpkgs.py -> build/lib/nixpkgs_review copying nixpkgs_review/errors.py -> build/lib/nixpkgs_review copying nixpkgs_review/github.py -> build/lib/nixpkgs_review copying nixpkgs_review/report.py -> build/lib/nixpkgs_review copying nixpkgs_review/buildenv.py -> build/lib/nixpkgs_review copying nixpkgs_review/builddir.py -> build/lib/nixpkgs_review copying nixpkgs_review/http_requests.py -> build/lib/nixpkgs_review creating build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/approve.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/merge.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/rev.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/__init__.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/pr.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/utils.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/wip.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/post_result.py -> build/lib/nixpkgs_review/cli copying nixpkgs_review/cli/comments.py -> build/lib/nixpkgs_review/cli running egg_info writing nixpkgs_review.egg-info/PKG-INFO writing dependency_links to nixpkgs_review.egg-info/dependency_links.txt writing entry points to nixpkgs_review.egg-info/entry_points.txt writing top-level names to nixpkgs_review.egg-info/top_level.txt reading manifest file 'nixpkgs_review.egg-info/SOURCES.txt' writing manifest file 'nixpkgs_review.egg-info/SOURCES.txt' creating build/lib/nixpkgs_review/nix copying nixpkgs_review/nix/listPackages.nix -> build/lib/nixpkgs_review/nix copying nixpkgs_review/nix/evalAttrs.nix -> build/lib/nixpkgs_review/nix installing to build/bdist.macosx-14.0-arm64/wheel running install running install_lib creating build/bdist.macosx-14.0-arm64/wheel creating build/bdist.macosx-14.0-arm64/wheel/tests copying build/lib/tests/conftest.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_escape_attr.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_github.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/__init__.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_rev.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_nixpkgs.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_store_flag.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_pr.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_github_actions.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_wip.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_option_flag.py -> build/bdist.macosx-14.0-arm64/wheel/./tests copying build/lib/tests/test_eval.py -> build/bdist.macosx-14.0-arm64/wheel/./tests creating build/bdist.macosx-14.0-arm64/wheel/nixpkgs_review copying build/lib/nixpkgs_review/overlay.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/git.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review creating build/bdist.macosx-14.0-arm64/wheel/nixpkgs_review/nix copying build/lib/nixpkgs_review/nix/listPackages.nix -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/nix copying build/lib/nixpkgs_review/nix/evalAttrs.nix -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/nix copying build/lib/nixpkgs_review/nix.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/__init__.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review creating build/bdist.macosx-14.0-arm64/wheel/nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/approve.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/merge.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/rev.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/__init__.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/pr.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/utils.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/wip.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/post_result.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/cli/comments.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review/cli copying build/lib/nixpkgs_review/review.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/allow.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/utils.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/nixpkgs.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/errors.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/github.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/report.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/buildenv.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/builddir.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review copying build/lib/nixpkgs_review/http_requests.py -> build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review running install_egg_info Copying nixpkgs_review.egg-info to build/bdist.macosx-14.0-arm64/wheel/./nixpkgs_review-4.0.0-py3.14.egg-info running install_scripts creating build/bdist.macosx-14.0-arm64/wheel/nixpkgs_review-4.0.0.dist-info/WHEEL creating '/private/var/tb/8/scratch/c99d1fce3404514a/build/source/dist/.tmp-th3jtp9r/nixpkgs_review-4.0.0-py3-none-any.whl' and adding 'build/bdist.macosx-14.0-arm64/wheel' to it adding 'nixpkgs_review/__init__.py' adding 'nixpkgs_review/allow.py' adding 'nixpkgs_review/builddir.py' adding 'nixpkgs_review/buildenv.py' adding 'nixpkgs_review/errors.py' adding 'nixpkgs_review/git.py' adding 'nixpkgs_review/github.py' adding 'nixpkgs_review/http_requests.py' adding 'nixpkgs_review/nix.py' adding 'nixpkgs_review/nixpkgs.py' adding 'nixpkgs_review/overlay.py' adding 'nixpkgs_review/report.py' adding 'nixpkgs_review/review.py' adding 'nixpkgs_review/utils.py' adding 'nixpkgs_review/cli/__init__.py' adding 'nixpkgs_review/cli/approve.py' adding 'nixpkgs_review/cli/comments.py' adding 'nixpkgs_review/cli/merge.py' adding 'nixpkgs_review/cli/post_result.py' adding 'nixpkgs_review/cli/pr.py' adding 'nixpkgs_review/cli/rev.py' adding 'nixpkgs_review/cli/utils.py' adding 'nixpkgs_review/cli/wip.py' adding 'nixpkgs_review/nix/evalAttrs.nix' adding 'nixpkgs_review/nix/listPackages.nix' adding 'tests/__init__.py' adding 'tests/conftest.py' adding 'tests/test_escape_attr.py' adding 'tests/test_eval.py' adding 'tests/test_github.py' adding 'tests/test_github_actions.py' adding 'tests/test_nixpkgs.py' adding 'tests/test_option_flag.py' adding 'tests/test_pr.py' adding 'tests/test_rev.py' adding 'tests/test_store_flag.py' adding 'tests/test_wip.py' adding 'nixpkgs_review-4.0.0.dist-info/METADATA' adding 'nixpkgs_review-4.0.0.dist-info/WHEEL' adding 'nixpkgs_review-4.0.0.dist-info/entry_points.txt' adding 'nixpkgs_review-4.0.0.dist-info/top_level.txt' adding 'nixpkgs_review-4.0.0.dist-info/RECORD' removing build/bdist.macosx-14.0-arm64/wheel Successfully built nixpkgs_review-4.0.0-py3-none-any.whl Finished creating a wheel... Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook Executing pythonRuntimeDepsCheck Checking runtime dependencies for nixpkgs_review-4.0.0-py3-none-any.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase Executing pypaInstallPhase Successfully installed nixpkgs_review-4.0.0-py3-none-any.whl Finished executing pypaInstallPhase Running phase: pythonOutputDistPhase Executing pythonOutputDistPhase Finished executing pythonOutputDistPhase Running phase: fixupPhase checking for references to /private/var/tb/8/scratch/c99d1fce3404514a/build/ in /nix/store/gshak9hii28g261sd0ycc5fmfc37zhzn-nixpkgs-review-dist... patching script interpreter paths in /nix/store/gshak9hii28g261sd0ycc5fmfc37zhzn-nixpkgs-review-dist checking for references to /private/var/tb/8/scratch/c99d1fce3404514a/build/ in /nix/store/b455ljlipz3z4w7i9rl3qlq928n9drym-nixpkgs-review... patching script interpreter paths in /nix/store/b455ljlipz3z4w7i9rl3qlq928n9drym-nixpkgs-review stripping (with command strip and flags -S) in /nix/store/b455ljlipz3z4w7i9rl3qlq928n9drym-nixpkgs-review/lib /nix/store/b455ljlipz3z4w7i9rl3qlq928n9drym-nixpkgs-review/bin Rewriting #!/nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python3.14 to #!/nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8 wrapping `/nix/store/b455ljlipz3z4w7i9rl3qlq928n9drym-nixpkgs-review/bin/nix-review'... Rewriting #!/nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python3.14 to #!/nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8 wrapping `/nix/store/b455ljlipz3z4w7i9rl3qlq928n9drym-nixpkgs-review/bin/nixpkgs-review'... Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir Running phase: installCheckPhase ============================= test session starts ============================== platform darwin -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0 rootdir: /private/var/tb/8/scratch/c99d1fce3404514a/build/source configfile: pyproject.toml plugins: xdist-3.8.0 created: 10/10 workers 10 workers [53 items] ..........s.FFFFF.......... =================================== FAILURES =================================== ___________________ test_eval_tests[overridden-tests1-True] ____________________ [gw2] darwin -- Python 3.14.8 /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python tmp_path = PosixPath('/private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw2/test_eval_tests_overridden_tes0') package = 'overridden', tests = {'overridden.tests.inherited'} include_tests = True @pytest.mark.parametrize("include_tests", [False, True]) @pytest.mark.parametrize( ("package", "tests"), [ ( "selfReferencing", {"selfReferencing.tests.self", "selfReferencing.tests.nested.test"}, ), ("overridden", {"overridden.tests.inherited"}), ("single", {"single.tests"}), ("group", {"group.package.tests.nested.test"}), ], ) def test_eval_tests( tmp_path: Path, package: str, tests: set[str], *, include_tests: bool ) -> None: nixpkgs = real_nixpkgs() fixture = TEST_ROOT / "assets/recursive-tests.nix" (tmp_path / "default.nix").write_text( f"{{ system, ... }}: import {fixture} {{ " f"pkgs = import {nixpkgs} {{ inherit system; config = {{}}; }}; }}" ) config = tmp_path / "config.nix" config.write_text("{}") attrs = tmp_path / "attrs.json" attrs.write_text(json.dumps({current_system(): [package]})) > result = subprocess.run( [ "nix-instantiate", "--eval", "--strict", "--json", "--expr", ( f"builtins.attrNames (import {ROOT / 'nix/evalAttrs.nix'} {{ " f"attr-json = {attrs}; include-tests = {str(include_tests).lower()}; " f"}}).${{builtins.currentSystem}}" ), ], env=os.environ | {"NIX_PATH": f"nixpkgs={tmp_path}", "NIXPKGS_CONFIG": str(config)}, capture_output=True, text=True, check=True, timeout=60, ) tests/test_eval.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = 60, check = True popenargs = (['nix-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c...8/pytest-0/popen-gw2/test_eval_tests_overridden_tes0/attrs.json; include-tests = true; }).${builtins.currentSystem}'],) kwargs = {'env': {'SHELL': '/nix/store/i1pdjlwb27ki88zssg5q2h696v1r1m15-bash-5.3p20/bin/bash', 'NIX_BUILD_CORES': '24', 'NIX_BI...ore/l5lmf74wrh6waq9knzxcmjiz4d29198w-python3.14-argcomplete-3.7.2/bin', ...}, 'text': True, 'stdout': -1, 'stderr': -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, 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-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c99d1fce3404514a/build/source/nixpkgs_review/nix/evalAttrs.nix { attr-json = /private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw2/test_eval_tests_overridden_tes0/attrs.json; include-tests = true; }).${builtins.currentSystem}']' returned non-zero exit status 1. /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/lib/python3.14/subprocess.py:578: CalledProcessError ________________ test_eval_tests[selfReferencing-tests0-False] _________________ [gw0] darwin -- Python 3.14.8 /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python tmp_path = PosixPath('/private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw0/test_eval_tests_selfReferencin0') package = 'selfReferencing' tests = {'selfReferencing.tests.nested.test', 'selfReferencing.tests.self'} include_tests = False @pytest.mark.parametrize("include_tests", [False, True]) @pytest.mark.parametrize( ("package", "tests"), [ ( "selfReferencing", {"selfReferencing.tests.self", "selfReferencing.tests.nested.test"}, ), ("overridden", {"overridden.tests.inherited"}), ("single", {"single.tests"}), ("group", {"group.package.tests.nested.test"}), ], ) def test_eval_tests( tmp_path: Path, package: str, tests: set[str], *, include_tests: bool ) -> None: nixpkgs = real_nixpkgs() fixture = TEST_ROOT / "assets/recursive-tests.nix" (tmp_path / "default.nix").write_text( f"{{ system, ... }}: import {fixture} {{ " f"pkgs = import {nixpkgs} {{ inherit system; config = {{}}; }}; }}" ) config = tmp_path / "config.nix" config.write_text("{}") attrs = tmp_path / "attrs.json" attrs.write_text(json.dumps({current_system(): [package]})) > result = subprocess.run( [ "nix-instantiate", "--eval", "--strict", "--json", "--expr", ( f"builtins.attrNames (import {ROOT / 'nix/evalAttrs.nix'} {{ " f"attr-json = {attrs}; include-tests = {str(include_tests).lower()}; " f"}}).${{builtins.currentSystem}}" ), ], env=os.environ | {"NIX_PATH": f"nixpkgs={tmp_path}", "NIXPKGS_CONFIG": str(config)}, capture_output=True, text=True, check=True, timeout=60, ) tests/test_eval.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = 60, check = True popenargs = (['nix-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c.../pytest-0/popen-gw0/test_eval_tests_selfReferencin0/attrs.json; include-tests = false; }).${builtins.currentSystem}'],) kwargs = {'env': {'SHELL': '/nix/store/i1pdjlwb27ki88zssg5q2h696v1r1m15-bash-5.3p20/bin/bash', 'NIX_BUILD_CORES': '24', 'NIX_BI...ore/l5lmf74wrh6waq9knzxcmjiz4d29198w-python3.14-argcomplete-3.7.2/bin', ...}, 'text': True, 'stdout': -1, 'stderr': -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, 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-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c99d1fce3404514a/build/source/nixpkgs_review/nix/evalAttrs.nix { attr-json = /private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw0/test_eval_tests_selfReferencin0/attrs.json; include-tests = false; }).${builtins.currentSystem}']' returned non-zero exit status 1. /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/lib/python3.14/subprocess.py:578: CalledProcessError _________________ test_eval_tests[selfReferencing-tests0-True] _________________ [gw1] darwin -- Python 3.14.8 /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python tmp_path = PosixPath('/private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw1/test_eval_tests_selfReferencin0') package = 'selfReferencing' tests = {'selfReferencing.tests.nested.test', 'selfReferencing.tests.self'} include_tests = True @pytest.mark.parametrize("include_tests", [False, True]) @pytest.mark.parametrize( ("package", "tests"), [ ( "selfReferencing", {"selfReferencing.tests.self", "selfReferencing.tests.nested.test"}, ), ("overridden", {"overridden.tests.inherited"}), ("single", {"single.tests"}), ("group", {"group.package.tests.nested.test"}), ], ) def test_eval_tests( tmp_path: Path, package: str, tests: set[str], *, include_tests: bool ) -> None: nixpkgs = real_nixpkgs() fixture = TEST_ROOT / "assets/recursive-tests.nix" (tmp_path / "default.nix").write_text( f"{{ system, ... }}: import {fixture} {{ " f"pkgs = import {nixpkgs} {{ inherit system; config = {{}}; }}; }}" ) config = tmp_path / "config.nix" config.write_text("{}") attrs = tmp_path / "attrs.json" attrs.write_text(json.dumps({current_system(): [package]})) > result = subprocess.run( [ "nix-instantiate", "--eval", "--strict", "--json", "--expr", ( f"builtins.attrNames (import {ROOT / 'nix/evalAttrs.nix'} {{ " f"attr-json = {attrs}; include-tests = {str(include_tests).lower()}; " f"}}).${{builtins.currentSystem}}" ), ], env=os.environ | {"NIX_PATH": f"nixpkgs={tmp_path}", "NIXPKGS_CONFIG": str(config)}, capture_output=True, text=True, check=True, timeout=60, ) tests/test_eval.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = 60, check = True popenargs = (['nix-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c...8/pytest-0/popen-gw1/test_eval_tests_selfReferencin0/attrs.json; include-tests = true; }).${builtins.currentSystem}'],) kwargs = {'env': {'SHELL': '/nix/store/i1pdjlwb27ki88zssg5q2h696v1r1m15-bash-5.3p20/bin/bash', 'NIX_BUILD_CORES': '24', 'NIX_BI...ore/l5lmf74wrh6waq9knzxcmjiz4d29198w-python3.14-argcomplete-3.7.2/bin', ...}, 'text': True, 'stdout': -1, 'stderr': -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, 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-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c99d1fce3404514a/build/source/nixpkgs_review/nix/evalAttrs.nix { attr-json = /private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw1/test_eval_tests_selfReferencin0/attrs.json; include-tests = true; }).${builtins.currentSystem}']' returned non-zero exit status 1. /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/lib/python3.14/subprocess.py:578: CalledProcessError ______________________ test_eval_tests[group-tests3-True] ______________________ [gw4] darwin -- Python 3.14.8 /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python tmp_path = PosixPath('/private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw4/test_eval_tests_group_tests3_T0') package = 'group', tests = {'group.package.tests.nested.test'} include_tests = True @pytest.mark.parametrize("include_tests", [False, True]) @pytest.mark.parametrize( ("package", "tests"), [ ( "selfReferencing", {"selfReferencing.tests.self", "selfReferencing.tests.nested.test"}, ), ("overridden", {"overridden.tests.inherited"}), ("single", {"single.tests"}), ("group", {"group.package.tests.nested.test"}), ], ) def test_eval_tests( tmp_path: Path, package: str, tests: set[str], *, include_tests: bool ) -> None: nixpkgs = real_nixpkgs() fixture = TEST_ROOT / "assets/recursive-tests.nix" (tmp_path / "default.nix").write_text( f"{{ system, ... }}: import {fixture} {{ " f"pkgs = import {nixpkgs} {{ inherit system; config = {{}}; }}; }}" ) config = tmp_path / "config.nix" config.write_text("{}") attrs = tmp_path / "attrs.json" attrs.write_text(json.dumps({current_system(): [package]})) > result = subprocess.run( [ "nix-instantiate", "--eval", "--strict", "--json", "--expr", ( f"builtins.attrNames (import {ROOT / 'nix/evalAttrs.nix'} {{ " f"attr-json = {attrs}; include-tests = {str(include_tests).lower()}; " f"}}).${{builtins.currentSystem}}" ), ], env=os.environ | {"NIX_PATH": f"nixpkgs={tmp_path}", "NIXPKGS_CONFIG": str(config)}, capture_output=True, text=True, check=True, timeout=60, ) tests/test_eval.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = 60, check = True popenargs = (['nix-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c...8/pytest-0/popen-gw4/test_eval_tests_group_tests3_T0/attrs.json; include-tests = true; }).${builtins.currentSystem}'],) kwargs = {'env': {'SHELL': '/nix/store/i1pdjlwb27ki88zssg5q2h696v1r1m15-bash-5.3p20/bin/bash', 'NIX_BUILD_CORES': '24', 'NIX_BI...ore/l5lmf74wrh6waq9knzxcmjiz4d29198w-python3.14-argcomplete-3.7.2/bin', ...}, 'text': True, 'stdout': -1, 'stderr': -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, 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-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c99d1fce3404514a/build/source/nixpkgs_review/nix/evalAttrs.nix { attr-json = /private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw4/test_eval_tests_group_tests3_T0/attrs.json; include-tests = true; }).${builtins.currentSystem}']' returned non-zero exit status 1. /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/lib/python3.14/subprocess.py:578: CalledProcessError _____________________ test_eval_tests[single-tests2-True] ______________________ [gw3] darwin -- Python 3.14.8 /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python tmp_path = PosixPath('/private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw3/test_eval_tests_single_tests2_0') package = 'single', tests = {'single.tests'}, include_tests = True @pytest.mark.parametrize("include_tests", [False, True]) @pytest.mark.parametrize( ("package", "tests"), [ ( "selfReferencing", {"selfReferencing.tests.self", "selfReferencing.tests.nested.test"}, ), ("overridden", {"overridden.tests.inherited"}), ("single", {"single.tests"}), ("group", {"group.package.tests.nested.test"}), ], ) def test_eval_tests( tmp_path: Path, package: str, tests: set[str], *, include_tests: bool ) -> None: nixpkgs = real_nixpkgs() fixture = TEST_ROOT / "assets/recursive-tests.nix" (tmp_path / "default.nix").write_text( f"{{ system, ... }}: import {fixture} {{ " f"pkgs = import {nixpkgs} {{ inherit system; config = {{}}; }}; }}" ) config = tmp_path / "config.nix" config.write_text("{}") attrs = tmp_path / "attrs.json" attrs.write_text(json.dumps({current_system(): [package]})) > result = subprocess.run( [ "nix-instantiate", "--eval", "--strict", "--json", "--expr", ( f"builtins.attrNames (import {ROOT / 'nix/evalAttrs.nix'} {{ " f"attr-json = {attrs}; include-tests = {str(include_tests).lower()}; " f"}}).${{builtins.currentSystem}}" ), ], env=os.environ | {"NIX_PATH": f"nixpkgs={tmp_path}", "NIXPKGS_CONFIG": str(config)}, capture_output=True, text=True, check=True, timeout=60, ) tests/test_eval.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ input = None, capture_output = True, timeout = 60, check = True popenargs = (['nix-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c...8/pytest-0/popen-gw3/test_eval_tests_single_tests2_0/attrs.json; include-tests = true; }).${builtins.currentSystem}'],) kwargs = {'env': {'SHELL': '/nix/store/i1pdjlwb27ki88zssg5q2h696v1r1m15-bash-5.3p20/bin/bash', 'NIX_BUILD_CORES': '24', 'NIX_BI...ore/l5lmf74wrh6waq9knzxcmjiz4d29198w-python3.14-argcomplete-3.7.2/bin', ...}, 'text': True, 'stdout': -1, 'stderr': -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, 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-instantiate', '--eval', '--strict', '--json', '--expr', 'builtins.attrNames (import /private/var/tb/8/scratch/c99d1fce3404514a/build/source/nixpkgs_review/nix/evalAttrs.nix { attr-json = /private/var/tb/8/scratch/c99d1fce3404514a/build/pytest-of-_tribuchetbld8/pytest-0/popen-gw3/test_eval_tests_single_tests2_0/attrs.json; include-tests = true; }).${builtins.currentSystem}']' returned non-zero exit status 1. /nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/lib/python3.14/subprocess.py:578: CalledProcessError =========================== short test summary info ============================ FAILED tests/test_eval.py::test_eval_tests[overridden-tests1-True] - subproce... FAILED tests/test_eval.py::test_eval_tests[selfReferencing-tests0-False] - su... FAILED tests/test_eval.py::test_eval_tests[selfReferencing-tests0-True] - sub... FAILED tests/test_eval.py::test_eval_tests[group-tests3-True] - subprocess.Ca... FAILED tests/test_eval.py::test_eval_tests[single-tests2-True] - subprocess.C... !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 5 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!! =================== 5 failed, 21 passed, 1 skipped in 4.34s ====================