Skip to content

Commit

Permalink
Sharding IO tests (Kafka, Debezium, JDBC, Kinesis, Neo4j) from the ja…
Browse files Browse the repository at this point in the history
…vaPostCommit task (apache#21804)
  • Loading branch information
benWize authored and prodriguezdefino committed Jun 21, 2022
1 parent 33f2fb6 commit 0dd691b
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 5 deletions.
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_Debezium_IO_Direct.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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 PrecommitJobBuilder

PrecommitJobBuilder builder = new PrecommitJobBuilder(
scope: this,
nameBase: 'Java_Debezium_IO_Direct',
gradleTask: ':sdks:java:io:debezium:integrationTest',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
triggerPathPatterns: [
'^sdks/java/io/debezium/.*$',
],
timeoutMins: 60,
)
builder.build {
publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_JDBC_IO_Direct.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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 PrecommitJobBuilder

PrecommitJobBuilder builder = new PrecommitJobBuilder(
scope: this,
nameBase: 'Java_JDBC_IO_Direct',
gradleTask: ':sdks:java:io:jdbc:integrationTest',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
triggerPathPatterns: [
'^sdks/java/io/jdbc/.*$',
],
timeoutMins: 60,
)
builder.build {
publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_Kafka_IO_Direct.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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 PrecommitJobBuilder

PrecommitJobBuilder builder = new PrecommitJobBuilder(
scope: this,
nameBase: 'Java_Kafka_IO_Direct',
gradleTask: ':sdks:java:io:kafka:kafkaVersionsCompatibilityTest',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
triggerPathPatterns: [
'^sdks/java/io/kafka/.*$',
],
timeoutMins: 120,
)
builder.build {
publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_Kinesis_IO_Direct.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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 PrecommitJobBuilder

PrecommitJobBuilder builder = new PrecommitJobBuilder(
scope: this,
nameBase: 'Java_Kinesis_IO_Direct',
gradleTask: ':sdks:java:io:kinesis:integrationTest',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
triggerPathPatterns: [
'^sdks/java/io/kinesis/.*$',
],
timeoutMins: 60,
)
builder.build {
publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_Neo4j_IO_Direct.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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 PrecommitJobBuilder

PrecommitJobBuilder builder = new PrecommitJobBuilder(
scope: this,
nameBase: 'Java_Neo4j_IO_Direct',
gradleTask: ':sdks:java:io:neo4j:integrationTest',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
triggerPathPatterns: [
'^sdks/java/io/neo4j/.*$',
],
timeoutMins: 60,
)
builder.build {
publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
5 changes: 0 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,10 @@ tasks.register("javaPreCommitPortabilityApi") {
tasks.register("javaPostCommit") {
dependsOn(":sdks:java:extensions:google-cloud-platform-core:postCommit")
dependsOn(":sdks:java:extensions:zetasketch:postCommit")
dependsOn(":sdks:java:io:debezium:integrationTest")
dependsOn(":sdks:java:io:jdbc:integrationTest")
dependsOn(":sdks:java:io:google-cloud-platform:postCommit")
dependsOn(":sdks:java:io:kinesis:integrationTest")
dependsOn(":sdks:java:io:amazon-web-services:integrationTest")
dependsOn(":sdks:java:io:amazon-web-services2:integrationTest")
dependsOn(":sdks:java:extensions:ml:postCommit")
dependsOn(":sdks:java:io:kafka:kafkaVersionsCompatibilityTest")
dependsOn(":sdks:java:io:neo4j:integrationTest")
}

tasks.register("javaPostCommitSickbay") {
Expand Down

0 comments on commit 0dd691b

Please sign in to comment.