You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lemmih As far as I understand this issue entails:
1. Making sure that the downloaded snapshots are correct.
2. Snapshot validation should fail given a corrupt snapshot.
The snapshots are not corrupted during upload or download. We generate them incorrectly (ie. if you generate a fresh calibnet snapshot, zstd --test will tell you it is invalid). Older snapshots appear to be fine so this might be a bug that was introduced recently. Ideally, a bug fix would include updates to forest-cli snapshot validate to not accept broken files but it isn't strictly necessary.
Fix bug in snapshot generation code.
Add CI check for broken zst files. That is, add a zstd --test step after we generate a snapshot.
(Optional) Update forest-cli snapshot validate to detect incorrectly compressed files.
Describe the bug
To Reproduce Steps to reproduce the behavior:
forest-cli --chain calibnet snapshot fetch
zstd --test forest_snapshot_calibnet_2023-06-19_height_660943.car.zst
(this fails)forest-cli --chain calibnet snapshot validate forest_snapshot_calibnet_2023-06-19_height_660943.car.zst
Log output
Log Output
Expected behaviour
The
zst
snapshot files should not prematurely end.Screenshots
Environment (please complete the following information):
rustc --version
): default toolchainmain
Other information and links
The text was updated successfully, but these errors were encountered: