Test the queue runner in the scenario where a dependency is available in the cache but GC'd locally, where we're building locally

This commit is contained in:
Graham Christensen
2022-01-21 15:13:52 -05:00
parent 5c3e48fd0d
commit 952f629b7c
4 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{ exposeUnderlyingJob, exposeDependentJob }:
with import ../config.nix;
let
underlyingJob = mkDerivation {
name = "underlying-job";
builder = ../empty-dir-builder.sh;
};
dependentJob = mkDerivation {
name = "dependent-job";
builder = ../empty-dir-builder.sh;
inherit underlyingJob;
};
in
(if exposeUnderlyingJob then { inherit underlyingJob; } else { }) //
(if exposeDependentJob then { inherit dependentJob; } else { }) //
{ }

View File

@ -0,0 +1,4 @@
import ./dependency.nix {
exposeUnderlyingJob = false;
exposeDependentJob = true;
}

View File

@ -0,0 +1,4 @@
import ./dependency.nix {
exposeUnderlyingJob = true;
exposeDependentJob = false;
}