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): update AotNativeExecutor to AotContractExecutor #1955

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

rodrigo-pino
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@rodrigo-pino rodrigo-pino added the native integration Related with the integration of Cairo Native into the Blockifier label Nov 11, 2024
Copy link

Artifacts upload triggered. View details here

Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.46%. Comparing base (e3165c4) to head (9d3314a).
Report is 389 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1955       +/-   ##
===========================================
+ Coverage   40.10%   67.46%   +27.35%     
===========================================
  Files          26      103       +77     
  Lines        1895    13913    +12018     
  Branches     1895    13913    +12018     
===========================================
+ Hits          760     9386     +8626     
- Misses       1100     4126     +3026     
- Partials       35      401      +366     

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

noaov1
noaov1 previously requested changes Nov 11, 2024
Copy link
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rodrigo-pino)


crates/blockifier/src/execution/syscalls/syscall_tests/storage_read_write.rs line 18 at r2 (raw file):

#[cfg_attr(
    feature = "cairo_native",
    test_case(FeatureContract::TestContract(CairoVersion::Native), 25920; "Native")

Why was it changed? Shouldn’t the gas amount remain the same?

Code quote:

    test_case(FeatureContract::TestContract(CairoVersion::Native), 25920; "Native")

Copy link
Contributor

@meship-starkware meship-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 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @rodrigo-pino)

Copy link
Contributor Author

@rodrigo-pino rodrigo-pino 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: all files reviewed, 1 unresolved discussion (waiting on @noaov1)


crates/blockifier/src/execution/syscalls/syscall_tests/storage_read_write.rs line 18 at r2 (raw file):

Previously, noaov1 (Noa Oved) wrote…

Why was it changed? Shouldn’t the gas amount remain the same?

I also don't understand. There is a difference though in the way the AotContract is compiled to how we did it. My only guess of why it is different, although I don't know to which extent.

We are already familiar with gas usage in Native to be unreliable, changing from version to version all the time. I think is no cause for worries since they are still using the old gas handling mechanism

Copy link
Contributor

@avi-starkware avi-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 3 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1 and @Yoni-Starkware)

Copy link
Collaborator

@Yoni-Starkware Yoni-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 3 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Dismissed @noaov1 from a discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @rodrigo-pino)

@Yoni-Starkware Yoni-Starkware merged commit 157cf5f into main Nov 14, 2024
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
native integration Related with the integration of Cairo Native into the Blockifier
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants