Skip to content

Commit

Permalink
Sharding IO tests(amazon web services and amazon web services 2) from…
Browse files Browse the repository at this point in the history
… java post commit task (#21808)

* Create job for preComimt AWS IO Direct from Java PostCommit job
* Create preCommit Job for AWS2 IO Direct from Java PostCommit job
* Delete AWS and AWS2  gradle task from main Java PostCommit job
  • Loading branch information
andoni-guzman authored Jul 2, 2022
1 parent eb5b7cc commit 85e8149
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_AWS2_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_Amazon-Web-Services2_IO_Direct',
gradleTask: 'sdks:java:io:amazon-web-services2:integrationTest',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
triggerPathPatterns: [
'^sdks/java/io/amazon-web-services2/.*$',
],
timeoutMins: 120,
)
builder.build {
publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_AWS_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_Amazon-Web-Services_IO_Direct',
gradleTask: ':sdks:java:io:amazon-web-services:integrationTest',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
triggerPathPatterns: [
'^sdks/java/io/amazon-web-services/.*$',
],
timeoutMins: 120,
)
builder.build {
publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
2 changes: 0 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ 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:amazon-web-services:integrationTest")
dependsOn(":sdks:java:io:amazon-web-services2:integrationTest")
dependsOn(":sdks:java:extensions:ml:postCommit")
}

Expand Down

0 comments on commit 85e8149

Please sign in to comment.