-
Notifications
You must be signed in to change notification settings - Fork 26
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
refactor(blockifier_reexecution): add chain ID to SerializableOfflineReexecutionData #1972
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1972 +/- ##
==========================================
+ Coverage 40.10% 42.17% +2.06%
==========================================
Files 26 204 +178
Lines 1895 23935 +22040
Branches 1895 23935 +22040
==========================================
+ Hits 760 10094 +9334
- Misses 1100 13375 +12275
- Partials 35 466 +431 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
3d59ffc
to
c4b1621
Compare
c4c7ff2
to
a4d664b
Compare
c4b1621
to
79580d0
Compare
a4d664b
to
74cb405
Compare
74cb405
to
141a523
Compare
79580d0
to
02021d6
Compare
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.
Reviewable status: 0 of 221 files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @dorimedini-starkware)
crates/blockifier_reexecution/src/main.rs
line 137 at r1 (raw file):
serializable_data_prev_block, serializable_data_next_block, chain_id: ChainId::Mainnet,
Is this really what we want? I mean, we probably want to save data for reexecution tests for Mainnet; do we also want to save and run tests for other networks; If not, then it should just be explicitly entered in the CLI, not saved in the file.
Code quote:
chain_id: ChainId::Mainnet,
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.
Reviewable status: 0 of 221 files reviewed, 1 unresolved discussion (waiting on @aner-starkware and @AvivYossef-starkware)
crates/blockifier_reexecution/src/main.rs
line 137 at r1 (raw file):
Previously, aner-starkware wrote…
Is this really what we want? I mean, we probably want to save data for reexecution tests for Mainnet; do we also want to save and run tests for other networks; If not, then it should just be explicitly entered in the CLI, not saved in the file.
still relevant?
the idea is:
- RPC tests guess the chain ID from the node URL; or, get the chain ID explicitly if you want to override
- offline tests need to fetch the chain ID from the JSON (hence the addition of the chain ID to the JSON struct)
141a523
to
0c076ba
Compare
02021d6
to
76e86ad
Compare
Previously, dorimedini-starkware wrote…
Are we planning to run reexecution in other networks often or in tests? |
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.
Reviewable status: 0 of 221 files reviewed, 1 unresolved discussion (waiting on @aner-starkware and @AvivYossef-starkware)
crates/blockifier_reexecution/src/main.rs
line 137 at r1 (raw file):
Previously, aner-starkware wrote…
Are we planning to run reexecution in other networks often or in tests?
if we see interesting edge cases pop up in other networks, yes, I would like to be prepared.
maybe it will never but used in the CI but it was already useful for me, to manually test specific blocks from testnet
Previously, dorimedini-starkware wrote…
I understand that testing in other networks is useful, but why do we need to store the network in the file? |
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.
Reviewable status: 0 of 221 files reviewed, 1 unresolved discussion (waiting on @aner-starkware and @AvivYossef-starkware)
crates/blockifier_reexecution/src/main.rs
line 137 at r1 (raw file):
Previously, aner-starkware wrote…
I understand that testing in other networks is useful, but why do we need to store the network in the file?
because we need the block info for offline execution, right? the chain info requires knowledge of the network (in principle - in practice I think since the fee token addresses are the same it isn't really required, but good to have this for forward compatibility). no?
Previously, dorimedini-starkware wrote…
I don't think it's necessary to add it right to the file—this seems like something we might never really use, and if we need it, the user can add the network via CLI. Adding the network to the file means we plan to make tests that rely on it, but at the moment, there's nothing to suggest such tests will ever be needed. For all the current networks, the behaviour is the same. |
Previously, aner-starkware wrote…
*right now |
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.
Reviewed all commit messages.
Reviewable status: 0 of 221 files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @dorimedini-starkware)
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.
Reviewed 2 of 221 files at r2, 219 of 219 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @dorimedini-starkware)
0c076ba
to
c40fd02
Compare
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @aner-starkware and @AvivYossef-starkware)
crates/blockifier_reexecution/src/main.rs
line 137 at r1 (raw file):
Previously, aner-starkware wrote…
*right now
resolved offline
76e86ad
to
256aca2
Compare
Artifacts upload triggered. View details here |
c40fd02
to
db6726d
Compare
256aca2
to
4345053
Compare
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.
Reviewable status: 115 of 221 files reviewed, all discussions resolved (waiting on @AvivYossef-starkware)
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.
Reviewed 106 of 106 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware)
db6726d
to
60702e2
Compare
4345053
to
1e62100
Compare
60702e2
to
ac4acfa
Compare
No description provided.