From 6d892712cfab0bd59ff82d1491ee7b53f27e4a02 Mon Sep 17 00:00:00 2001 From: Picnoir Date: Thu, 9 Jan 2025 10:53:17 +0100 Subject: [PATCH] nixos/tests/pleroma: fix DB provision race condition We originally used a systemd preStart command to provision the DB. We recently extracted this to a proper systemd unit (to go around the timeout issue). This created a race condition in the VM test. Restarting explicitely the db provision unit to make sure the migrations are applied. --- nixos/tests/pleroma.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/pleroma.nix b/nixos/tests/pleroma.nix index 79746678206b..fa5f88068719 100644 --- a/nixos/tests/pleroma.nix +++ b/nixos/tests/pleroma.nix @@ -271,6 +271,7 @@ import ./make-test-python.nix ( pleroma.succeed("provision-db") pleroma.wait_for_file("/var/lib/pleroma") pleroma.succeed("provision-secrets") + pleroma.systemctl("restart pleroma-migrations.service") pleroma.systemctl("restart pleroma.service") pleroma.wait_for_unit("pleroma.service") pleroma.succeed("provision-user")