[BEAM-7437] Add streaming flag to BQ streaming inserts IT test#8934
[BEAM-7437] Add streaming flag to BQ streaming inserts IT test#8934udim merged 2 commits intoapache:masterfrom
Conversation
|
Run Portable_Python PreCommit |
|
Run Portable_Python PreCommit |
I missed adding the streaming=True option to the PipelineOptions earlier. Since TestStream ends once watermark advances to infinity, this test passed. But, after adding the streaming flag, it failed because the BigqueryFullResultMatcher did not poll for changes for a streaming test pipeline. Added BigqueryFullResultStreamingMatcher to match while polling for changes.
|
Run Python PostCommit |
1 similar comment
|
Run Python PostCommit |
|
R: @pabloem |
|
r: @udim |
| A timeout can be specified. | ||
| """ | ||
|
|
||
| def __init__(self, project, query, data, timeout=MAX_TIMESTAMP): |
There was a problem hiding this comment.
Could you make the default timeout to be finite. Would 5/10/15 minutes work? (the less the better - having post-commit tests hang until their 2 hour deadline is not fun. It easier to debug where the test timed out if it raises a TimeoutError and the stacktrace is printed)
There was a problem hiding this comment.
I think 5 minutes should be more than enough. I'll make the change.
|
Run Python PreCommit |
1 similar comment
|
Run Python PreCommit |
|
Run Python PostCommit |
1 similar comment
|
Run Python PostCommit |
|
Run Python PreCommit |
|
Hi @udim |
|
Run Python PostCommit |
3 similar comments
|
Run Python PostCommit |
|
Run Python PostCommit |
|
Run Python PostCommit |
|
I'm sorry, postcommits seem to be broken ATM: https://issues.apache.org/jira/browse/BEAM-7687 |
|
Thanks @udim! |
|
Run Python PostCommit |
1 similar comment
|
Run Python PostCommit |
|
Tests pass. |
|
Thank You @udim :) |
I missed adding the streaming=True option to the PipelineOptions earlier.
Since TestStream ends once watermark advances to infinity,
this test passed.
But, after adding the streaming flag, it failed,
because the BigqueryFullResultMatcher did not poll for changes in a streaming test pipeline.
Added BigqueryFullResultStreamingMatcher to poll BigQuery before matching.
Please add a meaningful description for your change here
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username).[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.