test(storage): record verified faults and isolate inventory cost

This commit is contained in:
2026-11-15 21:28:49 +03:00
parent f5a7a74f67
commit 3fd912fccb
8 changed files with 5239 additions and 7 deletions
+8 -1
View File
@@ -386,7 +386,14 @@ except urllib.error.HTTPError as e: print(json.dumps({{'status':e.code,'error':j
inside(f"s.delete(key={key(used['id'])!r}); print('true')")
age(used["id"])
age(saved["id"])
# Fresh cgroups make memory.peak specific to this experiment.
compose("restart", "api")
cluster.wait_count(2)
ready()
result["concurrent_uploads"] = concurrency(client, session, chat)
result["concurrent_uploads"][
"api_restarted_before_memory_measurement"
] = True
while time.monotonic() - grace_started < 302:
print(
"Waiting for genuine S3 LastModified grace: "
@@ -464,7 +471,7 @@ except urllib.error.HTTPError as e: print(json.dumps({{'status':e.code,'error':j
f"print(json.dumps(s.head(key={key(failed_old['id'])!r}) is None and s.head(key={key(failed_fresh['id'])!r}) is not None))"
)
repeat = run_reconcile(True)
assert not repeat["applied"].get("delete_orphan")
assert not repeat["applied"]
assert repeat["linked_protected"] >= 1
result["reconciliation"] = {
"dry_run": dry,