HBASE-15119 Include git SHA in check_compatibility reports
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/13535f4d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/13535f4d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/13535f4d
Branch: refs/heads/branch-1
Commit: 13535f4d43b1699f19d2177daf04278288c63da1
Parents: 4471b1a
Author: Nick Dimiduk <ndimiduk@apache.org>
Authored: Sat Jan 16 15:44:07 2016 -0800
Committer: Sean Busbey <busbey@apache.org>
Committed: Thu Jun 30 15:48:13 2016 -0500
----------------------------------------------------------------------
dev-support/check_compatibility.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/13535f4d/dev-support/check_compatibility.sh
----------------------------------------------------------------------
diff --git a/dev-support/check_compatibility.sh b/dev-support/check_compatibility.sh
index b6c11e0..95dba00 100755
--- a/dev-support/check_compatibility.sh
+++ b/dev-support/check_compatibility.sh
@@ -188,6 +188,8 @@ for ref in 1 2; do
echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
exit 2
fi
+ # grab sha for future reference
+ SHA[${ref}]=$(git rev-parse --short HEAD)
popd > /dev/null
fi
@@ -207,6 +209,7 @@ for ref in 1 2; do
echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
exit 2
fi
+ SHA[${ref}]=$(git rev-parse --short HEAD)
popd > /dev/null
done
@@ -259,7 +262,8 @@ fi
# Generate command line arguments for Java ACC.
JAVA_ACC_COMMAND+=(-l HBase)
-JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]} -v2 ${COMMIT[2]})
+JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]}${SHA[1]+"/${SHA[1]}"})
+JAVA_ACC_COMMAND+=(-v2 ${COMMIT[2]}${SHA[2]+"/${SHA[2]}"})
JAVA_ACC_COMMAND+=(-d1 ${JARS[1]} -d2 ${JARS[2]})
JAVA_ACC_COMMAND+=(-report-path \
${SCRIPT_DIRECTORY}/target/compatibility/report/${COMMIT[1]}_${COMMIT[2]}_compat_report.html)
|