Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .test-infra/jenkins/job_PreCommit_Java_GCP_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',
gradleTask: ':sdks:java:io:google-cloud-platform:postCommit',
gradleSwitches: [
'-PdisableSpotlessCheck=true'
], // spotless checked in separate pre-commit
timeoutMins: 120,
triggerPathPatterns: [
'^sdks/java/io/google-cloud-platform/.*$',
]
)
builder.build {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this different from the other precommit builder defaults?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, they are different. I added the paths to the direct runner and gcp io folders.
Thanks Kenn!

publishers {
archiveJunit('**/build/test-results/**/*.xml')
}
}
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ 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:google-cloud-platform:postCommit")
dependsOn(":sdks:java:io:debezium:integrationTest")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These line were removed in #21804 but added back in this PR. Sounds like a rebase issue. Should do a rebase instead of merge.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you're right - good catch, I thought that was part of breaking this apart, but it is not. @fernando-wizeline guessing that wasn't intentional?

@Abacn want to put up a PR to remove those lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is so embarrassing, sorry.
That is correct, it was not intentional.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@damccorm will do

Copy link
Contributor

@damccorm damccorm Jun 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I should've caught it too! Thanks Yi

dependsOn(":sdks:java:io:jdbc:integrationTest")
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")
Expand Down