-
Notifications
You must be signed in to change notification settings - Fork 159
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(rpc): implement Filecoin.StateMarketStorageDeal #4079
Conversation
827e7a3
to
a0b3b33
Compare
a0b3b33
to
c6e0c78
Compare
# Integration tests / Offline RPC check (pull_request) Failing after 2m
+ forest-tool api compare ./forest_snapshot_calibnet_2024-03-19_height_1450337.forest.car.zst --forest /ip4/127.0.0.1/tcp/8080/http --lotus /ip4/127.0.0.1/tcp/8081/http --n-tipsets 5
Error: unimplemented no green checkmark, no review! |
@LesnyRumcajs Yeah, need to incorporate ChainSafe/fil-actor-states#268 to make it green. // `get_proposal_array` does not exist for V13
State::V13(_st) => anyhow::bail!("unimplemented"), |
@LesnyRumcajs all green now! |
src/tool/subcommands/api_cmd.rs
Outdated
deals.push(deal_id); | ||
Ok(()) | ||
})?; | ||
deals.shuffle(&mut OsRng); |
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'm not sure about this. Tests need to be deterministic if possible. Otherwise, we may end up with flaky tests that are not reproducible.
If we need shuffling, using a pre-determined seed for the RNG might be a way out. What do you think?
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.
In practice, the snapshot we use (and the tipset to test against) is rolling as well, it's not likely possible to really fix the test cases
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.
But given the same snapshot (e.g., in a local test), making the seed constant would make the test reproducible, right? Or would it still be completely random from network conditions?
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.
But given the same snapshot (e.g., in a local test), making the seed constant would make the test reproducible, right?
@LesnyRumcajs That's true, I can remove the shuffle to make it reproducible for a fixed snapshot.
Summary of changes
Blocked on ChainSafe/fil-actor-states#267Changes introduced in this pull request:
Filecoin.StateMarketStorageDeal
Test output (with
fil-actor-states
on ChainSafe/fil-actor-states#267 branch)Reference issue to close (if applicable)
Closes
Other information and links
Change checklist