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:
@@ -52,7 +52,7 @@ else
|
|||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "build-windows.sh has beta marking code"
|
||||||
else
|
else
|
||||||
check "build-windows.sh missing beta marking code"
|
check "build-windows.sh missing beta marking code"
|
||||||
@@ -82,21 +82,21 @@ echo "Phase 2: Database Migration"
|
|||||||
echo "---------------------------"
|
echo "---------------------------"
|
||||||
|
|
||||||
# Check tables exist
|
# 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"
|
check "update_rollouts table exists"
|
||||||
else
|
else
|
||||||
check "update_rollouts table exists"
|
check "update_rollouts table exists"
|
||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "update_health_metrics table exists"
|
||||||
else
|
else
|
||||||
check "update_health_metrics table exists"
|
check "update_health_metrics table exists"
|
||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "agent_update_events table exists"
|
||||||
else
|
else
|
||||||
check "agent_update_events table exists"
|
check "agent_update_events table exists"
|
||||||
@@ -104,13 +104,13 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for data
|
# 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"
|
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"
|
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"
|
info "Health metrics tracked: $METRIC_COUNT"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@@ -120,7 +120,7 @@ echo "Phase 3: Health Monitoring"
|
|||||||
echo "--------------------------"
|
echo "--------------------------"
|
||||||
|
|
||||||
# Check source files exist
|
# 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"
|
check "health.rs source file exists"
|
||||||
else
|
else
|
||||||
check "health.rs source file exists"
|
check "health.rs source file exists"
|
||||||
@@ -149,25 +149,25 @@ echo ""
|
|||||||
echo "Phase 4: API Endpoints"
|
echo "Phase 4: API Endpoints"
|
||||||
echo "----------------------"
|
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 "updates.rs API file exists"
|
||||||
|
|
||||||
# Check for key functions
|
# 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"
|
check "list_rollouts endpoint defined"
|
||||||
else
|
else
|
||||||
check "list_rollouts endpoint defined"
|
check "list_rollouts endpoint defined"
|
||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "promote_version endpoint defined"
|
||||||
else
|
else
|
||||||
check "promote_version endpoint defined"
|
check "promote_version endpoint defined"
|
||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "rollback_version endpoint defined"
|
||||||
else
|
else
|
||||||
check "rollback_version endpoint defined"
|
check "rollback_version endpoint defined"
|
||||||
@@ -179,7 +179,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check routes registered
|
# 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"
|
check "API routes registered in mod.rs"
|
||||||
else
|
else
|
||||||
check "API routes registered in mod.rs"
|
check "API routes registered in mod.rs"
|
||||||
@@ -192,25 +192,25 @@ echo ""
|
|||||||
echo "Phase 5: Dashboard UI"
|
echo "Phase 5: Dashboard UI"
|
||||||
echo "---------------------"
|
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 "Updates.tsx page exists"
|
||||||
|
|
||||||
# Check for key components
|
# 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"
|
check "RolloutInfo interface defined"
|
||||||
else
|
else
|
||||||
check "RolloutInfo interface defined"
|
check "RolloutInfo interface defined"
|
||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "Promote functionality implemented"
|
||||||
else
|
else
|
||||||
check "Promote functionality implemented"
|
check "Promote functionality implemented"
|
||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "Rollback functionality implemented"
|
||||||
else
|
else
|
||||||
check "Rollback functionality implemented"
|
check "Rollback functionality implemented"
|
||||||
@@ -222,14 +222,14 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check navigation
|
# 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"
|
check "Updates route registered in App.tsx"
|
||||||
else
|
else
|
||||||
check "Updates route registered in App.tsx"
|
check "Updates route registered in App.tsx"
|
||||||
((FAIL_COUNT++))
|
((FAIL_COUNT++))
|
||||||
fi
|
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"
|
check "Updates navigation link added"
|
||||||
else
|
else
|
||||||
check "Updates navigation link added"
|
check "Updates navigation link added"
|
||||||
@@ -253,7 +253,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check dashboard build
|
# Check dashboard build
|
||||||
if [ -d "/opt/gururmm/dashboard/dist" ]; then
|
if [ -d "/home/guru/gururmm/dashboard/dist" ]; then
|
||||||
check "Dashboard build exists"
|
check "Dashboard build exists"
|
||||||
else
|
else
|
||||||
echo -e "${YELLOW}[WARN]${NC} Dashboard dist/ directory not found - may need to run 'npm run build'"
|
echo -e "${YELLOW}[WARN]${NC} Dashboard dist/ directory not found - may need to run 'npm run build'"
|
||||||
|
|||||||
Reference in New Issue
Block a user