You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bu...@apache.org on 2017/09/24 01:22:47 UTC

[1/2] hbase git commit: HBASE-18467 test formatting changes.

Repository: hbase
Updated Branches:
  refs/heads/HBASE-18467 338446515 -> f89b213db


HBASE-18467 test formatting changes.


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

Branch: refs/heads/HBASE-18467
Commit: dba9f6cfcd90c383475cad6d6e249bc36d3b00c3
Parents: 3384465
Author: Sean Busbey <bu...@apache.org>
Authored: Sat Sep 23 20:09:47 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Sat Sep 23 20:09:47 2017 -0500

----------------------------------------------------------------------
 dev-support/Jenkinsfile | 28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/dba9f6cf/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index a87d327..14d1dbd 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -133,10 +133,10 @@ curl -L  -o personality.sh "${env.PROJET_PERSONALITY}"
           declare commentfile
           if "${BASEDIR}/dev-support/hbase_nightly_yetus.sh" ; then
             commentfile="${OUTPUTDIR}/success"
-            echo '(/) *{color:green}+1 general checks{color}*' >> "${commentfile}"
+            echo '(/) {color:green}+1 general checks{color}' >> "${commentfile}"
           else
             commentfile="${OUTPUTDIR}/failure"
-            echo '(x) *{color:red}-1 general checks{color}*' >> "${commentfile}"
+            echo '(x) {color:red}-1 general checks{color}' >> "${commentfile}"
           fi
           echo "-- For more information [see general report|${BUILD_URL}/General_Nightly_Build_Report/]" >> "${commentfile}"
         '''
@@ -179,10 +179,10 @@ curl -L  -o personality.sh "${env.PROJET_PERSONALITY}"
           rm -f "${OUTPUTDIR}/success" "${OUTPUTDIR}/failure"
           if "${BASEDIR}/dev-support/hbase_nightly_yetus.sh" ; then
             commentfile="${OUTPUTDIR}/success"
-            echo '(/) *{color:green}+1 jdk7 checks{color}*' >> "${commentfile}"
+            echo '(/) {color:green}+1 jdk7 checks{color}' >> "${commentfile}"
           else
             commentfile="${OUTPUTDIR}/failure"
-            echo '(x) *{color:red}-1 jdk7 checks{color}*' >> "${commentfile}"
+            echo '(x) {color:red}-1 jdk7 checks{color}' >> "${commentfile}"
           fi
           echo "-- For more information [see jdk7 report|${BUILD_URL}/JDK7_Nightly_Build_Report/]" >> "${commentfile}"
         '''
@@ -240,10 +240,10 @@ curl -L  -o personality.sh "${env.PROJET_PERSONALITY}"
           rm -f "${OUTPUTDIR}/success" "${OUTPUTDIR}/failure"
           if "${BASEDIR}/dev-support/hbase_nightly_yetus.sh" ; then
             commentfile="${OUTPUTDIR}/success"
-            echo '(/) *{color:green}+1 jdk8 checks{color}*' >> "${commentfile}"
+            echo '(/) {color:green}+1 jdk8 checks{color}' >> "${commentfile}"
           else
             commentfile="${OUTPUTDIR}/failure"
-            echo '(x) *{color:red}-1 jdk8 checks{color}*' >> "${commentfile}"
+            echo '(x) {color:red}-1 jdk8 checks{color}' >> "${commentfile}"
           fi
           echo "-- For more information [see jdk8 report|${BUILD_URL}/JDK8_Nightly_Build_Report/]" >> "${commentfile}"
         '''
@@ -339,10 +339,10 @@ END
       // This approach only works because the source release artifact is the last stage that does work.
       post {
         success {
-          writeFile file: "${env.WORKSPACE}/src_tarball_success", text: '(/) *{color:green}+1 source release artifact{color}*'
+          writeFile file: "${env.WORKSPACE}/src_tarball_success", text: '(/) {color:green}+1 source release artifact{color}\n-- See build output for details.'
         }
         failure {
-          writeFile file: "${env.WORKSPACE}/src_tarball_failure", text: '(x) *{color:red}-1 source release artifact{color}*'
+          writeFile file: "${env.WORKSPACE}/src_tarball_failure", text: '(x) {color:red}-1 source release artifact{color}\n-- See build output for details.'
         }
       }
     }
@@ -374,19 +374,17 @@ END
            echo currentBuild.result
            echo currentBuild.durationString
            def comment = "Results for branch ${env.BRANCH_NAME}, done in ${currentBuild.durationString}\n"
+           comment += "\t[build ${currentBuild.displayName} on builds.a.o|${env.BUILD_URL}]: ${currentBuild.result}\n----\ndetails (if available):\n\n"
            if (currentBuild.result == "SUCCESS") {
-              comment += '	(/) *{color:green}+1 overall{color}*\\'
+              comment += "(/) *{color:green}+1 overall{color}*\n\n"
            } else {
-              comment += '(x) *{color:red}-1 overall{color}*\\'
+              comment += "(x) *{color:red}-1 overall{color}*\n"
               // Ideally get the committer our of the change and @ mention them in the per-jira comment
-              comment += 'Committer, please check your recent inclusion of a patch for this issue.\\'
+              comment += "	Committer, please check your recent inclusion of a patch for this issue.\n\n"
            }
-           comment += "	[build ${currentBuild.displayName} on builds.a.o|${env.BUILD_URL}]: ${currentBuild.result}\\----\\details (if available):\n"
-           //echo "[DEBUG] Comment so far: "
-           //echo comment
            echo ""
            echo "[DEBUG] trying to aggregate step-wise results"
-           comment += results.collect { fileExists(file: it) ? readFile(file: it) : "" }.join("\n")
+           comment += results.collect { fileExists(file: it) ? readFile(file: it) : "" }.join("\n\n")
            echo "[INFO] Comment:"
            echo comment
            echo ""


[2/2] hbase git commit: HBASE-18467 change the nightly script to pass/fail psuedorandomly

Posted by bu...@apache.org.
HBASE-18467 change the nightly script to pass/fail psuedorandomly


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

Branch: refs/heads/HBASE-18467
Commit: f89b213dbf8e6295960c495ca066c6f4c57cddff
Parents: dba9f6c
Author: Sean Busbey <bu...@apache.org>
Authored: Sat Sep 23 20:20:11 2017 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Sat Sep 23 20:20:11 2017 -0500

----------------------------------------------------------------------
 dev-support/hbase_nightly_yetus.sh | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/f89b213d/dev-support/hbase_nightly_yetus.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase_nightly_yetus.sh b/dev-support/hbase_nightly_yetus.sh
index 007d64a..87c6ea4 100755
--- a/dev-support/hbase_nightly_yetus.sh
+++ b/dev-support/hbase_nightly_yetus.sh
@@ -16,6 +16,10 @@
 # specific language governing permissions and limitations
 # under the License.
 
+declare -i rc=$RANDOM
+let "rc %= 1"
+exit ${rc}
+
 declare -i missing_env=0
 # Validate params
 for required_env in "TESTS" "TOOLS" "BASEDIR" "ARCHIVE_PATTERN_LIST" "OUTPUT_RELATIVE" \