Merge pull request #1514 from NixOS/no-eval-cache

hydra-eval-jobset: disable eval cache
This commit is contained in:
Jörg Thalheim
2025-08-29 09:15:34 +00:00
committed by GitHub

View File

@@ -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";