While transient errors during tests is only a small irritation we can probably assume that intense users of DVT on BigQuery could also run into these errors.
We could consider adding a single retry in get_bigquery_client() in data_validation/clients.py.
We could investigate from google.api_core import retry as a property to auto retry (a single time) get_bigquery_client() if it throws with webbrowser.Error.
I've not fully researched all retry attributes but I believe this would do the trick in a clean way.
When running integration tests we occasionally have failures due to transient errors connecting to BigQuery:
Example:
While transient errors during tests is only a small irritation we can probably assume that intense users of DVT on BigQuery could also run into these errors.
We could consider adding a single retry in
get_bigquery_client()
indata_validation/clients.py
.We could investigate
from google.api_core import retry
as a property to auto retry (a single time)get_bigquery_client()
if it throws withwebbrowser.Error
.I've not fully researched all retry attributes but I believe this would do the trick in a clean way.