-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Build] Fix java-test-functions dependencies and packaging #10918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
eolivelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@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