Yi Hu created BEAM-14357:
----------------------------

             Summary: Python unit test 
BigqueryFullResultStreamingMatcher.test__get_query_result_timeout fails locally
                 Key: BEAM-14357
                 URL: https://issues.apache.org/jira/browse/BEAM-14357
             Project: Beam
          Issue Type: New Feature
          Components: io-py-gcp
         Environment: macOS M1 platform
            Reporter: Yi Hu


Testing on local machine Command: 

pytest -v apache_beam/io/gcp/tests/bigquery_matcher_test.py

*E           google.api_core.exceptions.BadRequest: 400 POST 
https://bigquery.googleapis.com/bigquery/v2/projects/some-project/jobs?prettyPrint=false:
 ProjectId and DatasetId must be non-empty*

*E*           

*E           Location: None*

*E           Job ID: 32fd52d1-324f-472f-b660-0d3bcc41d5a7*

*1 failed, 6 passed in 106.84 seconds*

---------

However, if run this test with xdist flag, it will pass:

pytest -v -n 8 apache_beam/io/gcp/tests/bigquery_matcher_test.py

*7 passed in 3.85 seconds*{*}{*}

---------

Strangely, using xdist flag on all gcp tests, it fails:

pytest -v -n 8 apache_beam/io/gcp/

One test fails after minute long waiting:

*E           google.api_core.exceptions.BadRequest: 400 POST 
https://bigquery.googleapis.com/bigquery/v2/projects/some-project/jobs?prettyPrint=false:
 ProjectId and DatasetId must be non-empty*

*E*           

*E           Location: None*

*E           Job ID: 713e7c78-c693-4f87-a04d-2f0741d2ed67*

*1 failed, 350 passed, 71 skipped, 233 warnings in 139.83 seconds*

---------

Likely due to timing issue: from the comment of test class 
BigqueryFullResultStreamingMatcher, 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to