test(storage): pin the v1.0.0 chunk presence file

chunkpresence.txt, generated on the v1.0.0 tag checkout (where write.bin
regenerates identical): a fresh-from-HEAD volume with chunks 1, 2 and 5
absent and one flushed local block in chunk 5. Today's layer writes the
same file for the same volume and loads it as those sets; its blob hash
joins the format_v3 table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-28 12:51:47 -08:00
1 parent d479a8c6e6
commit ecbf13fcea
2 files changed
+7 -2

No files matched your search

@@ -78,8 +78,8 @@ func gitBlobHash(b []byte) string {
}
// formatV3AtV100 is every file of testdata/format_v3 as the v1.0.0 tag
// (bef007fd) holds it (git ls-tree), plus write.bin, generated on that tag
// checkout. A fixture edit fails here, so it cannot hide a format change.
// (bef007fd) holds it (git ls-tree), plus write.bin and chunkpresence.txt,
// generated on that tag checkout. A fixture edit fails here, so it cannot hide a format change.
var formatV3AtV100 = map[string]string{
"README.md": "b035e86b4e4cb477aa7e0f92e355e2e3c23462b8",
"additional-vectors.json": "c8399b6697ff837cee3139074e77b20aa1e2af3a",
@@ -116,6 +116,7 @@ var formatV3AtV100 = map[string]string{
"slot/slot-ref.bin": "de0e54a73d0735d91d648a538386b2e1af1564bd",
"slot/slot-strict.bin": "2e0e805b91bcb23d74a2f4d07b0518b74751f604",
"trim.bin": "c662538d82a4b075a295db9d5d3bd34315fd9265",
"chunkpresence.txt": "d06c82ca8c5d1f4f2fe41b246f62dd25e7606130",
"write.bin": "1d64f4c41851e7606f45b9846355cf7f3c18fb84",
}
@@ -0,0 +1,4 @@
absent 1
absent 2
absent 5
local 22