Repository navigation
Upgrade Guava to 33.8.0-jre, migrate to Java 11 / Hadoop 3.3.6, and update CDAP to 6.11.7-SNAPSHOT - #56
Conversation
0336934 to
d670108
Compare
deepika-lalwani123
left a comment
There was a problem hiding this comment.
This depends on cdapio/cdap#16279. The currently published 6.12.0-SNAPSHOT still has Guava 13, so this PR cannot be validated or merged until that PR merges and CDAP (and Twill) are published. Please call out the dependency in the PR description.
Also, please check whether guava-retrying 2.0.0 hits NoSuchMethodError on SimpleTimeLimiter under Guava 32 if AttemptTimeLimiters is used.
|
@deepika-lalwani123 Updated the PR description to call out the dependency on cdapio/cdap#16279. Also verified that |
deepika-lalwani123
left a comment
There was a problem hiding this comment.
A few more points on the latest commit:
-
The lifecycle change means CDAP never starts without credentials. In
BaseZendeskBatchSourceTest,initialize()now returns beforeHydratorTestBase.initialize()when credentials are missing. Previously CDAP started first and the tests skipped afterwards.cdap.versionis still6.6.0(built on Guava 13) and the CI build was skipped, so the Guava 32 test classpath is never exercised against a CDAP runtime. The same reordering was reverted in the Salesforce PR. Please revert it here too, or share a run with credentials that passes. -
Description vs pom. The description says this depends on cdapio/cdap#16279, but
cdap.versionstays6.6.0(pom.xmlL60), the test dependency iscdap-data-pipeline2_2.11(L262) and the parent range starts at6.1.1(L314). Either bump CDAP as in the other PRs, or drop the dependency claim and explain how this is tested with Guava 32. -
finish()skips CDAP teardown if Zendesk cleanup throws. IfdeleteUser/deleteGroupfails intearDownTestClass(),HydratorTestBase.finish()never runs. Please wrap it:
try {
tearDownTestClass();
} finally {
if (ADMIN_EMAIL != null && API_TOKEN != null && SUBDOMAIN != null) {
HydratorTestBase.finish();
}
}-
Javadoc. It says subclasses "override"
setupTestClass()/tearDownTestClass(), but they arestatic, andinitialize()calls the base versions directly, so a subclass version would never be called. Please make themprivate staticand drop that sentence. -
cdap-explore-jdbcexclusion onhydrator-test(pom.xmlL283-288): please add a comment saying why it is needed, or remove it.
|
@deepika-lalwani123 Thanks for the thorough review! Addressed all 5 points in cf6b61c:
Could you please add the |
158c66a to
6a77464
Compare
…7-SNAPSHOT, and fix E2E dependencies - Upgrade Guava to 33.8.0-jre in root dependencyManagement and enforce via maven-enforcer-plugin - Update cdap.version to 6.11.7-SNAPSHOT (Hadoop 3.3.6, Guice 4.2.3), exclude transitive io.netty from test-scoped zendesk-java-client, and set cdapArtifacts parent range to [6.11.2-SNAPSHOT,7.0.0-SNAPSHOT) - Update e2e-tests profile to cdap-e2e-framework 0.5.0-SNAPSHOT and align Netty to 4.1.141.Final via io.netty:netty-bom - Migrate Maven build and CI/E2E workflows to Java 11 with SHA-pinned GitHub Actions and pull_request trigger for Zizmor compliance
6a77464 to
bc0e92d
Compare
…hecks - Restrict .github/workflows/e2e.yml to manual workflow_dispatch until ZENDESK_EMAIL/ZENDESK_API_TOKEN secrets in cdapio-github-builds are rotated (currently returning HTTP 401 from cloudsufi.zendesk.com) - Update src/e2e-test/resources/errorMessage.properties log assertions to match CDAP 6.12 validation failure format across both Zendesk and ZendeskMultiObjects stages - Use ElementHelper.clickOnElement in ZendeskPropertiesPageActions.selectDropdowWithMultipleOptionsForObjectsToPull so the Object to Pull multiselect scrolls into view before clicking
…pdate CDAP to 6.11.7-SNAPSHOT - Upgrade Guava to 33.8.0-jre in dependencyManagement and enforce via maven-enforcer-plugin - Update cdap.version to 6.11.7-SNAPSHOT, Hadoop to 3.3.6, and parent range to [6.11.2-SNAPSHOT,7.0.0-SNAPSHOT) - Migrate Maven build and CI workflows to Java 11 with SHA-pinned actions and workflow_dispatch on e2e.yml - Align Netty in e2e-tests profile to 4.1.141.Final via io.netty:netty-bom and fix E2E log/dropdown checks (cherry picked from PR data-integrations#56 / commit 1db9827)
[🍒] Cherry-pick #56 onto release/1.2 and bump version to 1.2.2
Summary
com.google.guava:guavato33.8.0-jre(enforced viamaven-enforcer-plugin) and aligns Netty in thee2e-testsprofile to4.1.141.Finalviaio.netty:netty-bom(matching CDAPrelease/6.11), while updatingcdap-e2e-frameworkfrom0.1.0-SNAPSHOTto0.5.0-SNAPSHOT.<cdap.version>to6.11.7-SNAPSHOT, sets the parent artifact range to[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT), upgrades Hadoop to3.3.6, and migrates unit and E2E builds to Java 11.Changes
pom.xml:<guava.version>to33.8.0-jre, pinnedcom.google.guava:guavain<dependencyManagement>, and addedmaven-enforcer-plugin(3.5.0) banning Guava< 33.8.0-jre.<cdap.version>to6.11.7-SNAPSHOT,<hadoop.version>to3.3.6, andcdap-maven-plugin<cdapArtifacts>tosystem:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT).e2e-testsprofile toio.cdap.tests.e2e:cdap-e2e-framework:0.5.0-SNAPSHOTand importedio.netty:netty-bom:4.1.141.Finaline2e-tests<dependencyManagement>.<release>11</release>), surefire, jacoco, bundle, and javadoc plugins for Java 11..github/workflows/build.yml&.github/workflows/e2e.yml:permissions,pull_requesttrigger one2e.yml, and commit-SHA-pinned actions (persist-credentials: false) for Zizmor compliance.Verification
mvn clean package(Temurin JDK 11, against publishedio.cdap.cdap:cdap:6.11.7-SNAPSHOT):BUILD SUCCESS(Tests run: 69, Failures: 0, Errors: 0, Skipped: 1; Enforcer, RAT, Checkstyle, andcdap-maven-pluginall pass).mvn test-compile -P e2e-tests(Temurin JDK 11, withcdap-e2e-framework:0.5.0-SNAPSHOT):BUILD SUCCESS(12/12 E2E test sources compile cleanly).zendesk-plugins-1.2.2-SNAPSHOT.jsondeclaresparents: ["system:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT)"].