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(papyrus_base_layer): consolidate alloy crates #3999

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

ArniStarkware
Copy link
Contributor

@ArniStarkware ArniStarkware commented Feb 6, 2025

Use alloy + features instead of individual crates to consolidate
versioning.
There are no logic changes, only import changes.

Warning: Alloy has tons of features; don't activate features greedily; otherwise, our compilation time will suffer.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArniStarkware commented Feb 6, 2025

@ArniStarkware ArniStarkware force-pushed the arni/alloy/simplify_price_sample_creation branch from 19a0e06 to da1bd03 Compare February 6, 2025 08:15
Copy link

github-actions bot commented Feb 6, 2025

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [34.744 ms 34.863 ms 35.043 ms]
change: [-4.7557% -3.1903% -1.8185%] (p = 0.00 < 0.05)
Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
1 (1.00%) high mild
5 (5.00%) high severe

@ArniStarkware ArniStarkware force-pushed the arni/alloy/consolidate_alloy_crates branch from 7c3a974 to 3db5066 Compare February 6, 2025 08:28
@ArniStarkware ArniStarkware marked this pull request as ready for review February 6, 2025 08:29
@ArniStarkware ArniStarkware force-pushed the arni/alloy/consolidate_alloy_crates branch from 3db5066 to cbd0e44 Compare February 6, 2025 09:40
@ArniStarkware ArniStarkware changed the base branch from arni/alloy/simplify_price_sample_creation to arni/alloy/update_versions February 6, 2025 09:41
@ArniStarkware ArniStarkware force-pushed the arni/alloy/update_versions branch from 5796360 to ce33ef7 Compare February 6, 2025 16:43
@ArniStarkware ArniStarkware force-pushed the arni/alloy/consolidate_alloy_crates branch from cbd0e44 to 75aafa7 Compare February 6, 2025 16:43
Copy link

github-actions bot commented Feb 6, 2025

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [35.514 ms 35.908 ms 36.392 ms]
change: [+1.7916% +2.8787% +4.1708%] (p = 0.00 < 0.05)
Performance has regressed.
Found 17 outliers among 100 measurements (17.00%)
3 (3.00%) high mild
14 (14.00%) high severe

@alonh5 alonh5 self-requested a review February 11, 2025 12:47
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 11 of 11 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @alonh5)


crates/starknet_l1_provider/Cargo.toml line 29 at r1 (raw file):

[dev-dependencies]
alloy = { workspace = true, features = ["json-rpc", "node-bindings"] }

Is this needed?

Code quote:

"json-rpc"

@ArniStarkware ArniStarkware requested a review from alonh5 February 11, 2025 12:53
@ArniStarkware
Copy link
Contributor Author

+reviewer:@alonh5

@ArniStarkware ArniStarkware force-pushed the arni/alloy/consolidate_alloy_crates branch from 75aafa7 to 03fb669 Compare February 11, 2025 15:29
@ArniStarkware ArniStarkware changed the base branch from arni/alloy/update_versions to main February 11, 2025 15:29
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: 6 of 11 files reviewed, 1 unresolved discussion (waiting on @alonh5)


crates/starknet_l1_provider/Cargo.toml line 29 at r1 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Is this needed?

No!

  1. Good job being aware. I just assumed it was needed from Gilad's code.
  2. Also fixed in other .toml file.

crates/papyrus_base_layer/Cargo.toml line 15 at r2 (raw file):

[dependencies]
alloy = { workspace = true, features = ["contract", "json-rpc", "rpc-types"] }

All of these are necessary features (including node-binding)

Code quote:

[features]
testing = ["alloy/node-bindings", "colored", "tar", "tempfile"]

[dependencies]
alloy = { workspace = true, features = ["contract", "json-rpc", "rpc-types"] }

@ArniStarkware ArniStarkware force-pushed the arni/alloy/consolidate_alloy_crates branch from 03fb669 to f02aa17 Compare February 12, 2025 06:33
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.

:lgtm:

Reviewed 2 of 5 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: 10 of 11 files reviewed, all discussions resolved (waiting on @giladchase)


crates/papyrus_base_layer/Cargo.toml line 15 at r2 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

All of these are necessary features (including node-binding)

Great! How did you check which were needed and which weren't?

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 1 of 5 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @giladchase)

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 @giladchase)


crates/papyrus_base_layer/Cargo.toml line 15 at r2 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Great! How did you check which were needed and which weren't?

I turned them all off, then added them according to the error messages, one by one.

@ArniStarkware ArniStarkware added this pull request to the merge queue Feb 12, 2025
Merged via the queue into main with commit 827fe1c Feb 12, 2025
23 checks passed
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.

4 participants