-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: use the command line compiler in gateway #599
feat: use the command line compiler in gateway #599
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @ArniStarkware and the rest of your teammates on Graphite |
4bc38ea
to
610aec6
Compare
efe31b3
to
bcc1df0
Compare
610aec6
to
d14d3de
Compare
bcc1df0
to
73d32b7
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #599 +/- ##
===========================================
- Coverage 76.62% 28.49% -48.14%
===========================================
Files 351 209 -142
Lines 37223 23945 -13278
Branches 37223 23945 -13278
===========================================
- Hits 28522 6823 -21699
- Misses 6388 16375 +9987
+ Partials 2313 747 -1566 ☔ View full report in Codecov by Sentry. |
d14d3de
to
17e0fd5
Compare
73d32b7
to
efe83f3
Compare
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.
Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ArniStarkware)
crates/gateway/build.rs
line 1 at r1 (raw file):
// Sets up the environment variable OUT_DIR.
Suggestion:
// Sets up the environment variable OUT_DIR, which holds the cairo compiler binary.
// The binary is dowloaded to OUT_DIR by the starknet_sierra_compile crate.
crates/gateway/src/stateful_transaction_validator_test.rs
line 85 at r1 (raw file):
stateful_validator: StatefulTransactionValidator, ) { let optional_class_info =
Can you add the optional_class_info as a case argument and set it to None?
i.e.:
Suggestion:
#[case::invalid_tx(invoke_tx(CairoVersion::Cairo1), Err(STATEFUL_VALIDATOR_FEE_ERROR)), None]
fn test_stateful_tx_validator(
#[case] external_tx: RpcTransaction,
#[case] expected_result: BlockifierStatefulValidatorResult<ValidateInfo>,
#[case] class_info: Option<ClassInfo>,
stateful_validator: StatefulTransactionValidator,
) {
crates/tests-integration/build.rs
line 2 at r1 (raw file):
// Sets up the environment variable OUT_DIR. This is necessary for for the crate // starknet_sierra_compile.
Suggestion:
// Sets up the environment variable OUT_DIR. This is necessary for for the crate
// starknet_sierra_compile to download the cairo compiler binary.
17e0fd5
to
d98265e
Compare
efe83f3
to
32566bd
Compare
d98265e
to
e3e4d61
Compare
32566bd
to
ebd8ce3
Compare
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.
Reviewable status: 3 of 7 files reviewed, 3 unresolved discussions (waiting on @dafnamatsry)
crates/gateway/build.rs
line 1 at r1 (raw file):
// Sets up the environment variable OUT_DIR.
Done.
crates/gateway/src/stateful_transaction_validator_test.rs
line 85 at r1 (raw file):
Previously, dafnamatsry wrote…
Can you add the optional_class_info as a case argument and set it to None?
i.e.:
Done.
Even better.
crates/tests-integration/build.rs
line 2 at r1 (raw file):
// Sets up the environment variable OUT_DIR. This is necessary for for the crate // starknet_sierra_compile.
Done.
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.
Reviewed 4 of 4 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
e3e4d61
to
b0708b1
Compare
ebd8ce3
to
853b855
Compare
b0708b1
to
052c771
Compare
853b855
to
e2d090a
Compare
052c771
to
6eb922f
Compare
e2d090a
to
906ba9b
Compare
6eb922f
to
4621f8f
Compare
906ba9b
to
0b37d48
Compare
4621f8f
to
1ee6ade
Compare
0b37d48
to
8ebcf11
Compare
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.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
Merge activity
|
8ebcf11
to
7868f5c
Compare
This change is