Skip to content
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

Wait for load jobs to complete in system tests. #3782

Merged
merged 3 commits into from
Aug 11, 2017

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Aug 9, 2017

Specify job ID in BQ DB-API DML tests to allow for further test flake
debugging.

Attempting to debug #3742

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 9, 2017
@tswast
Copy link
Contributor Author

tswast commented Aug 9, 2017

On closer look, the job.result() calls might be redundant.

@lukesneeringer
Copy link
Contributor

@tswast Do you want this merged?

Config.CURSOR.execute(query_template.format(dataset_name, table_name))
Config.CURSOR.execute(
query_template.format(dataset_name, table_name),
job_id='test_dbapi_w_dml_{}'.format(str(uuid.uuid4())))

This comment was marked as spam.

This comment was marked as spam.

@tswast tswast changed the title BQ: wait for load jobs to complete in system tests. DO_NOT_MERGE BQ: wait for load jobs to complete in system tests. Aug 10, 2017
@lukesneeringer
Copy link
Contributor

That answers that. :-)

@lukesneeringer lukesneeringer added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 10, 2017
@lukesneeringer lukesneeringer changed the title DO_NOT_MERGE BQ: wait for load jobs to complete in system tests. Wait for load jobs to complete in system tests. Aug 10, 2017
@lukesneeringer lukesneeringer added the api: bigquery Issues related to the BigQuery API. label Aug 10, 2017
@tswast tswast removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 10, 2017
@tswast
Copy link
Contributor Author

tswast commented Aug 10, 2017

I updated the .result() futures API calls to have a 2 minute timeout rather than potentially hang forever. I think the .result() was redundant with the retry until job done calls, so I removed those, too.

@lukesneeringer lukesneeringer merged commit 5145022 into googleapis:master Aug 11, 2017
@tswast tswast deleted the bq-3742-flake branch August 11, 2017 15:32
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants