-
Notifications
You must be signed in to change notification settings - Fork 312
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: add unit test covering the case where worker streams are stopped early #2127
Conversation
Looking at the test failures, there's a chance that
are related to this change. I'll give them a try locally. Edit: They are passing locally (and in other versions of python). Perhaps it was just a temporary issue with the |
I see Edit: I made the change and confirmed that Python 3.7 unit tests now pass locally.
|
I took another look at the failing snippet tests and still can't figure out what might be causing these failures, as it is passing locally. The test verifies that the data was downloaded but then fails at the assertion that is looking for this log:
Hypotheses:
Either way, I think so long as the data is downloaded, I'm 80% comfortable removing this check in e3315a8 We have other tests for when the BQ Storage API kicks in. |
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.
Thanks a lot for reviewing the PR and adding the tests! Since we are deleting the part verifying the log, I wonder if it would be useful to add something to check that a storage read stream was indeed created? (maybe it's not necessary because the sample already set create_bqstorage_client=True
)
This PR is a follow-up to #2034 with the purpose of testing the error condition.
Note: I have confirmed that this test fails without the changes from #2034. Actually, it hangs forever because the child threads aren't shutdown but the assertions do fail when I step through with a debugger.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #2032 🦕