Skip to content

feat(starknet_integration_tests): struct to collect batched txs #4786

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
Mar 19, 2025

Conversation

yair-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

yair-starkware commented Mar 10, 2025

Copy link

graphite-app bot commented Mar 10, 2025

Graphite Automations

"Yair - Auto-assign" took an action on this PR • (03/10/25)

1 assignee was added to this PR based on Yair's automation.

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


crates/starknet_integration_tests/src/flow_test_setup.rs line 348 at r1 (raw file):

    while let Some((Ok(message), _)) = broadcasted_messages_receiver.next().await {
        if message.stream_id.0 == expected_height.0 {

Why remove the validation of the message streams?

Copy link
Contributor

@Yael-Starkware Yael-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, 2 unresolved discussions (waiting on @ArniStarkware and @yair-starkware)


crates/starknet_integration_tests/src/flow_test_setup.rs line 357 at r1 (raw file):

            {
                break;
            }

Is it guaranteed that all messages will come from the same stream, meaning they will have the same stream_id?
Isn't it possible for messages from different streams to be received interleaved?

Code quote:

            if message.message == papyrus_protobuf::consensus::StreamMessageBody::Fin {
                last_message_id = message.message_id;
            }
            // Check that we got the Fin message and all previous messages.
            if last_message_id > 0
                && (0..=last_message_id).all(|id| messages_cache.contains_key(&id))
            {
                break;
            }

@yair-starkware yair-starkware force-pushed the yair/aggregatet_txs_struct branch from 9770028 to 57a04f7 Compare March 16, 2025 11:57
@yair-starkware yair-starkware force-pushed the yair/tx_collector branch 2 times, most recently from cf7afc2 to 0b924a0 Compare March 16, 2025 12:37
@yair-starkware yair-starkware force-pushed the yair/aggregatet_txs_struct branch from 57a04f7 to 046c35f Compare March 16, 2025 12:37
Copy link
Contributor Author

@yair-starkware yair-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: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @alonh5, @ArniStarkware, and @Yael-Starkware)


crates/starknet_integration_tests/src/flow_test_setup.rs line 348 at r1 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Why remove the validation of the message streams?

It is validated in validate_coherent_height_and_round


crates/starknet_integration_tests/src/flow_test_setup.rs line 357 at r1 (raw file):

Previously, Yael-Starkware (YaelD) wrote…

Is it guaranteed that all messages will come from the same stream, meaning they will have the same stream_id?
Isn't it possible for messages from different streams to be received interleaved?

It is checked later:

assert_eq!(stream_id, first_stream_id, "Expected the same stream id for all messages");

@yair-starkware yair-starkware force-pushed the yair/aggregatet_txs_struct branch from 046c35f to cdcd6c1 Compare March 16, 2025 12:58
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 1 of 1 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @Yael-Starkware)


crates/starknet_integration_tests/src/flow_test_setup.rs line 348 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

It is validated in validate_coherent_height_and_round

Right, thanks

@yair-starkware yair-starkware force-pushed the yair/aggregatet_txs_struct branch from cdcd6c1 to 87bfed8 Compare March 16, 2025 13:38
Copy link
Contributor

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

@yair-starkware yair-starkware force-pushed the yair/aggregatet_txs_struct branch from 87bfed8 to 650829b Compare March 18, 2025 08:46
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 1 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)

@yair-starkware yair-starkware force-pushed the yair/aggregatet_txs_struct branch from faf5927 to 03d0914 Compare March 18, 2025 14:02
@yair-starkware yair-starkware changed the base branch from yair/aggregatet_txs_struct to graphite-base/4786 March 19, 2025 09:28
@yair-starkware yair-starkware changed the base branch from graphite-base/4786 to yair/aggregatet_txs_struct March 19, 2025 09:31
@yair-starkware yair-starkware changed the base branch from yair/aggregatet_txs_struct to main March 19, 2025 10:02
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 2 of 2 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)

@yair-starkware yair-starkware added this pull request to the merge queue Mar 19, 2025
Merged via the queue into main with commit d6a26f8 Mar 19, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 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.

4 participants