Jobs run with a failing parent if at least one other parent passes
rfdonnelly opened this issue · comments
Jobs should only be run if all parents pass.
Input:
job :passing_parent do
execute 'true'
end
job :failing_parent do
execute 'false'
end
job :failing_child, [:passing_parent, :failing_parent] do
execute 'ERROR: this job should not run'
end
Command:
jobrnr examples/multiple-parents/index.jr --max-failures 2
Output:
Running: 'true' jobrnr00
Running: 'false' jobrnr01
Running:2 Queued:0 Completed:0 Passed:0 Failed:0
PASSED: 'true' jobrnr00 in 0.00s
FAILED: 'false' jobrnr01 in 0.00s
Running: 'ERROR: this job should not run' jobrnr02
Running:1 Queued:0 Completed:2 Passed:1 Failed:1
FAILED: 'ERROR: this job should not run' jobrnr02 in 0.01s <===========
Running:0 Queued:0 Completed:3 Passed:1 Failed:2