deploy-rs icon indicating copy to clipboard operation
deploy-rs copied to clipboard

Checks are repeated several times

Open munnik opened this issue 8 months ago â€ĸ 2 comments

Is this normal behavior? Checks are repeated several times. It looks like it is doing it for every target, but I'm not 100% sure about that. It takes quite some time to do a deployment.

deploy --targets .#hetzner-otap01 .#hetzner-prod01 .#rdm-otap01
🚀 â„šī¸ [deploy] [INFO] Running checks for flake in .
warning: Git tree '/home/munnik/Code/nixos-sustainablemotion.io' is dirty
warning: unknown flake output 'deploy'
warning: The check omitted these incompatible systems: aarch64-darwin, aarch64-linux, x86_64-darwin
Use '--all-systems' to check all.
🚀 â„šī¸ [deploy] [INFO] Running checks for flake in .
warning: Git tree '/home/munnik/Code/nixos-sustainablemotion.io' is dirty
warning: unknown flake output 'deploy'
warning: The check omitted these incompatible systems: aarch64-darwin, aarch64-linux, x86_64-darwin
Use '--all-systems' to check all.
🚀 â„šī¸ [deploy] [INFO] Running checks for flake in .
warning: Git tree '/home/munnik/Code/nixos-sustainablemotion.io' is dirty
warning: unknown flake output 'deploy'
warning: The check omitted these incompatible systems: aarch64-darwin, aarch64-linux, x86_64-darwin
Use '--all-systems' to check all.
🚀 â„šī¸ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/munnik/Code/nixos-sustainablemotion.io' is dirty
🚀 â„šī¸ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/munnik/Code/nixos-sustainablemotion.io' is dirty
🚀 â„šī¸ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/munnik/Code/nixos-sustainablemotion.io' is dirty
🚀 â„šī¸ [deploy] [INFO] The following profiles are going to be deployed:
<--snip-->

munnik avatar Mar 31 '25 18:03 munnik

Adding more machines to the list makes deploy-rs really slow. With 6 machines it takes more than 15 minutes to do the deployment, most of the time is spent in checking NixOS configuration....

munnik avatar May 27 '25 09:05 munnik

A recommendation would be, if you use deploy-rs with multiple machines, run one check beforehand (nix flake check -L) manually and then skip checks in deploy with -s. It becomes too slow otherwise when dealing with a few complex systems.

bzadm avatar Jun 09 '25 15:06 bzadm