You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2019/03/07 16:00:18 UTC
[yetus] branch master updated: YETUS-816. Improve hadoop
personality to support ozone/hdds projects (#46)
This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/master by this push:
new c401f8a YETUS-816. Improve hadoop personality to support ozone/hdds projects (#46)
c401f8a is described below
commit c401f8aecd65df48515c5ddd2c17cb872eb24ba6
Author: Elek, Márton <el...@users.noreply.github.com>
AuthorDate: Thu Mar 7 17:00:12 2019 +0100
YETUS-816. Improve hadoop personality to support ozone/hdds projects (#46)
YETUS-816. Improve hadoop personality to support ozone/hdds projects
---
precommit/src/main/shell/personality/hadoop.sh | 34 ++++++++++++++++++++++----
1 file changed, 29 insertions(+), 5 deletions(-)
diff --git a/precommit/src/main/shell/personality/hadoop.sh b/precommit/src/main/shell/personality/hadoop.sh
index 7c8b530..5715c31 100755
--- a/precommit/src/main/shell/personality/hadoop.sh
+++ b/precommit/src/main/shell/personality/hadoop.sh
@@ -18,7 +18,6 @@
# SHELLDOC-IGNORE
#
# Override these to match Apache Hadoop's requirements
-
personality_plugins "all,-ant,-gradle,-scalac,-scaladoc"
## @description Globals specific to this personality
@@ -404,11 +403,36 @@ function personality_modules
fi
extra="-Ptest-patch ${extra}"
-
- for module in $(hadoop_order ${ordering}); do
- # shellcheck disable=SC2086
- personality_enqueue_module ${module} ${extra}
+ OZONE_CHANGED=false
+ CORE_HADOOP_CHANGED=false
+ for module in "${CHANGED_MODULES[@]}"
+ do
+ if [[ "$module" =~ "hdds" ]]; then
+ OZONE_CHANGED=true
+ elif [[ "$module" =~ "ozone" ]]; then
+ OZONE_CHANGED=true
+ else
+ CORE_HADOOP_CHANGED=true
+ fi
done
+
+ if [ "$OZONE_CHANGED" = true ]; then
+ extra="-Phdds ${extra}"
+ fi
+
+ if [ "$CORE_HADOOP_CHANGED" = false ] && [ "$OZONE_CHANGED" = true ]; then
+ if [ "$testtype" != "mvnsite" ] && [ "$testtype" != "shadedclient" ]; then
+ #shellcheck disable=SC2086
+ personality_enqueue_module hadoop-hdds ${extra}
+ #shellcheck disable=SC2086
+ personality_enqueue_module hadoop-ozone ${extra}
+ fi
+ else
+ for module in $(hadoop_order ${ordering}); do
+ # shellcheck disable=SC2086
+ personality_enqueue_module ${module} ${extra}
+ done
+ fi
}
## @description Add tests based upon personality needs