nixos-rebuild-ng-26.11
aarch64-darwin.package-default
· build #52
· 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/4cs00jpx30zacss8a0dl5lmfck4d56is-src17source root is src18setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "src/tests/test_utils.py"configurePhase
19no configure script, doing nothingbuildPhase
20Executing pypaBuildPhase21Creating a wheel...22pypa build flags: --no-isolation --outdir dist/ --wheel23* Getting build dependencies for wheel...24running egg_info25creating nixos_rebuild.egg-info26writing nixos_rebuild.egg-info/PKG-INFO27writing dependency_links to nixos_rebuild.egg-info/dependency_links.txt28writing entry points to nixos_rebuild.egg-info/entry_points.txt29writing top-level names to nixos_rebuild.egg-info/top_level.txt30writing manifest file 'nixos_rebuild.egg-info/SOURCES.txt'31reading manifest file 'nixos_rebuild.egg-info/SOURCES.txt'32writing manifest file 'nixos_rebuild.egg-info/SOURCES.txt'33* Building wheel...34running bdist_wheel35running build36running build_py37creating build/lib/nixos_rebuild38copying nixos_rebuild/services.py -> build/lib/nixos_rebuild39copying nixos_rebuild/nix.py -> build/lib/nixos_rebuild40copying nixos_rebuild/models.py -> build/lib/nixos_rebuild41copying nixos_rebuild/constants.py -> build/lib/nixos_rebuild42copying nixos_rebuild/tmpdir.py -> build/lib/nixos_rebuild43copying nixos_rebuild/__init__.py -> build/lib/nixos_rebuild44copying nixos_rebuild/utils.py -> build/lib/nixos_rebuild45copying nixos_rebuild/elevate.py -> build/lib/nixos_rebuild46copying nixos_rebuild/process.py -> build/lib/nixos_rebuild47copying nixos_rebuild/__main__.py -> build/lib/nixos_rebuild48running egg_info49writing nixos_rebuild.egg-info/PKG-INFO50writing dependency_links to nixos_rebuild.egg-info/dependency_links.txt51writing entry points to nixos_rebuild.egg-info/entry_points.txt52writing top-level names to nixos_rebuild.egg-info/top_level.txt53reading manifest file 'nixos_rebuild.egg-info/SOURCES.txt'54writing manifest file 'nixos_rebuild.egg-info/SOURCES.txt'55copying nixos_rebuild/repl.nix.template -> build/lib/nixos_rebuild56installing to build/bdist.macosx-14.0-arm64/wheel57running install58running install_lib59creating build/bdist.macosx-14.0-arm64/wheel60creating build/bdist.macosx-14.0-arm64/wheel/nixos_rebuild61copying build/lib/nixos_rebuild/services.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild62copying build/lib/nixos_rebuild/nix.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild63copying build/lib/nixos_rebuild/models.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild64copying build/lib/nixos_rebuild/constants.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild65copying build/lib/nixos_rebuild/tmpdir.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild66copying build/lib/nixos_rebuild/__init__.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild67copying build/lib/nixos_rebuild/repl.nix.template -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild68copying build/lib/nixos_rebuild/utils.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild69copying build/lib/nixos_rebuild/elevate.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild70copying build/lib/nixos_rebuild/process.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild71copying build/lib/nixos_rebuild/__main__.py -> build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild72running install_egg_info73Copying nixos_rebuild.egg-info to build/bdist.macosx-14.0-arm64/wheel/./nixos_rebuild-0.0.0-py3.14.egg-info74running install_scripts75creating build/bdist.macosx-14.0-arm64/wheel/nixos_rebuild-0.0.0.dist-info/WHEEL76creating '/nix/var/nix/builds/nix-49529-2157278523/src/dist/.tmp-kdvgtfmr/nixos_rebuild-0.0.0-py3-none-any.whl' and adding 'build/bdist.macosx-14.0-arm64/wheel' to it77adding 'nixos_rebuild/__init__.py'78adding 'nixos_rebuild/__main__.py'79adding 'nixos_rebuild/constants.py'80adding 'nixos_rebuild/elevate.py'81adding 'nixos_rebuild/models.py'82adding 'nixos_rebuild/nix.py'83adding 'nixos_rebuild/process.py'84adding 'nixos_rebuild/repl.nix.template'85adding 'nixos_rebuild/services.py'86adding 'nixos_rebuild/tmpdir.py'87adding 'nixos_rebuild/utils.py'88adding 'nixos_rebuild-0.0.0.dist-info/METADATA'89adding 'nixos_rebuild-0.0.0.dist-info/WHEEL'90adding 'nixos_rebuild-0.0.0.dist-info/entry_points.txt'91adding 'nixos_rebuild-0.0.0.dist-info/top_level.txt'92adding 'nixos_rebuild-0.0.0.dist-info/RECORD'93removing build/bdist.macosx-14.0-arm64/wheel94Successfully built nixos_rebuild-0.0.0-py3-none-any.whl95Finished creating a wheel...96Finished executing pypaBuildPhasepythonRuntimeDepsCheckHook
97Executing pythonRuntimeDepsCheck98Checking runtime dependencies for nixos_rebuild-0.0.0-py3-none-any.whl99Finished executing pythonRuntimeDepsCheckinstallPhase
100Executing pypaInstallPhase101Successfully installed nixos_rebuild-0.0.0-py3-none-any.whl102Finished executing pypaInstallPhasepythonOutputDistPhase
103Executing pythonOutputDistPhase104Finished executing pythonOutputDistPhasefixupPhase
105checking for references to /nix/var/nix/builds/nix-49529-2157278523/ in /nix/store/qlld05p0aiqxqixp4is018kaw1zl58qq-nixos-rebuild-ng-26.11...106gzipping man pages under /nix/store/qlld05p0aiqxqixp4is018kaw1zl58qq-nixos-rebuild-ng-26.11/share/man/107patching script interpreter paths in /nix/store/qlld05p0aiqxqixp4is018kaw1zl58qq-nixos-rebuild-ng-26.11108stripping (with command strip and flags -S) in /nix/store/qlld05p0aiqxqixp4is018kaw1zl58qq-nixos-rebuild-ng-26.11/lib /nix/store/qlld05p0aiqxqixp4is018kaw1zl58qq-nixos-rebuild-ng-26.11/bin109checking for references to /nix/var/nix/builds/nix-49529-2157278523/ in /nix/store/w71x7mzc90ks4l9shffyiz043rsdakw6-nixos-rebuild-ng-26.11-dist...110patching script interpreter paths in /nix/store/w71x7mzc90ks4l9shffyiz043rsdakw6-nixos-rebuild-ng-26.11-dist111Rewriting #!/nix/store/llk2h8rxqzv7zh53bi413ffibjrxskxw-python3-3.14.6/bin/python3.14 to #!/nix/store/llk2h8rxqzv7zh53bi413ffibjrxskxw-python3-3.14.6112wrapping `/nix/store/qlld05p0aiqxqixp4is018kaw1zl58qq-nixos-rebuild-ng-26.11/bin/nixos-rebuild'...113Executing pythonRemoveTestsDir114Finished executing pythonRemoveTestsDirinstallCheckPhase
115no Makefile or custom installCheckPhase, doing nothingpythonImportsCheckPhase
116Executing pythonImportsCheckPhasepytestCheckPhase
117Executing pytestCheckPhase118pytest flags: -m pytest -vv119============================= test session starts ==============================120platform darwin -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0 -- /nix/store/llk2h8rxqzv7zh53bi413ffibjrxskxw-python3-3.14.6/bin/python3.14121cachedir: .pytest_cache122rootdir: /nix/var/nix/builds/nix-49529-2157278523/src123configfile: pyproject.toml124collected 72 items 125126tests/test_elevate.py::test_no_elevator PASSED [ 1%]127tests/test_elevate.py::test_sudo_elevator PASSED [ 2%]128tests/test_elevate.py::test_sudo_elevator_extra_opts PASSED [ 4%]129tests/test_elevate.py::test_run0_elevator PASSED [ 5%]130tests/test_elevate.py::test_run0_elevator_remote PASSED [ 6%]131tests/test_elevate.py::test_run0_for_target_config PASSED [ 8%]132tests/test_elevate.py::test_elevator_kind PASSED [ 9%]133tests/test_elevate.py::test_with_prompted_password PASSED [ 11%]134tests/test_main.py::test_parse_args_elevate PASSED [ 12%]135tests/test_main.py::test_parse_args PASSED [ 13%]136tests/test_main.py::test_execute_nix_boot PASSED [ 15%]137tests/test_main.py::test_execute_nix_build PASSED [ 16%]138tests/test_main.py::test_execute_nix_build_vm PASSED [ 18%]139tests/test_main.py::test_execute_nix_build_image_flake PASSED [ 19%]140tests/test_main.py::test_execute_nix_switch_flake PASSED [ 20%]141tests/test_main.py::test_execute_nix_switch_build_target_host PASSED [ 22%]142tests/test_main.py::test_execute_nix_switch_flake_target_host PASSED [ 23%]143tests/test_main.py::test_execute_nix_switch_flake_build_host PASSED [ 25%]144tests/test_main.py::test_execute_switch_rollback PASSED [ 26%]145tests/test_main.py::test_execute_build PASSED [ 27%]146tests/test_main.py::test_execute_build_dry_run_build_and_target_remote PASSED [ 29%]147tests/test_main.py::test_execute_test_flake PASSED [ 30%]148tests/test_main.py::test_execute_test_rollback PASSED [ 31%]149tests/test_main.py::test_execute_switch_store_path PASSED [ 33%]150tests/test_main.py::test_execute_switch_store_path_target_host PASSED [ 34%]151tests/test_models.py::test_build_attr_from_arg PASSED [ 36%]152tests/test_models.py::test_build_attr_to_attr PASSED [ 37%]153tests/test_models.py::test_flake_parse PASSED [ 38%]154tests/test_models.py::test_flake_to_attr PASSED [ 40%]155tests/test_models.py::test_flake__str__ PASSED [ 41%]156tests/test_models.py::test_flake_resolve_path_if_exists PASSED [ 43%]157tests/test_models.py::test_flake_from_arg PASSED [ 44%]158tests/test_models.py::test_profile_from_arg PASSED [ 45%]159tests/test_models.py::test_grouped_nix_args_flake_build_flags PASSED [ 47%]160tests/test_nix.py::test_build PASSED [ 48%]161tests/test_nix.py::test_build_flake PASSED [ 50%]162tests/test_nix.py::test_build_remote PASSED [ 51%]163tests/test_nix.py::test_build_remote_flake PASSED [ 52%]164tests/test_nix.py::test_copy_closure PASSED [ 54%]165tests/test_nix.py::test_edit PASSED [ 55%]166tests/test_nix.py::test_edit_flake PASSED [ 56%]167tests/test_nix.py::test_get_build_image_variants PASSED [ 58%]168tests/test_nix.py::test_get_build_image_variants_flake PASSED [ 59%]169tests/test_nix.py::test_get_nixpkgs_rev PASSED [ 61%]170tests/test_nix.py::test_get_generations PASSED [ 62%]171tests/test_nix.py::test_get_generations_with_profile PASSED [ 63%]172tests/test_nix.py::test_get_generations_from_nix_env PASSED [ 65%]173tests/test_nix.py::test_list_generations PASSED [ 66%]174tests/test_nix.py::test_diff_closures PASSED [ 68%]175tests/test_nix.py::test_repl PASSED [ 69%]176tests/test_nix.py::test_repl_flake PASSED [ 70%]177tests/test_nix.py::test_rollback PASSED [ 72%]178tests/test_nix.py::test_rollback_temporary_profile PASSED [ 73%]179tests/test_nix.py::test_set_profile PASSED [ 75%]180tests/test_nix.py::test_switch_to_configuration_without_systemd_run PASSED [ 76%]181tests/test_nix.py::test_switch_to_configuration_without_systemd_run_env_var PASSED [ 77%]182tests/test_nix.py::test_switch_to_configuration_with_systemd_run PASSED [ 79%]183tests/test_nix.py::test_upgrade_channels PASSED [ 80%]184tests/test_process.py::test_remote_env_shell_argv PASSED [ 81%]185tests/test_process.py::test_run_wrapper PASSED [ 83%]186tests/test_process.py::test__kill_long_running_ssh_process PASSED [ 84%]187tests/test_process.py::test_remote_from_name PASSED [ 86%]188tests/test_process.py::test_ssh_host PASSED [ 87%]189tests/test_process.py::test_run_wrapper_run0 PASSED [ 88%]190tests/test_process.py::test_custom_sudo_args PASSED [ 90%]191tests/test_services.py::test_reexec PASSED [ 91%]192tests/test_services.py::test_reexec_flake PASSED [ 93%]193tests/test_services.py::test_reexec_skip_if_already_reexec PASSED [ 94%]194tests/test_tmpdir.py::test_make_tmpdir FAILED [ 95%]195tests/test_utils.py::test_dict_to_flags PASSED [ 97%]196tests/test_utils.py::test_remap_dicts PASSED [ 98%]197tests/test_utils.py::test_tabulate PASSED [100%]198199=================================== FAILURES ===================================200_______________________________ test_make_tmpdir _______________________________201202 def test_make_tmpdir() -> None:203 # Basic test: whatever the default system temp dir happens to be.204 tmpdir = make_tmpdir()205 tmp = Path(tmpdir.name)206 assert tmp.exists()207 assert tmp.is_dir()208 assert len(os.fsencode(str(tmp))) <= MAX_TMPDIR_LENGTH209 210 # Test with a short system temp dir. We should use it unmodified.211> with system_tempdir(Path("/tmp/not-too-long")):212 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^213214tests/test_tmpdir.py:39: 215_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 216/nix/store/llk2h8rxqzv7zh53bi413ffibjrxskxw-python3-3.14.6/lib/python3.14/contextlib.py:141: in __enter__217 return next(self.gen)218 ^^^^^^^^^^^^^^219_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220221path = PosixPath('/tmp/not-too-long')222223 @contextlib.contextmanager224 def system_tempdir(path: Path) -> typing.Generator[None]:225 path.mkdir(exist_ok=True)226 227 # `tempfile` caches the tempdir, you must clear it for it to recompute.228 tempfile.tempdir = None229 230 og_tmpdir = os.environ.get("TMPDIR")231 232 try:233 os.environ["TMPDIR"] = str(path)234> assert Path(tempfile.gettempdir()) == path235E AssertionError: assert PosixPath('/nix/var/nix/builds/nix-49529-2157278523') == PosixPath('/tmp/not-too-long')236E + where PosixPath('/nix/var/nix/builds/nix-49529-2157278523') = Path('/nix/var/nix/builds/nix-49529-2157278523')237E + where '/nix/var/nix/builds/nix-49529-2157278523' = <function gettempdir at 0x107b4cbf0>()238E + where <function gettempdir at 0x107b4cbf0> = tempfile.gettempdir239240tests/test_tmpdir.py:21: AssertionError241------------------------------ Captured log call -------------------------------242DEBUG nixos_rebuild.tmpdir:tmpdir.py:69 tempdir '<TemporaryDirectory '/nix/var/nix/builds/nix-49529-2157278523/nixos-rebuild.7m4w3sjt'>' exceeds 45 bytes limit, defaulting to '<TemporaryDirectory '/tmp/nixos-rebuild.valn8gjx'>' instead243=========================== short test summary info ============================244FAILED tests/test_tmpdir.py::test_make_tmpdir - AssertionError: assert PosixPath('/nix/var/nix/builds/nix-49529-2157278523') == PosixPath('/tmp/not-too-long')245 + where PosixPath('/nix/var/nix/builds/nix-49529-2157278523') = Path('/nix/var/nix/builds/nix-49529-2157278523')246 + where '/nix/var/nix/builds/nix-49529-2157278523' = <function gettempdir at 0x107b4cbf0>()247 + where <function gettempdir at 0x107b4cbf0> = tempfile.gettempdir248========================= 1 failed, 71 passed in 0.22s =========================