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

refactor(starknet_api): gas vector to contain fields of type GasAmount #1176

Conversation

dorimedini-starkware
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware commented Oct 6, 2024

This change is Reviewable

Copy link

codecov bot commented Oct 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.06%. Comparing base (b0cfe82) to head (5419ddc).
Report is 280 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (b0cfe82) and HEAD (5419ddc). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (b0cfe82) HEAD (5419ddc)
3 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1176       +/-   ##
===========================================
- Coverage   74.18%   58.06%   -16.13%     
===========================================
  Files         359      178      -181     
  Lines       36240    23780    -12460     
  Branches    36240    23780    -12460     
===========================================
- Hits        26886    13807    -13079     
- Misses       7220     8466     +1246     
+ Partials     2134     1507      -627     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from f9c394b to 71e74c1 Compare October 6, 2024 08:20
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from ef0fb29 to f360b33 Compare October 6, 2024 08:20
Copy link

github-actions bot commented Oct 6, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [34.581 ms 34.619 ms 34.664 ms]
change: [-6.6950% -4.9732% -3.3227%] (p = 0.00 < 0.05)
Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
1 (1.00%) high mild
6 (6.00%) high severe

@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from 71e74c1 to 4e09035 Compare October 6, 2024 08:33
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from f360b33 to 0a43e86 Compare October 6, 2024 08:33
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 9 files reviewed, 1 unresolved discussion (waiting on @Yoni-Starkware)


crates/papyrus_storage/src/serialization/serializers.rs line 0 at r1 (raw file):
@ShahakShama would this change break backwards-compatibility?
@Yoni-Starkware do we care?

@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from 4e09035 to c7eb554 Compare October 6, 2024 13:50
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from 0a43e86 to cb55a9a Compare October 6, 2024 13:50
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from c7eb554 to f02ae02 Compare October 6, 2024 14:03
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from cb55a9a to 07c638f Compare October 6, 2024 14:03
Copy link

github-actions bot commented Oct 6, 2024

Benchmark movements:
full_committer_flow performance regressed!
full_committer_flow time: [29.695 ms 29.739 ms 29.786 ms]
change: [+1.2308% +1.4363% +1.6346%] (p = 0.00 < 0.05)
Performance has regressed.
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mild

@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from f02ae02 to a6fdfe0 Compare October 6, 2024 14:24
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from 07c638f to b12c44d Compare October 6, 2024 14:24
Copy link

github-actions bot commented Oct 6, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [34.533 ms 34.563 ms 34.600 ms]
change: [-3.9525% -2.5671% -1.3779%] (p = 0.00 < 0.05)
Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
1 (1.00%) high mild
3 (3.00%) high severe

@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from a6fdfe0 to 63596aa Compare October 6, 2024 15:03
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from b12c44d to 665b07f Compare October 6, 2024 15:04
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from 63596aa to d7ba93e Compare October 6, 2024 15:28
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from 665b07f to 2803c13 Compare October 6, 2024 15:28
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from a610550 to 3b0d996 Compare October 8, 2024 07:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from bc159c2 to 82cdbb9 Compare October 8, 2024 07:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from 3b0d996 to e9e4553 Compare October 8, 2024 08:04
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from 82cdbb9 to 867c79a Compare October 8, 2024 08:05
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from e9e4553 to 4ce272b Compare October 8, 2024 13:17
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from 867c79a to e512f78 Compare October 8, 2024 13:17
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from 4ce272b to 1ff6bd4 Compare October 8, 2024 14:28
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from e512f78 to 7819527 Compare October 8, 2024 14:28
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 6 of 9 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: 8 of 9 files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware and @ShahakShama)


crates/papyrus_storage/src/serialization/serializers.rs line at r1 (raw file):

Previously, dorimedini-starkware wrote…

@ShahakShama would this change break backwards-compatibility?
@Yoni-Starkware do we care?

We (SN) don't care


crates/papyrus_storage/src/serialization/serializers.rs line 295 at r2 (raw file):

        pub l1_gas: GasAmount,
        pub l1_data_gas: GasAmount,
        pub l2_gas: GasAmount,

Why this is duplicated?

Code quote:

    pub struct GasAmount(pub u64);
    pub struct GasPricePerToken {
        pub price_in_fri: GasPrice,
        pub price_in_wei: GasPrice,
    }
    pub struct GasVector {
        pub l1_gas: GasAmount,
        pub l1_data_gas: GasAmount,
        pub l2_gas: GasAmount,

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: 8 of 9 files reviewed, 1 unresolved discussion (waiting on @ShahakShama and @Yoni-Starkware)


crates/papyrus_storage/src/serialization/serializers.rs line 295 at r2 (raw file):

Previously, Yoni-Starkware (Yoni) wrote…

Why this is duplicated?

one in auto_impl_get_test_instance! macro and one in auto_storage_serde! macro

@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 branch from 1ff6bd4 to 7a28708 Compare October 9, 2024 08:45
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from 7819527 to 10b499a Compare October 9, 2024 08:45
Copy link

github-actions bot commented Oct 9, 2024

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.948 ms 35.376 ms 35.895 ms]
change: [+1.0680% +2.3904% +3.8509%] (p = 0.00 < 0.05)
Performance has regressed.
Found 7 outliers among 100 measurements (7.00%)
1 (1.00%) high mild
6 (6.00%) high severe

@dorimedini-starkware dorimedini-starkware changed the base branch from 10-06-refactor_blockifier_starknet_api_gas_amount_is_now_a_u64_not_a_u128 to graphite-base/1176 October 9, 2024 09:24
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from 10b499a to c2c1698 Compare October 9, 2024 09:25
@dorimedini-starkware dorimedini-starkware changed the base branch from graphite-base/1176 to main October 9, 2024 09:25
@dorimedini-starkware dorimedini-starkware force-pushed the 10-06-refactor_starknet_api_gas_vector_to_contain_fields_of_type_gasamount branch from c2c1698 to 5419ddc Compare October 9, 2024 09:25
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 1 of 9 files at r1, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)

Copy link

github-actions bot commented Oct 9, 2024

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [34.544 ms 34.608 ms 34.676 ms]
change: [-6.1486% -4.0064% -2.0478%] (p = 0.00 < 0.05)
Performance has improved.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

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

Copy link
Collaborator Author

dorimedini-starkware commented Oct 9, 2024

Merge activity

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.

2 participants