@@ -49,6 +49,7 @@ GO_MODULES := \
4949 fault-remediation \
5050 janitor \
5151 metadata-collector \
52+ event-exporter \
5253 store-client \
5354 commons
5455
@@ -441,6 +442,11 @@ lint-test-metadata-collector:
441442 @echo " Linting and testing metadata-collector..."
442443 $(MAKE ) -C metadata-collector lint-test
443444
445+ .PHONY : lint-test-event-exporter
446+ lint-test-event-exporter :
447+ @echo " Linting and testing event-exporter..."
448+ $(MAKE ) -C event-exporter lint-test
449+
444450# Python module lint-test targets (non-health-monitors)
445451# Currently no non-health-monitor Python modules
446452
@@ -702,7 +708,32 @@ tilt-ci: ## Run Tilt in CI mode (no UI, waits for all resources)
702708 @echo " Waiting for all statefulsets to be ready..."
703709 @kubectl get statefulsets --all-namespaces --no-headers -o custom-columns=" :metadata.namespace,:metadata.name" | while read ns name; do \
704710 echo " Waiting for statefulset $$ name in namespace $$ ns..." ; \
705- kubectl rollout status statefulset/$$ name -n $$ ns --timeout=300s || exit 1; \
711+ if kubectl rollout status statefulset/$$ name -n $$ ns --timeout=300s 2> /dev/null; then \
712+ echo " StatefulSet $$ name rolled out successfully" ; \
713+ else \
714+ echo " Rollout status not available, checking ready replicas..." ; \
715+ desired=$$(kubectl get statefulset $$name -n $$ns -o jsonpath='{.spec.replicas}' 2>/dev/null ) ; \
716+ if [ -z " $$ desired" ]; then \
717+ echo " Failed to get replica count for statefulset $$ name" ; \
718+ exit 1; \
719+ fi ; \
720+ timeout=300; elapsed=0; \
721+ while [ $$ elapsed -lt $$ timeout ]; do \
722+ ready=$$(kubectl get statefulset $$name -n $$ns -o jsonpath='{.status.readyReplicas}' 2>/dev/null || echo "0" ) ; \
723+ if [ " $$ ready" = " $$ desired" ]; then \
724+ echo " StatefulSet $$ name is ready ($$ ready/$$ desired replicas)" ; \
725+ break ; \
726+ fi ; \
727+ if [ $$ elapsed -eq 0 ] || [ $$ (( elapsed % 30 )) -eq 0 ]; then \
728+ echo " Waiting for $$ name: $$ ready/$$ desired replicas ready..." ; \
729+ fi ; \
730+ sleep 5; elapsed=$$((elapsed + 5 ) ); \
731+ done ; \
732+ if [ $$ elapsed -ge $$ timeout ]; then \
733+ echo " Timeout waiting for statefulset $$ name" ; \
734+ exit 1; \
735+ fi ; \
736+ fi ; \
706737 done
707738 @echo " All workloads are ready!"
708739
0 commit comments