ci-runner: warn when the host has no nix store gc
This commit is contained in:
parent
c5729b4124
commit
493d2e6c37
1 changed files with 47 additions and 3 deletions
|
|
@ -236,6 +236,17 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
# The runner builds through the host's nix daemon, so its outputs fill the
|
||||
# host's /nix/store. The host's nix settings are not this module's to set;
|
||||
# it only tells the operator when neither collector is configured.
|
||||
warnings = lib.optional (!config.nix.gc.automatic && (config.nix.settings.min-free or 0) == 0) ''
|
||||
services.hyperhive.deploy.ci-runner.enable is on, but this host sets
|
||||
neither nix.gc.automatic nor nix.settings.min-free. CI builds fill
|
||||
/nix/store until the disk is full and every job fails with ENOSPC.
|
||||
Add the GC settings from "Host store maintenance" in
|
||||
docs/4-implementation/scheduler/ci.md to the host's NixOS config.
|
||||
'';
|
||||
|
||||
# The container hangs off the bridge, takes its address from the
|
||||
# gateway's DHCP and resolves through its dnsmasq. The gateway also runs
|
||||
# `hive-tls-ca`, which writes the trust bundle bound in below.
|
||||
|
|
|
|||
Loading…
Reference in a new issue