-
Notifications
You must be signed in to change notification settings - Fork 65
feat(apollo_infra_utils): better cairo0 compiler checks #5921
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(apollo_infra_utils): better cairo0 compiler checks #5921
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
f38a4b3 to
b461536
Compare
dorimedini-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.
Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @Itay-Tsabary-Starkware)
crates/apollo_infra_utils/Cargo.toml line 30 at r1 (raw file):
assert-json-diff.workspace = true cached.workspace = true colored.workspace = true
this is s bugfix - cargo test -p apollo_infra_utils fails without these deps
Code quote:
assert-json-diff.workspace = true
cached.workspace = true
colored.workspace = true
Itay-Tsabary-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.
Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
crates/apollo_infra_utils/Cargo.toml line 10 at r2 (raw file):
[features] testing = ["cached", "colored", "dep:assert-json-diff", "socket2", "toml"]
I checked the testing feature dependencies and noticed the inconsistent use of dep: syntax here.
What have we decided regarding this usage?
Code quote:
dep:
dorimedini-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.
Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
crates/apollo_infra_utils/Cargo.toml line 10 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
I checked the
testingfeature dependencies and noticed the inconsistent use ofdep:syntax here.
What have we decided regarding this usage?
I don't think we decided anything
Itay-Tsabary-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.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)
crates/blockifier_test_utils/src/cairo_compile.rs line 6 at r2 (raw file):
use std::process::{Command, Output}; use apollo_infra_utils::cairo0_compiler::verify_cairo0_compiler_deps;
What's the motivation for having the compiler utilities part of the apollo_infra crate and not in the blockifier test utils crate? Are there other crates that intend to use it?
Code quote:
use apollo_infra_utils::cairo0_compiler::verify_cairo0_compiler_deps;
dorimedini-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.
Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware and @Itay-Tsabary-Starkware)
crates/blockifier_test_utils/src/cairo_compile.rs line 6 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
What's the motivation for having the compiler utilities part of the
apollo_infracrate and not in theblockifier test utilscrate? Are there other crates that intend to use it?
yes :)
Itay-Tsabary-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.
Reviewed 4 of 5 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
crates/apollo_infra_utils/Cargo.toml line 10 at r2 (raw file):
Previously, dorimedini-starkware wrote…
I don't think we decided anything
Consider removing the dep: then for consistency. Anyhow, not blocking.
ed9e2c1 to
e099557
Compare
b461536 to
c163a0d
Compare
e099557 to
bbedc2c
Compare
c163a0d to
83c2706
Compare
|
Benchmark movements: No major performance changes detected. |
a780f22 to
400f179
Compare
5bf93a6 to
fd328a2
Compare
400f179 to
9477f04
Compare
fd328a2 to
94eb0ff
Compare
9477f04 to
7243c38
Compare
94eb0ff to
b9541ed
Compare
7243c38 to
750f23c
Compare
b9541ed to
78a5acd
Compare
750f23c to
6b18469
Compare
78a5acd to
2157f4a
Compare
6b18469 to
0710881
Compare
2157f4a to
ffe2189
Compare
0710881 to
3b4fbc0
Compare
ffe2189 to
aab90f7
Compare
amosStarkware
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.
Reviewed 4 of 5 files at r4, all commit messages.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @Itay-Tsabary-Starkware and @TzahiTaub)
crates/apollo_infra_utils/src/cairo0_compiler.rs line 16 at r4 (raw file):
pub const STARKNET_COMPILE_DEPRECATED: &str = "starknet-compile-deprecated"; pub const CAIRO0_COMPILE: &str = "cairo-compile"; pub const EXPECTED_CAIRO0_VERSION: &str = "0.14.0a1";
why is it hardcoded here?
Code quote:
pub const EXPECTED_CAIRO0_VERSION: &str = "0.14.0a1";crates/apollo_infra_utils/src/cairo0_compiler.rs line 32 at r4 (raw file):
pub fn cairo0_compilers_correct_version() -> Result<(), Cairo0CompilerVersionError> { for compiler in [CAIRO0_COMPILE, STARKNET_COMPILE_DEPRECATED] {
why are there now two compilers?
Code quote:
for compiler in [CAIRO0_COMPILE, STARKNET_COMPILE_DEPRECATED] {
dorimedini-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.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @amosStarkware, @Itay-Tsabary-Starkware, and @TzahiTaub)
crates/apollo_infra_utils/src/cairo0_compiler.rs line 16 at r4 (raw file):
Previously, amosStarkware wrote…
why is it hardcoded here?
easier to reference it; it's tested for consistency with the pip requirements in test_cairo0_version_pip_requirements
crates/apollo_infra_utils/src/cairo0_compiler.rs line 32 at r4 (raw file):
Previously, amosStarkware wrote…
why are there now two compilers?
one for cairo0 code, and one for cairo0 starknet contracts. they are separate scripts
3b4fbc0 to
85891bd
Compare
aab90f7 to
e1800d8
Compare
85891bd to
e193e22
Compare
e1800d8 to
793dee7
Compare
e193e22 to
f8d0a42
Compare
793dee7 to
7e905ce
Compare
amosStarkware
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.
Reviewed 1 of 5 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @TzahiTaub)

No description provided.