Skip to content

Commit a90dd57

Browse files
authored
[TRTLLM-5082] - Add a bot run option for detailed logs (#4390)
Signed-off-by: Yiqing Yan <[email protected]>
1 parent 8282d6c commit a90dd57

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

jenkins/L0_MergeRequest.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def ONLY_PYTORCH_FILE_CHANGED = "only_pytorch_file_changed"
105105
def AUTO_TRIGGER_TAG_LIST = "auto_trigger_tag_list"
106106
@Field
107107
def DEBUG_MODE = "debug"
108+
@Field
109+
def DETAILED_LOG = "detailed_log"
108110

109111
def testFilter = [
110112
(REUSE_STAGE_LIST): trimForStageList(gitlabParamsFromBot.get(REUSE_STAGE_LIST, null)?.tokenize(',')),
@@ -121,6 +123,7 @@ def testFilter = [
121123
(ONLY_PYTORCH_FILE_CHANGED): false,
122124
(DEBUG_MODE): gitlabParamsFromBot.get(DEBUG_MODE, false),
123125
(AUTO_TRIGGER_TAG_LIST): [],
126+
(DETAILED_LOG): gitlabParamsFromBot.get(DETAILED_LOG, false),
124127
]
125128

126129
String reuseBuild = gitlabParamsFromBot.get('reuse_build', null)

jenkins/L0_Test.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ def AUTO_TRIGGER_TAG_LIST = "auto_trigger_tag_list"
252252
@Field
253253
def DEBUG_MODE = "debug"
254254
@Field
255+
def DETAILED_LOG = "detailed_log"
256+
@Field
255257
def testFilter = [
256258
(REUSE_STAGE_LIST): null,
257259
(ENABLE_SKIP_TEST): false,
@@ -267,6 +269,7 @@ def testFilter = [
267269
(ONLY_PYTORCH_FILE_CHANGED): false,
268270
(DEBUG_MODE): false,
269271
(AUTO_TRIGGER_TAG_LIST): [],
272+
(DETAILED_LOG): false,
270273
]
271274

272275
@Field
@@ -1154,6 +1157,7 @@ def runLLMTestlistOnPlatformImpl(pipeline, platform, testList, config=VANILLA_CO
11541157
extraInternalEnv,
11551158
"pytest",
11561159
"-v",
1160+
testFilter[(DETAILED_LOG)] ? "-s" : "",
11571161
"--timeout-method=thread",
11581162
"--apply-test-list-correction",
11591163
"--splitting-algorithm least_duration",

0 commit comments

Comments
 (0)