Skip to content

Commit 55bb5ff

Browse files
committed
HBASE-15119 Include git SHA in check_compatibility reports
1 parent df36178 commit 55bb5ff

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

dev-support/check_compatibility.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ for ref in 1 2; do
188188
echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
189189
exit 2
190190
fi
191+
# grab sha for future reference
192+
SHA[${ref}]=$(git rev-parse --short HEAD)
191193
popd > /dev/null
192194
fi
193195

@@ -207,6 +209,7 @@ for ref in 1 2; do
207209
echo "Maven could not successfully package ${COMMIT[${ref}]}. Exiting..." >&2
208210
exit 2
209211
fi
212+
SHA[${ref}]=$(git rev-parse --short HEAD)
210213
popd > /dev/null
211214
done
212215

@@ -259,7 +262,8 @@ fi
259262

260263
# Generate command line arguments for Java ACC.
261264
JAVA_ACC_COMMAND+=(-l HBase)
262-
JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]} -v2 ${COMMIT[2]})
265+
JAVA_ACC_COMMAND+=(-v1 ${COMMIT[1]}${SHA[1]+"/${SHA[1]}"})
266+
JAVA_ACC_COMMAND+=(-v2 ${COMMIT[2]}${SHA[2]+"/${SHA[2]}"})
263267
JAVA_ACC_COMMAND+=(-d1 ${JARS[1]} -d2 ${JARS[2]})
264268
JAVA_ACC_COMMAND+=(-report-path \
265269
${SCRIPT_DIRECTORY}/target/compatibility/report/${COMMIT[1]}_${COMMIT[2]}_compat_report.html)

0 commit comments

Comments
 (0)