Reject empty SQLite backup artifacts during verification
ABSDEV Framework CI / framework-ci (push) Successful in 25s

This commit is contained in:
Mark Gregory
2026-11-27 18:01:12 +00:00
parent 5ce5781b08
commit a6daf917ad
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -84,6 +84,8 @@ class SandboxDatabase:
if db.execute("PRAGMA integrity_check").fetchall() != [("ok",)]:
raise DatabaseIdentityError("Backup integrity check failed")
digest, size = checksum(path)
if size == 0:
raise DatabaseIdentityError("SQLite backup is empty")
result = {
"backup_id": identifier, "driver": "sqlite", "database": "acceptance",
"username": "local_fixture", "container": "local_fixture",