Commit Graph

6 Commits

Author SHA1 Message Date
ghpzin
a0e1d1fd6c
nixos/tests/gitdaemon: fix user and group
- change tmpfiles rule user/group to default daemon user/group set by
gitDaemon module - git:git
- add chown of created repo to user/group of daemon after local subtest
on server (that run from root user) pass. Without it next subtest doing
clone from remote fails with "detected dubious ownership in repository"
on server side.
2024-09-08 16:19:13 +03:00
Jade Lovelace
b8da5d6a3c nixos/tests: fix gitdaemon under network-online dep fix 2024-01-19 00:11:34 -08:00
Luke Granger-Brown
f2a91ec2b7 nixos/tests/gitdaemon: deflake by using systemd-tmpfiles
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-05-02 21:58:43 +00:00
Dominik Xaver Hörl
25bef2d8f9 treewide: simplify pkgs.stdenv.lib -> pkgs.lib
The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
2021-01-10 20:12:06 +01:00
Andreas Rammhold
a432f832bf nixos/tests/gitdaemon: fix spurious test failures due to flaky network
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-05-10 15:58:54 +02:00
tilpner
6df119a6ec
nixos/git-daemon: only create git user if it will be used 2020-02-26 15:04:36 +01:00