Skip to content

starknet_os_flow_tests: fuzz test call/libcall bad entrypoint scenario#13152

Open
dorimedini-starkware wants to merge 1 commit into03-08-starknet_os_flow_tests_add_revert_reason_verification_to_fuzz_testsfrom
03-08-starknet_os_flow_tests_fuzz_test_call_libcall_bad_entrypoint_scenario
Open

starknet_os_flow_tests: fuzz test call/libcall bad entrypoint scenario#13152
dorimedini-starkware wants to merge 1 commit into03-08-starknet_os_flow_tests_add_revert_reason_verification_to_fuzz_testsfrom
03-08-starknet_os_flow_tests_fuzz_test_call_libcall_bad_entrypoint_scenario

Conversation

@dorimedini-starkware
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware commented Mar 10, 2026

Note

Medium Risk
Extends fuzz-flow test logic and its on-chain helper contracts to model missing-entrypoint failures, which may change expected revert propagation and test determinism across Cairo0/1.

Overview
Adds two new fuzz scenarios to exercise call_contract/library_call to a non-existent entry point and validate how those immediate syscall failures propagate (unwrap vs catch) across Cairo0 and Cairo1 contexts.

Updates the Cairo0/Cairo1 fuzz contracts and orchestrator to carry new scenario IDs and panic-message plumbing (including a Cairo1 helper handle_syscall_immediate_failure), and refreshes the Cairo0 compiled artifact and expected class hashes/initial addresses accordingly.

Enhances starknet_os_flow_tests’ Rust-side scenario generator/simulator to emit these operations, synthesize the expected ENTRYPOINT_NOT_FOUND revert reason, and pretty-print the new operation types; also adds a cairo-lang-runner dev-dependency for short-string decoding.

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

@reviewable-StarkWare
Copy link

This change is Reviewable

@dorimedini-starkware dorimedini-starkware force-pushed the 03-08-starknet_os_flow_tests_fuzz_test_call_libcall_bad_entrypoint_scenario branch from 7cc2ea1 to 0b51682 Compare March 11, 2026 09:01
@github-actions
Copy link

github-actions bot commented Mar 11, 2026

Copy link
Collaborator Author

dorimedini-starkware commented Mar 11, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@dorimedini-starkware dorimedini-starkware force-pushed the 03-08-starknet_os_flow_tests_add_revert_reason_verification_to_fuzz_tests branch from ae02a02 to 236e9b0 Compare March 11, 2026 14:12
@dorimedini-starkware dorimedini-starkware force-pushed the 03-08-starknet_os_flow_tests_fuzz_test_call_libcall_bad_entrypoint_scenario branch from 989ba5f to 030cdca Compare March 11, 2026 14:12
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.

2 participants