Skip to content

Commit 2dd722f

Browse files
Web3NLclaude
andcommitted
chore: simplify validation summary output
Remove table borders from the timing report and print the success message after the time list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 89bf4eb commit 2dd722f

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

validate-and-test-all.sh

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,20 @@ T_TEST=0
2828
print_summary() {
2929
local total=$(( $(date +%s) - SCRIPT_START_TIME ))
3030
echo ""
31-
echo "┌──────────────────────────────────────┬─────────┐"
32-
echo "│ Step │ Time │"
33-
echo "├──────────────────────────────────────┼─────────┤"
3431
if [ "$SKIP_CHECKS" != "true" ]; then
35-
printf "│ %-36s │ %02d:%02d │\n" "🔍 Static analysis" $(( T_STATIC / 60 )) $(( T_STATIC % 60 ))
32+
printf " 🔍 Static analysis %02d:%02d\n" $(( T_STATIC / 60 )) $(( T_STATIC % 60 ))
3633
fi
3734
if [ "$SKIP_BOOTSTRAP" != "true" ]; then
38-
printf "│ %-36s │ %02d:%02d │\n" "🌐 Bootstrap" $(( T_BOOTSTRAP / 60 )) $(( T_BOOTSTRAP % 60 ))
35+
printf " 🌐 Bootstrap %02d:%02d\n" $(( T_BOOTSTRAP / 60 )) $(( T_BOOTSTRAP % 60 ))
3936
fi
40-
printf "│ %-36s │ %02d:%02d │\n" "🔨 Build" $(( T_BUILD / 60 )) $(( T_BUILD % 60 ))
41-
printf "│ %-36s │ %02d:%02d │\n" "🚀 Deploy" $(( T_DEPLOY / 60 )) $(( T_DEPLOY % 60 ))
42-
printf "│ %-36s │ %02d:%02d │\n" "⚡ Cargo pre-compile (parallel)" $(( T_CARGO / 60 )) $(( T_CARGO % 60 ))
43-
printf "│ %-36s │ %02d:%02d │\n" "🧪 Test" $(( T_TEST / 60 )) $(( T_TEST % 60 ))
44-
echo "├──────────────────────────────────────┼─────────┤"
45-
printf "│ %-36s │ %02d:%02d │\n" "Total" $(( total / 60 )) $(( total % 60 ))
46-
echo "└──────────────────────────────────────┴─────────┘"
37+
printf " 🔨 Build %02d:%02d\n" $(( T_BUILD / 60 )) $(( T_BUILD % 60 ))
38+
printf " 🚀 Deploy %02d:%02d\n" $(( T_DEPLOY / 60 )) $(( T_DEPLOY % 60 ))
39+
printf " ⚡ Cargo pre-compile %02d:%02d\n" $(( T_CARGO / 60 )) $(( T_CARGO % 60 ))
40+
printf " 🧪 Test %02d:%02d\n" $(( T_TEST / 60 )) $(( T_TEST % 60 ))
41+
printf " ─────────────────────────────\n"
42+
printf " Total %02d:%02d\n" $(( total / 60 )) $(( total % 60 ))
43+
echo ""
44+
echo "✅ Validation finished correctly!"
4745
}
4846
trap print_summary EXIT
4947

@@ -127,5 +125,4 @@ icp canister status -e local --json 2>/dev/null | while IFS= read -r line; do
127125
printf " %-25s http://%s.local.localhost:8080\n" "" "$name"
128126
done
129127

130-
echo ""
131-
echo "✅ Validation finished correctly!"
128+

0 commit comments

Comments
 (0)