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

chore(blockifier): add sierra to storage w append_block #1773

Merged

Conversation

avivg-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

github-actions bot commented Nov 3, 2024

Artifacts upload triggered. View details here

Copy link

codecov bot commented Nov 3, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 9.38%. Comparing base (e3165c4) to head (509590f).
Report is 317 commits behind head on main.

Files with missing lines Patch % Lines
crates/native_blockifier/src/storage.rs 75.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #1773       +/-   ##
==========================================
- Coverage   40.10%   9.38%   -30.72%     
==========================================
  Files          26     132      +106     
  Lines        1895   17246    +15351     
  Branches     1895   17246    +15351     
==========================================
+ Hits          760    1619      +859     
- Misses       1100   15303    +14203     
- Partials       35     324      +289     

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

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


crates/native_blockifier/src/storage.rs line 170 at r1 (raw file):

        let mut declared_classes = IndexMap::<ClassHash, (CompiledClassHash, ContractClass)>::new();
        let mut undeclared_casm_contracts = Vec::<(ClassHash, CasmContractClass)>::new();
        for (class_hash, (sierra, (compiled_class_hash, raw_class))) in declared_class_hash_to_class

Suggestion:

for (class_hash, (raw_sierra, (compiled_class_hash, raw_casm))) in declared_class_hash_to_class

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_add_sierra_w_append_block_func branch from 01d15c9 to 0c1fcc9 Compare November 5, 2024 15:50
Copy link
Contributor Author

@avivg-starkware avivg-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: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @noaov1)


crates/native_blockifier/src/storage.rs line 170 at r1 (raw file):

        let mut declared_classes = IndexMap::<ClassHash, (CompiledClassHash, ContractClass)>::new();
        let mut undeclared_casm_contracts = Vec::<(ClassHash, CasmContractClass)>::new();
        for (class_hash, (sierra, (compiled_class_hash, raw_class))) in declared_class_hash_to_class

Done.

Copy link

github-actions bot commented Nov 5, 2024

Artifacts upload triggered. View details here

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.

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1)

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_add_sierra_w_append_block_func branch from 0c1fcc9 to 1f1d1c4 Compare November 6, 2024 11:23
Copy link

github-actions bot commented Nov 6, 2024

Artifacts upload triggered. View details here

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

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.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1)

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_add_sierra_w_append_block_func branch from 1f1d1c4 to 4295381 Compare November 6, 2024 15:25
Copy link

github-actions bot commented Nov 6, 2024

Artifacts upload triggered. View details here

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_add_sierra_w_append_block_func branch from 4295381 to dbab235 Compare November 7, 2024 14:05
Copy link

github-actions bot commented Nov 7, 2024

Artifacts upload triggered. View details here

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.

:lgtm:

Reviewed 3 of 4 files at r1, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)


crates/native_blockifier/src/storage.rs line 300 at r3 (raw file):

        previous_block_id: Option<PyFelt>,
        py_block_info: PyBlockInfo,
        py_state_diff: PyStateDiff,

Consider defining a type (same for deprecated_declared_class_hash_to_class):

Code snippet:

// Class hash to (raw_sierra, (compiled class hash, raw casm)).
type RawDeclaredClassMapping = HashMap<PyFelt, (String, (PyFelt, String))

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_add_sierra_w_append_block_func branch from dbab235 to 26480a0 Compare November 11, 2024 09:12
Copy link

Artifacts upload triggered. View details here

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_add_sierra_w_append_block_func branch from 26480a0 to 5c41e34 Compare November 11, 2024 15:53
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @avivg-starkware and the rest of your teammates on Graphite Graphite

Copy link

Artifacts upload triggered. View details here

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/native_add_sierra_w_append_block_func branch from 5c41e34 to 509590f Compare November 11, 2024 18:40
Copy link
Contributor Author

@avivg-starkware avivg-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 4 files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @noaov1)


crates/native_blockifier/src/storage.rs line 300 at r3 (raw file):

Previously, noaov1 (Noa Oved) wrote…

Consider defining a type (same for deprecated_declared_class_hash_to_class):

Added :)

Copy link

Artifacts upload triggered. View details here

Copy link
Contributor Author

@avivg-starkware avivg-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 1 of 2 files at r4, 3 of 3 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @avivg-starkware)

@avivg-starkware avivg-starkware merged commit bf95e81 into main Nov 12, 2024
12 checks passed
@avivg-starkware avivg-starkware deleted the avivg/blockifier/native_add_sierra_w_append_block_func branch November 12, 2024 14:23
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 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.

4 participants