yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject yetus git commit: YETUS-463. Enable yarn-ui profile in Yetus's precommit logic.
Date Fri, 21 Oct 2016 18:59:59 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 1c29e36a3 -> 99540d47f


YETUS-463. Enable yarn-ui profile in Yetus's precommit logic.

Signed-off-by: Sean Busbey <busbey@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/99540d47
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/99540d47
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/99540d47

Branch: refs/heads/master
Commit: 99540d47f1251d86e457b96eab0fff806beabbf9
Parents: 1c29e36
Author: Wangda Tan <wangda@apache.org>
Authored: Fri Oct 21 10:27:58 2016 -0700
Committer: Sean Busbey <busbey@apache.org>
Committed: Fri Oct 21 13:59:12 2016 -0500

----------------------------------------------------------------------
 precommit/personality/hadoop.sh | 31 +++++++++++++++++++++++++++++--
 1 file changed, 29 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/99540d47/precommit/personality/hadoop.sh
----------------------------------------------------------------------
diff --git a/precommit/personality/hadoop.sh b/precommit/personality/hadoop.sh
index c86a9df..a26576a 100755
--- a/precommit/personality/hadoop.sh
+++ b/precommit/personality/hadoop.sh
@@ -101,7 +101,7 @@ function hadoop_unittest_prereqs
     echo "unit test pre-reqs:"
     module="hadoop-common-project/hadoop-common"
     fn=$(module_file_fragment "${module}")
-    flags=$(hadoop_native_flags)
+    flags="$(hadoop_native_flags) $(yarn_ui2_flag)"
     pushd "${BASEDIR}/${module}" >/dev/null
     # shellcheck disable=SC2086
     echo_and_redirect "${PATCH_DIR}/maven-unit-prereq-${fn}-install.txt" \
@@ -110,6 +110,33 @@ function hadoop_unittest_prereqs
   fi
 }
 
+## @description  Calculate the flags/settings for yarn-ui v2 build
+## @description  based upon the OS
+## @audience     private
+## @stability    evolving
+function yarn_ui2_flag
+{
+
+  if [[ ${BUILD_NATIVE} != true ]]; then
+    return
+  fi
+
+  # Now it only tested on Linux/OSX, don't enable the profile on
+  # windows until it get verified
+  case ${OSTYPE} in
+    Linux)
+      # shellcheck disable=SC2086
+      echo -Pyarn-ui
+    ;;
+    Darwin)
+      echo -Pyarn-ui
+    ;;
+    *)
+      # Do nothing
+    ;;
+  esac
+}
+
 ## @description  Calculate the flags/settings for native code
 ## @description  based upon the OS
 ## @audience     private
@@ -290,7 +317,7 @@ function personality_modules
   esac
 
   if [[ ${needflags} = true ]]; then
-    flags=$(hadoop_native_flags)
+    flags="$(hadoop_native_flags) $(yarn_ui2_flag)"
     extra="${extra} ${flags}"
   fi
 


Mime
View raw message