fix(jobPatched) Removed too frequent filtering of variables

Removed excessive disposal of environment variables containing paths to nix store package files,
plus improved tests for this functionality.
This commit is contained in:
Skryta Istota 2025-11-30 12:33:55 +01:00
parent f84edb7760
commit d2f8a70675
No known key found for this signature in database
2 changed files with 6 additions and 7 deletions

View file

@ -3,7 +3,7 @@
helpers,
}: let
inherit (lib) toList optionalAttrs optional;
inherit (helpers) prependToBeforeScript appendToAfterScript filterJobVariables;
inherit (helpers) prependToBeforeScript appendToAfterScript;
in
{
key,
@ -18,9 +18,8 @@ in
))
// optionalAttrs nixConfig.enable (
(let
variables =
(filterJobVariables false job)
// optionalAttrs nixConfig.enableRunnerCache {
variables = job.variables or {} //
optionalAttrs nixConfig.enableRunnerCache {
NIX_CI_CACHE_STRATEGY = "runner";
};
in