Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-14357

Python unit test BigqueryFullResultStreamingMatcher.test__get_query_result_timeout fails locally

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.38.0
    • 2.39.0
    • io-py-gcp, test-failures
    • None
    • macOS M1 platform

    Description

      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

       

      Attachments

        Issue Links

          Activity

            People

              yihu Yi Hu
              yihu Yi Hu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h