-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
CI: Fix Flakey GBQ Tests #30630
CI: Fix Flakey GBQ Tests #30630
Conversation
Hmm wouldn't this keep the dataset lingering around? Perhaps an alternate is to just split this into two fixtures and scope the dataset one to say the module level or even higher |
Sure if we don't want to keep the dataset - then an easy way is to give the dataset a random name and create/delete in this fixture. I've pushed the update. |
|
||
self.client = _get_client() | ||
self.dataset = self.client.dataset(dataset_id) | ||
try: |
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.
hmm, are we supposed to clean up these datasets? @tswast
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.
We now just do this here:
pandas/pandas/tests/io/test_gbq.py
Line 173 in a91b8a3
self.client.delete_dataset(self.dataset, delete_contents=True) |
lgtm. very minor comment. ping on green. |
Sure done. Link to my travis fork where these tests have passed: (since they only run on our master branch) |
great thanks @alimcmaster1 |
Let me know if you see any more issues - thanks! |
thanks @alimcmaster1 |
-ref #30478 (comment)
We see the below in the logs:
https://travis-ci.org/pandas-dev/pandas/jobs/631599036
Despite attempting to delete the dataset in the previous line.
self.client.delete_dataset(self.dataset, delete_contents=True)
Since we run with
dist=loadfile
these tests are run sequentially by pytest. But they could potentially clash across builds?We now create a unique dataset name per test function and teardown when complete
GBQ Tests will run against my fork will post results on here.
cc. @jreback, @tswast