From 3176cd7851458d7c328b163e6e0c84e7226ef4a2 Mon Sep 17 00:00:00 2001 From: buddhisthead Date: Wed, 22 Oct 2025 09:44:23 -0700 Subject: [PATCH 1/3] Renormalize giant CBOR off LFS at HEAD --- tests/fixtures/.gitattributes | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/fixtures/.gitattributes b/tests/fixtures/.gitattributes index 9937673b..e69de29b 100644 --- a/tests/fixtures/.gitattributes +++ b/tests/fixtures/.gitattributes @@ -1 +0,0 @@ -134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor filter=lfs diff=lfs merge=lfs -text From 6fbae44d16fd945c27041929e7386fde632df8ab Mon Sep 17 00:00:00 2001 From: buddhisthead Date: Wed, 22 Oct 2025 09:46:33 -0700 Subject: [PATCH 2/3] Remove giant fixture from tree; ignore going forward --- .gitignore | 1 + ...e580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor diff --git a/.gitignore b/.gitignore index 5e91248b..bc6dea1b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ result-* # direnv .direnv/ .envrc.local +tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor diff --git a/tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor b/tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor deleted file mode 100644 index 65637590..00000000 --- a/tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c01463bb6d95b3ef7fdfb334a7932199b080bbd80647ae2bdd92f76b40a127e -size 2553095916 From 364460dcbd1e553950f0c456b89df49668f93969 Mon Sep 17 00:00:00 2001 From: buddhisthead Date: Wed, 22 Oct 2025 10:06:43 -0700 Subject: [PATCH 3/3] Update Makefile to download snapshot file when needed for testing --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7416e6a0..4bf214de 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ MANIFEST_SMALL ?= tests/fixtures/test-manifest.json # Real Cardano Haskell node snapshot (Conway era, epoch 507) SNAPSHOT ?= tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor MANIFEST ?= tests/fixtures/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.json +SNAP_URL ?= "https://pub-b844360df4774bb092a2bb2043b888e5.r2.dev/134092758.670ca68c3de580f8469677754a725e86ca72a7be381d3108569f0704a5fca327.cbor.gz" SECTIONS_ALL := --params --governance --pools --accounts --utxo @@ -58,8 +59,15 @@ fmt: clippy: $(CARGO) clippy --workspace -- -D warnings +snapshot-download: $(SNAPSHOT) + +$(SNAPSHOT): + echo "Downloading snapshot file..." + curl -L -f -o "$(SNAPSHOT).gz" "$(SNAP_URL)" || { echo "Download failed"; exit 1; } + gunzip "$(SNAPSHOT).gz" + # Streaming snapshot parser test -snap-test-streaming: +snap-test-streaming: $(SNAPSHOT) @echo "Testing Streaming Snapshot Parser" @echo "==================================" @echo "Snapshot: $(SNAPSHOT)"