mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-14214: [Addendum] - Ensure IMPALA_TOOLCHAIN_COMMIT_HASH Matches Build IDs
Adds verification code to ensure the IMPALA_TOOLCHAIN_COMMIT_HASH environment variable matches the commit hash in the IMPALA_TOOLCHAIN_BUILD_ID_AARCH64 and IMPALA_TOOLCHAIN_BUILD_ID_X86_64 environment variables. Generated-by: Github Copilot (Claude Sonnet 3.7) Change-Id: I348698356a014413875f6b8b54a005bf89b9793a Reviewed-on: http://gerrit.cloudera.org:8080/23243 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
aec7380b75
commit
19f662301c
@@ -97,6 +97,14 @@ if [ "${IMPALA_TOOLCHAIN_BUILD_ID_AARCH64#*-}" \
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Ensure the IMPALA_TOOLCHAIN_COMMIT_HASH matches the hash in the toolchain build ids.
|
||||
TOOLCHAIN_SHORT_HASH="${IMPALA_TOOLCHAIN_BUILD_ID_X86_64#*-}"
|
||||
if [[ ! "$IMPALA_TOOLCHAIN_COMMIT_HASH" == "$TOOLCHAIN_SHORT_HASH"* ]]; then
|
||||
echo "ERROR: IMPALA_TOOLCHAIN_COMMIT_HASH '$IMPALA_TOOLCHAIN_COMMIT_HASH' does not " \
|
||||
"start with TOOLCHAIN_SHORT_HASH '$TOOLCHAIN_SHORT_HASH'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export ARCH_NAME=$(uname -p)
|
||||
|
||||
# Versions of toolchain dependencies.
|
||||
|
||||
Reference in New Issue
Block a user