Skip to content
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

test(blockifier): test negative flows of cairo1 revert trace #1469

Conversation

dorimedini-starkware
Copy link
Collaborator

No description provided.

@lotem-starkware
Copy link
Contributor

This change is Reviewable

Copy link

codecov bot commented Oct 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.06%. Comparing base (e3165c4) to head (94c7206).
Report is 57 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1469       +/-   ##
===========================================
+ Coverage   40.10%   69.06%   +28.96%     
===========================================
  Files          26      100       +74     
  Lines        1895    13446    +11551     
  Branches     1895    13446    +11551     
===========================================
+ Hits          760     9287     +8527     
- Misses       1100     3759     +2659     
- Partials       35      400      +365     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from c12f6ca to 2a6741b Compare October 20, 2024 09:37
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 6df0297 to 8fab0fd Compare October 20, 2024 09:37
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from 2a6741b to c126f53 Compare October 20, 2024 10:05
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 8fab0fd to 582221f Compare October 20, 2024 10:06
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from c126f53 to bfef88e Compare October 20, 2024 14:38
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 582221f to 7667b7a Compare October 20, 2024 14:38
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from bfef88e to 586d8e8 Compare October 20, 2024 15:02
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 7667b7a to ddeef49 Compare October 20, 2024 15:02
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from 586d8e8 to b1a7928 Compare October 21, 2024 07:03
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from ddeef49 to 8d4dd2e Compare October 21, 2024 07:03
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from b1a7928 to d050f37 Compare October 21, 2024 08:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 8d4dd2e to 8f4fea9 Compare October 21, 2024 08:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from d050f37 to 368e075 Compare October 21, 2024 09:43
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 8f4fea9 to 66a1db9 Compare October 21, 2024 09:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from 368e075 to 12b626d Compare October 21, 2024 10:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from 9f232fc to 77832c9 Compare October 23, 2024 15:38
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from bb2a90b to 56714fe Compare October 23, 2024 15:38
Copy link

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from 77832c9 to c0953ac Compare October 27, 2024 09:09
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 56714fe to 208db1c Compare October 27, 2024 09:09
Copy link

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace branch from c0953ac to 44f85b6 Compare October 27, 2024 20:13
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 208db1c to b09ce0a Compare October 27, 2024 20:13
Copy link

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware changed the base branch from 10-20-feat_blockifier_limit_characters_in_cairo1_revert_trace to graphite-base/1469 October 28, 2024 09:06
@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from b09ce0a to 4f3149d Compare October 28, 2024 09:07
Copy link

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware changed the base branch from graphite-base/1469 to main October 28, 2024 09:07
Copy link

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 4f3149d to 9976b8a Compare October 28, 2024 09:07
Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

@ilyalesokhin-starkware
Copy link
Contributor

crates/blockifier/src/execution/stack_trace_test.rs line 1042 at r4 (raw file):

/// If extraction function is called with a successful callinfo, it should return an empty stack and
/// the original retdata.

This is strange.

Shouldn't it panic in that case?

Code quote:

/// If extraction function is called with a successful callinfo, it should return an empty stack and
/// the original retdata.

Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a 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 1 files reviewed, 1 unresolved discussion (waiting on @ilyalesokhin-starkware and @Yoni-Starkware)


crates/blockifier/src/execution/stack_trace_test.rs line 1042 at r4 (raw file):

Previously, ilyalesokhin-starkware wrote…

This is strange.

Shouldn't it panic in that case?

We don't want to panic at all in the stack extraction; if the input is "malformed" we use a fallback by design

@ilyalesokhin-starkware
Copy link
Contributor

crates/blockifier/src/execution/stack_trace_test.rs line 1042 at r4 (raw file):

Previously, dorimedini-starkware wrote…

We don't want to panic at all in the stack extraction; if the input is "malformed" we use a fallback by design

We shouldn't call that function in that case.
I guess I'm ok with the current behavior but it is a bit strange to test it.

@ilyalesokhin-starkware
Copy link
Contributor

crates/blockifier/src/execution/stack_trace_test.rs line 1042 at r4 (raw file):

Previously, ilyalesokhin-starkware wrote…

We shouldn't call that function in that case.
I guess I'm ok with the current behavior but it is a bit strange to test it.

can you just update the comment and say that we don't expect the function to be called in this case?

@dorimedini-starkware dorimedini-starkware force-pushed the 10-20-test_blockifier_test_negative_flows_of_cairo1_revert_trace branch from 9976b8a to 94c7206 Compare October 28, 2024 14:17
Copy link

Artifacts upload triggered. View details here

Copy link
Contributor

@ilyalesokhin-starkware ilyalesokhin-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r5.
Reviewable status: all files reviewed (commit messages unreviewed), all discussions resolved (waiting on @Yoni-Starkware)

Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Yoni-Starkware)

@dorimedini-starkware dorimedini-starkware merged commit 37ea497 into main Oct 29, 2024
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants