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_test_utils): move functions from blockifier::test_utils and update dependencies #3931

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

rotem-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@rotem-starkware rotem-starkware marked this pull request as ready for review February 4, 2025 09:04
@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch from 52e2578 to 85c34cb Compare February 4, 2025 10:05
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 24 of 24 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @rotem-starkware)


a discussion (no related file):
update the PR title to match the commit message (commitlint runs on the PR title, as this title is what will appear when you merge the PR)


a discussion (no related file):
looks good!
next time, please split into two PRs: one to create the (empty) crate, and one to move the function


crates/blockifier_test_utils/src/calldata.rs line 55 at r1 (raw file):

pub fn u64_from_usize(val: usize) -> u64 {
    val.try_into().expect("Conversion from usize to u64 should not fail.")
}

this should not be in calldata.rs; please create a types.rs module for it

Code quote:

/// Conversion from usize to u64. May fail on architectures with over 64 bits
/// of address space.
pub fn u64_from_usize(val: usize) -> u64 {
    val.try_into().expect("Conversion from usize to u64 should not fail.")
}

@rotem-starkware rotem-starkware changed the title feat(blockifier_test_utils::calldata): move create_calldata and create_trivial_calldata from blockifier::test_utils and update dependencies feat(blockifier_test_utils): move create_calldata and create_trivial_calldata from blockifier::test_utils and update dependencies Feb 4, 2025
@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch from 85c34cb to f4796b7 Compare February 4, 2025 11:17
@rotem-starkware rotem-starkware changed the title feat(blockifier_test_utils): move create_calldata and create_trivial_calldata from blockifier::test_utils and update dependencies feat(blockifier_test_utils): move functions from blockifier::test_utils and update dependencies Feb 4, 2025
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 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @rotem-starkware)

@rotem-starkware rotem-starkware changed the base branch from main to graphite-base/3931 February 4, 2025 12:34
@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch from f4796b7 to 28f7a6c Compare February 4, 2025 12:35
@rotem-starkware rotem-starkware changed the base branch from graphite-base/3931 to rotem/move_blockifier_test_utils_prep February 4, 2025 12:35
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 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @rotem-starkware)

@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch from 28f7a6c to 3a23256 Compare February 4, 2025 13:12
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 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @rotem-starkware)

@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch from 3a23256 to 2579028 Compare February 4, 2025 14:05
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 1 of 1 files at r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @rotem-starkware)

Copy link

github-actions bot commented Feb 4, 2025

Benchmark movements:
tree_computation_flow performance improved 😺
tree_computation_flow time: [34.857 ms 34.955 ms 35.079 ms]
change: [-3.9891% -2.4987% -1.1774%] (p = 0.00 < 0.05)
Performance has improved.
Found 8 outliers among 100 measurements (8.00%)
1 (1.00%) high mild
7 (7.00%) high severe

@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch from 2579028 to f6948b8 Compare February 4, 2025 14:34
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 1 of 1 files at r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @rotem-starkware)

@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch 2 times, most recently from 1b0d72f to 9c10b08 Compare February 4, 2025 15:09
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 2 of 2 files at r7, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @rotem-starkware)

@rotem-starkware rotem-starkware changed the base branch from rotem/move_blockifier_test_utils_prep to graphite-base/3931 February 4, 2025 15:57
@rotem-starkware
Copy link
Contributor Author

Previously, dorimedini-starkware wrote…

update the PR title to match the commit message (commitlint runs on the PR title, as this title is what will appear when you merge the PR)

Done.

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 2 of 2 files at r8, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @rotem-starkware)

@rotem-starkware
Copy link
Contributor Author

crates/blockifier_test_utils/src/calldata.rs line 55 at r1 (raw file):

Previously, dorimedini-starkware wrote…

this should not be in calldata.rs; please create a types.rs module for it

create the module inside the crate blockifier_test_utils?

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.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @rotem-starkware)


crates/blockifier_test_utils/src/calldata.rs line 55 at r1 (raw file):

Previously, rotem-starkware wrote…

create the module inside the crate blockifier_test_utils?

yes

@rotem-starkware rotem-starkware force-pushed the rotem/move_blockifier_test_utils_calldata branch from 6a9f44a to f53d30e Compare February 6, 2025 08:35
@rotem-starkware
Copy link
Contributor Author

crates/blockifier_test_utils/src/calldata.rs line 55 at r1 (raw file):

Previously, dorimedini-starkware wrote…

yes

Done.

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

@rotem-starkware rotem-starkware added this pull request to the merge queue Feb 6, 2025
Merged via the queue into main with commit 429bd0a Feb 6, 2025
22 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2025
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