Skip to content

chore(blockifier_test_utils): delete tag-and-toolchain related code#5589

Merged
dorimedini-starkware merged 1 commit into
mainfrom
04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code
Apr 29, 2025
Merged

chore(blockifier_test_utils): delete tag-and-toolchain related code#5589
dorimedini-starkware merged 1 commit into
mainfrom
04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code

Conversation

@dorimedini-starkware

Copy link
Copy Markdown
Collaborator

No description provided.

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

dorimedini-starkware commented Apr 5, 2025

Copy link
Copy Markdown
Collaborator Author

@dorimedini-starkware dorimedini-starkware self-assigned this Apr 5, 2025
@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review April 5, 2025 12:20
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from 4d15216 to cd6ba5d Compare April 5, 2025 12:28
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from 4a32e5d to dc79548 Compare April 5, 2025 12:28
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from cd6ba5d to b10fe33 Compare April 5, 2025 12:44
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from dc79548 to b2a1173 Compare April 5, 2025 12:44
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from b10fe33 to 6bac67e Compare April 5, 2025 19:45
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from b2a1173 to e33bc43 Compare April 5, 2025 19:45
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from 6bac67e to d9b4954 Compare April 7, 2025 07:39
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from e33bc43 to d3f24fb Compare April 7, 2025 07:39
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from d9b4954 to a1489d6 Compare April 7, 2025 07:58
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from d3f24fb to 6c29882 Compare April 7, 2025 07:58
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from a1489d6 to 456f44a Compare April 7, 2025 09:16
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from 6c29882 to 8b6e56f Compare April 7, 2025 09:16
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from 456f44a to 6725d67 Compare April 9, 2025 11:57
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from adbdd11 to 4b5a971 Compare April 18, 2025 10:25
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from a5cc203 to 00aa036 Compare April 26, 2025 15:18
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch 2 times, most recently from ed83344 to 4ffc4b2 Compare April 26, 2025 15:49
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from 00aa036 to 0554501 Compare April 27, 2025 10:30
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from 4ffc4b2 to 6b1f228 Compare April 27, 2025 10:30
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from 0554501 to f2e7d76 Compare April 27, 2025 14:34
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from 6b1f228 to f23bb3a Compare April 27, 2025 14:34
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from f2e7d76 to c199564 Compare April 27, 2025 14:36
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from f23bb3a to 28c60e3 Compare April 27, 2025 14:36
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from c199564 to f7d07d3 Compare April 27, 2025 16:26
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from 28c60e3 to 00ab8b3 Compare April 27, 2025 16:26
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic branch from f7d07d3 to 924cf4e Compare April 28, 2025 09:20
@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch 2 times, most recently from c1af191 to 50276e0 Compare April 29, 2025 08:13
@dorimedini-starkware dorimedini-starkware changed the base branch from 04-05-feat_blockifier_test_utils_migrate_to_new_cairo_recompilation_logic to main April 29, 2025 08:13

@TzahiTaub TzahiTaub left a comment

Copy link
Copy Markdown
Contributor

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 r3.
Reviewable status: all files reviewed (commit messages unreviewed), 2 unresolved discussions (waiting on @elintul, @giladchase, and @noaov1)


crates/blockifier_test_utils/src/contracts.rs line 203 at r3 (raw file):

            Self::LegacyTestContract => LEGACY_CONTRACT_COMPILER_VERSION.into(),
            Self::CairoStepsTestContract => CAIRO_STEPS_TEST_CONTRACT_COMPILER_VERSION.into(),
            _ => cairo1_compiler_version(),

This is what will be returned for Cairo0 contracts right? like SecurityTests`. Please return Cairo0 compiler version, even if this function is not expected to be called by such.

Code quote:

  _ => cairo1_compiler_version(),

crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 94 at r3 (raw file):

                for contract in feature_contracts
                    .into_iter()
                    .filter(|contract| contract.cairo_version() == cairo_version)

This is redundant (unless cairo1_feature_contracts_by_version has a bug, which in this case - we hide it)

Code quote:

  .filter(|contract| contract.cairo_version() == cairo_version)

@TzahiTaub TzahiTaub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware, @elintul, @giladchase, and @noaov1)

@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from 50276e0 to d4a2855 Compare April 29, 2025 08:55

@dorimedini-starkware dorimedini-starkware left a comment

Copy link
Copy Markdown
Collaborator Author

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 @elintul, @giladchase, @noaov1, and @TzahiTaub)


crates/blockifier_test_utils/src/contracts.rs line 203 at r3 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

This is what will be returned for Cairo0 contracts right? like SecurityTests`. Please return Cairo0 compiler version, even if this function is not expected to be called by such.

this is only for cairo1, meaningless for cairo0. I'll panic explicitly if this is not the case...


crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 94 at r3 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

This is redundant (unless cairo1_feature_contracts_by_version has a bug, which in this case - we hide it)

fixed here (right?)

@TzahiTaub TzahiTaub left a comment

Copy link
Copy Markdown
Contributor

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 r5.
Reviewable status: all files reviewed (commit messages unreviewed), all discussions resolved (waiting on @elintul, @giladchase, and @noaov1)


crates/blockifier_test_utils/src/contracts.rs line 203 at r3 (raw file):

Previously, dorimedini-starkware wrote…

this is only for cairo1, meaningless for cairo0. I'll panic explicitly if this is not the case...

OK, can you add this to the doc as well?


crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 94 at r3 (raw file):

Previously, dorimedini-starkware wrote…

fixed here (right?)

Yep

@dorimedini-starkware dorimedini-starkware force-pushed the 04-05-chore_blockifier_test_utils_delete_tag-and-toolchain_related_code branch from d4a2855 to 3772f92 Compare April 29, 2025 09:26

@TzahiTaub TzahiTaub left a comment

Copy link
Copy Markdown
Contributor

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 r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @elintul, @giladchase, and @noaov1)

@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Apr 29, 2025
@dorimedini-starkware dorimedini-starkware removed this pull request from the merge queue due to a manual request Apr 29, 2025
@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Apr 29, 2025
Merged via the queue into main with commit 201e5e9 Apr 29, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators May 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.

3 participants