feat: Add delete-old flag to automatically remove old generations #195
Garnix CI / check apply-stable [x86_64-linux]
succeeded
Feb 18, 2024 in 42m 3s
Run results
Build succeeded
Details
Last 100 lines of logs:
�[2malpha # [ 114.980382] sshd[1620]: Accepted publickey for root from 192.168.1.3 port 51818 ssh2: ECDSA SHA256:+oCBm1A1Mzt3CuOnz392raccJznodBlQkGTcQQa5HUg�[0m
�[2malpha # [ 114.982778] sshd[1620]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)�[0m
�[2malpha # [ 114.986386] systemd-logind[718]: New session 25 of user root.�[0m
�[2malpha # [ 114.988419] systemd[1]: Started Session 25 of User root.�[0m
�[2malpha # [ 115.057606] systemd[1]: post-activation-key.service: Deactivated successfully.�[0m
�[2malpha # [ 115.058660] sshd[1620]: Received disconnect from 192.168.1.3 port 51818:11: disconnected by user�[0m
�[2mdeployer # alpha | Uploaded keys (post-activation)�[0m
�[2malpha # [ 115.059890] sshd[1620]: Disconnected from user root 192.168.1.3 port 51818�[0m
�[2mdeployer # | Failed: Child process exited with error code: 1�[0m
�[2malpha # [ 115.060486] sshd[1620]: pam_unix(sshd:session): session closed for user root�[0m
�[2malpha # [ 115.062753] systemd-logind[718]: Session 25 logged out. Waiting for processes to exit.�[0m
�[2malpha # [ 115.063808] systemd[1]: session-25.scope: Deactivated successfully.�[0m
�[2malpha # [ 115.066938] systemd-logind[718]: Removed session 25.�[0m
�[2malpha # [ 115.168736] systemd[1]: post-activation-key.service: Scheduled restart job, restart counter is at 1.�[0m
�[2malpha # [ 115.169328] systemd[1]: Stopped post-activation-key.service.�[0m
�[2malpha # [ 115.169662] systemd[1]: Starting post-activation-key.service...�[0m
�[2malpha # [ 115.175799] post-activation-key-pre-start[1630]: flapped down�[0m
�[2malpha # [ 115.176143] systemd[1]: post-activation-key.service: Found left-over process 1631 (post-activation) in control group while starting unit. Ignoring.�[0m
�[2malpha # [ 115.176757] systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.�[0m
�[2malpha # [ 115.177298] systemd[1]: Started post-activation-key.service.�[0m
�[2mdeployer # [ERROR] Failed to push system closure to beta - Last 5 lines of logs:�[0m
�[2mdeployer # [ERROR] created)�[0m
�[2mdeployer # [ERROR] state) Running�[0m
�[2mdeployer # [ERROR] stderr) ssh: connect to host beta port 22: Connection refused�[0m
�[2mdeployer # [ERROR] stderr) error: cannot connect to 'root@beta'�[0m
�[2mdeployer # [ERROR] failure) Child process exited with error code: 1�[0m
�[2mdeployer # [ERROR] Failed to complete requested operation - Last 1 lines of logs:�[0m
�[2mdeployer # [ERROR] failure) Child process exited with error code: 1�[0m
�[2mdeployer # [ERROR] -----�[0m
�[2mdeployer # [ERROR] Operation failed with error: Child process exited with error code: 1�[0m
�[2mdeployer # Hint: Backtrace available - Use `RUST_BACKTRACE=1` environment variable to display a backtrace�[0m
(finished: must fail: cd /tmp/bundle &&/nix/store/6zs85v5b7qkd9byqzzwclzgzx1l4316y-colmena-0.5.0-pre/bin/colmena apply --evaluator chunked --eval-node-limit 4 --on @target, in 19.27 seconds)
alpha: �[1m�[32mmust succeed: grep SECOND /etc/deployment�[0m
(finished: must succeed: grep SECOND /etc/deployment, in 0.01 seconds)
beta: �[1m�[32mmust succeed: grep FIRST /etc/deployment�[0m
(finished: must succeed: grep FIRST /etc/deployment, in 0.01 seconds)
gamma: �[1m�[32mmust succeed: grep SECOND /etc/deployment�[0m
(finished: must succeed: grep SECOND /etc/deployment, in 0.01 seconds)
(finished: subtest: Check that we can correctly deploy to remaining nodes despite failures, in 19.32 seconds)
�[1m�[32msubtest: Check that key contents are not in the Nix store�[0m
deployer: �[1m�[32mmust succeed: ls /nix/store�[0m
(finished: must succeed: ls /nix/store, in 0.02 seconds)
deployer: 785 store paths were created
(finished: subtest: Check that key contents are not in the Nix store, in 0.24 seconds)
�[1m�[32msubtest: Check that our Nix store test is actually working�[0m
deployer: �[1m�[32mmust succeed: nix-build -E 'with import <nixpkgs> {}; writeText "forbidden-text.txt" "this must not appear in the nix store"'�[0m
�[2mdeployer # this derivation will be built:�[0m
�[2mdeployer # /nix/store/k93774d6hwh91zqdnwbssgbgairq545x-forbidden-text.txt.drv�[0m
�[2mdeployer # building '/nix/store/k93774d6hwh91zqdnwbssgbgairq545x-forbidden-text.txt.drv'...�[0m
(finished: must succeed: nix-build -E 'with import <nixpkgs> {}; writeText "forbidden-text.txt" "this must not appear in the nix store"', in 0.24 seconds)
deployer: �[1m�[32mmust succeed: ls /nix/store�[0m
(finished: must succeed: ls /nix/store, in 0.02 seconds)
deployer: 787 store paths were created
deployer: �[1m�[32mmust succeed: grep -r 'this must not appear in the nix store' /nix/store/w66bshwgnz3is7js2q2wrki19d5qpn9q-setup-hook.sh /nix/store/kvb98d2p5f4nidl5mfjj94f8ldjy239j-config.fish.appendix.drv /nix/store/rnpgm6lqv4yrvjllq07w4pjca7ks3snz-matplotlib-3.7.0.tar.gz.drv /nix/store/hlg8v2szxiv1nqnirjpamrr88lyvvzlm-yapf-0.32.0.tar.gz.drv /nix/store/9ayql65yy8rvv37xkx45qwjl8xp0i0mn-etc.drv /nix/store/i2bncb278bm62zi2mvyqn5pnpy26mhjq-c6ceb84c221b5094f1e8a4c0c247dee3fb5074e8.patch.drv /nix/store/rj5yxi00q5vmkm5rh9i9jyqaj7vfkvv3-python3.10-sphinx-hook.drv /nix/store/vpgdyv623wbjb0v7bab3jwlirhkmabd7-python3.10-wrapt-1.14.1.drv /nix/store/c…
(finished: must succeed: grep -r 'this must not appear in the nix store' /nix/store/w66bshwgnz3is7js2q2wrki19d5qpn9q-setup-hook.sh /nix/store/kvb98d2p5f4nidl5mfjj94f8ldjy239j-config.fish.appendix.drv /nix/store/rnpgm6lqv4yrvjllq07w4pjca7ks3snz-matplotlib-3.7.0.tar.gz.drv /nix/store/hlg8v2szxiv1nqnirjpamrr88lyvvzlm-yapf-0.32.0.tar.gz.drv /nix/store/9ayql65yy8rvv37xkx45qwjl8xp0i0mn-etc.drv /nix/store/i2bncb278bm62zi2mvyqn5pnpy26mhjq-c6ceb84c221b5094f1e8a4c0c247dee3fb5074e8.patch.drv /nix/store/rj5yxi00q5vmkm5rh9i9jyqaj7vfkvv3-python3.10-sphinx-hook.drv /nix/store/vpgdyv623wbjb0v7bab3jwlirhkmabd7-python3.10-wrapt-1.14.1.drv /nix/store/c2js2ind7…
(finished: subtest: Check that our Nix store test is actually working, in 0.47 seconds)
�[1m�[32msubtest: Check that we can build nodes with dots in their names�[0m
deployer: �[1m�[32mmust succeed: cd /tmp/bundle &&/nix/store/6zs85v5b7qkd9byqzzwclzgzx1l4316y-colmena-0.5.0-pre/bin/colmena build --evaluator chunked --eval-node-limit 4 --on gamma.tld�[0m
�[2mdeployer # [INFO ] Using configuration: /tmp/bundle/hive.nix�[0m
�[2mdeployer # [INFO ] Enumerating nodes...�[0m
�[2mdeployer # [INFO ] Selected 1 out of 5 hosts.�[0m
�[2mdeployer # gamma.tld | Evaluating gamma.tld�[0m
�[2mgamma # [ 119.536738] systemd[1]: Stopping User Manager for UID 0...�[0m
�[2mgamma # [ 119.539307] systemd[1316]: Activating special unit Exit the Session...�[0m
�[2mgamma # [ 119.539680] systemd[1316]: Stopped target Main User Target.�[0m
�[2mgamma # [ 119.542815] systemd[1316]: Stopped target Basic System.�[0m
�[2mgamma # [ 119.543309] systemd[1316]: Stopped target Paths.�[0m
�[2mgamma # [ 119.543573] systemd[1316]: Stopped target Sockets.�[0m
�[2mgamma # [ 119.543901] systemd[1316]: Stopped target Timers.�[0m
�[2mgamma # [ 119.545490] systemd[1316]: Closed D-Bus User Message Bus Socket.�[0m
�[2mgamma # [ 119.545833] systemd[1316]: Removed slice User Application Slice.�[0m
�[2mgamma # [ 119.548087] systemd[1316]: Reached target Shutdown.�[0m
�[2mgamma # [ 119.548407] systemd[1316]: Finished Exit the Session.�[0m
�[2mgamma # [ 119.548729] systemd[1316]: Reached target Exit the Session.�[0m
�[2mgamma # [ 119.549229] systemd[1]: user@0.service: Deactivated successfully.�[0m
�[2mgamma # [ 119.549608] systemd[1]: Stopped User Manager for UID 0.�[0m
�[2mgamma # [ 119.556155] systemd[1]: Stopping User Runtime Directory /run/user/0...�[0m
�[2mgamma # [ 119.563785] systemd[1]: run-user-0.mount: Deactivated successfully.�[0m
�[2mgamma # [ 119.566614] systemd[1]: user-runtime-dir@0.service: Deactivated successfully.�[0m
�[2mgamma # [ 119.568324] systemd[1]: Stopped User Runtime Directory /run/user/0.�[0m
�[2mdeployer # gamma.tld | Evaluated gamma.tld�[0m
�[2mdeployer # gamma.tld | Building gamma.tld�[0m
�[2mdeployer # gamma.tld | /nix/store/8c1qb58pbq0nwi9pkvfml89hw6hrdgp5-nixos-system-gamma-23.05pre-git�[0m
�[2mdeployer # gamma.tld | Built "/nix/store/8c1qb58pbq0nwi9pkvfml89hw6hrdgp5-nixos-system-gamma-23.05pre-git"�[0m
�[2mdeployer # | All done!�[0m
(finished: must succeed: cd /tmp/bundle &&/nix/store/6zs85v5b7qkd9byqzzwclzgzx1l4316y-colmena-0.5.0-pre/bin/colmena build --evaluator chunked --eval-node-limit 4 --on gamma.tld, in 5.41 seconds)
(finished: subtest: Check that we can build nodes with dots in their names, in 5.41 seconds)
(finished: run the VM test script, in 123.21 seconds)
test script finished in 123.26s
�[1m�[32mcleanup�[0m
kill machine (pid 8)
�[2malpha # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/bc45k1n0pkrdkr3xa6w84w1xhkl1kkyp-python3-3.10.12/bin/python3.10)�[0m
kill machine (pid 19)
�[2mbeta # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/bc45k1n0pkrdkr3xa6w84w1xhkl1kkyp-python3-3.10.12/bin/python3.10)�[0m
kill machine (pid 30)
�[2mdeployer # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/bc45k1n0pkrdkr3xa6w84w1xhkl1kkyp-python3-3.10.12/bin/python3.10)�[0m
kill machine (pid 41)
�[2mgamma # qemu-kvm: terminating on signal 15 from pid 6 (/nix/store/bc45k1n0pkrdkr3xa6w84w1xhkl1kkyp-python3-3.10.12/bin/python3.10)�[0m
(finished: cleanup, in 0.39 seconds)
kill vlan (pid 7)
Loading