From c647e3e8abf6b7ba1a55ace2b84ff595c36eae0a Mon Sep 17 00:00:00 2001 From: Adam Louly Date: Tue, 15 Aug 2023 12:07:38 -0700 Subject: [PATCH] Run nightly pipeline tests from the commit id. (#17162) ### Description The onnxruntime-CI-nightly-ort-pipeline encounters occasional failures due to synchronization discrepancies between the ACPT nightly image and the repository. We are addressing this by executing tests using the commit ID associated with the ort build within the ACPT image. --------- Co-authored-by: Adam Louly --- .../orttraining-linux-nightly-ortmodule-test-pipeline.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/ci_build/github/azure-pipelines/orttraining-linux-nightly-ortmodule-test-pipeline.yml b/tools/ci_build/github/azure-pipelines/orttraining-linux-nightly-ortmodule-test-pipeline.yml index 2d5ae6c1f0..a41ca5f024 100644 --- a/tools/ci_build/github/azure-pipelines/orttraining-linux-nightly-ortmodule-test-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/orttraining-linux-nightly-ortmodule-test-pipeline.yml @@ -13,6 +13,11 @@ jobs: # Entry point for all ortmodule training tests - script: | + COMMIT_ID=$(python3 -c "import onnxruntime; print(onnxruntime.get_build_info().split('git-commit-id=')[1].split(',')[0])") + cd $(Build.SourcesDirectory) + git checkout $COMMIT_ID + git branch + echo "Retrieved ONNX Runtime Commit ID: $COMMIT_ID" docker run \ --gpus all \ --rm \