Skip to content

Commit

Permalink
[Java BQ] Storage API streaming load test (#28264)
Browse files Browse the repository at this point in the history
* more accurate regex for table spec; add toTableSpec

* storage api streaming load test

* use io performance test utilities

* only fail 30% of the time

* use periodicimpulse stopAfter

* use custom bq service with crashing behavior
  • Loading branch information
ahmedabu98 authored Oct 3, 2023
1 parent c7d7896 commit 2e05211
Show file tree
Hide file tree
Showing 8 changed files with 723 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
matrix:
job_name: ["beam_PostCommit_Java_IO_Performance_Tests"]
job_phrase: ["Run Java PostCommit IO Performance Tests"]
test_case: ["GCSPerformanceTest", "BigTablePerformanceTest"]
test_case: ["GCSPerformanceTest", "BigTablePerformanceTest", "BigQueryStorageApiStreamingPerformanceTest"]
steps:
- uses: actions/checkout@v4
- name: Setup repository
Expand Down
4 changes: 4 additions & 0 deletions it/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ tasks.register('GCSPerformanceTest') {

tasks.register('BigTablePerformanceTest') {
dependsOn(":it:google-cloud-platform:BigTablePerformanceTest")
}

tasks.register('BigQueryStorageApiStreamingPerformanceTest') {
dependsOn(":it:google-cloud-platform:BigQueryStorageApiStreamingPerformanceTest")
}
5 changes: 4 additions & 1 deletion it/google-cloud-platform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import groovy.json.JsonOutput
import org.apache.beam.gradle.IoPerformanceTestUtilities

plugins { id 'org.apache.beam.module' }
Expand Down Expand Up @@ -73,9 +74,11 @@ dependencies {
testImplementation project(path: ":sdks:java:io:google-cloud-platform")
testImplementation project(path: ":sdks:java:io:synthetic")
testImplementation library.java.mockito_inline
testImplementation project(path: ":sdks:java:extensions:google-cloud-platform-core", configuration: "testRuntimeMigration")
testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadowTest")
testRuntimeOnly library.java.slf4j_simple
}

tasks.register("GCSPerformanceTest", IoPerformanceTestUtilities.IoPerformanceTest, project, 'google-cloud-platform', 'FileBasedIOLT', ['configuration':'large','project':'apache-beam-testing', 'artifactBucket':'io-performance-temp'])
tasks.register("BigTablePerformanceTest", IoPerformanceTestUtilities.IoPerformanceTest, project, 'google-cloud-platform', 'BigTableIOLT', ['configuration':'large','project':'apache-beam-testing', 'artifactBucket':'io-performance-temp'])
tasks.register("BigTablePerformanceTest", IoPerformanceTestUtilities.IoPerformanceTest, project, 'google-cloud-platform', 'BigTableIOLT', ['configuration':'large','project':'apache-beam-testing', 'artifactBucket':'io-performance-temp'])
tasks.register("BigQueryStorageApiStreamingPerformanceTest", IoPerformanceTestUtilities.IoPerformanceTest, project, 'google-cloud-platform', 'BigQueryStreamingLT', ['configuration':'large', 'project':'apache-beam-testing', 'artifactBucket':'io-performance-temp'])
Loading

0 comments on commit 2e05211

Please sign in to comment.