Hydra: Difference between revisions
imported>Crawford m Fix protocol for example inputs |
imported>Crawford Add workaround for git-fetch timeout |
||
Line 100: | Line 100: | ||
# You have a miss-match between nix versions on the Hydra server and the builder | # You have a miss-match between nix versions on the Hydra server and the builder | ||
# It can also mean that <code>hydra-queue-runner</code> needs privileges on the build server. Reference: [https://github.com/NixOS/nix/issues/2789] | # It can also mean that <code>hydra-queue-runner</code> needs privileges on the build server. Reference: [https://github.com/NixOS/nix/issues/2789] | ||
* The default timeout for git operations is 600 seconds [https://github.com/NixOS/hydra/issues/1181], which might cause fetches of large repositories like [https://github.com/NixOS/nixpkgs nixos/nixpkgs] to fail: <code>error fetching latest change from git repo at `https://github.com/nixos/nixpkgs': timeout</code>. The timeout can be increased with the following configuration.nix snippet: | |||
<syntaxHighlight lang=nix> | |||
{ | |||
services.hydra.extraConfig = '' | |||
<git-input> | |||
timeout = 3600 | |||
</git-input> | |||
''; | |||
} | |||
</syntaxHighlight> | |||
== Hydra for NixOS releases == | == Hydra for NixOS releases == |