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/02/27 19:13:31 UTC

hbase git commit: HBASE-18467 temporarily replace nightly test with random pass/fail.

Repository: hbase
Updated Branches:
  refs/heads/HBASE-15151 b6a76cee6 -> 8acfbb50d


HBASE-18467 temporarily replace nightly test with random pass/fail.


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

Branch: refs/heads/HBASE-15151
Commit: 8acfbb50dcd14c414cbfda30927d54e8eddf4c4a
Parents: b6a76ce
Author: Sean Busbey <bu...@apache.org>
Authored: Tue Feb 27 13:13:11 2018 -0600
Committer: Sean Busbey <bu...@apache.org>
Committed: Tue Feb 27 13:13:11 2018 -0600

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


http://git-wip-us.apache.org/repos/asf/hbase/blob/8acfbb50/dev-support/hbase_nightly_yetus.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase_nightly_yetus.sh b/dev-support/hbase_nightly_yetus.sh
index 27d11c8..4e6f703 100755
--- a/dev-support/hbase_nightly_yetus.sh
+++ b/dev-support/hbase_nightly_yetus.sh
@@ -16,6 +16,17 @@
 # specific language governing permissions and limitations
 # under the License.
 
+chance=$RANDOM
+(("chance >>= 14"))
+if [ "$chance" -eq 1 ]; then
+  echo "[DEBUG] forcing failure."
+  echo "<html><body>Nightly test is disabled. This was a pretend failure.</body></html>" >"${OUTPUT_DIR}/console-report.html"
+else
+  echo "[DEBUG] forcing success."
+  echo "<html><body>Nightly test is disabled. This was a pretend success.</body></html>" >"${OUTPUT_DIR}/console-report.html"
+fi
+exit "$chance"
+
 declare -i missing_env=0
 # Validate params
 for required_env in "TESTS" "TOOLS" "BASEDIR" "ARCHIVE_PATTERN_LIST" "OUTPUT_DIR_RELATIVE" \