-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[datalabeling] debug failing tests #3759
Comments
History of the test_label_text: After this commit, we had several successful builds, so the last commit is not the direct culprit. |
Well I tried to repro, but |
For Update: |
I tracked down the issue to this point. For that particular test, we create a dataset and import a CSV file to it. The import job succeeds, but for some reason, the import job doesn't import anything (both The same code for importing just works on the production endpoint. Here is the code for repro. You can put it in
import os
import backoff
from google.api_core.exceptions import DeadlineExceeded
import pytest
import label_text
import testing_lib
PROJECT_ID = os.getenv('GCLOUD_PROJECT')
INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/text/input.csv'
INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling'
'/instruction/test.pdf')
# create a temporary dataset
dataset = testing_lib.create_dataset(PROJECT_ID)
result = testing_lib.import_data(dataset.name, 'TEXT', INPUT_GCS_URI)
print("Total count: {}".format(result.total_count))
print("Import count: {}".format(result.import_count)) If you run it against the production, it successfully import the data, but on the testing server, no data is imported. |
@busunkim96 Can you transfer this issue to |
It's unfortunately not possible to transfer issues between orgs. I opened a new issue on that repo. |
@busunkim96 Can u close this since u duplicated ? I will start the work from there |
We will disable
label_text_test.py::test_label_text
andmanage_dataset_test.py::test_list_dataset
indatalabeling
directory.Failed build
It seems like
label_text_test.py::test_label_text
.manage_dataset_test.py::test_list_dataset
.This bug is to debug them and re-enable them if possible.
The text was updated successfully, but these errors were encountered: