test(perf): require only the always-built request-log indexes in the nightly database upgrade test

The error code index is size-capped and left for an operator on tables over 4 GiB, so the full-size upgrade snapshot never gets it and the lane's index assertion would fail every night.
This commit is contained in:
mateo-berri 2026-10-29 05:22:11 -07:00
parent 4471416c1a
commit 3c24e51e04

View file

@ -102,7 +102,7 @@ def main() -> int:
UNION (SELECT request_id FROM "LiteLLM_SpendLogs" ORDER BY request_id DESC LIMIT 32)""").fetchall()
ids: Final = tuple(row[0] for row in _STRINGS.validate_python(sample))
assert ids, "Restored baseline has no spend logs"
names: Final = tuple(index.name for index in request_log_indexes.REQUEST_LOG_INDEXES)
names: Final = tuple(index.name for index in request_log_indexes.REQUEST_LOG_INDEXES if index.max_bytes is None)
migrations: Final = Path(request_log_indexes.__file__).parent / "migrations"
initial: Final = UpgradeState(
phase="schema",