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:
17
t/jobs/dependencies/dependency.nix
Normal file
17
t/jobs/dependencies/dependency.nix
Normal 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 { }) //
|
||||
{ }
|
4
t/jobs/dependencies/dependentOnly.nix
Normal file
4
t/jobs/dependencies/dependentOnly.nix
Normal file
@ -0,0 +1,4 @@
|
||||
import ./dependency.nix {
|
||||
exposeUnderlyingJob = false;
|
||||
exposeDependentJob = true;
|
||||
}
|
4
t/jobs/dependencies/underlyingOnly.nix
Normal file
4
t/jobs/dependencies/underlyingOnly.nix
Normal file
@ -0,0 +1,4 @@
|
||||
import ./dependency.nix {
|
||||
exposeUnderlyingJob = true;
|
||||
exposeDependentJob = false;
|
||||
}
|
Reference in New Issue
Block a user