@@ -45,12 +45,12 @@ jobs:
4545 curl -fSL "$TARBALL_URL" -o "apache-kudu-${KUDU_VERSION}.tar.gz"
4646
4747 if [ ! -s "apache-kudu-${KUDU_VERSION}.tar.gz" ]; then
48- echo "✗ tarball download failed or empty file"
48+ echo "tarball download failed or empty file"
4949 echo "status=failed" >> $GITHUB_OUTPUT
5050 exit 1
5151 fi
5252
53- echo "✓ tarball downloaded"
53+ echo "tarball downloaded"
5454 echo "kudu_version=$KUDU_VERSION" >> $GITHUB_OUTPUT
5555 echo "status=passed" >> $GITHUB_OUTPUT
5656
@@ -63,13 +63,13 @@ jobs:
6363 tar -xzf "apache-kudu-${KUDU_VERSION}.tar.gz"
6464
6565 if [ ! -d "apache-kudu-${KUDU_VERSION}" ]; then
66- echo "✗ source directory apache-kudu-${KUDU_VERSION} not found after extract"
66+ echo "source directory apache-kudu-${KUDU_VERSION} not found after extract"
6767 ls -R .
6868 echo "status=failed" >> $GITHUB_OUTPUT
6969 exit 1
7070 fi
7171
72- echo "✓ source extracted"
72+ echo "source extracted"
7373 echo "KUDU_SRC=$PWD/apache-kudu-${KUDU_VERSION}" >> $GITHUB_ENV
7474 echo "status=passed" >> $GITHUB_OUTPUT
7575
@@ -82,10 +82,10 @@ jobs:
8282 START_TIME=$(date +%s)
8383
8484 if [ -d "$KUDU_SRC/src/kudu" ]; then
85- echo "✓ core kudu source directory present"
85+ echo "core kudu source directory present"
8686 echo "status=passed" >> $GITHUB_OUTPUT
8787 else
88- echo "✗ core kudu source directory missing at $KUDU_SRC/src/kudu"
88+ echo "core kudu source directory missing at $KUDU_SRC/src/kudu"
8989 ls -R "$KUDU_SRC"
9090 echo "status=failed" >> $GITHUB_OUTPUT
9191 exit 1
@@ -100,10 +100,10 @@ jobs:
100100 START_TIME=$(date +%s)
101101
102102 if [ -f "$KUDU_SRC/CMakeLists.txt" ]; then
103- echo "✓ CMakeLists.txt present (build system detected)"
103+ echo "CMakeLists.txt present (build system detected)"
104104 echo "status=passed" >> $GITHUB_OUTPUT
105105 else
106- echo "✗ CMakeLists.txt missing in $KUDU_SRC"
106+ echo "CMakeLists.txt missing in $KUDU_SRC"
107107 ls -R "$KUDU_SRC"
108108 echo "status=failed" >> $GITHUB_OUTPUT
109109 exit 1
@@ -117,13 +117,12 @@ jobs:
117117 run : |
118118 START_TIME=$(date +%s)
119119
120- # Look for aarch64/arm64 mentions in the source tree as a simple heuristic
120+ # Look for aarch64 mentions in the source tree as a simple heuristic
121121 if grep -Rni "aarch64" "$KUDU_SRC" | head -n 5; then
122- echo "✓ found references to aarch64 in source (indicates Arm awareness)"
122+ echo "found references to aarch64 in source (indicates Arm awareness)"
123123 echo "status=passed" >> $GITHUB_OUTPUT
124124 else
125- echo "⚠ no explicit 'aarch64' references found – this does NOT mean arm is unsupported,"
126- echo " but we record this test as 'passed' since Kudu is known to support arm in recent releases."
125+ echo "no explicit 'aarch64' references found; not fatal, marking as passed"
127126 echo "status=passed" >> $GITHUB_OUTPUT
128127 fi
129128
@@ -140,10 +139,10 @@ jobs:
140139
141140 # Just configure, do not build (too heavy for CI here)
142141 if cmake .. > /tmp/kudu_cmake_configure.log 2>&1; then
143- echo "✓ cmake configure ran successfully (basic build configuration works on arm runner)"
142+ echo "cmake configure ran successfully (basic build configuration works on arm runner)"
144143 echo "status=passed" >> $GITHUB_OUTPUT
145144 else
146- echo "✗ cmake configure failed"
145+ echo "cmake configure failed"
147146 cat /tmp/kudu_cmake_configure.log || true
148147 echo "status=failed" >> $GITHUB_OUTPUT
149148 exit 1
@@ -158,15 +157,15 @@ jobs:
158157 START_TIME=$(date +%s)
159158
160159 if [ -f "$KUDU_SRC/LICENSE.txt" ] || [ -f "$KUDU_SRC/LICENSE" ]; then
161- echo "✓ LICENSE present"
160+ echo "LICENSE present"
162161 else
163- echo "⚠ LICENSE file not found; not critical for arm, but unexpected"
162+ echo "LICENSE file not found; not critical for arm, but unexpected"
164163 fi
165164
166165 if [ -f "$KUDU_SRC/NOTICE.txt" ] || [ -f "$KUDU_SRC/NOTICE" ]; then
167- echo "✓ NOTICE present"
166+ echo "NOTICE present"
168167 else
169- echo "⚠ NOTICE file not found; not critical for arm, but unexpected"
168+ echo "NOTICE file not found; not critical for arm, but unexpected"
170169 fi
171170
172171 # This test is informational, mark as passed
@@ -186,19 +185,22 @@ jobs:
186185 process_test() {
187186 local status=$1
188187 local duration=$2
189- if [ "$status" == "passed" ]; then
188+ if [ "$status" = "passed" ]; then
190189 PASSED=$((PASSED + 1))
191- elif [ "$status" == "failed" ]; then
190+ elif [ "$status" = "failed" ]; then
192191 FAILED=$((FAILED + 1))
193192 fi
193+ if [ -z "$duration" ]; then
194+ duration=0
195+ fi
194196 TOTAL_DURATION=$((TOTAL_DURATION + duration))
195197 }
196198
197- process_test "${{ steps.test1.outputs.status }}" "${{ steps.test1.outputs.duration || 0 }}"
198- process_test "${{ steps.test2.outputs.status }}" "${{ steps.test2.outputs.duration || 0 }}"
199- process_test "${{ steps.test3.outputs.status }}" "${{ steps.test3.outputs.duration || 0 }}"
200- process_test "${{ steps.test4.outputs.status }}" "${{ steps.test4.outputs.duration || 0 }}"
201- process_test "${{ steps.test5.outputs.status }}" "${{ steps.test5.outputs.duration || 0 }}"
199+ process_test "${{ steps.test1.outputs.status }}" "${{ steps.test1.outputs.duration }}"
200+ process_test "${{ steps.test2.outputs.status }}" "${{ steps.test2.outputs.duration }}"
201+ process_test "${{ steps.test3.outputs.status }}" "${{ steps.test3.outputs.duration }}"
202+ process_test "${{ steps.test4.outputs.status }}" "${{ steps.test4.outputs.duration }}"
203+ process_test "${{ steps.test5.outputs.status }}" "${{ steps.test5.outputs.duration }}"
202204
203205 echo "passed=$PASSED" >> $GITHUB_OUTPUT
204206 echo "failed=$FAILED" >> $GITHUB_OUTPUT
@@ -245,27 +247,27 @@ jobs:
245247 {
246248 "name": "Check core source tree exists",
247249 "status": "${{ steps.test1.outputs.status }}",
248- "duration_seconds": ${{ steps.test1.outputs.duration || 0 }}
250+ "duration_seconds": ${{ steps.test1.outputs.duration }}
249251 },
250252 {
251253 "name": "Check CMake / build configuration present",
252254 "status": "${{ steps.test2.outputs.status }}",
253- "duration_seconds": ${{ steps.test2.outputs.duration || 0 }}
255+ "duration_seconds": ${{ steps.test2.outputs.duration }}
254256 },
255257 {
256258 "name": "Quick Arm64 support check in source",
257259 "status": "${{ steps.test3.outputs.status }}",
258- "duration_seconds": ${{ steps.test3.outputs.duration || 0 }}
260+ "duration_seconds": ${{ steps.test3.outputs.duration }}
259261 },
260262 {
261263 "name": "Lightweight CMake configure",
262264 "status": "${{ steps.test4.outputs.status }}",
263- "duration_seconds": ${{ steps.test4.outputs.duration || 0 }}
265+ "duration_seconds": ${{ steps.test4.outputs.duration }}
264266 },
265267 {
266268 "name": "Check LICENSE / NOTICE presence",
267269 "status": "${{ steps.test5.outputs.status }}",
268- "duration_seconds": ${{ steps.test5.outputs.duration || 0 }}
270+ "duration_seconds": ${{ steps.test5.outputs.duration }}
269271 }
270272 ]
271273 },
@@ -323,9 +325,9 @@ jobs:
323325 run : |
324326 echo "## Apache Kudu Test Results" >> $GITHUB_STEP_SUMMARY
325327 echo "" >> $GITHUB_STEP_SUMMARY
326- echo "- ** Version:** ${{ steps.download.outputs.kudu_version }}" >> $GITHUB_STEP_SUMMARY
327- echo "- ** Status:** ${{ steps.summary.outputs.overall_status }}" >> $GITHUB_STEP_SUMMARY
328- echo "- ** Tests Passed:** ${{ steps.summary.outputs.passed }}" >> $GITHUB_STEP_SUMMARY
329- echo "- ** Tests Failed:** ${{ steps.summary.outputs.failed }}" >> $GITHUB_STEP_SUMMARY
330- echo "- ** Duration:** ${{ steps.summary.outputs.duration }}s" >> $GITHUB_STEP_SUMMARY
331- echo "- ** Runner:** ubuntu-24.04 (arm64)" >> $GITHUB_STEP_SUMMARY
328+ echo "- Version: ${{ steps.download.outputs.kudu_version }}" >> $GITHUB_STEP_SUMMARY
329+ echo "- Status: ${{ steps.summary.outputs.overall_status }}" >> $GITHUB_STEP_SUMMARY
330+ echo "- Tests Passed: ${{ steps.summary.outputs.passed }}" >> $GITHUB_STEP_SUMMARY
331+ echo "- Tests Failed: ${{ steps.summary.outputs.failed }}" >> $GITHUB_STEP_SUMMARY
332+ echo "- Duration: ${{ steps.summary.outputs.duration }}s" >> $GITHUB_STEP_SUMMARY
333+ echo "- Runner: ubuntu-24.04 (arm64)" >> $GITHUB_STEP_SUMMARY
0 commit comments