Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results here
Note: Links to docs will display an error until the docs builds have been completed. ✅ No Failures, 3 PendingAs of commit 295387a: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
malfet
left a comment
There was a problem hiding this comment.
Please fix lint, otherwise LGTM
Consider nit
Co-authored-by: Nikita Shulga <nshulga@fb.com>
|
@pytorchmergebot merge |
|
@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here |
|
Merge failed due to Refusing to merge as mandatory check(s) Lint failed for rule OSS CI |
|
@pytorchmergebot merge |
|
@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here |
### Description During unit tests we want to return fake data for any methods that rely on a local git repository. Otherwise those tests will fail when run in an environment that doesn't have the pytorch repo checked out (such as fbinternal or a tarball download) Also refactored existing tests to use the new DummyGitRepo ### Issue N/A ### Testing Validating old behavior: Removed the `.git` folder locally to effectively delete the git repository. Then ran `python3 .github/scripts/test_trymerge.py` to ensure the test failed Validating fix: Ran `python3 .github/scripts/test_trymerge.py` both with and without the `.git` folder Pull Request resolved: #82594 Approved by: https://github.com/zengk95, https://github.com/huydhn, https://github.com/malfet
|
Merge failed due to Failed to merge; some land checks failed: pull, pull / linux-docs / build-docs (cpp) |
|
@pytorchmergebot merge |
|
@pytorchbot successfully started a merge and created land time checks. See merge status here and land check progress here |
### Description During unit tests we want to return fake data for any methods that rely on a local git repository. Otherwise those tests will fail when run in an environment that doesn't have the pytorch repo checked out (such as fbinternal or a tarball download) Also refactored existing tests to use the new DummyGitRepo ### Issue N/A ### Testing Validating old behavior: Removed the `.git` folder locally to effectively delete the git repository. Then ran `python3 .github/scripts/test_trymerge.py` to ensure the test failed Validating fix: Ran `python3 .github/scripts/test_trymerge.py` both with and without the `.git` folder Pull Request resolved: #82594 Approved by: https://github.com/zengk95, https://github.com/huydhn, https://github.com/malfet
|
Hey @ZainRizvi. |
Summary: ### Description During unit tests we want to return fake data for any methods that rely on a local git repository. Otherwise those tests will fail when run in an environment that doesn't have the pytorch repo checked out (such as fbinternal or a tarball download) Also refactored existing tests to use the new DummyGitRepo ### Issue N/A ### Testing Validating old behavior: Removed the `.git` folder locally to effectively delete the git repository. Then ran `python3 .github/scripts/test_trymerge.py` to ensure the test failed Validating fix: Ran `python3 .github/scripts/test_trymerge.py` both with and without the `.git` folder Pull Request resolved: #82594 Approved by: https://github.com/zengk95, https://github.com/huydhn, https://github.com/malfet Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/87a11f112b1d7a172fb98004421dc98a35d25415 Reviewed By: kit1980 Differential Revision: D38359475 Pulled By: ZainRizvi fbshipit-source-id: 21c58d074468162e0de5d5701250d098e89f1f91
Description
During unit tests we want to return fake data for any methods that rely on a local git repository. Otherwise those tests will fail when run in an environment that doesn't have the pytorch repo checked out (such as fbinternal or a tarball download)
Also refactored existing tests to use the new DummyGitRepo
Issue
N/A
Testing
Validating old behavior:
Removed the
.gitfolder locally to effectively delete the git repository. Then ranpython3 .github/scripts/test_trymerge.pyto ensure the test failedValidating fix:
Ran
python3 .github/scripts/test_trymerge.pyboth with and without the.gitfolder