V10.538 對齊 ai_calls ollama_other provider
All checks were successful
CD Pipeline / deploy (push) Successful in 1m6s

This commit is contained in:
OoO
2026-06-01 02:37:12 +08:00
parent 6e70a6eb47
commit 12c8c7e94d
9 changed files with 105 additions and 5 deletions

View File

@@ -65,6 +65,15 @@ def test_host_health_probe_label_check_accepts_runtime_labels():
assert f"'{label}'" in migration
def test_ai_calls_provider_check_accepts_ollama_other_telemetry_bucket():
migration = (ROOT / "migrations" / "043_allow_ollama_other_ai_calls_provider.sql").read_text(encoding="utf-8")
assert "DROP CONSTRAINT IF EXISTS chk_ai_calls_provider" in migration
assert "ADD CONSTRAINT chk_ai_calls_provider" in migration
assert "'ollama_other'" in migration
assert "NOT VALID" in migration
def test_rag_embedding_signature_migration_covers_query_and_learning_tables():
migration = (ROOT / "migrations" / "034_add_embedding_signature_to_rag_tables.sql").read_text(encoding="utf-8")