about summary refs log tree commit diff
path: root/nixos/tests/gitdaemon.nix
AgeCommit message (Collapse)AuthorFilesLines
2021-05-02nixos/tests/gitdaemon: deflake by using systemd-tmpfilesLuke Granger-Brown1-1/+5
git-daemon won't start up if its project directory (here /git) doesn't exist. If we try to create it using the test harness, then we're racing whether we manage to connect to the backdoor vs. the startup speed of git-daemon. Instead, use systemd-tmpfiles, which is guaranteed(?) to run before network.target and thus before git-daemon.service starts.
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl1-1/+1
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2020-05-10nixos/tests/gitdaemon: fix spurious test failures due to flaky networkAndreas Rammhold1-0/+3
This test is sometimes flaky on hydra as at the time of the `git clone` the network isn't really configured yet[1]. That problem doesn't seem to occur locally but if you run it on a machine with high enough load (such as hydra build machines). Hopefully this will make the test not flaky anymore. [1] https://hydra.nixos.org/build/118710378/nixlog/21/raw
2020-02-26nixos/git-daemon: only create git user if it will be usedtilpner1-0/+64