Repository navigation
Conversation
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 2ec694f (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
janeyx99
left a comment
There was a problem hiding this comment.
I think this might mess with development locally as contributors expect that they won't have to python setup.py install between every Python change. Could you guard the change to only be for when IN_CI is found set in the environment?
Thanks for suggesting. Updated with IS_IN_CI checking |
Codecov Report
@@ Coverage Diff @@
## master #61960 +/- ##
===========================================
- Coverage 80.60% 60.09% -20.52%
===========================================
Files 1879 657 -1222
Lines 202892 85311 -117581
===========================================
- Hits 163543 51268 -112275
+ Misses 39349 34043 -5306 |
janeyx99
left a comment
There was a problem hiding this comment.
Approving but please don't land if CI doesn't pass :p
malfet
left a comment
There was a problem hiding this comment.
This PR introduces small amount of code duplication. Would it be possible to avoid it by moving the logic into
def find_library_location(lib_name: str) -> Path:
if IS_IN_CI:
torch_root = Path(torch.__file__).resolve().parent
return torch_root / 'lib' / name
torch_root = Path(__file__).resolve().parent.parent.parent
return torch_root / 'build' / 'lib' / name
Thanks for suggestion. Updated the PR |
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
malfet
left a comment
There was a problem hiding this comment.
Looks good to me, but please consider getting rid of condition and just search for the library among available list of path candidates
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
| def setUp(self): | ||
| if IS_SANDCASTLE or IS_WINDOWS or IS_MACOS or IS_FBCODE: | ||
| raise unittest.SkipTest("non-portable load_library call used in test") | ||
| if TEST_WITH_ROCM: |
There was a problem hiding this comment.
I believe it is okie to remote TEST_WITH_ROCM or IN_CI condition, given when shared library file is available in install folder, we could use them first, other wise ones in build folder. The logic works for both internal CI or dev local
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@tktrungna has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@tktrungna merged this pull request in 8152433. |
) Fixes issues found in intel/torch-xpu-ops#4436 Currently, `find_library_location()` for `libtorchbind_test.so` resolves to: _pytorch/torch/build/lib/libtorchbind_test.so_ but the actual built library is here: _pytorch/build/lib/libtorchbind_test.so_ Issue initially caused by: #129409, but it only exposed old issue introduced to `find_library_location()` here: #61960 Pull Request resolved: #194884 Approved by: https://github.com/jkosnox, https://github.com/kdrozd-dev, https://github.com/guangyey, https://github.com/Skylion007
Fixes #62380
Issue
Build PyTorch wheel packages during build stage for pull requests and install during test stage.
Fix
Update all tests which call lib*.so (under
./build folder), change to call lib*.so in{ent}/pytorch/lib/python3.8/site-packages/torchDiff
This diff starts to update test_fx, test_backend and test_torchbind first to check if current ci pass
Test plan
check of all ci workflows pass