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): explicit names for versioned constants JSONs #998

Merged

Conversation

dorimedini-starkware
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware commented Sep 24, 2024

This change is Reviewable

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

@dorimedini-starkware dorimedini-starkware force-pushed the dori/explicit-versioned-constants-json-names branch from 490631d to f6acb0b Compare September 25, 2024 07:43
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.

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

@dorimedini-starkware dorimedini-starkware force-pushed the dori/explicit-versioned-constants-json-names branch 5 times, most recently from 02e3914 to ed1c192 Compare September 25, 2024 15:12
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.57%. Comparing base (b0cfe82) to head (e0b54aa).
Report is 125 commits behind head on main.

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

HEAD has 2 uploads less than BASE
Flag BASE (b0cfe82) HEAD (e0b54aa)
3 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #998       +/-   ##
===========================================
- Coverage   74.18%   62.57%   -11.62%     
===========================================
  Files         359      125      -234     
  Lines       36240    15755    -20485     
  Branches    36240    15755    -20485     
===========================================
- Hits        26886     9859    -17027     
+ Misses       7220     5115     -2105     
+ Partials     2134      781     -1353     
Flag Coverage Δ
62.57% <100.00%> (-11.62%) ⬇️

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 dori/explicit-versioned-constants-json-names branch 2 times, most recently from a225951 to 5e29752 Compare September 26, 2024 12:26
Signed-off-by: Dori Medini <dori@starkware.co>
@dorimedini-starkware dorimedini-starkware force-pushed the dori/explicit-versioned-constants-json-names branch from 5e29752 to e0b54aa Compare September 26, 2024 14:00
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.

Reviewed 8 of 9 files at r3, all commit messages.
Reviewable status: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)


crates/papyrus_execution/src/lib.rs line 878 at r3 (raw file):

            VersionedConstants::get(blockifier_starknet_version)
        }
        None => VersionedConstants::latest_constants(),

Why do they need this arm? they take the latest if there is no match.
So either remove it or check v0_13_3 explicitly

(also, they are missing 0.13.1.1 and 0.13.2.1... a safer way is to assert that the given version is > than the last supported. but non-blocking since it's out of scope)

Code quote:

            } else {
                BlockifierStarknetVersion::V0_13_3
            };
            VersionedConstants::get(blockifier_starknet_version)
        }
        None => VersionedConstants::latest_constants(),

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: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @dan-starkware, @dorimedini-starkware, and @ShahakShama)


crates/papyrus_execution/src/lib.rs line 878 at r3 (raw file):

Previously, Yoni-Starkware (Yoni) wrote…

Why do they need this arm? they take the latest if there is no match.
So either remove it or check v0_13_3 explicitly

(also, they are missing 0.13.1.1 and 0.13.2.1... a safer way is to assert that the given version is > than the last supported. but non-blocking since it's out of scope)

main Q is why are there two different structs?
@ShahakShama or @dan-starkware PTAL at this: looks like you should be using the blockifier StarknetVersion enum instead of strings

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: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @dan-starkware, @dorimedini-starkware, and @ShahakShama)


crates/papyrus_execution/src/lib.rs line 878 at r3 (raw file):

Previously, dorimedini-starkware wrote…

main Q is why are there two different structs?
@ShahakShama or @dan-starkware PTAL at this: looks like you should be using the blockifier StarknetVersion enum instead of strings

item to track this issue, following this conversation

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.

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

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

@dorimedini-starkware dorimedini-starkware merged commit 6e8530f into main Sep 29, 2024
21 checks passed
@dorimedini-starkware dorimedini-starkware deleted the dori/explicit-versioned-constants-json-names branch September 29, 2024 10:45
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 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.

2 participants