Make sure to properly pull the right submodule in BC test (#94182)
To unblock https://github.com/pytorch/pytorch/pull/93219
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94182
Approved by: https://github.com/ezyang, https://github.com/malfet, https://github.com/Skylion007
diff --git a/.ci/pytorch/test.sh b/.ci/pytorch/test.sh
index 7b6d7b5..2bc98e4 100755
--- a/.ci/pytorch/test.sh
+++ b/.ci/pytorch/test.sh
@@ -723,6 +723,7 @@
# build torch at the base commit to generate a base function schema for comparison
git reset --hard "${SHA_TO_COMPARE}"
+ git submodule sync && git submodule update --init --recursive
echo "::group::Installing Torch From Base Commit"
pip install -r requirements.txt
# shellcheck source=./common-build.sh
@@ -736,6 +737,7 @@
python dump_all_function_schemas.py --filename nightly_schemas.txt
git reset --hard "${SHA1}"
+ git submodule sync && git submodule update --init --recursive
# FC: verify new model can be load with old code.
if ! python ../load_torchscript_model.py /tmp/model_new.pt; then
echo "FC check failed: new model cannot be load in old code"