Ping team members for new failed tests in daily CI (#34171)

* ping

* fix

* fix

* fix

* remove runner

* update members

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2024-10-17 16:11:52 +02:00
committed by GitHub
parent aa3e35ac67
commit fce1fcfe71
6 changed files with 442 additions and 1 deletions

View File

@@ -41,6 +41,18 @@ def get_last_daily_ci_runs(token):
return workflow_run_id
def get_last_daily_ci_run_commit(token):
"""Get the commit sha of the last completed scheduled daily CI workflow run."""
workflow_runs = get_daily_ci_runs(token)
head_sha = None
for workflow_run in workflow_runs:
if workflow_run["status"] == "completed":
head_sha = workflow_run["head_sha"]
break
return head_sha
def get_last_daily_ci_artifacts(artifact_names, output_dir, token):
"""Get the artifacts of last completed workflow run id of the scheduled (daily) CI."""
workflow_run_id = get_last_daily_ci_runs(token)