Skip to content

Commit

Permalink
trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Jul 26, 2024
1 parent 2865376 commit 2fb018d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/notification_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2fb018d

Please sign in to comment.