-
Notifications
You must be signed in to change notification settings - Fork 7k
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
test_prototype_datasets_builtin: Properly close all streams #7403
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/7403
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Merge Blocking SEVsThere is 1 active merge blocking SEVs. Please view them below:
If you must merge, use This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Thanks @SvenDS9 for the report and fix. The error looks quite weird to me TBH. We are never touching |
I think that is what happens yes. And you are right, that is sufficient. Will change it now. |
31573fe
to
419d039
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @SvenDS9! This will be available in tomorrows nightly release. Could you push an update to pytorch/data#1016 after roughly 12:00 UTC+0 tomorrow to see if this actually fixed your issue?
Hey @pmeier! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
I have already run the test with my changes to both the test and the datapipe. It unfortunately does not. I would be very grateful if you could take a look why the stream isn't being closed correctly. as you probably have a much deeper understanding what actually happens in the tests... i have linked the relelvant parts in the PR. Please don't feel obligated to do so as I have already wasted enough time on this :D |
Sorry, I was not clear enough above. Could you make sure that the issue of failing unrelated tests that was addressed by this PR is fixed? Meaning, after this PR you should only see relevant test failures on the TorchData PR, right?
I'll look into it if I find some time next week. No promises however. |
…7403) Summary: Co-authored-by: Philip Meier <[email protected]> Reviewed By: vmoens Differential Revision: D44416630 fbshipit-source-id: efee1b0849c7e19ba1859f185bff421400046a12
In pytorch/data#1016 I noticed that if a test fails subsequent tests will also fail as not all streams are being closed correctly due to:
This addresses this issue so that only the "necessary" tests fail.
In theory we should also be able to remove l.135-136 but to be safe I have kept them.
cc @pmeier @bjuncek