-
Notifications
You must be signed in to change notification settings - Fork 34
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(blockifier): cairo1 revert stack now part of ErrorStack #1490
feat(blockifier): cairo1 revert stack now part of ErrorStack #1490
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1490 +/- ##
===========================================
+ Coverage 40.10% 69.32% +29.22%
===========================================
Files 26 105 +79
Lines 1895 13804 +11909
Branches 1895 13804 +11909
===========================================
+ Hits 760 9570 +8810
- Misses 1100 3831 +2731
- Partials 35 403 +368 ☔ View full report in Codecov by Sentry. |
8d4dd2e
to
8f4fea9
Compare
7c53e8f
to
ff1d548
Compare
8f4fea9
to
66a1db9
Compare
9631fe8
to
29566cc
Compare
66a1db9
to
622c07d
Compare
29566cc
to
9a188fb
Compare
622c07d
to
dba1f3c
Compare
9a188fb
to
d49b575
Compare
dba1f3c
to
aeeb55b
Compare
d49b575
to
00aeed8
Compare
aeeb55b
to
d784023
Compare
00aeed8
to
2f5561a
Compare
d784023
to
8baccd9
Compare
2f5561a
to
602acee
Compare
8baccd9
to
1fa2da4
Compare
602acee
to
4aeb197
Compare
1fa2da4
to
8c257ac
Compare
Previously, dorimedini-starkware wrote…
What is a frame? |
Previously, dorimedini-starkware wrote…
the stack is the same regardless of if the source is validate or execute |
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 9 files reviewed, 3 unresolved discussions (waiting on @ilyalesokhin-starkware)
crates/blockifier/src/execution/stack_trace.rs
line 101 at r2 (raw file):
Previously, ilyalesokhin-starkware wrote…
What is a frame?
up until now, two frames basically: entry point frame (one per syscall) and VM frame (one per inner call in a contract, one PC location per frame).
I am open to renaming this type if you think it's confusing
crates/blockifier/src/execution/stack_trace.rs
line 234 at r2 (raw file):
Previously, ilyalesokhin-starkware wrote…
the stack is the same regardless of if the source is validate or execute
not it's string formatting. we provide a header indicating whether this is from validate or execute.
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 9 files reviewed, 3 unresolved discussions (waiting on @ilyalesokhin-starkware)
crates/blockifier/src/execution/stack_trace.rs
line 234 at r2 (raw file):
Previously, dorimedini-starkware wrote…
not it's string formatting. we provide a header indicating whether this is from validate or execute.
the TransactionExecutionInfo needs this info, because it will store a non-stringified error stack object.
when converted to a string we need to print the respective header
Previously, dorimedini-starkware wrote…
can you store it in the |
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 9 files reviewed, 3 unresolved discussions (waiting on @ilyalesokhin-starkware)
crates/blockifier/src/execution/stack_trace.rs
line 234 at r2 (raw file):
Previously, ilyalesokhin-starkware wrote…
can you store it in the
TansactionExecutionInfo
?
why?
this means that ErrorStack
cannot implement Display
, because part of the data needed to format the string is not in the struct
4477620
to
d8e3ca5
Compare
Artifacts upload triggered. View details here |
Previously, dorimedini-starkware wrote…
Putting a stack and a frame in stack in the same enum is strange. |
Previously, dorimedini-starkware wrote…
If you add it it is no longer a just a revert stack. Maybe we should rename it to |
d8e3ca5
to
afd8e6c
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 9 files reviewed, 3 unresolved discussions (waiting on @ilyalesokhin-starkware)
crates/blockifier/src/execution/stack_trace.rs
line 101 at r2 (raw file):
Previously, ilyalesokhin-starkware wrote…
Putting a stack and a frame in stack in the same enum is strange.
renamed
crates/blockifier/src/execution/stack_trace.rs
line 234 at r2 (raw file):
Previously, ilyalesokhin-starkware wrote…
If you add it it is no longer a just a revert stack.
Maybe we should rename it to
Cairo1RevertSummery?
Done.
Artifacts upload triggered. View details here |
Previously, dorimedini-starkware wrote…
What about the variant name? |
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 4 of 8 files at r2, 3 of 6 files at r4.
Reviewable status: 4 of 9 files reviewed, 1 unresolved discussion (waiting on @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.
Reviewable status: 4 of 9 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware and @ilyalesokhin-starkware)
crates/blockifier/src/execution/stack_trace.rs
line 101 at r2 (raw file):
Previously, ilyalesokhin-starkware wrote…
What about the variant name?
what do you suggest?
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: 4 of 9 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)
crates/blockifier/src/execution/stack_trace.rs
line 101 at r2 (raw file):
Previously, dorimedini-starkware wrote…
what do you suggest?
Cairo1RevertSummery
or just
RevertSummery
afd8e6c
to
439c529
Compare
Artifacts upload triggered. View details here |
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 7 of 7 files at r5, all commit messages.
Reviewable status: 8 of 9 files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
439c529
to
c1be537
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.
Reviewed 2 of 2 files at r6, all commit messages.
Reviewable status: 8 of 9 files reviewed, all discussions resolved
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 1 of 8 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
Artifacts upload triggered. View details here |
c1be537
to
736d0dc
Compare
Artifacts upload triggered. View details here |
No description provided.