Skip to content

Upgrade Guava to 33.8.0-jre, migrate to Java 11 / Hadoop 3.3.6, and update CDAP to 6.11.7-SNAPSHOT - #56

Merged
aviachar merged 2 commits into
data-integrations:developfrom
AbhishekKumar9984:guava_version
Nov 28, 2026
Merged

aviachar merged 2 commits into
data-integrations:developfrom
AbhishekKumar9984:guava_version

Conversation

@AbhishekKumar9984

@AbhishekKumar9984 AbhishekKumar9984 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  1. Guava & Netty alignment: Upgrades com.google.guava:guava to 33.8.0-jre (enforced via maven-enforcer-plugin) and aligns Netty in the e2e-tests profile to 4.1.141.Final via io.netty:netty-bom (matching CDAP release/6.11), while updating cdap-e2e-framework from 0.1.0-SNAPSHOT to 0.5.0-SNAPSHOT.
  2. CDAP & runtime upgrade: Updates <cdap.version> to 6.11.7-SNAPSHOT, sets the parent artifact range to [6.11.2-SNAPSHOT,7.0.0-SNAPSHOT), upgrades Hadoop to 3.3.6, and migrates unit and E2E builds to Java 11.

Changes

  • pom.xml:
    • Upgraded <guava.version> to 33.8.0-jre, pinned com.google.guava:guava in <dependencyManagement>, and added maven-enforcer-plugin (3.5.0) banning Guava < 33.8.0-jre.
    • Updated <cdap.version> to 6.11.7-SNAPSHOT, <hadoop.version> to 3.3.6, and cdap-maven-plugin <cdapArtifacts> to system:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT).
    • Updated e2e-tests profile to io.cdap.tests.e2e:cdap-e2e-framework:0.5.0-SNAPSHOT and imported io.netty:netty-bom:4.1.141.Final in e2e-tests <dependencyManagement>.
    • Migrated Maven compiler (<release>11</release>), surefire, jacoco, bundle, and javadoc plugins for Java 11.
  • .github/workflows/build.yml & .github/workflows/e2e.yml:
    • Added Temurin JDK 11 setup, minimal permissions, pull_request trigger on e2e.yml, and commit-SHA-pinned actions (persist-credentials: false) for Zizmor compliance.

Verification

  • mvn clean package (Temurin JDK 11, against published io.cdap.cdap:cdap:6.11.7-SNAPSHOT): BUILD SUCCESS (Tests run: 69, Failures: 0, Errors: 0, Skipped: 1; Enforcer, RAT, Checkstyle, and cdap-maven-plugin all pass).
  • mvn test-compile -P e2e-tests (Temurin JDK 11, with cdap-e2e-framework:0.5.0-SNAPSHOT): BUILD SUCCESS (12/12 E2E test sources compile cleanly).
  • Verified generated zendesk-plugins-1.2.2-SNAPSHOT.json declares parents: ["system:cdap-data-pipeline[6.11.2-SNAPSHOT,7.0.0-SNAPSHOT)"].
  • Testing evidence: https://docs.google.com/spreadsheets/d/1Cw6Z_k3wlks7sAC4-Kg6FTIMRL7-zxLlsJIXvVJLrb8/edit?gid=0#gid=0

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Google Guava dependency version in pom.xml from 31.0.1-jre to 32.0.0-jre. There are no review comments, and I have no additional feedback to provide.

Comment thread .vscode/settings.json Resolved

@dheeraj-kholia-cs dheeraj-kholia-cs left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@deepika-lalwani123 deepika-lalwani123 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment thread pom.xml Resolved
@AbhishekKumar9984

Copy link
Copy Markdown
Contributor Author

@deepika-lalwani123 Updated the PR description to call out the dependency on cdapio/cdap#16279. Also verified that AttemptTimeLimiters / SimpleTimeLimiter is not used in this codebase (RetryerBuilder in ZendeskBatchSource only uses RetryStrategies, WaitStrategies, and StopStrategies).

@deepika-lalwani123 deepika-lalwani123 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

A few more points on the latest commit:

  1. The lifecycle change means CDAP never starts without credentials. In BaseZendeskBatchSourceTest, initialize() now returns before HydratorTestBase.initialize() when credentials are missing. Previously CDAP started first and the tests skipped afterwards. cdap.version is still 6.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.

  2. Description vs pom. The description says this depends on cdapio/cdap#16279, but cdap.version stays 6.6.0 (pom.xml L60), the test dependency is cdap-data-pipeline2_2.11 (L262) and the parent range starts at 6.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.

  3. finish() skips CDAP teardown if Zendesk cleanup throws. If deleteUser/deleteGroup fails in tearDownTestClass(), HydratorTestBase.finish() never runs. Please wrap it:

try {
  tearDownTestClass();
} finally {
  if (ADMIN_EMAIL != null && API_TOKEN != null && SUBDOMAIN != null) {
    HydratorTestBase.finish();
  }
}
  1. Javadoc. It says subclasses "override" setupTestClass() / tearDownTestClass(), but they are static, and initialize() calls the base versions directly, so a subclass version would never be called. Please make them private static and drop that sentence.

  2. cdap-explore-jdbc exclusion on hydrator-test (pom.xml L283-288): please add a comment saying why it is needed, or remove it.

@AbhishekKumar9984 AbhishekKumar9984 changed the title fixes Upgrade Guava to 32.0.0-jre, migrate to Hadoop 3.3.6, and bump minimum CDAP to 6.12.0-SNAPSHOT Nov 20, 2026
@AbhishekKumar9984

AbhishekKumar9984 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

@deepika-lalwani123 Thanks for the thorough review! Addressed all 5 points in cf6b61c:

  1. BaseZendeskBatchSourceTest lifecycle reordering (plus points 3 & 4): Fully reverted BaseZendeskBatchSourceTest.java to match develop (as done in the Salesforce PR), so HydratorTestBase.initialize() / HydratorTestBase.finish() start and tear down the CDAP runtime normally before credential-gated tests are skipped via Assume.assumeNotNull (eliminating the shadowed lifecycle hooks, skipped teardown risk, and static-method Javadoc issue).
  2. Description vs pom.xml: Aligned pom.xml with the other CDAP 6.12 PRs — bumped <cdap.version> to 6.12.0-SNAPSHOT, migrated test dependency to cdap-data-pipeline3_2.12, upgraded <hadoop.version> to 3.3.6 (with slf4j-reload4j/reload4j exclusions), tightened the cdap-data-pipeline parent range to [6.12.0-SNAPSHOT,7.0.0-SNAPSHOT), and updated the PR title and description (tracking Upgrade Guava library to 32.0.0-jre cdapio/cdap#16291).
  3. cdap-explore-jdbc exclusion: Removed the <exclusion> from hydrator-test.

Could you please add the build label to trigger the CI workflow (I don't have label permissions on this repo)? Verified locally under JDK 8 against a Guava-32 6.12.0-SNAPSHOT build (mvn clean package — Tests run: 69, Failures: 0, Errors: 0, Skipped: 1, with ZendeskBatchSourceTest starting and stopping the CDAP test runtime cleanly). Note that CI will hit stopAndWait() against Central Snapshots' current Guava-13 6.12.0-SNAPSHOT until cdapio/cdap#16291 merges and publishes a new snapshot; we will hold merging and re-run CI then.

@AbhishekKumar9984 AbhishekKumar9984 changed the title Upgrade Guava to 32.0.0-jre, migrate to Hadoop 3.3.6, and bump minimum CDAP to 6.12.0-SNAPSHOT Upgrade Guava to 33.8.0-jre, migrate to Java 11 / Hadoop 3.3.6, and update CDAP to 6.11.7-SNAPSHOT Nov 26, 2026
…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
…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
@aviachar
aviachar merged commit 1db9827 into data-integrations:develop Nov 28, 2026
9 checks passed
AbhishekKumar9984 added a commit to AbhishekKumar9984/zendesk that referenced this pull request Nov 30, 2026
…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)
aviachar added a commit that referenced this pull request Nov 30, 2026
[🍒] Cherry-pick #56 onto release/1.2 and bump version to 1.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants