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 2018/08/10 16:29:00 UTC

[2/2] hbase git commit: HBASE-20387 create flaky test report as a part of nightly jobs.

HBASE-20387 create flaky test report as a part of nightly jobs.


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

Branch: refs/heads/HBASE-20387
Commit: 7cd266e9fe512df50bb2b7e9ec2b12dbc168c6bc
Parents: 9aa1cd7
Author: Sean Busbey <bu...@apache.org>
Authored: Fri Aug 10 11:28:10 2018 -0500
Committer: Sean Busbey <bu...@apache.org>
Committed: Fri Aug 10 11:28:10 2018 -0500

----------------------------------------------------------------------
 dev-support/Jenkinsfile | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/7cd266e9/dev-support/Jenkinsfile
----------------------------------------------------------------------
diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile
index 59d3227..172ef16 100644
--- a/dev-support/Jenkinsfile
+++ b/dev-support/Jenkinsfile
@@ -165,6 +165,40 @@ pipeline {
         }
       }
     }
+    stage ('project branch reporting') {
+      parallel {
+        stage ('build flaky report') {
+          steps {
+            // since we don't define a new node for running, we'll reuse the scm checkout
+            sh '''#!/usr/bin/env bash
+              set -e
+              rm -rf output-flaky-report && mkdir output-flaky-report
+              declare -a flaky_args
+              flaky_args=("${flaky_args[@]}" --urls "${JOB_URL}" --is-yetus True --max-builds 5)
+              // TODO Once we have a branch-specific "run the flaky tests" job add it here
+              // flaky_args=("${flaky_args[@]}" --urls "${JENKINS_URL}/job/HBase-Flaky-Tests-${BRANCH_NAME}" --max-builds 40)
+              docker build -t hbase-dev-support dev-support
+              docker run -v component:/hbase -v output-flaky-report:/ouput-flaky-report --workdir=/ouput-flaky-report hbase-dev-support python /hbase/dev-support/report-flakies.py --mvn -v "${flaky_args[@]}"
+'''
+          }
+          post {
+            always {
+              // Has to be relative to WORKSPACE.
+              archive "output-flaky-report/*"
+              publishHTML target: [
+                allowMissing: true,
+                keepAll: true,
+                alwaysLinkToLastBuild: true,
+                // Has to be relative to WORKSPACE
+                reportDir: "output-flaky-report",
+                reportFiles: 'dashboard.html',
+                reportName: 'Flaky Test Report'
+              ]
+            }
+          }
+        }
+      }
+    }
     stage ('init health results') {
       steps {
         // stash with given name for all tests we might run, so that we can unstash all of them even if