-
Notifications
You must be signed in to change notification settings - Fork 6.6k
fix: adjust bigquery/cloud-client to allow concurrent testing #3136
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
fix: adjust bigquery/cloud-client to allow concurrent testing #3136
Conversation
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 when the tests pass. Optional change suggestion - I've been asked to avoid reusing resources in testing and instead use unique resources per-test (e.g. create a database with UUID in the name).
In this case, I'm generally more okay with datasets being longlived because there's a higher expectation of persistence by users, and the dataset itself has no cost (resources inside are a different story). |
…samples into fix-2580-natality
if entry.entity_type != 'view'] | ||
client.update_dataset(ds, ['access_entries']) | ||
except Exception: | ||
pass |
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.
nit: can we add a print statement at minimum here or catch a specific exception?
Abandoning this one for a different approach. |
Natality test was overly stateful. Change to optimistic dataset creation and elide truncation mode to allow for concurrent overwriting.
Fixes: #2850