feat(blockifier_test_utils): migrate to new cairo recompilation logic#5588
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
970ad50 to
cbca1cd
Compare
4d15216 to
cd6ba5d
Compare
cbca1cd to
342b7ed
Compare
cd6ba5d to
b10fe33
Compare
342b7ed to
03fe325
Compare
b10fe33 to
6bac67e
Compare
9360392 to
ffeddb7
Compare
6bac67e to
d9b4954
Compare
ffeddb7 to
207ca73
Compare
d9b4954 to
a1489d6
Compare
207ca73 to
19e7afc
Compare
a1489d6 to
456f44a
Compare
6725d67 to
fdea480
Compare
2f62080 to
d81ab93
Compare
fdea480 to
01166c1
Compare
d81ab93 to
9fb4a72
Compare
01166c1 to
0175fb1
Compare
9fb4a72 to
c5aefbf
Compare
0175fb1 to
ad45fc6
Compare
c5aefbf to
fa11520
Compare
ad45fc6 to
807de22
Compare
fa11520 to
fc85104
Compare
807de22 to
a5cc203
Compare
a5cc203 to
00aa036
Compare
61ac940 to
f5d805b
Compare
00aa036 to
0554501
Compare
f5d805b to
8815395
Compare
0554501 to
f2e7d76
Compare
8815395 to
08e5606
Compare
c199564 to
f7d07d3
Compare
TzahiTaub
left a comment
There was a problem hiding this comment.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @elintul, @giladchase, and @noaov1)
crates/blockifier_test_utils/src/cairo_compile.rs line 137 at r2 (raw file):
let (tag, _cairo_repo_path) = get_tag_and_repo_file_path(git_tag_override); let version = tag.strip_prefix("v").unwrap().to_string(); assert!(cairo1_package_exists(&version));
Why aren't you calling verify_cairo1_package instead? Is making this function async a problem?
Code quote:
assert!(cairo1_package_exists(&version));crates/blockifier_test_utils/src/cairo_compile.rs line 153 at r2 (raw file):
/// Compiles Cairo1 Contract into their Sierra version using the given compiler version. /// Assumes the relevant compiler version is already downloaded.
Suggestion:
/// Compiles Cairo1 contracts into their Sierra version using the given compiler version.
/// Assumes the relevant compiler version was already downloaded.crates/blockifier_test_utils/src/cairo_compile.rs line 163 at r2 (raw file):
/// Compiles Sierra code into CASM using the given compiler version. /// Assumes the relevant compiler version is already downloaded.
Suggestion:
version was already downloaded.crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 98 at r2 (raw file):
.unwrap() .to_string(); verify_cairo1_package(&version).await;
If you add this to the code in the other file it can be removed from here.
Code quote:
verify_cairo1_package(&version).await;f7d07d3 to
924cf4e
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @elintul, @giladchase, @noaov1, and @TzahiTaub)
crates/blockifier_test_utils/src/cairo_compile.rs line 137 at r2 (raw file):
Previously, TzahiTaub (Tzahi) wrote…
Why aren't you calling
verify_cairo1_packageinstead? Is making this function async a problem?
- yes
- the package is verified before calling this function
crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 98 at r2 (raw file):
Previously, TzahiTaub (Tzahi) wrote…
If you add this to the code in the other file it can be removed from here.
I don't want to make the compile function async
crates/blockifier_test_utils/src/cairo_compile.rs line 153 at r2 (raw file):
/// Compiles Cairo1 Contract into their Sierra version using the given compiler version. /// Assumes the relevant compiler version is already downloaded.
Done.
crates/blockifier_test_utils/src/cairo_compile.rs line 163 at r2 (raw file):
/// Compiles Sierra code into CASM using the given compiler version. /// Assumes the relevant compiler version is already downloaded.
Done.
TzahiTaub
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @elintul, @giladchase, and @noaov1)

No description provided.