fix: remove truncation for test and job names in ci failure monitor (#17765)
This commit is contained in:
@@ -1758,17 +1758,8 @@ class SGLangFailuresAnalyzer:
|
|||||||
test_data = test_info["test_data"]
|
test_data = test_info["test_data"]
|
||||||
job_data = test_info["job_data"]
|
job_data = test_info["job_data"]
|
||||||
|
|
||||||
# Truncate names
|
test_display = test_file
|
||||||
test_display = (
|
job_display = job_name
|
||||||
test_file
|
|
||||||
if len(test_file) <= 30
|
|
||||||
else test_file[:27] + "..."
|
|
||||||
)
|
|
||||||
job_display = (
|
|
||||||
job_name
|
|
||||||
if len(job_name) <= 25
|
|
||||||
else job_name[:22] + "..."
|
|
||||||
)
|
|
||||||
|
|
||||||
# Get first and last failure from job level
|
# Get first and last failure from job level
|
||||||
first_failure = job_data.get("first_failure_in_streak")
|
first_failure = job_data.get("first_failure_in_streak")
|
||||||
@@ -1851,16 +1842,8 @@ class SGLangFailuresAnalyzer:
|
|||||||
failed_runs = test_info["failed_runs"]
|
failed_runs = test_info["failed_runs"]
|
||||||
total_test_runs = test_info["total_test_runs"]
|
total_test_runs = test_info["total_test_runs"]
|
||||||
|
|
||||||
test_display = (
|
test_display = test_file
|
||||||
test_file
|
job_display = job_name
|
||||||
if len(test_file) <= 30
|
|
||||||
else test_file[:27] + "..."
|
|
||||||
)
|
|
||||||
job_display = (
|
|
||||||
job_name
|
|
||||||
if len(job_name) <= 25
|
|
||||||
else job_name[:22] + "..."
|
|
||||||
)
|
|
||||||
|
|
||||||
# Build history links
|
# Build history links
|
||||||
recent_runs = test_data.get("recent_runs", [])
|
recent_runs = test_data.get("recent_runs", [])
|
||||||
|
|||||||
Reference in New Issue
Block a user