Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test ops validation for validation workflows #1653

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/scripts/validate_test_ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ retry () {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}

BRANCH = "@main"
if [[ ${MATRIX_CHANNEL} == "test" ]]
SHORT_VERSION=${MATRIX_STABLE_VERSION%.*}
BRANCH="@release/${SHORT_VERSION}"
fi


# Clone the Pytorch branch
retry git clone --depth 1 https://github.com/pytorch/pytorch.git
retry git clone --depth 1 https://github.com/pytorch/pytorch.git${BRANCH}
retry git submodule update --init --recursive
pushd pytorch

pip install expecttest pyyaml jinja2
pip install expecttest pyyaml jinja2 packaging

# Run test_ops validation
export CUDA_LAUNCH_BLOCKING=1
Expand Down