Revert "Disable XLA test (#86123)" (#86151)
And also remove torch_patches/.torch_pin to mitigate the sev https://github.com/pytorch/pytorch/issues/86093 until XLA fixes the weird logic in https://github.com/pytorch/xla/blob/master/scripts/apply_patches.sh#L17-L18. Ticket cut to XLA https://github.com/pytorch/xla/issues/4068
Pull Request resolved: https://github.com/pytorch/pytorch/pull/86151
Approved by: https://github.com/kit1980
diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml
index 8d8d4f0..6b9e184 100644
--- a/.github/workflows/pull.yml
+++ b/.github/workflows/pull.yml
@@ -223,6 +223,15 @@
{ config: "xla", shard: 1, num_shards: 1, runner: "linux.2xlarge" },
]}
+ linux-bionic-py3_7-clang8-xla-test:
+ name: linux-bionic-py3_7-clang8-xla
+ uses: ./.github/workflows/_linux-test.yml
+ needs: linux-bionic-py3_7-clang8-xla-build
+ with:
+ build-environment: linux-bionic-py3_7-clang8-xla
+ docker-image: ${{ needs.linux-bionic-py3_7-clang8-xla-build.outputs.docker-image }}
+ test-matrix: ${{ needs.linux-bionic-py3_7-clang8-xla-build.outputs.test-matrix }}
+
win-vs2019-cpu-py3-build:
name: win-vs2019-cpu-py3
uses: ./.github/workflows/_win-build.yml
diff --git a/.jenkins/pytorch/test.sh b/.jenkins/pytorch/test.sh
index a9ba1c5..d1d3c77 100755
--- a/.jenkins/pytorch/test.sh
+++ b/.jenkins/pytorch/test.sh
@@ -508,6 +508,11 @@
clone_pytorch_xla
# shellcheck disable=SC1091
source "xla/.circleci/common.sh"
+
+ # TODO: The torch pin #73164 is involved in the sev https://github.com/pytorch/pytorch/issues/86093
+ # so this is temporarily removed until XLA fixes the weird logic in https://github.com/pytorch/xla/blob/master/scripts/apply_patches.sh#L17-L18
+ rm "${XLA_DIR}/torch_patches/.torch_pin" || true
+
apply_patches
SITE_PACKAGES="$(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')"
# These functions are defined in .circleci/common.sh in pytorch/xla repo