Skip to content

Commit 741a4a4

Browse files
committed
Install PyTorch in unittest-macos even in Buck mode
We've been seeing flakes due to missing torchgen that have become more common. After some investigation, it appears that #8688 was probably overzealous: installing pytorch was probably also installing torchgen, so let's install pytorch. Test Plan: unittest-buck / macos on this PR, monitor to see if failures go away. ghstack-source-id: 05496b1 ghstack-comment-id: 2744469219 Pull Request resolved: #9505
1 parent d16b867 commit 741a4a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.ci/scripts/unittest-macos.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ if [[ "$BUILD_TOOL" == "cmake" ]]; then
3434

3535
.ci/scripts/unittest-macos-cmake.sh
3636
elif [[ "$BUILD_TOOL" == "buck2" ]]; then
37+
(
38+
source .ci/scripts/utils.sh
39+
install_pytorch_and_domains
40+
)
3741
.ci/scripts/unittest-buck2.sh
3842
# .ci/scripts/unittest-macos-buck2.sh
3943
else

0 commit comments

Comments
 (0)