-
Notifications
You must be signed in to change notification settings - Fork 194
feat: add --unordered to forest-cli snapshot export
#5867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
ef0ada2
feat: add `--unordered` to `forest-cli snapshot export`
hanabi1224 53cf68d
Merge remote-tracking branch 'origin/main' into hm/snapshot-export-un…
hanabi1224 a45e66e
less db read ops
hanabi1224 5ae2f56
Merge remote-tracking branch 'origin/main' into hm/snapshot-export-un…
hanabi1224 bc0e6ff
changelog
hanabi1224 5023a7e
fix
hanabi1224 494fb1c
Merge remote-tracking branch 'origin/main' into hm/snapshot-export-un…
hanabi1224 10d696e
Merge branch 'main' into hm/snapshot-export-unordered
akaladarshi 066fb5f
Merge remote-tracking branch 'origin/main' into hm/snapshot-export-un…
hanabi1224 90d06e9
Merge remote-tracking branch 'origin/main' into hm/snapshot-export-un…
hanabi1224 fe42754
Merge remote-tracking branch 'origin/main' into hm/snapshot-export-un…
hanabi1224 5d7ee88
abort worker_handle gracefully & CI check
hanabi1224 ac15a22
fix script lint
hanabi1224 f3897d3
fix
hanabi1224 2e73539
Merge branch 'main' into hm/snapshot-export-unordered
hanabi1224 0ccb41d
resolve AI comment
hanabi1224 18a82fa
Merge branch 'main' into hm/snapshot-export-unordered
hanabi1224 10241f8
fix lint errors
hanabi1224 2158980
resolve AI comments
hanabi1224 6072720
Merge branch 'main' into hm/snapshot-export-unordered
hanabi1224 08052ae
Merge branch 'main' into hm/snapshot-export-unordered
hanabi1224 0265659
Merge branch 'main' into hm/snapshot-export-unordered
hanabi1224 07f0a58
Merge remote-tracking branch 'origin/main' into hm/snapshot-export-un…
hanabi1224 50c6105
Merge branch 'main' into hm/snapshot-export-unordered
hanabi1224 d9f927c
Merge branch 'main' into hm/snapshot-export-unordered
hanabi1224 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/usr/bin/env bash | ||
| # This script is checking the correctness of | ||
| # the snapshot export feature. | ||
| # It requires both the `forest` and `forest-cli` binaries to be in the PATH. | ||
|
|
||
| set -eu | ||
|
|
||
| source "$(dirname "$0")/harness.sh" | ||
|
|
||
| forest_init "$@" | ||
|
|
||
| echo "Cleaning up the initial snapshot" | ||
| rm --force --verbose ./*.{car,car.zst,sha256sum} | ||
|
|
||
| echo "Exporting zstd compressed snapshot with unordred graph traversal" | ||
| $FOREST_CLI_PATH snapshot export --unordered -o unordered.forest.car.zst | ||
|
|
||
| $FOREST_CLI_PATH shutdown --force | ||
|
|
||
| for f in *.car.zst; do | ||
| echo "Inspecting archive info $f" | ||
| $FOREST_TOOL_PATH archive info "$f" | ||
| echo "Inspecting archive metadata $f" | ||
| $FOREST_TOOL_PATH archive metadata "$f" | ||
| done | ||
|
|
||
| echo "Cleanup calibnet db" | ||
| $FOREST_TOOL_PATH db destroy --chain calibnet --force | ||
|
|
||
| echo "Import the unordered snapshot" | ||
| $FOREST_PATH --chain calibnet --encrypt-keystore false --halt-after-import --height=-100 --import-snapshot unordered.forest.car.zst | ||
|
|
||
| echo "Check if Forest is able to sync" | ||
| forest_run_node_detached | ||
| forest_wait_api | ||
| forest_wait_for_sync | ||
| forest_wait_for_healthcheck_ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.