-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Refactor expect tests on test_higher_order_ops.py. #110290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR inlines the expecteds strings onto the `assertExpectedInline` calls, so that, when change is needed, we may do that by using the `expectedtest` machinery: setting the environment variable `EXPECTTEST_ACCEPT=1`. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/110290
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit df8dbf1 with merge base 428cbd7 ( UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR inlines the expecteds strings onto the `assertExpectedInline` calls, so that, when change is needed, we may do that by using the `expectedtest` machinery: setting the environment variable `EXPECTTEST_ACCEPT=1`. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng [ghstack-poisoned]
Fix: #109247 This PR flattens `wrap` outputs by inlining `pytree.tree_flatten` function after calling the inner function. Pull Request resolved: #109433 Approved by: https://github.com/zou3519 ghstack dependencies: #110290
|
@pytorchbot revert -m "Broke multiple tests and also lint https://github.com/pytorch/pytorch/actions/runs/6384854768/job/17329068768" -c ignoredsignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
@ysiraichi your PR has been successfully reverted. |
This reverts commit d9aecae. Reverted #110290 on behalf of https://github.com/kit1980 due to Broke multiple tests and also lint https://github.com/pytorch/pytorch/actions/runs/6384854768/job/17329068768 ([comment](#110290 (comment)))
This reverts commit 651b198. Reverted #109433 on behalf of https://github.com/kit1980 due to Depends on reverted #110290 ([comment](#109433 (comment)))
Actually this one may be OK and the next one in the stack is the problem, but because it was landed as a stack, the CI was run only on the last PR. |
This PR inlines the expecteds strings onto the `assertExpectedInline` calls, so that, when change is needed, we may do that by using the `expectedtest` machinery: setting the environment variable `EXPECTTEST_ACCEPT=1`. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng [ghstack-poisoned]
Fix: #109247 This PR flattens `wrap` outputs by inlining `pytree.tree_flatten` function after calling the inner function. Pull Request resolved: #109433 Approved by: https://github.com/zou3519 ghstack dependencies: #110290
Stack from ghstack (oldest at bottom):
gradwith pytree inputs. #110417autograd.Functionwith multiple return values. #107618wrap. #109433This PR inlines the expecteds strings onto the
assertExpectedInlinecalls, so that, whenchange is needed, we may do that by using the
expectedtestmachinery: setting theenvironment variable
EXPECTTEST_ACCEPT=1.cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov @kadeng