Skip to content

Conversation

@ArniStarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Itay-Tsabary-Starkware made 2 comments.
Reviewable status: 0 of 6 files reviewed, 2 unresolved discussions (waiting on @ArniStarkware).


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 12 at r1 (raw file):

use crate::common::{end_to_end_flow, validate_tx_count, EndToEndFlowArgs, TestScenario};

mod common;

Why is this needed? What breaks if we just import the relevant stuff from there?

Code quote:

mod common;

crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 16 at r1 (raw file):

/// Number of threads is 3 = Num of sequencer + 1 for the test thread.
#[tokio::test(flavor = "multi_thread", worker_threads = 3)]
async fn test_deploy_account_and_invoke_flow() {

No need for this prefix, the annotation indicates this is a test 🙏 (this is the convention)
Relevant to the other tests as well

Code quote:

test_

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Itay-Tsabary-Starkware made 1 comment.
Reviewable status: 0 of 6 files reviewed, 3 unresolved discussions (waiting on @ArniStarkware).


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 18 at r1 (raw file):

async fn test_deploy_account_and_invoke_flow() {
    end_to_end_flow(EndToEndFlowArgs::new(
        TestIdentifier::EndToEndFlowTest,

We'd also need to pass a test index or something of that sort to differentiate the used ports of the 5 different tests

Code quote:

TestIdentifier::EndToEndFlowTest,

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Itay-Tsabary-Starkware made 1 comment.
Reviewable status: 0 of 6 files reviewed, 3 unresolved discussions (waiting on @ArniStarkware).


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 18 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

We'd also need to pass a test index or something of that sort to differentiate the used ports of the 5 different tests

(this currently works as the ci is configured to run these tests sequentially, and the motivation is to remove this configuration)

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Itay-Tsabary-Starkware made 1 comment.
Reviewable status: 0 of 6 files reviewed, 3 unresolved discussions (waiting on @ArniStarkware).


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 18 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

(this currently works as the ci is configured to run these tests sequentially, and the motivation is to remove this configuration)

This can and probably should be in a different pr -- but add a todo please 🙏

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Itay-Tsabary-Starkware made 1 comment.
Reviewable status: 0 of 6 files reviewed, 4 unresolved discussions (waiting on @ArniStarkware).


crates/apollo_integration_tests/tests/l1_to_l2_message_flow_test.rs line 34 at r1 (raw file):

) -> Vec<L1HandlerTransaction> {
    const N_TXS: usize = 1;
    const SHOULD_REVERT: bool = false;

Needed as consts?
wdyt about cancelling this fn entirely and creating a closure |tx_generator| create_l1_to_l2_messages_args(tx_generator, 1, false) at the callsite instead?
(can be in a different pr, but add a todo 🙏 )

Code quote:

    const N_TXS: usize = 1;
    const SHOULD_REVERT: bool = false;

@ArniStarkware ArniStarkware changed the base branch from arni/integration_tests/unify_use_of_validate_tx_count to graphite-base/11504 January 8, 2026 08:35
@ArniStarkware ArniStarkware force-pushed the arni/integration_tests/split_end_to_end_flow_test branch from ce7d79e to b9a7b96 Compare January 8, 2026 11:58
@ArniStarkware ArniStarkware changed the base branch from graphite-base/11504 to arni/integration_tests/unify_use_of_validate_tx_count January 8, 2026 11:59
Copy link
Contributor Author

@ArniStarkware ArniStarkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArniStarkware made 4 comments.
Reviewable status: 0 of 7 files reviewed, 4 unresolved discussions (waiting on @Itay-Tsabary-Starkware).


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 12 at r1 (raw file):
From the AI agent:

In Rust integration tests, each file in tests/ is compiled as its own crate. To use a module from tests/common/, you must declare it with mod common; in each test file.

This is the same issue as link


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 16 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

No need for this prefix, the annotation indicates this is a test 🙏 (this is the convention)
Relevant to the other tests as well

Done.


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 18 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

This can and probably should be in a different pr -- but add a todo please 🙏

Done.


crates/apollo_integration_tests/tests/l1_to_l2_message_flow_test.rs line 34 at r1 (raw file):

Previously, Itay-Tsabary-Starkware wrote…

Needed as consts?
wdyt about cancelling this fn entirely and creating a closure |tx_generator| create_l1_to_l2_messages_args(tx_generator, 1, false) at the callsite instead?
(can be in a different pr, but add a todo 🙏 )

Done.

@ArniStarkware
Copy link
Contributor Author

crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 16 at r2 (raw file):

/// Number of threads is 3 = Num of sequencer + 1 for the test thread.
#[tokio::test(flavor = "multi_thread", worker_threads = 3)]
async fn deploy_account_and_invoke_flow() {

@meship-starkware Looks good to you?

Suggestion:

mod common;

// TODO(Meshi): Fail the test if no class have migrated.
/// Number of threads is 3 = Num of sequencer + 1 for the test thread.
#[tokio::test(flavor = "multi_thread", worker_threads = 3)]
async fn deploy_account_and_invoke_flow() {

Copy link
Collaborator

@Itay-Tsabary-Starkware Itay-Tsabary-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Itay-Tsabary-Starkware made 2 comments and resolved 4 discussions.
Reviewable status: 0 of 7 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware).


crates/apollo_integration_tests/tests/deploy_account_and_invoke_flow_test.rs line 12 at r1 (raw file):

Previously, ArniStarkware (Arnon Hod) wrote…

From the AI agent:

In Rust integration tests, each file in tests/ is compiled as its own crate. To use a module from tests/common/, you must declare it with mod common; in each test file.

This is the same issue as link

Yea, more of a reason to deprecate this atrocity 😅


crates/apollo_integration_tests/tests/l1_to_l2_message_flow_test.rs line 15 at r2 (raw file):

async fn l1_to_l2_message_flow() {
    end_to_end_flow(EndToEndFlowArgs::new(
        // TODO(Arni): Change the TestIdentifier to L1ToL2MessageFlow.

Let's talk about this in person, this is somewhat suboptimal 🙏

Code quote:

// TODO(Arni): Change the TestIdentifier to L1ToL2MessageFlow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants