Skip to content

starknet_os_flow_tests: commit state diff #8344

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

Merged
merged 1 commit into from
Aug 2, 2025

Conversation

nimrod-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@nimrod-starkware nimrod-starkware self-assigned this Jul 31, 2025
@nimrod-starkware nimrod-starkware marked this pull request as ready for review July 31, 2025 08:15
@nimrod-starkware nimrod-starkware force-pushed the nimrod/os_flow_tests_commit branch from 11fadd2 to 743b2ba Compare July 31, 2025 08:24
@nimrod-starkware nimrod-starkware force-pushed the nimrod/os_flow_tests_state_diff branch from 30bd39b to 2762524 Compare July 31, 2025 08:24
Copy link

github-actions bot commented Jul 31, 2025

Benchmark movements: No major performance changes detected.

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


crates/starknet_os_flow_tests/src/utils.rs line 94 at r1 (raw file):

    classes_trie_root_hash: HashOutput,
    state_diff: StateDiff,
) -> (HashOutput, HashOutput) {

please make the return type a struct with named fields (so it's clear which root is for which tree)

Code quote:

) -> (HashOutput, HashOutput)

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, 1 unresolved discussion (waiting on @nimrod-starkware)

@nimrod-starkware nimrod-starkware force-pushed the nimrod/os_flow_tests_commit branch from 586b0c6 to 95136f6 Compare July 31, 2025 14:02
@nimrod-starkware nimrod-starkware force-pushed the nimrod/os_flow_tests_state_diff branch from 235269a to cd24af9 Compare July 31, 2025 14:02
Copy link
Contributor Author

@nimrod-starkware nimrod-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 @dorimedini-starkware)


crates/starknet_os_flow_tests/src/utils.rs line 94 at r1 (raw file):

Previously, dorimedini-starkware wrote…

please make the return type a struct with named fields (so it's clear which root is for which tree)

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 r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware)


crates/starknet_os_flow_tests/src/utils.rs line 98 at r3 (raw file):

/// Commits the state diff, saves the new facts and returns the computed roots.
async fn commit_state_diff(
    facts: &mut BorrowedMapStorage<'_>,

Suggestion:

commitments: &mut BorrowedMapStorage<'_>

@nimrod-starkware nimrod-starkware force-pushed the nimrod/os_flow_tests_state_diff branch from cd24af9 to 10f6440 Compare July 31, 2025 14:29
@nimrod-starkware nimrod-starkware force-pushed the nimrod/os_flow_tests_commit branch from 95136f6 to b927286 Compare July 31, 2025 14:29
Copy link
Contributor Author

@nimrod-starkware nimrod-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 @dorimedini-starkware)


crates/starknet_os_flow_tests/src/utils.rs line 98 at r3 (raw file):

/// Commits the state diff, saves the new facts and returns the computed roots.
async fn commit_state_diff(
    facts: &mut BorrowedMapStorage<'_>,

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

@graphite-app graphite-app bot changed the base branch from nimrod/os_flow_tests_state_diff to graphite-base/8344 July 31, 2025 19:40
@nimrod-starkware nimrod-starkware force-pushed the nimrod/os_flow_tests_commit branch from b927286 to 4018ff3 Compare August 2, 2025 07:21
@graphite-app graphite-app bot changed the base branch from graphite-base/8344 to main August 2, 2025 07:21
Copy link

graphite-app bot commented Aug 2, 2025

Merge activity

  • Aug 2, 7:21 AM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.

@nimrod-starkware nimrod-starkware added this pull request to the merge queue Aug 2, 2025
Merged via the queue into main with commit 73573d2 Aug 2, 2025
39 of 60 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 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