Skip to content
Merged
Changes from 2 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
38 changes: 24 additions & 14 deletions jenkins/L0_MergeRequest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,19 @@ def launchReleaseCheck(pipeline, globalVars)
})
}

def skipTestListCheck(String message)
Comment thread
EmmaQiaoCh marked this conversation as resolved.
Resolved
{
// Mark a nested stage so Blue Ocean renders the skip; a mark on the parallel branch's own stage shows as NOT_BUILT.
def runStage = "[Check-Test-List] Run"
stage(runStage) {
echo message
jUtils.markStageSkippedForConditional(runStage)
}
}

def launchTestListCheck(pipeline, globalVars)
{
def key = "Check Test List"
def key = "Check-Test-List"
def image = globalVars["LLM_DOCKER_IMAGE"]
trtllm_utils.launchKubernetesPod(pipeline, createKubernetesPodConfig(image, "package"), "trt-llm", {
stage("[${key}] Run") {
Expand Down Expand Up @@ -2557,22 +2567,22 @@ def launchStages(pipeline, reuseBuild, testFilter, enableFailFast, globalVars)
launchReleaseCheck(this, globalVars)
}
},
"Check Test List": {
"Check-Test-List": {
script {
if (testFilter[INFRA_DRY_RUN]) {
echo "Skipping Check Test List for the infrastructure dry run."
skipTestListCheck("Skipping Check Test List for the infrastructure dry run.")
return
} else if (GEN_POST_MERGE_BUILDS_ONLY) {
echo "Skipping Check Test List (GenPostMergeBuilds mode: builds only)"
skipTestListCheck("Skipping Check Test List (GenPostMergeBuilds mode: builds only)")
return
} else if (runMode == "nightly_release") {
echo "Skipping Check Test List for nightly_release."
skipTestListCheck("Skipping Check Test List for nightly_release.")
return
} else if (testFilter[(ONLY_ONE_GROUP_CHANGED)] == "Docs") {
echo "Skipping Check Test List for Docs-only changes."
skipTestListCheck("Skipping Check Test List for Docs-only changes.")
return
} else if (env.JOB_NAME ==~ /.*BuildDockerImageSanityTest.*/) {
echo "Skipping Check Test List for BuildDockerImageSanityTest."
skipTestListCheck("Skipping Check Test List for BuildDockerImageSanityTest.")
return
}
launchTestListCheck(this, globalVars)
Expand Down Expand Up @@ -3235,7 +3245,7 @@ def launchStages(pipeline, reuseBuild, testFilter, enableFailFast, globalVars)
stages += dockerBuildJob
}

def alwaysFailFastStages = ["Release-Check", "Check Test List"] as Set
def alwaysFailFastStages = ["Release-Check", "Check-Test-List"] as Set
parallelJobs = stages.collectEntries{key, value -> [key, {
script {
stage(key) {
Expand Down Expand Up @@ -3342,16 +3352,16 @@ pipeline {
}
}
},
"Check Test List": {
stage("Check Test List") {
"Check-Test-List": {
stage("Check-Test-List") {
if (testFilter[INFRA_DRY_RUN]) {
echo "Skipping Check Test List for the infrastructure dry run."
skipTestListCheck("Skipping Check Test List for the infrastructure dry run.")
} else if (runMode == "nightly_release") {
echo "Skipping Check Test List for nightly_release."
skipTestListCheck("Skipping Check Test List for nightly_release.")
} else if (testFilter[(ONLY_ONE_GROUP_CHANGED)] == "Docs") {
echo "Skipping Check Test List for Docs-only changes."
skipTestListCheck("Skipping Check Test List for Docs-only changes.")
} else if (env.JOB_NAME ==~ /.*BuildDockerImageSanityTest.*/) {
echo "Skipping Check Test List for BuildDockerImageSanityTest."
skipTestListCheck("Skipping Check Test List for BuildDockerImageSanityTest.")
Comment thread
EmmaQiaoCh marked this conversation as resolved.
Resolved
} else {
launchTestListCheck(this, globalVars)
}
Expand Down
Loading