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): add allocation cost versioned constant #2200

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

yoavGrs
Copy link
Contributor

@yoavGrs yoavGrs commented Nov 20, 2024

No description provided.

@yoavGrs yoavGrs self-assigned this Nov 20, 2024
@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

Artifacts upload triggered. View details here

@yoavGrs yoavGrs force-pushed the yoav/compression/allocation_cost_constant branch from 2e1272f to 8d8699b Compare November 20, 2024 15:29
Copy link

Artifacts upload triggered. View details here

Copy link
Collaborator

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


crates/blockifier/src/versioned_constants.rs line 188 at r1 (raw file):

    // Fee related.
    pub(crate) vm_resource_fee_cost: Arc<VmResourceCosts>,
    // Cost in units of onchain data segment length
  1. end in punctuation
  2. @Yoni-Starkware should these be some other units...? e.g. sierra gas? allocations incur L2 costs, not L1

Code quote:

// Cost in units of onchain data segment length

@yoavGrs yoavGrs force-pushed the yoav/compression/allocation_cost_constant branch from 8d8699b to cf88e58 Compare November 25, 2024 14:21
Copy link

Artifacts upload workflows:

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.65%. Comparing base (e3165c4) to head (cf88e58).
Report is 584 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2200       +/-   ##
===========================================
+ Coverage   40.10%   68.65%   +28.54%     
===========================================
  Files          26      108       +82     
  Lines        1895    13896    +12001     
  Branches     1895    13896    +12001     
===========================================
+ Hits          760     9540     +8780     
- Misses       1100     3946     +2846     
- Partials       35      410      +375     

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

Copy link
Contributor Author

@yoavGrs yoavGrs 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 8 files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware and @Yoni-Starkware)


a discussion (no related file):
Python side:
https://reviewable.io/reviews/starkware-industries/starkware/36292


crates/blockifier/src/versioned_constants.rs line 188 at r1 (raw file):

Previously, dorimedini-starkware wrote…
  1. end in punctuation
  2. @Yoni-Starkware should these be some other units...? e.g. sierra gas? allocations incur L2 costs, not L1

Done.

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 8 of 8 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware and @yoavGrs)

Copy link
Collaborator

@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.

:lgtm:

Reviewed all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs)

Copy link
Contributor Author

yoavGrs commented Nov 26, 2024

Merge activity

  • Nov 26, 5:53 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Nov 26, 5:53 AM EST: A user merged this pull request with Graphite.

@yoavGrs yoavGrs merged commit 29f9ab1 into main Nov 26, 2024
13 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 29, 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