Test Garbage Collection V3 against CouchDB

This commit is contained in:
vorotamoroz
2026-07-25 03:48:51 +00:00
parent c24fc1dc82
commit 0d68b6530f
2 changed files with 260 additions and 1 deletions
+3 -1
View File
@@ -60,4 +60,6 @@ Commonlib tests use real in-memory PouchDB revision trees to verify:
- propagation of chunk deletion to another PouchDB database; and
- recreation and propagation when the same content is written again.
Self-hosted LiveSync tests verify that Garbage Collection V3 uses Commonlib's revision-aware result, deletes only unreachable chunks, performs the initial bidirectional and final push-only replications in order, and requests remote compaction. CouchDB's own compaction implementation remains an external database boundary.
Self-hosted LiveSync unit tests verify that Garbage Collection V3 uses Commonlib's revision-aware result, deletes only unreachable chunks, performs the initial bidirectional and final push-only replications in order, and requests remote compaction.
A disposable real-CouchDB integration test verifies logical deletion on the server, retention of shared and conflict chunks, compaction completion, replication after collection, and recreation of a content-addressed chunk. CouchDB's choice and timing of physical byte reclamation remain an external database boundary, so the test does not assert a particular reduction in database size.