python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

bigquery.datalab-migration.samples_test: test_datalab_load_table_from_dataframe failed

Open flaky-bot[bot] opened this issue 2 years ago • 4 comments

Note: #8306 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 11e9005835a6f260968ee9ba3198ef530d30af5b buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/bigquery/datalab-migration/samples_test.py", line 299, in test_datalab_load_table_from_dataframe
    table.insert(dataframe)  # Starts steaming insert of data
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/bigquery/_table.py", line 375, in insert
    raise e
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/bigquery/_table.py", line 373, in insert
    response = self._api.tabledata_insert_all(self._name_parts, rows)
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/bigquery/_api.py", line 433, in tabledata_insert_all
    return google.datalab.utils.Http.request(url, data=data, credentials=self.credentials)
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/utils/_http.py", line 158, in request
    raise RequestException(response.status, content)
google.datalab.utils._http.RequestException: HTTP request failed: The service is currently unavailable.

flaky-bot[bot] avatar Sep 17 '22 11:09 flaky-bot[bot]

Looks like this issue is flaky. :worried:

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (11e9005835a6f260968ee9ba3198ef530d30af5b), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

flaky-bot[bot] avatar Sep 17 '22 12:09 flaky-bot[bot]

Flaky issue is no longer happening, closing for now.

dandhlee avatar Sep 30 '22 16:09 dandhlee

Oops! Looks like this issue is still flaky. It failed again. :grimacing:

I reopened the issue, but a human will need to close it again.


commit: 26fd536d49798b6dab042078eaeb101f88c22c48 buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/bigquery/datalab-migration/samples_test.py", line 299, in test_datalab_load_table_from_dataframe
    table.insert(dataframe)  # Starts steaming insert of data
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/bigquery/_table.py", line 375, in insert
    raise e
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/bigquery/_table.py", line 373, in insert
    response = self._api.tabledata_insert_all(self._name_parts, rows)
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/bigquery/_api.py", line 433, in tabledata_insert_all
    return google.datalab.utils.Http.request(url, data=data, credentials=self.credentials)
  File "/workspace/bigquery/datalab-migration/.nox/py-3-8/lib/python3.8/site-packages/google/datalab/utils/_http.py", line 158, in request
    raise RequestException(response.status, content)
google.datalab.utils._http.RequestException: HTTP request failed: The service is currently unavailable.

flaky-bot[bot] avatar Oct 08 '22 11:10 flaky-bot[bot]

The Datalab package is deprecated and hasn't released a new version since mid-2020 (other than the most recent release officially marking the package deprecated). https://pypi.org/project/datalab/1.2.1/ We should consider whether we still need these tests or if we want to freeze the migration content (and eventually deprecate it as well).

meredithslota avatar Oct 17 '22 21:10 meredithslota

While we figure out the next steps for Datalab, I added retries as a quick fix for this issue.

kweinmeister avatar Oct 23 '22 19:10 kweinmeister