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): compute valid retdata directly #2113

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

ArniStarkware
Copy link
Contributor

@ArniStarkware ArniStarkware commented Nov 17, 2024

Created to address a thought on: #2104.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

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

Copy link

Artifacts upload triggered. View details here

Copy link

Artifacts upload triggered. View details here

Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.28%. Comparing base (e3165c4) to head (4d59141).
Report is 479 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2113       +/-   ##
===========================================
+ Coverage   40.10%   77.28%   +37.18%     
===========================================
  Files          26      108       +82     
  Lines        1895    13948    +12053     
  Branches     1895    13948    +12053     
===========================================
+ Hits          760    10780    +10020     
- Misses       1100     2707     +1607     
- Partials       35      461      +426     

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


🚨 Try these New Features:

@ArniStarkware ArniStarkware marked this pull request as ready for review November 17, 2024 13:38
Copy link
Contributor

@ayeletstarkware ayeletstarkware 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 3 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware, @dorimedini-starkware, and @MohammadNassar1)


crates/blockifier/src/transaction/constants.rs line 21 at r1 (raw file):

// Expected return value of a `validate` entry point: `VALID`.
pub static VALIDATE_RETDATA: LazyLock<Felt> =
    LazyLock::new(|| ascii_as_felt("VALID").expect("Failed to parse ASCII"));

why is the lock needed?

@ArniStarkware
Copy link
Contributor Author

crates/blockifier/src/transaction/constants.rs line 21 at r1 (raw file):

Previously, ayeletstarkware (Ayelet Zilber) wrote…

why is the lock needed?

Here is what I modeled after.

Copy link
Contributor

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

@ArniStarkware ArniStarkware force-pushed the arni/blockifier/tx/compute_valid_retdata branch from d0bfc50 to 4d59141 Compare November 18, 2024 11:55
Copy link

Artifacts upload triggered. View details here

Copy link

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [35.511 ms 35.966 ms 36.505 ms]
change: [+1.4804% +3.6853% +5.8113%] (p = 0.00 < 0.05)
Performance has regressed.
Found 9 outliers among 100 measurements (9.00%)
1 (1.00%) high mild
8 (8.00%) high severe

full_committer_flow performance regressed!
full_committer_flow time: [30.470 ms 30.511 ms 30.555 ms]
change: [+1.2194% +1.4905% +1.7526%] (p = 0.00 < 0.05)
Performance has regressed.
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) low mild
2 (2.00%) high mild
1 (1.00%) high severe

Copy link
Contributor

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


crates/blockifier/src/transaction/constants.rs line 21 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

Here is what I modeled after.

Don't you want to remove it and use starknet_api's VALIDATE_RETDATA?

Copy link
Contributor Author

@ArniStarkware ArniStarkware 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 and @MohammadNassar1)


crates/blockifier/src/transaction/constants.rs line 21 at r1 (raw file):

Previously, ayeletstarkware (Ayelet Zilber) wrote…

Don't you want to remove it and use starknet_api's VALIDATE_RETDATA?

Yes. The comment thread is now on a deleted file. The change appears in crates/starknet_api/src/transaction/constants.rs on this commit.

Copy link
Contributor

@ayeletstarkware ayeletstarkware 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 and @MohammadNassar1)

@ArniStarkware ArniStarkware merged commit 9482e3a into main Nov 18, 2024
15 checks passed
@ArniStarkware ArniStarkware deleted the arni/blockifier/tx/compute_valid_retdata branch November 18, 2024 15:46
@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 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.

3 participants