You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2021/09/30 09:48:19 UTC

[hbase] branch HBASE-26313 updated: reduce run time for testing

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

zhangduo pushed a commit to branch HBASE-26313
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/HBASE-26313 by this push:
     new 0a7838a  reduce run time for testing
0a7838a is described below

commit 0a7838a2a7070c85ad12b6fc34b064201e30a849
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Thu Sep 30 17:47:45 2021 +0800

    reduce run time for testing
---
 dev-support/Jenkinsfile          | 21 ++++++++++++++++++++-
 dev-support/hbase-personality.sh |  2 +-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index d86e54a..0cb38db 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -196,6 +196,9 @@ pipeline {
               label 'hbase'
             }
           }
+          when {
+            branch 'branch-1*'
+          }
           environment {
             BASEDIR = "${env.WORKSPACE}/component"
             TESTS = "${env.SHALLOW_CHECKS}"
@@ -487,6 +490,19 @@ pipeline {
                   echo "No archiver directory, skipping compressing."
                 fi
 '''
+              sshPublisher(publishers: [
+                sshPublisherDesc(configName: 'Nightlies',
+                  transfers: [
+                    sshTransfer(remoteDirectory: 'hbase/${JOB_NAME}/${BUILD_NUMBER}/${env.OUTPUT_DIR_RELATIVE}',
+                    sourceFiles: '${env.OUTPUT_DIR_RELATIVE}/test_logs.zip')
+                  ]
+                )
+              ])
+              // remove the big test logs zip
+              sh '''#!/bin/bash -e
+                rm -rf "${OUTPUT_DIR}/test_logs.zip"
+                echo "${ASF_NIGHTLIES}/hbase/${JOB_NAME}/${BUILD_NUMBER}/test_logs.zip" > "${OUTPUT_DIR}/test_logs.txt"
+'''
               // Has to be relative to WORKSPACE.
               archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/*"
               archiveArtifacts artifacts: "${env.OUTPUT_DIR_RELATIVE}/**/*"
@@ -577,7 +593,7 @@ pipeline {
               sshPublisher(publishers: [
                 sshPublisherDesc(configName: 'Nightlies',
                   transfers: [
-                    sshTransfer(remoteDirectory: 'hbase/${JOB_NAME}/${BUILD_NUMBER}/',
+                    sshTransfer(remoteDirectory: 'hbase/${JOB_NAME}/${BUILD_NUMBER}/${env.OUTPUT_DIR_RELATIVE}',
                     sourceFiles: '${env.OUTPUT_DIR_RELATIVE}/test_logs.zip')
                   ]
                 )
@@ -615,6 +631,9 @@ pipeline {
             BASEDIR = "${env.WORKSPACE}/component"
             BRANCH = "${env.BRANCH_NAME}"
           }
+          when {
+            branch 'branch-1*'
+          }
           steps {
             sh '''#!/bin/bash -e
               echo "Setting up directories"
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index 6eb38e3..a91b206 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -220,7 +220,7 @@ function personality_modules
   if [[ ${testtype} == unit ]]; then
     local tests_arg=""
     get_include_exclude_tests_arg tests_arg
-    extra="${extra} -PrunAllTests ${tests_arg}"
+    extra="${extra} -PrunSmallTests ${tests_arg}"
 
     # Inject the jenkins build-id for our surefire invocations
     # Used by zombie detection stuff, even though we're not including that yet.