sync: auto-sync from Mikes-MacBook-Air.local at 2026-05-25 15:51:15

Author: Mike Swanson
Machine: Mikes-MacBook-Air.local
Timestamp: 2026-05-25 15:51:15
This commit is contained in:
2026-05-25 15:51:16 -07:00
parent 6a53072dfa
commit d025804edf

View File

@@ -52,7 +52,7 @@ else
((FAIL_COUNT++))
fi
if grep -q "Mark all new builds as beta" /opt/gururmm/build-windows.sh; then
if grep -q -i "mark.*beta" /opt/gururmm/build-windows.sh; then
check "build-windows.sh has beta marking code"
else
check "build-windows.sh missing beta marking code"
@@ -82,21 +82,21 @@ echo "Phase 2: Database Migration"
echo "---------------------------"
# Check tables exist
if sudo -u postgres psql gururmm_production -t -c "\d update_rollouts" &>/dev/null; then
if sudo -u postgres psql gururmm -t -c "\d update_rollouts" &>/dev/null; then
check "update_rollouts table exists"
else
check "update_rollouts table exists"
((FAIL_COUNT++))
fi
if sudo -u postgres psql gururmm_production -t -c "\d update_health_metrics" &>/dev/null; then
if sudo -u postgres psql gururmm -t -c "\d update_health_metrics" &>/dev/null; then
check "update_health_metrics table exists"
else
check "update_health_metrics table exists"
((FAIL_COUNT++))
fi
if sudo -u postgres psql gururmm_production -t -c "\d agent_update_events" &>/dev/null; then
if sudo -u postgres psql gururmm -t -c "\d agent_update_events" &>/dev/null; then
check "agent_update_events table exists"
else
check "agent_update_events table exists"
@@ -104,13 +104,13 @@ else
fi
# Check for data
ROLLOUT_COUNT=$(sudo -u postgres psql gururmm_production -t -c "SELECT COUNT(*) FROM update_rollouts" 2>/dev/null | xargs)
ROLLOUT_COUNT=$(sudo -u postgres psql gururmm -t -c "SELECT COUNT(*) FROM update_rollouts" 2>/dev/null | xargs)
info "Rollouts tracked: $ROLLOUT_COUNT"
EVENT_COUNT=$(sudo -u postgres psql gururmm_production -t -c "SELECT COUNT(*) FROM agent_update_events" 2>/dev/null | xargs)
EVENT_COUNT=$(sudo -u postgres psql gururmm -t -c "SELECT COUNT(*) FROM agent_update_events" 2>/dev/null | xargs)
info "Update events logged: $EVENT_COUNT"
METRIC_COUNT=$(sudo -u postgres psql gururmm_production -t -c "SELECT COUNT(*) FROM update_health_metrics" 2>/dev/null | xargs)
METRIC_COUNT=$(sudo -u postgres psql gururmm -t -c "SELECT COUNT(*) FROM update_health_metrics" 2>/dev/null | xargs)
info "Health metrics tracked: $METRIC_COUNT"
echo ""
@@ -120,7 +120,7 @@ echo "Phase 3: Health Monitoring"
echo "--------------------------"
# Check source files exist
if [ -f "/opt/gururmm/server/src/updates/health.rs" ]; then
if [ -f "/home/guru/gururmm/server/src/updates/health.rs" ]; then
check "health.rs source file exists"
else
check "health.rs source file exists"
@@ -149,25 +149,25 @@ echo ""
echo "Phase 4: API Endpoints"
echo "----------------------"
if [ -f "/opt/gururmm/server/src/api/updates.rs" ]; then
if [ -f "/home/guru/gururmm/server/src/api/updates.rs" ]; then
check "updates.rs API file exists"
# Check for key functions
if grep -q "pub async fn list_rollouts" /opt/gururmm/server/src/api/updates.rs; then
if grep -q "pub async fn list_rollouts" /home/guru/gururmm/server/src/api/updates.rs; then
check "list_rollouts endpoint defined"
else
check "list_rollouts endpoint defined"
((FAIL_COUNT++))
fi
if grep -q "pub async fn promote_version" /opt/gururmm/server/src/api/updates.rs; then
if grep -q "pub async fn promote_version" /home/guru/gururmm/server/src/api/updates.rs; then
check "promote_version endpoint defined"
else
check "promote_version endpoint defined"
((FAIL_COUNT++))
fi
if grep -q "pub async fn rollback_version" /opt/gururmm/server/src/api/updates.rs; then
if grep -q "pub async fn rollback_version" /home/guru/gururmm/server/src/api/updates.rs; then
check "rollback_version endpoint defined"
else
check "rollback_version endpoint defined"
@@ -179,7 +179,7 @@ else
fi
# Check routes registered
if grep -q "api::updates::list_rollouts" /opt/gururmm/server/src/api/mod.rs; then
if grep -q "updates::list_rollouts" /home/guru/gururmm/server/src/api/mod.rs; then
check "API routes registered in mod.rs"
else
check "API routes registered in mod.rs"
@@ -192,25 +192,25 @@ echo ""
echo "Phase 5: Dashboard UI"
echo "---------------------"
if [ -f "/opt/gururmm/dashboard/src/pages/Updates.tsx" ]; then
if [ -f "/home/guru/gururmm/dashboard/src/pages/Updates.tsx" ]; then
check "Updates.tsx page exists"
# Check for key components
if grep -q "RolloutInfo" /opt/gururmm/dashboard/src/pages/Updates.tsx; then
if grep -q "RolloutInfo" /home/guru/gururmm/dashboard/src/pages/Updates.tsx; then
check "RolloutInfo interface defined"
else
check "RolloutInfo interface defined"
((FAIL_COUNT++))
fi
if grep -q "handlePromote" /opt/gururmm/dashboard/src/pages/Updates.tsx; then
if grep -q "handlePromote" /home/guru/gururmm/dashboard/src/pages/Updates.tsx; then
check "Promote functionality implemented"
else
check "Promote functionality implemented"
((FAIL_COUNT++))
fi
if grep -q "handleRollback" /opt/gururmm/dashboard/src/pages/Updates.tsx; then
if grep -q "handleRollback" /home/guru/gururmm/dashboard/src/pages/Updates.tsx; then
check "Rollback functionality implemented"
else
check "Rollback functionality implemented"
@@ -222,14 +222,14 @@ else
fi
# Check navigation
if grep -q "/updates" /opt/gururmm/dashboard/src/App.tsx; then
if grep -q "/updates" /home/guru/gururmm/dashboard/src/App.tsx; then
check "Updates route registered in App.tsx"
else
check "Updates route registered in App.tsx"
((FAIL_COUNT++))
fi
if grep -q "updates" /opt/gururmm/dashboard/src/components/Layout.tsx; then
if grep -q "updates" /home/guru/gururmm/dashboard/src/components/Layout.tsx; then
check "Updates navigation link added"
else
check "Updates navigation link added"
@@ -253,7 +253,7 @@ else
fi
# Check dashboard build
if [ -d "/opt/gururmm/dashboard/dist" ]; then
if [ -d "/home/guru/gururmm/dashboard/dist" ]; then
check "Dashboard build exists"
else
echo -e "${YELLOW}[WARN]${NC} Dashboard dist/ directory not found - may need to run 'npm run build'"