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

feat(blockifier): keep revert error structure in TransactionExecutionInfo #1491

Conversation

dorimedini-starkware
Copy link
Collaborator

No description provided.

@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review October 21, 2024 08:31
@reviewable-StarkWare
Copy link

This change is Reviewable

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 3116a9f to 6d47be3 Compare October 21, 2024 08:38
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from 7c53e8f to ff1d548 Compare October 21, 2024 08:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 6d47be3 to 3d14298 Compare October 21, 2024 08:50
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 15 files reviewed, all discussions resolved


crates/blockifier/src/transaction/objects.rs line 166 at r1 (raw file):

        Self::Execution(ErrorStack::default())
    }
}

required, since TransactionExecutionInfo must implement Default.
This won't really be used (Option default is None)

Code quote:

impl Default for RevertError {
    fn default() -> Self {
        Self::Execution(ErrorStack::default())
    }
}

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 3d14298 to f0e4d1c Compare October 21, 2024 08:59
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 3 lines in your changes missing coverage. Please review.

Project coverage is 61.41%. Comparing base (e3165c4) to head (9e44467).
Report is 418 commits behind head on main.

Files with missing lines Patch % Lines
crates/blockifier/src/execution/stack_trace.rs 96.15% 1 Missing ⚠️
crates/native_blockifier/src/py_block_executor.rs 0.00% 1 Missing ⚠️
crates/papyrus_execution/src/objects.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1491       +/-   ##
===========================================
+ Coverage   40.10%   61.41%   +21.31%     
===========================================
  Files          26      175      +149     
  Lines        1895    20349    +18454     
  Branches     1895    20349    +18454     
===========================================
+ Hits          760    12498    +11738     
- Misses       1100     6954     +5854     
- Partials       35      897      +862     

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

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from ff1d548 to 9631fe8 Compare October 21, 2024 09:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from f0e4d1c to 2d33fcc Compare October 21, 2024 09:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from 9631fe8 to 29566cc Compare October 21, 2024 09:46
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 2d33fcc to 5b4efa6 Compare October 21, 2024 09:46
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from 29566cc to 9a188fb Compare October 21, 2024 10:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 5b4efa6 to 629968d Compare October 21, 2024 10:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from 9a188fb to d49b575 Compare October 21, 2024 12:04
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 629968d to c319962 Compare October 21, 2024 12:04
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from d49b575 to 00aeed8 Compare October 21, 2024 15:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from c319962 to 3d4d41d Compare October 21, 2024 15:44
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from 00aeed8 to 2f5561a Compare October 21, 2024 16:12
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 3d4d41d to 2e6a06b Compare October 21, 2024 16:12
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from 2f5561a to 602acee Compare October 21, 2024 18:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from a1e6ad6 to fa4e52c Compare November 3, 2024 10:59
Copy link

github-actions bot commented Nov 3, 2024

Artifacts upload triggered. View details here

@ilyalesokhin-starkware
Copy link
Contributor

crates/blockifier/src/transaction/objects.rs line 166 at r1 (raw file):

Previously, dorimedini-starkware wrote…

required, since TransactionExecutionInfo must implement Default.
This won't really be used (Option default is None)

you could make it optional

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.

Reviewed 2 of 15 files at r1, 1 of 11 files at r2, 1 of 9 files at r4.
Reviewable status: 3 of 15 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/blockifier/src/transaction/objects.rs line 166 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

you could make it optional

Actually, I see that it is optional, so why do you need a default?

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from d8e3ca5 to afd8e6c Compare November 7, 2024 10:11
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from fa4e52c to f8b20df Compare November 7, 2024 10:11
Copy link

github-actions bot commented Nov 7, 2024

Artifacts upload triggered. View details here

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: 2 of 15 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware and @ilyalesokhin-starkware)


crates/blockifier/src/transaction/objects.rs line 166 at r1 (raw file):

Previously, ilyalesokhin-starkware wrote…

Actually, I see that it is optional, so why do you need a default?

I thought I did, I was wrong :) fixed

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from f8b20df to 6ade672 Compare November 7, 2024 10:14
Copy link

github-actions bot commented Nov 7, 2024

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from afd8e6c to 439c529 Compare November 14, 2024 08:03
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 6ade672 to 2b59304 Compare November 14, 2024 08:04
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 16 of 16 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from 439c529 to c1be537 Compare November 17, 2024 09:03
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 2b59304 to d7c7920 Compare November 17, 2024 09:03
Copy link

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack branch from c1be537 to 736d0dc Compare November 17, 2024 09:20
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from d7c7920 to 19cbc20 Compare November 17, 2024 09:20
Copy link

Artifacts upload triggered. View details here

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 4 of 4 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

Copy link
Collaborator Author

dorimedini-starkware commented Nov 17, 2024

Merge activity

  • Nov 17, 5:09 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Nov 17, 5:11 AM EST: Graphite rebased this pull request as part of a merge.
  • Nov 17, 5:31 AM EST: A user merged this pull request with Graphite.

@dorimedini-starkware dorimedini-starkware changed the base branch from 10-21-feat_blockifier_cairo1_revert_stack_now_part_of_errorstack to graphite-base/1491 November 17, 2024 10:09
@dorimedini-starkware dorimedini-starkware changed the base branch from graphite-base/1491 to main November 17, 2024 10:10
@dorimedini-starkware dorimedini-starkware force-pushed the 10-21-feat_blockifier_keep_revert_error_structure_in_transactionexecutioninfo branch from 19cbc20 to 9e44467 Compare November 17, 2024 10:10
Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

@dorimedini-starkware dorimedini-starkware merged commit a29daf1 into main Nov 17, 2024
19 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 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