From 060fe61dff715799eedd2866a3db7688ed7f2ef8 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Wed, 18 May 2022 19:07:48 +0200 Subject: [PATCH] Not send successful report (#17329) * send report only if there is any failure Co-authored-by: ydshieh --- utils/notification_service.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/notification_service.py b/utils/notification_service.py index 2e93b99c9d..8cede02145 100644 --- a/utils/notification_service.py +++ b/utils/notification_service.py @@ -773,5 +773,7 @@ if __name__ == "__main__": message = Message(title, ci_title, model_results, additional_results) - message.post() - message.post_reply() + # send report only if there is any failure + if message.n_failures: + message.post() + message.post_reply()