You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2020/04/03 19:56:24 UTC

[phoenix] branch master updated: PHOENIX-5817 Prepatch script is a psycho killer

This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
     new a612485  PHOENIX-5817 Prepatch script is a psycho killer
a612485 is described below

commit a61248556d5f143f7c56dffdfb962d73409c7807
Author: Istvan Toth <st...@apache.org>
AuthorDate: Fri Apr 3 19:08:22 2020 +0200

    PHOENIX-5817 Prepatch script is a psycho killer
---
 dev/test-patch.sh | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/dev/test-patch.sh b/dev/test-patch.sh
index 090bf69..69e6d10 100755
--- a/dev/test-patch.sh
+++ b/dev/test-patch.sh
@@ -873,15 +873,10 @@ runTests () {
   echo ""
   echo ""
 
+  copyCount=`$PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | $AWK 'BEGIN {total = 0} {total += 1} END {print total}'`
+  echo "WARNING: $copyCount another phoenix build processes detected."
 
-  ### kill any process remaining from another test, maybe even another project
-  jps | grep surefirebooter | cut -d ' ' -f 1 | xargs kill -9 2>/dev/null
-  
   failed_tests=""
-  ### Kill any rogue build processes from the last attempt
-  condemnedCount=`$PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | $AWK 'BEGIN {total = 0} {total += 1} END {print total}'`
-  echo "WARNING: $condemnedCount rogue build processes detected, terminating."
-  $PS auxwww | $GREP ${PROJECT_NAME}PatchProcess | $AWK '{print $2}' | /usr/bin/xargs -t -I {} /bin/kill -9 {} > /dev/null
   echo "$MVN clean verify -Dsurefire.rerunFailingTestsCount=2 -D${PROJECT_NAME}PatchProcess"
   export MAVEN_OPTS="${MAVEN_OPTS}"
   ulimit -a