-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(build): publish dependency-reduced POMs for shaded bundles #19433
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -117,7 +117,10 @@ | |||||||||
| <shadedPattern>org.apache.hudi.aws.org.apache.httpcomponents.</shadedPattern> | ||||||||||
| </relocation> | ||||||||||
| </relocations> | ||||||||||
| <createDependencyReducedPom>false</createDependencyReducedPom> | ||||||||||
| <createDependencyReducedPom>true</createDependencyReducedPom> | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Here that is That may well be the right end state for a fat bundle meant to land on a Hadoop/Hive classpath, but it is a larger change than the impact section describes. Either set (The two kept deps are right:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed on the mechanism, and my Impact wording was wrong — "artifacts it actually bundled" is not what One correction on the specific example, though, because it changed what I expected to see. Those seven artifacts are not in
They are compile scope where you looked, in That does not change the outcome here: your general point was correct, non-bundled transitives were being dropped, and And agreed on
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One more thing I found on a re-check, worth your call before this merges. Nine other bundles already publish a reduced POM and none of them sets
I have kept promotion because it preserves the runtime contract you raised and is the conservative direction for consumers, but I did not want to decide house style silently. Either is a small change from here: drop it and document the transitive drop instead, or keep it and align the other nine in a follow-up. I left those nine alone deliberately, since touching them changes published metadata for nine more artifacts including the Spark and Flink bundles.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Decision: keep The three options are not symmetric:
Only the third preserves the runtime contract, so this is not really "house style vs correctness". The nine get away with promotion-off because the Spark/Flink bundles land on a classpath that already supplies everything; these seven land on Hive/Presto/MR classpaths that do not ship Verified on a clean build of
Action for this PR (description only): add a line to Impact noting that promotion flattens the graph, so those 80-190 artifacts become depth-1 for consumers with pinned versions and baked-in exclusions, and therefore win mediation against the consumer's own deeper transitives. That differs from both today's behaviour and the other nine. Follow-up, not here: align the nine, or record an explicit decision that they stay as they are. |
||||||||||
| <!-- Keep dependencies that are not absorbed into the shaded jar, so the reduced POM still | ||||||||||
| declares what consumers need at runtime. --> | ||||||||||
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> | ||||||||||
| <filters> | ||||||||||
| <filter> | ||||||||||
| <artifact>*:*</artifact> | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,10 @@ | |
| <shadedPattern>org.apache.hudi.org.openjdk.jol.</shadedPattern> | ||
| </relocation> | ||
| </relocations> | ||
| <createDependencyReducedPom>false</createDependencyReducedPom> | ||
| <createDependencyReducedPom>true</createDependencyReducedPom> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Least surprising of the seven:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks — the transitive-drop point is addressed for this bundle too:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two corrections after rebuilding 1. Consumer impact is nil, since 2. The reduced POM declares Action: description only. Drop the "already provided so they survive" reasoning and note the |
||
| <!-- Keep dependencies that are not absorbed into the shaded jar, so the reduced POM still | ||
| declares what consumers need at runtime. --> | ||
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> | ||
| <filters> | ||
| <filter> | ||
| <artifact>*:*</artifact> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.