You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "xinnyuli (via GitHub)" <gi...@apache.org> on 2026/09/01 13:19:21 UTC

[PR] [Improve][E2E][DB2] Replace Db2CDCIT wget with DependencyJar [seatunnel]

xinnyuli opened a new pull request, #12041:
URL: https://github.com/apache/seatunnel/pull/12041

   ### Purpose of this pull request
   
   Closes #12018
   
   The DB2 CDC E2E currently downloads the DB2 JDBC Driver from Maven Central via `wget` inside the SeaTunnel container. This makes the test dependent on Maven Central being reachable at runtime and duplicates the Driver dependency already declared in the module's pom.
   
   This PR migrates `Db2CDCIT` to the `DependencyJar` mechanism introduced in #11572, following the same pattern as #11904 (MySQL error tests).
   
   Changes:
   - Remove the hard-coded `driverUrl()` and the container-side `wget` + `cp` shell command
   - Resolve the existing `com.ibm.db2.jcc:db2jcc` test dependency via `DependencyJar.ofClassName("com.ibm.db2.jcc.DB2Driver")`
   - Copy the same resolved JAR into both `/tmp/seatunnel/plugins/DB2-CDC/lib` and `/tmp/seatunnel/plugins/Jdbc/lib`
   
   The GBase 8a non-Maven fallback in `AbstractJdbcIT` is intentionally left unchanged, per the issue's scope note.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This is a test-infrastructure-only change; runtime behavior of the DB2 CDC connector is unaffected.
   
   ### How was this patch tested?
   
   - Ran `./mvnw spotless:apply` — no format issues.
   - Full local build succeeded: `./mvnw clean install -DskipTests -Dcheckstyle.skip -Dspotless.check.skip -Dlicense.skipAddThirdParty`.
   - Relying on CI to run the DB2 CDC E2E (`connector-cdc-db2-e2e`) to verify the driver is staged correctly.
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If necessary, please update `incompatible-changes.md` to describe the incompatibility caused by this PR.
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     2. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
     3. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
     4. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
     5. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improve][E2E][DB2] Replace Db2CDCIT wget with DependencyJar [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #12041:
URL: https://github.com/apache/seatunnel/pull/12041


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org