diff --git a/tests/vectors/document-variants-c2a/README.md b/tests/vectors/document-variants-c2a/README.md new file mode 100644 index 00000000..a9d5b98b --- /dev/null +++ b/tests/vectors/document-variants-c2a/README.md @@ -0,0 +1,12 @@ +# document-variants-c2a vectors + +`c2a-written-ids.msgpack` and `c2a-written-ids-directory/` are what `C2aGateWriter` writes: one record holding element ids, as a +single-file store (header v3) and as a directory store (header v5). The writer stamps every record with one fixed clock, so the +bytes are the same on every run, and `C2aGateWriter.TheCommittedVectorsAreWhatC2aWrites` compares the live output to these files +byte for byte (the directory as relative path and bytes; `*.lock` files hold no state and are left out). + +Regenerate them only when C2a's format moves on purpose: +`CULTLIB_GATE_OUT= dotnet test tests/GameCult.Caching.Tests --filter FullyQualifiedName~C2aStamps`, then copy the single +file and the directory store (the page under `store.cc.records/` is named by its content hash) over these. + +`old-reader-refusal.sh` is the gate that reads them with the pinned older readers; its header says how to run it. diff --git a/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc b/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc index 78d4528b..05040c81 100644 Binary files a/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc and b/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc differ diff --git a/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc.records/8ae7b17346ef65865e4ceb72d86f2d58975b2c62da993ef9cc54b479d86ee2cc.msgpack b/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc.records/578e09fc6a9cafb49d3eea249d7a5e1f861f36aa7dafe23f0605a87393403722.msgpack similarity index 66% rename from tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc.records/8ae7b17346ef65865e4ceb72d86f2d58975b2c62da993ef9cc54b479d86ee2cc.msgpack rename to tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc.records/578e09fc6a9cafb49d3eea249d7a5e1f861f36aa7dafe23f0605a87393403722.msgpack index b6bf2789..0012b9d8 100644 Binary files a/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc.records/8ae7b17346ef65865e4ceb72d86f2d58975b2c62da993ef9cc54b479d86ee2cc.msgpack and b/tests/vectors/document-variants-c2a/c2a-written-ids-directory/store.cc.records/578e09fc6a9cafb49d3eea249d7a5e1f861f36aa7dafe23f0605a87393403722.msgpack differ diff --git a/tests/vectors/document-variants-c2a/c2a-written-ids.msgpack b/tests/vectors/document-variants-c2a/c2a-written-ids.msgpack index 50eda87d..038fe60c 100644 Binary files a/tests/vectors/document-variants-c2a/c2a-written-ids.msgpack and b/tests/vectors/document-variants-c2a/c2a-written-ids.msgpack differ