Skip to content

test(starknet_integration_tests): assert the full blocks flow #5229

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 2 commits into from
Mar 30, 2025

Conversation

yair-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

graphite-app bot commented Mar 24, 2025

Graphite Automations

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

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

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: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @alonh5 and @dafnamatsry)


crates/starknet_integration_tests/tests/end_to_end_flow_test.rs line 152 at r1 (raw file):

    } else {
        assert_eq!(full_blocks_metric, 0);
    }

consider extracting into a function.

Code quote:

    let metrics = recorder.handle().render();
    let full_blocks_metric =
        starknet_batcher::metrics::FULL_BLOCKS.parse_numeric_metric::<u64>(&metrics).unwrap();
    if expecting_full_blocks {
        assert!(full_blocks_metric > 0);
    } else {
        assert_eq!(full_blocks_metric, 0);
    }

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 3 files reviewed, 1 unresolved discussion (waiting on @alonh5, @dafnamatsry, and @Yael-Starkware)


crates/starknet_integration_tests/tests/end_to_end_flow_test.rs line 152 at r1 (raw file):

Previously, Yael-Starkware (YaelD) wrote…

consider extracting into a function.

Done.

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 3 of 3 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dafnamatsry and @Yael-Starkware)


crates/starknet_integration_tests/tests/end_to_end_flow_test.rs line 49 at r3 (raw file):

    false
)]
// TODO(yair): Add check that a block closed due to being full instead of deadline.

remove

Code quote:

// TODO(yair): Add check that a block closed due to being full instead of deadline.

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: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @alonh5, @dafnamatsry, and @Yael-Starkware)


crates/starknet_integration_tests/tests/end_to_end_flow_test.rs line 49 at r3 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

remove

Done.

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.

:lgtm:

Reviewed 1 of 3 files at r2, 1 of 1 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @alonh5 and @dafnamatsry)

@yair-starkware yair-starkware changed the base branch from yair/full_block_metric to main March 30, 2025 10:21
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 r4, 4 of 4 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dafnamatsry)

@yair-starkware yair-starkware added this pull request to the merge queue Mar 30, 2025
Merged via the queue into main with commit d31b6f9 Mar 30, 2025
50 of 52 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 1, 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