diff options
author | Oliver Schmidt <os@flyingcircus.io> | 2023-11-27 16:45:14 +0100 |
---|---|---|
committer | Oliver Schmidt <os@flyingcircus.io> | 2024-02-07 18:19:18 +0100 |
commit | 13ba002dd0be470f182eee16f9e791d76875c771 (patch) | |
tree | 6a46e92c9d4c8a4df531d63c151eb532f7185acf /nixos/tests/gitlab.nix | |
parent | d5245c0ef71ffb63cd7d8047144f884feb475dea (diff) |
nixos/services.gitlab: loosen the coupling between gitlab and postgres/ redis to avoid restarts and races
Gitlab stays running at redis and postgresql restarts as if these components were on a different host anyways. Handling reconnetctions is part of the application logic. Co-authored-by: Kim Lindberger <kim.lindberger@gmail.com> for formatting fixes and test failure debugging.
Diffstat (limited to 'nixos/tests/gitlab.nix')
-rw-r--r-- | nixos/tests/gitlab.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/gitlab.nix b/nixos/tests/gitlab.nix index 8d31264253119..c4d69a56c93ad 100644 --- a/nixos/tests/gitlab.nix +++ b/nixos/tests/gitlab.nix @@ -419,7 +419,7 @@ in { gitlab.systemctl("start gitlab-backup.service") gitlab.wait_for_unit("gitlab-backup.service") gitlab.wait_for_file("${nodes.gitlab.services.gitlab.statePath}/backup/dump_gitlab_backup.tar") - gitlab.systemctl("stop postgresql.service gitlab.target") + gitlab.systemctl("stop postgresql.service gitlab-config.service gitlab.target") gitlab.succeed( "find ${nodes.gitlab.services.gitlab.statePath} -mindepth 1 -maxdepth 1 -not -name backup -execdir rm -r {} +" ) |