From 2fb018d64ee9a1cbe0a43c5a39f4ddc40d97e9d4 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Fri, 26 Jul 2024 23:38:33 +0200 Subject: [PATCH] trigger --- utils/notification_service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/notification_service.py b/utils/notification_service.py index 57960d52bed2cf..3077906f26c4f8 100644 --- a/utils/notification_service.py +++ b/utils/notification_service.py @@ -1228,10 +1228,13 @@ def prepare_reports(title, header, reports, to_truncate=True): # if is_scheduled_ci_run: if True: file_path = os.path.join(os.getcwd(), f"ci_results_{job_name}/new_model_failures.txt") - api.upload_file( + commit_info = api.upload_file( path_or_fileobj=file_path, path_in_repo=f"{datetime.datetime.today().strftime('%Y-%m-%d')}/ci_results_{job_name}/new_model_failures.txt", repo_id="hf-internal-testing/transformers_daily_ci", repo_type="dataset", token=os.environ.get("TRANSFORMERS_CI_RESULTS_UPLOAD_TOKEN", None), ) + print(commit_info.commit_url) + url = f"https://huggingface.co/datasets/hf-internal-testing/transformers_daily_ci/blob/{commit_info.oid}/{datetime.datetime.today().strftime('%Y-%m-%d')}/ci_results_{job_name}/new_model_failures.txt" + print(url)