Skip to content

Conversation

@dorimedini-starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Collaborator Author

dorimedini-starkware commented Oct 8, 2025

@dorimedini-starkware dorimedini-starkware self-assigned this Oct 8, 2025
@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review October 8, 2025 14:59
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from b2c97a4 to b81fdc8 Compare October 9, 2025 08:29
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 1638319 to 8a1fdf8 Compare October 9, 2025 08:29
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from b81fdc8 to 45cceaf Compare October 9, 2025 09:39
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 8a1fdf8 to 2787132 Compare October 9, 2025 09:39
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from 45cceaf to b2fd2c7 Compare October 9, 2025 09:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 2787132 to 492b9c7 Compare October 9, 2025 09:49
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from b2fd2c7 to a0abc86 Compare October 9, 2025 11:13
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 492b9c7 to 6a5be89 Compare October 9, 2025 11:13
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from a0abc86 to cfd092e Compare October 9, 2025 11:46
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 6a5be89 to 3050ce8 Compare October 9, 2025 11:47
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from cfd092e to 378371a Compare October 9, 2025 12:59
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 3050ce8 to d26bb4a Compare October 9, 2025 12:59
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from 519c39f to 9615107 Compare November 13, 2025 11:46
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from fbd33e1 to 7e0d228 Compare November 13, 2025 11:46
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from 9615107 to 3486e88 Compare November 13, 2025 12:31
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 7e0d228 to a20b5be Compare November 13, 2025 12:32
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from 3486e88 to 3b9680d Compare November 19, 2025 13:42
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from a20b5be to 2913251 Compare November 19, 2025 13:42
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from 3b9680d to a786801 Compare November 20, 2025 09:28
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 2913251 to b36f6cd Compare November 20, 2025 09:28
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-blockifier_test_utils_add_block_info_test_contract_contracts branch from a786801 to 227cff9 Compare November 20, 2025 10:47
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from b36f6cd to c4b1129 Compare November 20, 2025 10:47
@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from c4b1129 to 20e96e6 Compare November 20, 2025 12:03
@dorimedini-starkware dorimedini-starkware changed the base branch from 10-08-blockifier_test_utils_add_block_info_test_contract_contracts to main-v0.14.1-committer November 20, 2025 12:03
@github-actions
Copy link

Benchmark movements: full_committer_flow performance improved 😺 full_committer_flow time: [16.136 ms 16.269 ms 16.408 ms] change: [-7.6444% -6.0254% -4.5131%] (p = 0.00 < 0.05) Performance has improved. Found 2 outliers among 100 measurements (2.00%) 2 (2.00%) high mild

Copy link
Contributor

@rotem-starkware rotem-starkware left a comment

Choose a reason for hiding this comment

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

@rotem-starkware reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @AvivYossef-starkware, @meship-starkware, and @Yoni-Starkware)


crates/starknet_os_flow_tests/src/tests.rs line 1907 at r3 (raw file):

            DeclareTransaction::create(account_declare_tx, class_info, &CHAIN_ID_FOR_TESTS)
                .unwrap();
        test_manager.add_cairo1_declare_tx(declare_tx.clone(), &test_contract_sierra);

Is the cloning necessary here?


crates/starknet_os_flow_tests/src/tests.rs line 1946 at r3 (raw file):

    let empty_compiled_class_hash = empty_contract.get_compiled_class_hash(&HashVersion::V2);
    let declare_tx_args = declare_tx_args! {
        sender_address: block_info_account_address,

It's not like the python test, but I think it's correct.
IIUC we want to test __validate_declare__ of block_info_test_contract, so we need to send this tx from block_info_account_address.
@Yoni-Starkware can you PTAL?

Code quote:

sender_address: block_info_account_address,

crates/starknet_os_flow_tests/src/tests.rs line 1970 at r3 (raw file):

    // Test `constructor` in execute mode.
    let ctor_calldata = [Felt::ZERO]; // Not validate mode (execute mode).
    let salt = Felt::ZERO;

python

Suggestion:

let salt = Felt::ONE

@dorimedini-starkware dorimedini-starkware force-pushed the 10-08-starknet_os_flow_tests_migrate_test_block_info branch from 20e96e6 to ac72ed9 Compare November 25, 2025 15:55
Copy link
Collaborator Author

@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.

Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on @AvivYossef-starkware, @meship-starkware, @rotem-starkware, and @Yoni-Starkware)


crates/starknet_os_flow_tests/src/tests.rs line 1907 at r3 (raw file):

Previously, rotem-starkware wrote…

Is the cloning necessary here?

Done.


crates/starknet_os_flow_tests/src/tests.rs line 1970 at r3 (raw file):

Previously, rotem-starkware wrote…

python

Done.

Copy link
Collaborator

@Yoni-Starkware Yoni-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, 3 unresolved discussions (waiting on @AvivYossef-starkware, @meship-starkware, and @rotem-starkware)


crates/starknet_os_flow_tests/src/tests.rs line 1946 at r3 (raw file):

Previously, rotem-starkware wrote…

It's not like the python test, but I think it's correct.
IIUC we want to test __validate_declare__ of block_info_test_contract, so we need to send this tx from block_info_account_address.
@Yoni-Starkware can you PTAL?

Right, bug in py test

Copy link
Collaborator

@Yoni-Starkware Yoni-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, 4 unresolved discussions (waiting on @AvivYossef-starkware, @meship-starkware, and @rotem-starkware)


a discussion (no related file):
Non-blocking, no need to be in this PR. Can you add the following asserts to the test contracts in execute mode?

            assert (block_number != block_number_for_validate, 'INVALID_BLOCK_NUMBER');
            assert (block_timestamp != block_timestamp_for_validate, 'INVALID_BLOCK_TIMESTAMP');

Here

        if is_validate {
            assert (block_number == block_number_for_validate, 'INVALID_BLOCK_NUMBER');
            assert (block_timestamp == block_timestamp_for_validate, 'INVALID_BLOCK_TIMESTAMP');
            return starknet::VALIDATED;
        }
        assert (!is_validate, 'INVALID_IS_VALIDATE');
        // Here

Copy link
Collaborator Author

@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.

Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on @AvivYossef-starkware, @meship-starkware, and @rotem-starkware)


a discussion (no related file):

Previously, Yoni-Starkware (Yoni) wrote…

Non-blocking, no need to be in this PR. Can you add the following asserts to the test contracts in execute mode?

            assert (block_number != block_number_for_validate, 'INVALID_BLOCK_NUMBER');
            assert (block_timestamp != block_timestamp_for_validate, 'INVALID_BLOCK_TIMESTAMP');

Here

        if is_validate {
            assert (block_number == block_number_for_validate, 'INVALID_BLOCK_NUMBER');
            assert (block_timestamp == block_timestamp_for_validate, 'INVALID_BLOCK_TIMESTAMP');
            return starknet::VALIDATED;
        }
        assert (!is_validate, 'INVALID_IS_VALIDATE');
        // Here

done (top of stack)


crates/starknet_os_flow_tests/src/tests.rs line 1946 at r3 (raw file):

Previously, Yoni-Starkware (Yoni) wrote…

Right, bug in py test

Done.

Copy link
Contributor

@rotem-starkware rotem-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:

@rotem-starkware reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware and @meship-starkware)

@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Nov 26, 2025
Merged via the queue into main-v0.14.1-committer with commit 0c9f93f Nov 26, 2025
19 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 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.

5 participants