-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BigQuery Storage Write API wrapper for Python SDK (#25685)
* discover one config * creating dlq for the schematransform * bq storage write api wrapper * support creating easy Python-using-Java cross-language gradle tasks for a specified expansion service * add Python-using-Java jenkins tests for GCP expansion service * Address comments: integrate with WriteToBigQuery use shadowJar move port acquisition closer to expansion service launch * typo * address comments and add tests for new bigquery tools * lint * skip bq tools test if GCP dependencies not installed * sync with HEAD, fix encoding positions mismatch * fix some tests * return xvr job back to normal * missing import
- Loading branch information
1 parent
f50c8d5
commit fc7a240
Showing
24 changed files
with
1,326 additions
and
127 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
.test-infra/jenkins/job_PostCommit_Python_CrossLanguage_Gcp_Dataflow.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
import CommonJobProperties as commonJobProperties | ||
import PostcommitJobBuilder | ||
|
||
|
||
import static PythonTestProperties.CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS | ||
|
||
|
||
// This job runs end-to-end cross language GCP IO tests with DataflowRunner. | ||
// Collects tests with the @pytest.mark.uses_gcp_java_expansion_service decorator | ||
PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python_Xlang_Gcp_Dataflow', | ||
'Run Python_Xlang_Gcp_Dataflow PostCommit', 'Python_Xlang_Gcp_Dataflow (\"Run Python_Xlang_Gcp_Dataflow PostCommit\")', this) { | ||
description('Runs end-to-end cross language GCP IO tests on the Dataflow runner.') | ||
|
||
|
||
// Set common parameters. | ||
commonJobProperties.setTopLevelMainJobProperties(delegate) | ||
|
||
|
||
// Publish all test results to Jenkins | ||
publishers { | ||
archiveJunit('**/pytest*.xml') | ||
} | ||
|
||
|
||
// Gradle goals for this job. | ||
steps { | ||
CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS.each { pythonVersion -> | ||
shell("echo \"Running cross language GCP IO tests with Python ${pythonVersion} on DataflowRunner.\"") | ||
gradle { | ||
rootBuildScriptDir(commonJobProperties.checkoutDir) | ||
tasks(":sdks:python:test-suites:dataflow:py${pythonVersion.replace('.', '')}:gcpCrossLanguagePythonUsingJava") | ||
commonJobProperties.setGradleSwitches(delegate) | ||
} | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
.test-infra/jenkins/job_PostCommit_Python_CrossLanguage_Gcp_Direct.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
import CommonJobProperties as commonJobProperties | ||
import PostcommitJobBuilder | ||
|
||
|
||
import static PythonTestProperties.CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS | ||
|
||
|
||
// This job runs end-to-end cross language GCP IO tests with DirectRunner. | ||
// Collects tests with the @pytest.mark.uses_gcp_java_expansion_service decorator | ||
PostcommitJobBuilder.postCommitJob('beam_PostCommit_Python_Xlang_Gcp_Direct', | ||
'Run Python_Xlang_Gcp_Direct PostCommit', 'Python_Xlang_Gcp_Direct (\"Run Python_Xlang_Gcp_Direct PostCommit\")', this) { | ||
description('Runs end-to-end cross language GCP IO tests on the Direct runner.') | ||
|
||
|
||
// Set common parameters. | ||
commonJobProperties.setTopLevelMainJobProperties(delegate) | ||
|
||
|
||
// Publish all test results to Jenkins | ||
publishers { | ||
archiveJunit('**/pytest*.xml') | ||
} | ||
|
||
|
||
// Gradle goals for this job. | ||
steps { | ||
CROSS_LANGUAGE_VALIDATES_RUNNER_PYTHON_VERSIONS.each { pythonVersion -> | ||
shell("echo \"Running cross language GCP IO tests with Python ${pythonVersion} on DirectRunner.\"") | ||
gradle { | ||
rootBuildScriptDir(commonJobProperties.checkoutDir) | ||
tasks(":sdks:python:test-suites:direct:py${pythonVersion.replace('.', '')}:gcpCrossLanguagePythonUsingJava") | ||
commonJobProperties.setGradleSwitches(delegate) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.