-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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. |
cb2f624
to
b29b947
Compare
2865475
to
9770028
Compare
There was a problem hiding this 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?
There was a problem hiding this 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;
}
9770028
to
57a04f7
Compare
cf7afc2
to
0b924a0
Compare
57a04f7
to
046c35f
Compare
There was a problem hiding this 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");
0b924a0
to
c23163d
Compare
046c35f
to
cdcd6c1
Compare
There was a problem hiding this 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 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
cdcd6c1
to
87bfed8
Compare
c23163d
to
72aa2a9
Compare
There was a problem hiding this 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:complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
87bfed8
to
650829b
Compare
72aa2a9
to
ee0b1c2
Compare
650829b
to
d41f1e7
Compare
ee0b1c2
to
8d6a25d
Compare
d41f1e7
to
faf5927
Compare
8d6a25d
to
3ac0f22
Compare
There was a problem hiding this 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:complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
3ac0f22
to
ab9ef3f
Compare
faf5927
to
03d0914
Compare
ab9ef3f
to
d6c8e8f
Compare
03d0914
to
9dc29ce
Compare
d6c8e8f
to
1edddd9
Compare
There was a problem hiding this 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:complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
No description provided.