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): update cairo version to 2.9.0 #1854

Merged
merged 1 commit into from
Nov 10, 2024
Merged

Conversation

PearsonWhite
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

github-actions bot commented Nov 5, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 5, 2024

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.630 ms 35.100 ms 35.653 ms]
change: [+2.5651% +3.9091% +5.8121%] (p = 0.00 < 0.05)
Performance has regressed.
Found 8 outliers among 100 measurements (8.00%)
1 (1.00%) high mild
7 (7.00%) high severe

full_committer_flow performance regressed!
full_committer_flow time: [29.927 ms 29.968 ms 30.010 ms]
change: [+1.9051% +2.0814% +2.2644%] (p = 0.00 < 0.05)
Performance has regressed.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

@varex83 varex83 added the native integration Related with the integration of Cairo Native into the Blockifier label Nov 6, 2024
Copy link

github-actions bot commented Nov 6, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 6, 2024

Benchmark movements:
full_committer_flow performance regressed!
full_committer_flow time: [29.990 ms 30.113 ms 30.280 ms]
change: [+1.3134% +1.8871% +2.5165%] (p = 0.00 < 0.05)
Performance has regressed.
Found 8 outliers among 100 measurements (8.00%)
3 (3.00%) high mild
5 (5.00%) high severe

Copy link

github-actions bot commented Nov 6, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 6, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 6, 2024

Benchmark movements:
full_committer_flow performance regressed!
full_committer_flow time: [30.219 ms 30.296 ms 30.382 ms]
change: [+2.0942% +2.7250% +3.2092%] (p = 0.00 < 0.05)
Performance has regressed.
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe

Copy link

github-actions bot commented Nov 6, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 6, 2024

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [35.454 ms 35.910 ms 36.448 ms]
change: [+2.8521% +4.1547% +5.8743%] (p = 0.00 < 0.05)
Performance has regressed.
Found 10 outliers among 100 measurements (10.00%)
3 (3.00%) high mild
7 (7.00%) high severe

full_committer_flow performance regressed!
full_committer_flow time: [30.634 ms 30.676 ms 30.718 ms]
change: [+1.6545% +1.8972% +2.1319%] (p = 0.00 < 0.05)
Performance has regressed.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

Copy link

github-actions bot commented Nov 7, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 7, 2024

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.262 ms 34.323 ms 34.423 ms]
change: [+1.8340% +2.0497% +2.3357%] (p = 0.00 < 0.05)
Performance has regressed.
Found 5 outliers among 100 measurements (5.00%)
1 (1.00%) high mild
4 (4.00%) high severe

full_committer_flow performance regressed!
full_committer_flow time: [29.895 ms 29.981 ms 30.104 ms]
change: [+1.4929% +2.0591% +2.5811%] (p = 0.00 < 0.05)
Performance has regressed.
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) high mild
3 (3.00%) high severe

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 76.91%. Comparing base (e3165c4) to head (764ceb4).
Report is 253 commits behind head on main.

Files with missing lines Patch % Lines
crates/starknet_client/src/reader/mod.rs 0.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1854       +/-   ##
===========================================
+ Coverage   40.10%   76.91%   +36.80%     
===========================================
  Files          26      365      +339     
  Lines        1895    39131    +37236     
  Branches     1895    39131    +37236     
===========================================
+ Hits          760    30096    +29336     
- Misses       1100     6779     +5679     
- Partials       35     2256     +2221     

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

@varex83 varex83 marked this pull request as ready for review November 7, 2024 11:45
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 17 of 17 files at r1.
Reviewable status: 17 of 24 files reviewed, 1 unresolved discussion (waiting on @meship-starkware, @noaov1, and @PearsonWhite)


crates/blockifier/src/transaction/transactions_test.rs line 2298 at r1 (raw file):

                    + 6,
            ),
            (BuiltinName::pedersen, 11 + payload_size),

Is there a reason for this reordering? Or is it just the formatter?

Code quote:

            (
                BuiltinName::range_check,
                get_tx_resources(TransactionType::L1Handler).builtin_instance_counter
                    [&BuiltinName::range_check]
                    + 6,
            ),
            (BuiltinName::pedersen, 11 + payload_size),

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 4 of 17 files at r1.
Reviewable status: 17 of 24 files reviewed, 1 unresolved discussion (waiting on @noaov1 and @PearsonWhite)

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 11 of 17 files at r1.
Reviewable status: 17 of 24 files reviewed, 1 unresolved discussion (waiting on @noaov1 and @PearsonWhite)

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 2 of 17 files at r1, 3 of 7 files at r2, all commit messages.
Reviewable status: 20 of 24 files reviewed, 2 unresolved discussions (waiting on @noaov1 and @PearsonWhite)


crates/gateway/src/rpc_state_reader_test.rs line 167 at r2 (raw file):

        hints: Default::default(),
        pythonic_hints: Default::default(),
        entry_points_by_type: Default::default(),

Why can't you use ..Default::default()?

Code quote:

        compiler_version: "0.0.0".to_string(),
        prime: Default::default(),
        bytecode: Default::default(),
        bytecode_segment_lengths: Default::default(),
        hints: Default::default(),
        pythonic_hints: Default::default(),
        entry_points_by_type: Default::default(),

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 17 of 17 files at r1, 7 of 7 files at r2, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @PearsonWhite)


Cargo.toml line 99 at r2 (raw file):

cairo-lang-starknet-classes = "2.9.0-dev.0"
cairo-lang-utils = "2.9.0-dev.0"
# Important: when updated, make sure to update the cairo-native submodule as well.

Can you please update the git submodel?

Code quote:

# Important: when updated, make sure to update the cairo-native submodule as well.

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

use pretty_assertions::assert_eq;

Why is it needed now?

Code quote:

use pretty_assertions::assert_eq;

crates/gateway/src/rpc_state_reader_test.rs line 168 at r2 (raw file):

        pythonic_hints: Default::default(),
        entry_points_by_type: Default::default(),
    };

What is the reason for this change?

Code quote:

        prime: Default::default(),
        bytecode: Default::default(),
        bytecode_segment_lengths: Default::default(),
        hints: Default::default(),
        pythonic_hints: Default::default(),
        entry_points_by_type: Default::default(),
    };

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.

Reviewed 2 of 9 files at r4, all commit messages.
Reviewable status: 18 of 25 files reviewed, 4 unresolved discussions (waiting on @meship-starkware and @PearsonWhite)

Copy link

github-actions bot commented Nov 7, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 7, 2024

Artifacts upload triggered. View details here

Copy link

github-actions bot commented Nov 7, 2024

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.575 ms 35.071 ms 35.654 ms]
change: [+2.3358% +3.7893% +5.5940%] (p = 0.00 < 0.05)
Performance has regressed.
Found 11 outliers among 100 measurements (11.00%)
3 (3.00%) high mild
8 (8.00%) high severe

full_committer_flow performance regressed!
full_committer_flow time: [29.928 ms 29.967 ms 30.010 ms]
change: [+1.7995% +2.0600% +2.3013%] (p = 0.00 < 0.05)
Performance has regressed.
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe

Copy link
Contributor Author

@PearsonWhite PearsonWhite 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: 17 of 25 files reviewed, 4 unresolved discussions (waiting on @avi-starkware, @meship-starkware, and @noaov1)


Cargo.toml line 99 at r2 (raw file):

Previously, noaov1 (Noa Oved) wrote…

Can you please update the git submodel?

Updated.


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

Previously, noaov1 (Noa Oved) wrote…

Why is it needed now?

Removed.


crates/blockifier/src/transaction/transactions_test.rs line 2298 at r1 (raw file):

Previously, avi-starkware wrote…

Is there a reason for this reordering? Or is it just the formatter?

I thought this was causing a test failure, but it wasn't. Reverted back.


crates/gateway/src/rpc_state_reader_test.rs line 167 at r2 (raw file):

Previously, meship-starkware (Meshi Peled) wrote…

Why can't you use ..Default::default()?

CasmContractClass::Default was removed from cairo in this PR: starkware-libs/cairo#6383


crates/gateway/src/rpc_state_reader_test.rs line 168 at r2 (raw file):

Previously, noaov1 (Noa Oved) wrote…

What is the reason for this change?

CasmContractClass::Default was removed from cairo in this PR: starkware-libs/cairo#6383

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 9 of 9 files at r4, 1 of 1 files at r6, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @avi-starkware and @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.

Reviewed all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @noaov1)

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

@noaov1 noaov1 merged commit 44208e0 into main Nov 10, 2024
23 checks passed
@rodrigo-pino rodrigo-pino deleted the pwhite/cairo_2.9.0 branch November 10, 2024 10:20
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 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