Skip to content

Comments

blockifier: add validation for contract class manager config#12696

Open
ArniStarkware wants to merge 1 commit intomain-v0.14.2from
arni/blockifier/native_class_manager/validate_config
Open

blockifier: add validation for contract class manager config#12696
ArniStarkware wants to merge 1 commit intomain-v0.14.2from
arni/blockifier/native_class_manager/validate_config

Conversation

@ArniStarkware
Copy link
Contributor

@ArniStarkware ArniStarkware commented Feb 18, 2026

Note

Low Risk
Mainly adds config validation and test/CI tweaks; behavior change is limited to earlier panics on previously-invalid configuration combinations.

Overview
Adds validator-based config validation to prevent an invalid combination where wait_on_native_compilation=true while run_cairo_native=false (via a schema check on CairoNativeRunConfig and nested validation in ContractClassManagerConfig).

NativeClassManager::start now validates and panics early on invalid config; tests are updated/added to cover the new validation behavior, and CI benchmarking checkout now uses fetch-depth: 0 for the base-branch benchmark step.

Written by Cursor Bugbot for commit ab9659d. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArniStarkware commented Feb 18, 2026

@ArniStarkware ArniStarkware force-pushed the arni/blockifier/validate_config/set_missing_config_validations branch from e3dc405 to 16ac2a2 Compare February 18, 2026 12:40
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from 6d8a853 to 4b4b855 Compare February 18, 2026 12:40
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/validate_config/set_missing_config_validations branch from 16ac2a2 to ef2714e Compare February 18, 2026 18:17
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from 4b4b855 to 485574f Compare February 18, 2026 18:17
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from 485574f to 6c0aca6 Compare February 18, 2026 19:00
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/validate_config/set_missing_config_validations branch from ef2714e to cd4cd2f Compare February 18, 2026 19:00
@ArniStarkware ArniStarkware changed the base branch from arni/blockifier/validate_config/set_missing_config_validations to graphite-base/12696 February 19, 2026 07:57
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from 6c0aca6 to 2fa38d7 Compare February 19, 2026 08:01
@ArniStarkware ArniStarkware changed the base branch from graphite-base/12696 to arni/blockifier/validate_config/set_missing_config_validations February 19, 2026 08:01
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 1 comment and resolved 1 discussion.
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on avi-starkware and avivg-starkware).

@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from 2fa38d7 to f87f777 Compare February 19, 2026 12:03
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/validate_config/set_missing_config_validations branch from 5047911 to 432618e Compare February 19, 2026 12:03
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from f87f777 to 2d0904f Compare February 19, 2026 13:50
@ArniStarkware
Copy link
Contributor Author

Collides with #12717

@ArniStarkware ArniStarkware changed the base branch from arni/blockifier/validate_config/set_missing_config_validations to graphite-base/12696 February 22, 2026 11:12
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from 2d0904f to 59bea43 Compare February 22, 2026 11:12
@ArniStarkware ArniStarkware changed the base branch from graphite-base/12696 to main-v0.14.2 February 22, 2026 11:12
@ArniStarkware ArniStarkware force-pushed the arni/blockifier/native_class_manager/validate_config branch from 59bea43 to ab9659d Compare February 22, 2026 14:38
Copy link
Contributor

@idan-starkware idan-starkware left a comment

Choose a reason for hiding this comment

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

@idan-starkware reviewed 1 file.
Reviewable status: 1 of 5 files reviewed, all discussions resolved (waiting on avi-starkware and avivg-starkware).

Copy link
Collaborator

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

@avi-starkware reviewed 4 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on avivg-starkware).

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