NixOS / hydra

Hydra, the Nix-based continuous build system
http://nixos.org/hydra
GNU General Public License v3.0
1.1k stars 291 forks source link

systemd: hydra-queue-runner: wait for network-online #1277

Closed Mindavi closed 1 year ago

Mindavi commented 1 year ago

This prevents eval errors when a machine is just started and the network isn't yet online. I'm running hydra on a laptop and the network takes a bit of time to come online (WLAN), so it's nice if the evaluator starts only when the network actually goes online.

Otherwise an error like this can happen on the first eval(s):

error fetching latest change from git repo at `https://github.com/nixos/nixpkgs.git':
fatal: unable to access 'https://github.com/nixos/nixpkgs.git/': Could not resolve host: github.com

See also https://github.com/NixOS/nixpkgs/pull/216451

SuperSandro2000 commented 1 year ago

Also this might not fully fix this issue as network-online means the interface is online, not that actual internet connectivity is available but it will probably improve things.

Mindavi commented 1 year ago

For me it seems to work but yeah, hopefully it at least improves.