Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add delete-old flag to automatically remove old generations #195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

feat: Add delete-old flag to automatically remove old generations

d7bc9ff
Select commit
Loading
Failed to load commit list.
Open

feat: Add delete-old flag to automatically remove old generations #195

feat: Add delete-old flag to automatically remove old generations
d7bc9ff
Select commit
Loading
Failed to load commit list.
Garnix CI / check flakes [x86_64-linux] succeeded Feb 18, 2024 in 40m 35s

Run results

Build succeeded

Details

Last 100 lines of logs:

�[2mdeployer # alpha | building '/nix/store/2n75qlwjg6zjbm61i5igca0qnbj7bvny-etc-deployment.drv'...�[0m
�[2mdeployer # alpha | building '/nix/store/gwdmn1dzcbfncxx1cbvv2cm0dbsix0lr-etc.drv'...�[0m
�[2mdeployer # alpha | building '/nix/store/4nsagx7yxn1dkxvldmyi28walz6ixdjy-nixos-system-alpha-23.11pre-git.drv'...�[0m
�[2mdeployer # alpha | /nix/store/c4gs88p484m2lrl5awzdi4sdigsl3wyj-nixos-system-alpha-23.11pre-git�[0m
�[2mdeployer # alpha | Built "/nix/store/c4gs88p484m2lrl5awzdi4sdigsl3wyj-nixos-system-alpha-23.11pre-git"�[0m
�[2mdeployer # alpha | Pushing system closure�[0m
�[2malpha # [  116.323759] sshd[1399]: Accepted publickey for root from 192.168.1.2 port 48656 ssh2: ECDSA SHA256:+oCBm1A1Mzt3CuOnz392raccJznodBlQkGTcQQa5HUg�[0m
�[2malpha # [  116.329624] sshd[1399]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)�[0m
�[2malpha # [  116.345040] systemd-logind[763]: New session 10 of user root.�[0m
�[2malpha # [  116.354939] systemd[1]: Starting User Runtime Directory /run/user/0...�[0m
�[2malpha # [  116.388106] systemd[1]: Finished User Runtime Directory /run/user/0.�[0m
�[2malpha # [  116.395487] systemd[1]: Starting User Manager for UID 0...�[0m
�[2malpha # [  116.408792] (systemd)[1404]: pam_unix(systemd-user:session): session opened for user root(uid=0) by (uid=0)�[0m
�[2malpha # [  116.560048] systemd[1404]: Queued start job for default target Main User Target.�[0m
�[2malpha # [  116.565741] systemd[1404]: Created slice User Application Slice.�[0m
�[2malpha # [  116.567079] systemd[1404]: Reached target Paths.�[0m
�[2malpha # [  116.567650] systemd[1404]: Reached target Timers.�[0m
�[2malpha # [  116.571864] systemd[1404]: Starting D-Bus User Message Bus Socket...�[0m
�[2malpha # [  116.588298] systemd[1404]: Listening on D-Bus User Message Bus Socket.�[0m
�[2malpha # [  116.589256] systemd[1404]: Reached target Sockets.�[0m
�[2malpha # [  116.589834] systemd[1404]: Reached target Basic System.�[0m
�[2malpha # [  116.592116] systemd[1]: Started User Manager for UID 0.�[0m
�[2malpha # [  116.592876] systemd[1404]: Run user-specific NixOS activation was skipped because of an unmet condition check (ConditionUser=!@system).�[0m
�[2malpha # [  116.599177] systemd[1404]: Reached target Main User Target.�[0m
�[2malpha # [  116.600108] systemd[1404]: Startup finished in 160ms.�[0m
�[2malpha # [  116.600876] systemd[1]: Started Session 10 of User root.�[0m
�[2mdeployer # alpha | �[K�[Kcopying 3 paths...�[0m
�[2mdeployer # alpha | copying path '/nix/store/znwfbmsp03xnrfkd03nzr28w16ixcxm5-etc-deployment' to 'ssh-ng://root@alpha'...�[0m
�[2mdeployer # alpha | copying path '/nix/store/gl11jnkf3jcpda3yn17a862fx1xpjy7c-etc' to 'ssh-ng://root@alpha'...�[0m
�[2mdeployer # alpha | copying path '/nix/store/c4gs88p484m2lrl5awzdi4sdigsl3wyj-nixos-system-alpha-23.11pre-git' to 'ssh-ng://root@alpha'...�[0m
�[2malpha # [  116.747655] sshd[1399]: pam_unix(sshd:session): session closed for user root�[0m
�[2malpha # [  116.757531] systemd-logind[763]: Session 10 logged out. Waiting for processes to exit.�[0m
�[2mdeployer # alpha | Pushed system closure�[0m
�[2mdeployer # alpha | No pre-activation keys to upload�[0m
�[2mdeployer # alpha | Activating system profile�[0m
�[2malpha # [  116.775766] systemd[1]: session-10.scope: Deactivated successfully.�[0m
�[2malpha # [  116.779586] systemd-logind[763]: Removed session 10.�[0m
�[2malpha # [  117.002519] sshd[1440]: Accepted publickey for root from 192.168.1.2 port 48658 ssh2: ECDSA SHA256:+oCBm1A1Mzt3CuOnz392raccJznodBlQkGTcQQa5HUg�[0m
�[2malpha # [  117.008329] sshd[1440]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)�[0m
�[2malpha # [  117.017457] systemd-logind[763]: New session 12 of user root.�[0m
�[2malpha # [  117.022179] systemd[1]: Started Session 12 of User root.�[0m
�[2malpha # [  117.145773] sshd[1440]: Received disconnect from 192.168.1.2 port 48658:11: disconnected by user�[0m
�[2malpha # [  117.147113] sshd[1440]: Disconnected from user root 192.168.1.2 port 48658�[0m
�[2malpha # [  117.148784] sshd[1440]: pam_unix(sshd:session): session closed for user root�[0m
�[2malpha # [  117.154610] systemd-logind[763]: Session 12 logged out. Waiting for processes to exit.�[0m
�[2malpha # [  117.157568] systemd[1]: session-12.scope: Deactivated successfully.�[0m
�[2malpha # [  117.160976] systemd-logind[763]: Removed session 12.�[0m
�[2malpha # [  117.378820] sshd[1444]: Accepted publickey for root from 192.168.1.2 port 48672 ssh2: ECDSA SHA256:+oCBm1A1Mzt3CuOnz392raccJznodBlQkGTcQQa5HUg�[0m
�[2malpha # [  117.384260] sshd[1444]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)�[0m
�[2malpha # [  117.392654] systemd-logind[763]: New session 13 of user root.�[0m
�[2malpha # [  117.395506] systemd[1]: Started Session 13 of User root.�[0m
�[2mdeployer # alpha | Warning: do not know how to make this configuration bootable; please enable a boot loader.�[0m
�[2malpha # [  117.961094] nixos[1446]: �[0;1;39mswitching to system configuration /nix/store/c4gs88p484m2lrl5awzdi4sdigsl3wyj-nixos-system-alpha-23.11pre-git�[0m�[0m
�[2malpha # [  117.984634] systemd[1]: Stopped target Local File Systems.�[0m
�[2malpha # [  117.987301] systemd[1]: Stopped target All Network Interfaces (deprecated).�[0m
�[2malpha # [  117.989620] systemd[1]: Stopped target Remote File Systems.�[0m
�[2mdeployer # alpha | activating the configuration...�[0m
�[2mdeployer # alpha | setting up /etc...�[0m
�[2malpha # [  118.797637] systemd[1]: Reloading requested from client PID 1575 ('systemctl') (unit session-13.scope)...�[0m
�[2malpha # [  118.800434] systemd[1]: Reloading...�[0m
�[2malpha # [  119.181092] systemd[1]: Reloading finished in 379 ms.�[0m
�[2mdeployer # alpha | reloading user units for root...�[0m
�[2malpha # [  119.285401] su[1598]: Successful su for root by root�[0m
�[2malpha # [  119.288411] su[1598]: pam_unix(su:session): session opened for user root(uid=0) by (uid=0)�[0m
�[2malpha # [  119.317605] systemd[1404]: Reexecuting requested from client PID 1600 ('systemctl')...�[0m
�[2malpha # [  119.337145] systemd[1404]: �[0;1;39mReexecuting.�[0m�[0m
�[2malpha # [  119.536195] systemd[1404]: Run user-specific NixOS activation was skipped because of an unmet condition check (ConditionUser=!@system).�[0m
�[2malpha # [  119.542468] su[1598]: pam_unix(su:session): session closed for user root�[0m
�[2mdeployer # alpha | setting up tmpfiles�[0m
�[2malpha # [  119.638664] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).�[0m
�[2malpha # [  119.641446] systemd[1]: Reached target Local File Systems.�[0m
�[2malpha # [  119.644857] systemd[1]: Reached target Remote File Systems.�[0m
�[2malpha # [  119.651987] systemd[1]: Reached target All Network Interfaces (deprecated).�[0m
�[2malpha # [  119.658682] systemd[1]: Starting Load Kernel Module efi_pstore...�[0m
�[2malpha # [  119.672525] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.�[0m
�[2malpha # [  119.681269] systemd[1]: Finished Load Kernel Module efi_pstore.�[0m
�[2malpha # [  119.682262] systemd[1]: Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).�[0m
�[2malpha # [  119.732925] nixos[1446]: �[0;1;39mfinished switching to system configuration /nix/store/c4gs88p484m2lrl5awzdi4sdigsl3wyj-nixos-system-alpha-23.11pre-git�[0m�[0m
�[2malpha # [  119.745957] sshd[1444]: Received disconnect from 192.168.1.2 port 48672:11: disconnected by user�[0m
�[2mdeployer # alpha | Activation successful�[0m
�[2mdeployer # alpha | No post-activation keys to upload�[0m
�[2mdeployer #       | All done!�[0m
�[2malpha # [  119.747619] sshd[1444]: Disconnected from user root 192.168.1.2 port 48672�[0m
�[2malpha # [  119.749695] sshd[1444]: pam_unix(sshd:session): session closed for user root�[0m
�[2malpha # [  119.756302] systemd-logind[763]: Session 13 logged out. Waiting for processes to exit.�[0m
�[2malpha # [  119.759273] systemd[1]: session-13.scope: Deactivated successfully.�[0m
�[2malpha # [  119.763348] systemd-logind[763]: Removed session 13.�[0m
(finished: must succeed: cd /tmp/bundle && /nix/store/9gw7im3iapqj9nf75n40ajfrqq0lwl84-colmena-0.5.0-pre/bin/colmena apply --on @target --evaluator chunked --impure, in 14.13 seconds)
alpha: �[1m�[32mmust succeed: grep deployer /etc/deployment�[0m
(finished: must succeed: grep deployer /etc/deployment, in 0.02 seconds)
(finished: subtest: Check that impure expressions can be allowed with --impure, in 14.15 seconds)
(finished: run the VM test script, in 121.17 seconds)
test script finished in 121.25s
�[1m�[32mcleanup�[0m
kill machine (pid 8)
�[2malpha # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/pzf6dnxg8gf04xazzjdwarm7s03cbrgz-python3-3.10.12/bin/python3.10)�[0m
kill machine (pid 28)
�[2mdeployer # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/pzf6dnxg8gf04xazzjdwarm7s03cbrgz-python3-3.10.12/bin/python3.10)�[0m
(finished: cleanup, in 0.15 seconds)
kill vlan (pid 7)