Skip to content

Commit 6cef91a

Browse files
committed
Added observability tests.
1 parent 2d79755 commit 6cef91a

File tree

9 files changed

+1213
-68
lines changed

9 files changed

+1213
-68
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@ jobs:
9999
echo "=== Post-deployment validation ==="
100100
./scripts/test.sh check-deployment
101101
102+
- name: Wait for monitoring stack
103+
run: |
104+
echo "=== Waiting for monitoring components (required for autoscaling) ==="
105+
# Parallel wait with reasonable timeouts
106+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=metrics-server -n eoapi --timeout=120s &
107+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/component=server,app.kubernetes.io/name=prometheus -n eoapi --timeout=120s &
108+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=grafana -n eoapi --timeout=120s &
109+
kubectl wait --for=condition=Ready pod -l app.kubernetes.io/name=prometheus-adapter -n eoapi --timeout=120s &
110+
wait # Wait for all background jobs
111+
echo "✅ Monitoring stack ready"
112+
kubectl get hpa -n eoapi
113+
114+
- name: Install Python dependencies
115+
run: |
116+
python -m pip install --upgrade pip
117+
pip install pytest requests psycopg2-binary
118+
102119
- name: Run integration tests
103120
run: |
104121
export RELEASE_NAME="$RELEASE_NAME"

0 commit comments

Comments
 (0)