@@ -96,41 +96,14 @@ export -n HIVE_CONF_DIR
9696sw java 21 && . /etc/profile.d/java.sh
9797mkdir -p .m2/repository
9898cp $SETTINGS .m2/settings.xml
99- # TEMP: wipe workspace cache for asm/calcite-core to force re-resolve (Track 1)
100- echo "@@@ Wiping asm and calcite-core from workspace .m2 to force re-resolve"
101- rm -rf $PWD/.m2/repository/org/ow2/asm
102- rm -rf $PWD/.m2/repository/org/apache/calcite/calcite-core
103- # TEMP: diagnostic - record what ASM and calcite-core end up looking like in the workspace cache
104- record_artifact_fingerprints() {
105- echo "@@@ ASM in workspace .m2:"
106- find $PWD/.m2/repository/org/ow2/asm -type f \\ ( -name '*.jar' -o -name '*.pom' \\ ) -exec ls -l {} \\ ; -exec md5sum {} \\ ; 2>/dev/null || true
107- echo "@@@ calcite-core jar fingerprint:"
108- CALCITE_CORE_JAR=$PWD/.m2/repository/org/apache/calcite/calcite-core/1.42.0/calcite-core-1.42.0.jar
109- if [ -f "$CALCITE_CORE_JAR" ]; then
110- ls -l "$CALCITE_CORE_JAR"
111- md5sum "$CALCITE_CORE_JAR"
112- echo "@@@ SqlFunctions.class size and md5 (inside calcite-core-1.42.0.jar):"
113- unzip -p "$CALCITE_CORE_JAR" org/apache/calcite/runtime/SqlFunctions.class | wc -c
114- unzip -p "$CALCITE_CORE_JAR" org/apache/calcite/runtime/SqlFunctions.class | md5sum
115- else
116- echo "@@@ calcite-core-1.42.0.jar not yet present in workspace .m2"
117- fi
118- }
119- record_artifact_fingerprints
12099OPTS=" -s $PWD/.m2/settings.xml -B -Dtest.groups= "
121100OPTS+=" -Pitests,qsplits,dist,errorProne"
122101OPTS+=" -Dmaven.repo.local=$PWD/.m2/repository"
123102git config extra.mavenOpts "$OPTS"
124103OPTS=" $M_OPTS -Dmaven.test.failure.ignore "
125104if [ -s inclusions.txt ]; then OPTS+=" -Dsurefire.includesFile=$PWD/inclusions.txt";fi
126105if [ -s exclusions.txt ]; then OPTS+=" -Dsurefire.excludesFile=$PWD/exclusions.txt";fi
127- set +e
128106mvn $OPTS ''' + args+ '''
129- MVN_RC=$?
130- set -e
131- # TEMP: diagnostic - record fingerprints after mvn ran (runs even if mvn failed)
132- record_artifact_fingerprints
133- exit $MVN_RC
134107du -h --max-depth=1
135108df -h
136109'''
0 commit comments