-
Notifications
You must be signed in to change notification settings - Fork 64
blockifier: add get execution info v2 to get execution test #11410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blockifier: add get execution info v2 to get execution test #11410
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
meship-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meship-starkware made 1 comment.
Reviewable status: 0 of 7 files reviewed, 1 unresolved discussion (waiting on @avivg-starkware and @noaov1).
crates/blockifier/src/execution/syscalls/syscall_tests/get_execution_info.rs line 527 at r1 (raw file):
true, "test_get_execution_info_v2"; "V2: Exclude l1 data gas: query")]
I am not sure about adding all the test cases for v2 as well. Perhaps we should focus only on the commonly used cases.
Code quote:
// V2 entry point test cases (using test_get_execution_info_v2).
#[cfg_attr(
feature = "cairo_native",
test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Native)),
ExecutionMode::Validate,
TransactionVersion::THREE,
false,
false,
false,
false,
"test_get_execution_info_v2";
"Native V2: Validate execution mode: block info fields should be zeroed. Transaction V3."
)
)]
#[cfg_attr(
feature = "cairo_native",
test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Native)),
ExecutionMode::Execute,
TransactionVersion::THREE,
false,
false,
false,
false,
"test_get_execution_info_v2";
"Native V2: Execute execution mode: block info should be as usual. Transaction V3."
)
)]
#[cfg_attr(
feature = "cairo_native",
test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Native)),
ExecutionMode::Execute,
TransactionVersion::THREE,
true,
false,
false,
false,
"test_get_execution_info_v2";
"Native V2: Execute execution mode: block info should be as usual. Transaction V3. Query"
)
)]
#[cfg_attr(
feature = "cairo_native",
test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Native)),
ExecutionMode::Execute,
TransactionVersion::THREE,
false,
true,
false,
false,
"test_get_execution_info_v2";
"Native V2: V1 bound account: execute"
)
)]
#[cfg_attr(
feature = "cairo_native",
test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Native)),
ExecutionMode::Execute,
TransactionVersion::THREE,
true,
true,
false,
false,
"test_get_execution_info_v2";
"Native V2: V1 bound account: query"
)
)]
#[cfg_attr(
feature = "cairo_native",
test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Native)),
ExecutionMode::Execute,
TransactionVersion::THREE,
true,
false,
false,
true,
"test_get_execution_info_v2";
"Native V2: data gas account: query"
)
)]
#[cfg_attr(
feature = "cairo_native",
test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Native)),
ExecutionMode::Execute,
TransactionVersion::THREE,
false,
false,
false,
true,
"test_get_execution_info_v2";
"Native V2: data gas account"
)
)]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Validate,
TransactionVersion::ONE,
false,
false,
false,
false,
"test_get_execution_info_v2";
"V2: Validate execution mode: block info fields should be zeroed. Transaction V1.")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::ONE,
false,
false,
false,
false,
"test_get_execution_info_v2";
"V2: Execute execution mode: block info should be as usual. Transaction V1.")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Validate,
TransactionVersion::THREE,
false,
false,
false,
false,
"test_get_execution_info_v2";
"V2: Validate execution mode: block info fields should be zeroed. Transaction V3.")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::THREE,
false,
false,
false,
false,
"test_get_execution_info_v2";
"V2: Execute execution mode: block info should be as usual. Transaction V3.")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::THREE,
true,
false,
false,
false,
"test_get_execution_info_v2";
"V2: Execute execution mode: block info should be as usual. Transaction V3. Query.")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::THREE,
false,
true,
false,
false,
"test_get_execution_info_v2";
"V2: V1 bound account: execute")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::THREE,
false,
true,
true,
false,
"test_get_execution_info_v2";
"V2: V1 bound account: execute, high tip")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::THREE,
true,
true,
false,
false,
"test_get_execution_info_v2";
"V2: V1 bound account: query")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::THREE,
false,
false,
false,
true,
"test_get_execution_info_v2";
"V2: Exclude l1 data gas: execute")]
#[test_case(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm)),
ExecutionMode::Execute,
TransactionVersion::THREE,
true,
false,
false,
true,
"test_get_execution_info_v2";
"V2: Exclude l1 data gas: query")]0d79ea1 to
f81428a
Compare
meship-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meship-starkware reviewed 2 files.
Reviewable status: 2 of 9 files reviewed, 1 unresolved discussion (waiting on @avivg-starkware and @noaov1).
f81428a to
72c94ff
Compare
42c481e to
80c383c
Compare
d75157c to
9f8c3e6
Compare
80c383c to
0e204c5
Compare
9f8c3e6 to
d33f5af
Compare
0e204c5 to
c301b49
Compare
d33f5af to
e301275
Compare
c301b49 to
718611a
Compare
avivg-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avivg-starkware reviewed 11 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1).
crates/blockifier/src/transaction/transactions_test.rs line 2641 at r4 (raw file):
CairoVersion::Cairo1(RunnableCairo1::Casm), ); let entry_point_selector = selector_from_name("test_get_execution_info_v3");
@noaov1 - I am leaning toward agreeing with @meshi of choosing to use _v3 instead of _v2 (here and in the other places using "test_get_execution_info") , WDYT?
Code quote:
"test_get_execution_info_v3"e301275 to
a926186
Compare
718611a to
944305b
Compare
a926186 to
352b07f
Compare
944305b to
1a7d58e
Compare
avivg-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avivg-starkware reviewed 3 files and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1).
meship-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@meship-starkware reviewed 11 files and all commit messages, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @noaov1).

No description provided.