From a2def7f914228fd55a6a0dfa0b40577f0edfb7e3 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 18 Oct 2025 14:35:51 +0200 Subject: [PATCH] ci/parse: fix potential race condition The parse check runs multiple `nix-instantiate` processes in parallel - and they can error out with "SQLite database '...' is busy" while setting up the state directories. This was observed once locally. Initialising the store should fix this. --- ci/parse.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/parse.nix b/ci/parse.nix index 9625ad376de3..14fd1e719547 100644 --- a/ci/parse.nix +++ b/ci/parse.nix @@ -20,6 +20,7 @@ runCommand "nix-parse-${nix.name}" '' export NIX_STORE_DIR=$TMPDIR/store export NIX_STATE_DIR=$TMPDIR/state + nix-store --init cd "${nixpkgs}"