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(starknet_api): use const fn create for testing block info #2561

Conversation

ArniStarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArniStarkware commented Dec 9, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Please upload report for BASE (arni/test_utils/move_to_snapi@763ff23). Learn more about missing BASE report.

Files with missing lines Patch % Lines
crates/starknet_api/src/core.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                        @@
##             arni/test_utils/move_to_snapi    #2561   +/-   ##
================================================================
  Coverage                                 ?   47.40%           
================================================================
  Files                                    ?       29           
  Lines                                    ?     2909           
  Branches                                 ?     2909           
================================================================
  Hits                                     ?     1379           
  Misses                                   ?     1464           
  Partials                                 ?       66           

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

Copy link
Collaborator

@alonh5 alonh5 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: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware)


crates/starknet_api/src/test_utils.rs line 180 at r1 (raw file):

impl BlockInfo {
    pub const fn create_for_testing() -> Self {

Why do we need this to be const?

@ArniStarkware ArniStarkware force-pushed the arni/test_utils/move_to_snapi branch from 763ff23 to 120ccfc Compare December 16, 2024 15:50
@ArniStarkware ArniStarkware force-pushed the arni/test_utils/const_create_for_testing/block_info branch from 27c2d54 to f480b25 Compare December 16, 2024 15:50
@ArniStarkware ArniStarkware force-pushed the arni/test_utils/move_to_snapi branch from 120ccfc to 0b9b241 Compare December 16, 2024 18:31
@ArniStarkware ArniStarkware force-pushed the arni/test_utils/const_create_for_testing/block_info branch from f480b25 to 1ba7076 Compare December 16, 2024 18:32
Copy link

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.742 ms 35.246 ms 35.838 ms]
change: [+1.2127% +2.6176% +4.5409%] (p = 0.00 < 0.05)
Performance has regressed.
Found 8 outliers among 100 measurements (8.00%)
8 (8.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/test_utils/move_to_snapi branch from 0b9b241 to 534fc0c Compare December 16, 2024 18:52
@ArniStarkware ArniStarkware force-pushed the arni/test_utils/const_create_for_testing/block_info branch from 1ba7076 to 2f66a0d Compare December 16, 2024 18:53
@ArniStarkware ArniStarkware force-pushed the arni/test_utils/move_to_snapi branch from 534fc0c to 9896be8 Compare December 17, 2024 07:56
@ArniStarkware ArniStarkware force-pushed the arni/test_utils/const_create_for_testing/block_info branch from 2f66a0d to bcbd6b9 Compare December 17, 2024 07:56
@ArniStarkware
Copy link
Contributor Author

No need for this PR.

@ArniStarkware ArniStarkware deleted the arni/test_utils/const_create_for_testing/block_info branch December 17, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants