Uh oh!
There was an error while loading. Please reload this page.
HBASE-28433 Modify the assembly to not include test jars and their tr… - #6184
Conversation
This will require HBASE-28432 to be inplace first. Putting this up to give a fair idea on how changes would look before I start HBASE-28432. Also test failures of this PR would give a fair idea on what all should be moved in new module as we refactor as part of HBASE-28432. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
NihalJain
commented
Aug 30, 2024
UT failures will say if we are being too aggressive here! |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ndimiduk
commented
Sep 9, 2024
Nice to see progress here! |
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ansitive dependencies
NihalJain
commented
Oct 15, 2024
Rebased code as #6258 is merged |
This comment has been minimized.
This comment has been minimized.
- Revert change of removing lib/test jars
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Diff of assembly directories, master vs master with this PR: and Size Comparison, master vs master with this PR:: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
NihalJain
commented
Oct 18, 2024
Thank you @stoty for reviewing the code, will have a look at comments and revert back soon. |
I'm not sure hbase-it needs to be reverted anymore. At first I thought that we shouldn't introduce this potenitally breaking change, but since this goes only into a new major version, maybe we should prioritize correctness over backwards compatibility with incorrectly set up downstream projects. Whatever you decide to do with hbase-it is fine by me. |
…nt, now we revert back to directly using cached_classpath.txt to load jars required during runtime (as before). NOTE: To ensure cached_classpath is same as before this change, we retain some jars (including test jars) in assembly pom.xml which we actually remove during tarball creation.
NihalJain
commented
Oct 21, 2024
Went ahead with changing scope of the hadoop-minicluster jars from compile to test for correctness. |
NihalJain
commented
Oct 21, 2024
Summary of 4th commit: Only 1 review comment is pending: on checking whether *:test-jar is a safety check or if we really hit it. I have forgotten what was the case given I rasied v1 of this PR almost 2 months ago. Let me redo analysis and come back to you. |
NihalJain
commented
Oct 21, 2024
Updated Info:
and
VS
Please let me know if I should verify anything else. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Apache-HBase
commented
Oct 23, 2024
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Oct 23, 2024
🎊 +1 overall
This message was automatically generated. |
Uh oh!
There was an error while loading. Please reload this page.
NihalJain
commented
Nov 7, 2024
Thank you so much @stoty for patiently reviewing this one. I will be merging this in next few hours, unless no new reviews/objections comes up. |
…ansitive dependencies (apache#6184) - Before this change, our assembly included test jars and test dependencies, which added unnecessary bloat to the assembly and classpath. This not only increases the distribution size but also potentially introduces CVE-prone JARs into the binary assemblies. - With this change, we modify the assembly to exclude these test jars and their dependencies. This will result in a leaner, more secure assembly with a faster startup time. - To ensure cached_classpath is same as before this change, we retain some jars (including test jars) in assembly pom.xml which we actually remove during tarball creation. Signed-off-by: Istvan Toth <stoty@apache.org> (cherry picked from commit 3fbe4fb)
…ansitive dependencies (#6184) (#6452) - Before this change, our assembly included test jars and test dependencies, which added unnecessary bloat to the assembly and classpath. This not only increases the distribution size but also potentially introduces CVE-prone JARs into the binary assemblies. - With this change, we modify the assembly to exclude these test jars and their dependencies. This will result in a leaner, more secure assembly with a faster startup time. - To ensure cached_classpath is same as before this change, we retain some jars (including test jars) in assembly pom.xml which we actually remove during tarball creation. Signed-off-by: Istvan Toth <stoty@apache.org> (cherry picked from commit 3fbe4fb)
…their transitive dependencies (apache#6184)" This reverts commit 3fbe4fb.
…their transitive dependencies (apache#6184)" This reverts commit 3fbe4fb.
…their transitive dependencies (apache#6184)" This reverts commit 3fbe4fb.
…their transitive dependencies (apache#6184)" This reverts commit 3fbe4fb.
…ansitive dependencies