Prod upgrade fixes: profiler compatibility with new FastAPI, pinned dependencies

- profiler: Literal instead of Query(enum=...) (broke on FastAPI 0.162)
- pin fastapi/starlette/uvicorn/pydantic for the profiler, upper bounds for APP_CORE
- health check: show the service log when an HTTP check fails
- update.sh: the "before" version comes from deploy.state
- migrate.py: hint about OVPMON_*_DB_PATH when the default database is missing
- docs: --source --no-pull mode, dependency pinning, PIP_CONSTRAINT
- tests: new test for the section parameter, fixed test_server_process.py

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ayurishchevandClaude Sonnet 5.5 committed 2026-11-13 00:03:39 +03:00
1 parent 1bbf9b7cc1
commit 79c950f8f7
14 files changed
+156 -38

No files matched your search

+3 -1
View File
@@ -1,3 +1,5 @@
from typing import Literal, Optional
from fastapi import APIRouter, Depends, HTTPException, Query
from sqlalchemy.orm import Session
from database import get_db
@@ -13,7 +15,7 @@ router = APIRouter(dependencies=[Depends(verify_token)])
@router.get("/config", response_model=ConfigResponse)
def get_config(
section: str = Query(None, enum=["server", "pki"]),
section: Optional[Literal["server", "pki"]] = Query(None),
db: Session = Depends(get_db)
):
response = ConfigResponse()