mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-22 16:35:20 +08:00
test(ci): require the consolidated migration contract
This commit is contained in:
@@ -166,12 +166,19 @@ jobs:
|
||||
'test_pipeline_admission_postgres': 27,
|
||||
'test_rag_document_identity': 34,
|
||||
'test_rag_interrupted_ingestion': 22,
|
||||
'test_migration_branch_convergence': 7,
|
||||
'test_migration_branch_convergence': 6,
|
||||
'test_runner_timestamps_postgres': 32,
|
||||
}
|
||||
counts = Counter(case.get('classname', '').rsplit('.', 1)[-1] for case in cases)
|
||||
for module, minimum in expected.items():
|
||||
assert counts[module] >= minimum, f'{module}: expected at least {minimum} cases, got {counts[module]}'
|
||||
convergence_cases = {
|
||||
case.get('name') for case in cases
|
||||
if case.get('classname', '').rsplit('.', 1)[-1] == 'test_migration_branch_convergence'
|
||||
}
|
||||
assert 'test_empty_database_startup_schema_then_real_migrations[postgresql]' in convergence_cases, (
|
||||
'The fresh-schema migration and idempotency contract must execute'
|
||||
)
|
||||
unsuccessful = [
|
||||
case.get('name') for case in cases
|
||||
if any(case.find(tag) is not None for tag in ('skipped', 'failure', 'error'))
|
||||
|
||||
Reference in New Issue
Block a user