Skip to content

Commit 4dc0de5

Browse files
authored
[ez] rstrip comments in alert messages (#6284)
Super small, but it creates unnecessary new lines in the messages which takes up space in workchat
1 parent 45db386 commit 4dc0de5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/torchci/check_alerts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def gen_update_comment(original_issue: Dict[str, Any], jobs: List[JobStatus]) ->
322322
s += "These jobs started failing:\n"
323323
for job in started_failing_jobs:
324324
s += f"* {job}\n"
325-
return s
325+
return s.rstrip()
326326

327327

328328
def generate_no_flaky_tests_issue() -> Any:

tools/torchci/queue_alert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def gen_update_comment(original_issue: Any, new_queues: List[QueueInfo]) -> str:
4545
for q in started_queueing:
4646
s += gen_queue_info_str(q)
4747
s += "\n"
48-
return s
48+
return s.rstrip()
4949

5050

5151
def gen_issue(queues: List[QueueInfo]) -> Any:

0 commit comments

Comments
 (0)