-
Notifications
You must be signed in to change notification settings - Fork 144
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
feat: add save_to_file
option to cli state fetch
#3148
Conversation
cli sate fetch
cli state fetch
646f215
to
b959b25
Compare
cli state fetch
save_to_file
option to cli state fetch
b562291
to
76eff57
Compare
76eff57
to
8a16243
Compare
with: | ||
go-version: "^1.20" | ||
- name: Install go-car | ||
run: go install github.com/ipld/go-car/cmd/car@v0.0.0-20230704002448-4de031a1d8a8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this versioning. Very agile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's recommended to use @latest
locally but I would rather use a fixed version on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was just mocking the 0.0.0
version. You cant' have any expectations in such a case. :)
echo "Verifying saved .car file" | ||
car verify bafy2bzacedjq7lc42qhlk2iymcpjlanntyzdupc3ckg66gkca6plfjs5m7euo.car | ||
echo "Inspecting saved .car file" | ||
car inspect bafy2bzacedjq7lc42qhlk2iymcpjlanntyzdupc3ckg66gkca6plfjs5m7euo.car |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd put it into a separate file. The reason is, it needs a separate binary and I would like to be able to run ./scripts/tests/calibnet_other_checks.sh
without it. Alternatively, I'm good with it if we could have it in a docker image (we'd avoid a Go dependency in the workflow this way)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved out of test script
.github/workflows/forest.yml
Outdated
run: | | ||
# File name is hard-coded in ./scripts/tests/calibnet_other_check.sh | ||
car verify bafy2bzacedjq7lc42qhlk2iymcpjlanntyzdupc3ckg66gkca6plfjs5m7euo.car | ||
car inspect bafy2bzacedjq7lc42qhlk2iymcpjlanntyzdupc3ckg66gkca6plfjs5m7euo.car |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the value of car inspect
? Can it fail even after car verify
has succeeded? If it's only used for debugging then let's remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Summary of changes
As part of #3081
Changes introduced in this pull request:
state fetch
to save the DAG to a fileReference issue to close (if applicable)
Closes
Other information and links
Change checklist