You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2022/03/26 16:00:51 UTC
[GitHub] [hbase] apurtell commented on a change in pull request #4279: HBASE-26871 shaded mapreduce and shaded byo-hadoop client artifacts contain no classes
apurtell commented on a change in pull request #4279:
URL: https://github.com/apache/hbase/pull/4279#discussion_r835780035
##########
File path: hbase-shaded/hbase-shaded-check-invariants/src/test/resources/ensure-jars-have-correct-contents.sh
##########
@@ -114,6 +114,10 @@ declare -i bad_artifacts=0
declare -a bad_contents
for artifact in "${artifact_list[@]}"; do
bad_contents=($(jar tf "${artifact}" | grep -v -E "${allowed_expr}" || true))
+ class_count=$(jar tf "${artifact}" | grep -c -E '\.class$' || true)
+ if [ ${#bad_contents[@]} -eq 0 ] && [ "${class_count}" -lt 1 ]; then
+ bad_contents=("The artifact contains no java class files.")
Review comment:
Good, thanks
--
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: issues-unsubscribe@hbase.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org