Unverified Commit 1432f641 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Finally fix the missing new model failure CI report (#30968)



fix
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent dff54ad2
...@@ -1164,15 +1164,16 @@ if __name__ == "__main__": ...@@ -1164,15 +1164,16 @@ if __name__ == "__main__":
json.dump(job_result, fp, indent=4, ensure_ascii=False) json.dump(job_result, fp, indent=4, ensure_ascii=False)
prev_ci_artifacts = None prev_ci_artifacts = None
target_workflow = "huggingface/transformers/.github/workflows/self-scheduled.yml@refs/heads/main" if job_name == "run_models_gpu":
if os.environ.get("CI_WORKFLOW_REF") == target_workflow: target_workflow = "huggingface/transformers/.github/workflows/self-scheduled-caller.yml@refs/heads/main"
# Get the last previously completed CI's failure tables if os.environ.get("CI_WORKFLOW_REF") == target_workflow:
artifact_names = [f"ci_results_{job_name}"] # Get the last previously completed CI's failure tables
output_dir = os.path.join(os.getcwd(), "previous_reports") artifact_names = [f"ci_results_{job_name}"]
os.makedirs(output_dir, exist_ok=True) output_dir = os.path.join(os.getcwd(), "previous_reports")
prev_ci_artifacts = get_last_daily_ci_reports( os.makedirs(output_dir, exist_ok=True)
artifact_names=artifact_names, output_dir=output_dir, token=os.environ["ACCESS_REPO_INFO_TOKEN"] prev_ci_artifacts = get_last_daily_ci_reports(
) artifact_names=artifact_names, output_dir=output_dir, token=os.environ["ACCESS_REPO_INFO_TOKEN"]
)
message = Message( message = Message(
title, title,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment