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 <adamlouly@microsoft.com@orttrainingdev9.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>
This commit is contained in:
Adam Louly 2023-08-15 12:07:38 -07:00 committed by GitHub
parent f086bd7bff
commit c647e3e8ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 \