From 5b4d0b6f4bb5428eda986ab01669bc579fdc4e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 28 Aug 2025 12:01:21 +0200 Subject: [PATCH] hydra-eval-jobset: disable eval cache --- src/script/hydra-eval-jobset | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/script/hydra-eval-jobset b/src/script/hydra-eval-jobset index 2c1ab7a0..eeea742f 100755 --- a/src/script/hydra-eval-jobset +++ b/src/script/hydra-eval-jobset @@ -366,7 +366,13 @@ sub evalJobs { "or flake.checks " . "or (throw \"flake '$flakeRef' does not provide any Hydra jobs or checks\")"; - @cmd = ("nix-eval-jobs", "--expr", $nix_expr); + @cmd = ("nix-eval-jobs", + # Disable the eval cache to prevent SQLite database contention. + # Since Hydra typically evaluates each revision only once, + # parallel workers would compete for database locks without + # providing any benefit from caching. + "--option", "eval-cache", "false", + "--expr", $nix_expr); } else { my $nixExprInput = $inputInfo->{$nixExprInputName}->[0] or die "cannot find the input containing the job expression\n";