Sprint-0-Spezifikationen ergaenzen, AP0.1-Setup-Luecken schliessen (Health, CI, ADR-Vorlage).
Test Suite / playwright-tests (push) Waiting to run
Deploy Development / deploy (push) Failing after 0s
Test Suite / pytest-backend (push) Failing after 5m1s
Test Suite / lint-backend (push) Failing after 0s
Test Suite / build-frontend (push) Successful in 0s
Test Suite / k6 /api/health Baseline (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-04 19:08:55 +02:00
1 parent 0e2b938fbd
commit 1ce20d8bdb
18 files changed
+1651 -47

No files matched your search

+7 -3
View File
@@ -18,11 +18,15 @@ jobs:
docker compose -f docker-compose.dev-env.yml build --no-cache
docker compose -f docker-compose.dev-env.yml up -d
sleep 5
if ! curl -sf http://localhost:8097/api/version; then
if ! curl -sf http://localhost:8097/api/health; then
echo "✗ DEV API nicht erreichbar — Backend-Logs (Migration/Startup):"
docker compose -f docker-compose.dev-env.yml logs backend --tail 120 || true
exit 1
fi
echo "✓ DEV API healthy"
curl -sf http://localhost:3097/api/version && echo "✓ DEV über Frontend-Nginx (wie Browser) healthy"
echo "✓ DEV API /api/health OK"
if docker compose -f docker-compose.dev-env.yml ps --status running 2>/dev/null | grep -q frontend; then
curl -sf http://localhost:3097/api/health && echo "✓ DEV über Frontend-Nginx healthy"
else
echo "(Frontend-Check übersprungen — optional in AP0.1)"
fi
echo "=== Kairo DEV Deploy complete ==="
+6 -2
View File
@@ -18,6 +18,10 @@ jobs:
docker compose build --no-cache
docker compose up -d
sleep 5
curl -sf http://localhost:8004/api/version && echo "✓ PROD API (direkt) healthy"
curl -sf http://localhost:3004/api/version && echo "✓ PROD API über Frontend-Nginx (wie Browser) healthy"
curl -sf http://localhost:8004/api/health && echo "✓ PROD API (direkt) /api/health OK"
if docker compose ps --status running 2>/dev/null | grep -q frontend; then
curl -sf http://localhost:3004/api/health && echo "✓ PROD über Frontend-Nginx healthy"
else
echo "(Frontend-Check übersprungen — optional in AP0.1)"
fi
echo "=== Kairo PROD Deploy complete ==="
+28 -26
View File
@@ -54,11 +54,9 @@ jobs:
done
docker compose -f "$COMPOSE_FILE" exec -T backend sh -lc "
pip install -r /app/requirements-dev.txt &&
pip install -q pytest httpx 2>/dev/null || pip install -q -r /app/requirements-dev.txt &&
cd /app &&
ACCESS_LAYER_STRICT=1 python scripts/check_access_layer_hints.py &&
python scripts/security_release_checks.py &&
ACCESS_LAYER_INTEGRATION=1 SKIP_DB_MIGRATE=1 python -m pytest tests -m 'not slow' -ra -vv --tb=short
python -m pytest tests -ra -vv --tb=short
"
lint-backend:
@@ -103,12 +101,16 @@ jobs:
fi
cd "$APP_DIR/frontend"
if [ ! -f package.json ]; then
echo "Frontend noch nicht vorhanden — übersprungen (AP0.1 optional)"
exit 0
fi
npm install
npm run build
echo "✓ Frontend build OK"
k6-health-baseline:
name: k6 /health Baseline
name: k6 /api/health Baseline
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
@@ -133,36 +135,36 @@ jobs:
echo "→ k6 gegen Dev (${DEV_BASE})."
fi
- name: Dev /health abwarten
- name: Dev /api/health abwarten
if: ${{ steps.e2e.outputs.mode == 'dev' }}
run: |
BASE="${{ steps.e2e.outputs.base_url }}"
echo "Warte auf $BASE/health …"
echo "Warte auf $BASE/api/health …"
for i in $(seq 1 90); do
if curl -sf "$BASE/health" >/dev/null 2>&1; then
if curl -sf "$BASE/api/health" >/dev/null 2>&1; then
echo "Health OK (Versuch $i)"
exit 0
fi
sleep 2
done
echo "Timeout: Dev /health nicht erreichbar — Deploy / DNS / Firewall prüfen."
curl -v "$BASE/health" || true
echo "Timeout: Dev /api/health nicht erreichbar — Deploy / DNS / Firewall prüfen."
curl -v "$BASE/api/health" || true
exit 1
- name: Prod /health abwarten
- name: Prod /api/health abwarten
if: ${{ steps.e2e.outputs.mode == 'prod' }}
run: |
BASE="${{ steps.e2e.outputs.base_url }}"
echo "Warte auf $BASE/health …"
echo "Warte auf $BASE/api/health …"
for i in $(seq 1 60); do
if curl -sf "$BASE/health" >/dev/null 2>&1; then
if curl -sf "$BASE/api/health" >/dev/null 2>&1; then
echo "Health OK (Versuch $i)"
exit 0
fi
sleep 5
done
echo "Timeout: Prod /health nicht erreichbar"
curl -v "$BASE/health" || true
echo "Timeout: Prod /api/health nicht erreichbar"
curl -v "$BASE/api/health" || true
exit 1
- name: Install k6
@@ -181,7 +183,7 @@ jobs:
sudo mv "/tmp/k6-${K6_VER}-linux-${K6_ARCH}/k6" /usr/local/bin/k6
k6 version
- name: k6 Health-Baseline (parallele /health)
- name: k6 Health-Baseline (parallele /api/health)
env:
BASE_URL: ${{ steps.e2e.outputs.base_url }}
run: |
@@ -220,36 +222,36 @@ jobs:
echo "→ Deployte Dev-Umgebung (${DEV_BASE}). Secrets: E2E_DEV_TEST_EMAIL / E2E_DEV_TEST_PASSWORD."
fi
- name: Dev /health abwarten
- name: Dev /api/health abwarten
if: ${{ steps.e2e.outputs.mode == 'dev' }}
run: |
BASE="${{ steps.e2e.outputs.base_url }}"
echo "Warte auf $BASE/health …"
echo "Warte auf $BASE/api/health …"
for i in $(seq 1 90); do
if curl -sf "$BASE/health" >/dev/null 2>&1; then
if curl -sf "$BASE/api/health" >/dev/null 2>&1; then
echo "Health OK (Versuch $i)"
exit 0
fi
sleep 2
done
echo "Timeout: Dev /health nicht erreichbar — Deploy / DNS / Firewall prüfen."
curl -v "$BASE/health" || true
echo "Timeout: Dev /api/health nicht erreichbar — Deploy / DNS / Firewall prüfen."
curl -v "$BASE/api/health" || true
exit 1
- name: Prod /health abwarten
- name: Prod /api/health abwarten
if: ${{ steps.e2e.outputs.mode == 'prod' }}
run: |
BASE="${{ steps.e2e.outputs.base_url }}"
echo "Warte auf $BASE/health …"
echo "Warte auf $BASE/api/health …"
for i in $(seq 1 60); do
if curl -sf "$BASE/health" >/dev/null 2>&1; then
if curl -sf "$BASE/api/health" >/dev/null 2>&1; then
echo "Health OK (Versuch $i)"
exit 0
fi
sleep 5
done
echo "Timeout: Prod /health nicht erreichbar"
curl -v "$BASE/health" || true
echo "Timeout: Prod /api/health nicht erreichbar"
curl -v "$BASE/api/health" || true
exit 1
- name: Testnutzer registrieren (Dev, nur wenn möglich)