Mark CRM production deploy verified and harden health wait.

Document successful CRM 6.3 prod smoke checks and retry CRM /health during deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Mortezakoohjani 2026-07-24 20:37:12 +03:30
parent 064d67f099
commit 735f343e0d
2 changed files with 17 additions and 11 deletions

View File

@ -17,7 +17,7 @@ CRM Core Platform (Phases 6.06.3) is complete: foundation, master data, sales
### Exit Criteria ### Exit Criteria
- [ ] Production deploy verified for CRM 6.3 + accounting - [x] Production deploy verified for CRM 6.3 + accounting (local + HTTPS health)
- [ ] Provider registry AI entry → Active (when ready) - [ ] Provider registry AI entry → Active (when ready)
- [x] CRM Core Platform docs (6.06.3) synced in registry / progress / API / glossary - [x] CRM Core Platform docs (6.06.3) synced in registry / progress / API / glossary

View File

@ -250,17 +250,23 @@ docker compose logs --tail=100 crm-service
code, health = run( code, health = run(
app, app,
"curl -sf http://127.0.0.1:8003/health || curl -sf http://192.168.10.162:8003/health", """
set -e
for i in 1 2 3 4 5 6 7 8 9 10; do
if curl -sf http://127.0.0.1:8003/health; then
echo
echo CRM_HEALTH_OK
exit 0
fi
sleep 3
done
curl -sv http://127.0.0.1:8003/health || true
exit 1
""",
timeout=120,
) )
if code != 0 or "ok" not in health.lower() and '"status"' not in health: if code != 0:
# retry once after short wait raise RuntimeError(f"CRM health failed: {health}")
run(app, "sleep 8")
code, health = run(
app,
"curl -sf http://127.0.0.1:8003/health || curl -sf http://192.168.10.162:8003/health",
)
if code != 0:
raise RuntimeError(f"CRM health failed: {health}")
finally: finally:
app.close() app.close()