Better way to run AMD CI with different flavors (#26634)
* Enable testing against mi250 * Change BERT to trigger tests * Revert BERT's change * AMD CI * AMD CI --------- Co-authored-by: Morgan Funtowicz <funtowiczmo@gmail.com> Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -897,6 +897,9 @@ if __name__ == "__main__":
|
||||
job_name_prefix = f"{framework} {version}"
|
||||
elif ci_event.startswith("Nightly CI"):
|
||||
job_name_prefix = "Nightly CI"
|
||||
elif ci_event.startswith("Push CI (AMD) - "):
|
||||
flavor = ci_event.replace("Push CI (AMD) - ", "")
|
||||
job_name_prefix = f"AMD {flavor}"
|
||||
|
||||
for model in model_results.keys():
|
||||
for artifact_path in available_artifacts[f"run_all_tests_gpu_{model}_test_reports"].paths:
|
||||
@@ -962,7 +965,7 @@ if __name__ == "__main__":
|
||||
"Torch CUDA extension tests": "run_tests_torch_cuda_extensions_gpu_test_reports",
|
||||
}
|
||||
|
||||
if ci_event in ["push", "Nightly CI"] or ci_event.startswith("Past CI"):
|
||||
if ci_event in ["push", "Nightly CI"] or ci_event.startswith("Past CI") or ci_event.startswith("Push CI (AMD)"):
|
||||
del additional_files["Examples directory"]
|
||||
del additional_files["PyTorch pipelines"]
|
||||
del additional_files["TensorFlow pipelines"]
|
||||
@@ -1027,6 +1030,6 @@ if __name__ == "__main__":
|
||||
message = Message(title, ci_title, model_results, additional_results, selected_warnings=selected_warnings)
|
||||
|
||||
# send report only if there is any failure (for push CI)
|
||||
if message.n_failures or ci_event != "push":
|
||||
if message.n_failures or (ci_event != "push" and not ci_event.startswith("Push CI (AMD)")):
|
||||
message.post()
|
||||
message.post_reply()
|
||||
|
||||
Reference in New Issue
Block a user