Skip to content

Commit

Permalink
OBS: Superseded tests should not block testsets from being finished
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbkr committed Nov 1, 2022
1 parent 353ad1f commit 4e4fd45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/OBS.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ method process-worklist() is serial-dedup {

if DB::CITest.^all.grep({
$_.platform-test-set.id == $running-pts.id &&
$_.status (DB::NOT_STARTED, DB::IN_PROGRESS)
$_.status (DB::NOT_STARTED, DB::IN_PROGRESS) &&
!$_.superseded
}) == 0
&& DateTime.now - $running-pts.obs-started-at >= config.obs-min-run-duration {
debug "OBS: TestSet finished: " ~ $running-pts.id;
Expand Down

0 comments on commit 4e4fd45

Please sign in to comment.