fix: keep backend startup independent from paused elo

Avoid eager Elo/MMR imports during backend startup while the feature is paused. Add validation coverage for backend startup and health route resolution.
This commit is contained in:
devRaGonSa
2026-05-19 09:09:20 +02:00
committed by GitHub
parent feb516f411
commit 2271608836
3 changed files with 266 additions and 4 deletions

View File

@@ -42,6 +42,20 @@ if (-not (Test-Path "ai/reports/.gitkeep")) {
throw "Missing ai/reports/.gitkeep"
}
$backendImportCheck = @'
import sys
sys.path.insert(0, "backend")
import app.main
from app.routes import resolve_get_payload
status, payload = resolve_get_payload("/health")
if status is None or payload.get("status") != "ok":
raise SystemExit("Backend health route did not resolve to an ok payload.")
'@
$backendImportCheck | python -
Write-Host "No product integration tests are configured for this platform-only scope."
Write-Host "Backend startup import check passed."
Write-Host "Platform validation passed."
exit 0