Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion jenkins/L0_Test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4563,14 +4563,16 @@ def launchTestJobs(pipeline, testFilter)
// CBTS Layer 2: replace `parallelJobsFiltered` with affected stages plus
// PackageSanityCheck (kept iff sanity_required) and PerfSanity (kept iff
// perfsanity_required). Pure -Perf- stages always excluded (own trigger
// model, full-list benchmarks).
// model, full-list benchmarks). Post-Merge stages are never force-kept;
// they only run when explicitly listed in affected_stages.
def cbts = testFilter[(CBTS_RESULT)]
if (cbts != null) {
def affectedSet = (cbts.affected_stages ?: []) as Set
def needsSanity = cbts.sanity_required
def needsPerfSanity = cbts.perfsanity_required
parallelJobsFiltered = parallelJobs.findAll { key, _ ->
if (key =~ /-Perf-/) return false
if (key =~ /Post-Merge/) return affectedSet.contains(key)
return affectedSet.contains(key) ||
(needsSanity && key =~ /PackageSanityCheck/) ||
(needsPerfSanity && key =~ /PerfSanity/)
Expand Down
Loading