[Build] Fix java-test-functions dependencies and packaging#10918
Conversation
|
This is what we would like to happen. I also have problems in source Pulsar IO connector if I do not bundle the full pulsar-client dependency. |
eolivelli
left a comment
There was a problem hiding this comment.
if it works and CI passes then LGTM
|
@codelipenghui @jerrypeng @eolivelli The integration tests fail see https://github.com/apache/pulsar/pull/10918/checks?check_run_id=2818223864#step:14:4912 It seems that the classloading issues haven't been resolved. Isn't this a blocker for 2.8 release? |
because we have to discuss more about this topic in the community
the invalid shading configuration for java-test-functions was added here: https://github.com/apache/pulsar/blame/0469dfe2c7804bd9ca9ea34e95d83b2196216cf9/tests/docker-images/java-test-functions/pom.xml#L78-L85 , as part of #9246 changes. This PR fixes the invalid configuration. |
|
@jerrypeng Please take a look at this PR (which causes integration tests to fail) and the related issue #10919 . Is this something that should be addressed? These problems are related to Pulsar Functions classloading. |
|
UPDATE: I learned from @eolivelli that there's PR #10922 in progress which will address the Pulsar Functions classloading issue. |
2692557 to
1efbad8
Compare
|
@lhotari you want to try to rebase this patch to latest master ? |
1efbad8 to
dea4bcd
Compare
|
@eolivelli I rebased this PR. Let's see what the test results are. |
- java-test-functions should depend on pulsar-io-core (and pulsar-functions-api)
dea4bcd to
6a82b2e
Compare
eolivelli
left a comment
There was a problem hiding this comment.
can you please follow my latest comments ?
we had to add avro and jackson inthe classpath in order to see GenericRecord.getNativeObject work properly
so adding that deps is not needed anymore
|
@merlimat @jerrypeng @codelipenghui |
- java-test-functions should depend on pulsar-io-core (and pulsar-functions-api)
Motivation
tests/docker-images/java-test-functionsshould depend onpulsar-io-core(andpulsar-functions-api)pulsar-clientlibrary directly (pulsar-client-apidependency comes viapulsar-functions-api)Modifications
tests/docker-images/java-test-functions/pom.xml