-
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
chore(cairo_native): update cairo native version to 0.2.5-rc1 #2839
Conversation
47dc68a
to
1ce1d03
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 5 files at r1.
Reviewable status: 1 of 5 files reviewed, all discussions resolved
1ce1d03
to
e495b98
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 3 files at r2.
Reviewable status: 1 of 6 files reviewed, all discussions resolved
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: 1 of 6 files reviewed, 1 unresolved discussion
crates/bin/starknet-native-compile/Cargo.lock
line 471 at r2 (raw file):
] [[package]]
This cargo.lock file did not update, so I ran cargo update inside the folder and only accepted the relevant changes. I think it might be risky.
e495b98
to
0cc6f64
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 2 of 5 files at r1, 2 of 3 files at r3, all commit messages.
Reviewable status: 4 of 6 files reviewed, 2 unresolved discussions (waiting on @meship-starkware)
crates/bin/starknet-native-compile/Cargo.lock
line 471 at r2 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
This cargo.lock file did not update, so I ran cargo update inside the folder and only accepted the relevant changes. I think it might be risky.
Why wasn't it updated?
Cargo.toml
line 106 at r3 (raw file):
cairo-lang-utils = "2.9.2" # Important: when updated, make sure to update the cairo-native submodule as well. cairo-native = "0.2.5-rc1"
Update the submodule?
Code quote:
# Important: when updated, make sure to update the cairo-native submodule as well.
cairo-native = "0.2.5-rc1"
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 6 files reviewed, 1 unresolved discussion (waiting on @noaov1)
Cargo.toml
line 106 at r3 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Update the submodule?
I did update it but it seems like I cant push it for some reason :(
crates/bin/starknet-native-compile/Cargo.lock
line 471 at r2 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Why wasn't it updated?
I am not sure. I think that it is only updated through cargo update or when you run a code that uses the cargo.toml packages. I only run the tests, so this might be the issue.
2e47414
to
e0d1baf
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 3 files at r2, 1 of 3 files at r3, 5 of 5 files at r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware)
crates/bin/starknet-native-compile/Cargo.lock
line 471 at r2 (raw file):
Previously, meship-starkware (Meshi Peled) wrote…
I am not sure. I think that it is only updated through cargo update or when you run a code that uses the cargo.toml packages. I only run the tests, so this might be the issue.
Try building the crate/cargo update?
-- commits
line 2 at r5:
Please add to the commit message the update of the compiler version.
Code quote:
- e0d1baf: chore(cairo_native): update cairo native version to 0.2.5-rc2
e0d1baf
to
35ffbee
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 r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware)
35ffbee
to
54d5933
Compare
Benchmark movements: |
f2e2696
to
9940b83
Compare
Benchmark movements: |
9940b83
to
227f114
Compare
Benchmark movements: |
227f114
to
a6ece8b
Compare
Benchmark movements: |
a6ece8b
to
46c9c8d
Compare
5a271b2
to
992c7c7
Compare
Benchmark movements: |
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: 34 of 39 files reviewed, 3 unresolved discussions (waiting on @noaov1 and @Yoni-Starkware)
crates/bin/starknet-native-compile/Cargo.lock
line 471 at r2 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Try building the crate/cargo update?
You need to do cargo update inside the starknet-native-compile crate
crates/blockifier/feature_contracts/cairo1/sierra/cairo_steps_test_contract.sierra.json
line 4 at r9 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Why was it changed? Isn't the compiler version for this contract fixed?
From what Tzahi told me, it was 0x6, but AvivY changed it manually to 0x5 so the test would pass
096a8b1
to
dcaca1a
Compare
Benchmark movements: |
09201e9
to
19858cd
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 5 files at r9, 1 of 4 files at r24.
Reviewable status: 30 of 39 files reviewed, 3 unresolved discussions (waiting on @noaov1 and @Yoni-Starkware)
crates/blockifier/src/execution/execution_utils.rs
line 61 at r16 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Delete?
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 1 of 4 files at r19, 2 of 7 files at r21, 1 of 1 files at r23, 4 of 4 files at r24, 2 of 2 files at r27, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware and @Yoni-Starkware)
.github/workflows/upload_artifacts_workflow.yml
line 102 at r27 (raw file):
# Build artifact. - uses: ./.github/actions/bootstrap
We don't need it anymore?
@dorimedini-starkware
Code quote:
- uses: ./.github/actions/bootstrap
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: all files reviewed, 1 unresolved discussion (waiting on @noaov1 and @Yoni-Starkware)
.github/workflows/upload_artifacts_workflow.yml
line 102 at r27 (raw file):
Previously, noaov1 (Noa Oved) wrote…
We don't need it anymore?
@dorimedini-starkware
I think it's contained in build_native_in_docker
... read the contents of the bootstrap action (and the setup_native_deps action it uses) and make sure the sequencer dockerfile does the same?
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: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware and @Yoni-Starkware)
.github/workflows/upload_artifacts_workflow.yml
line 102 at r27 (raw file):
Previously, dorimedini-starkware wrote…
I think it's contained in
build_native_in_docker
... read the contents of the bootstrap action (and the setup_native_deps action it uses) and make sure the sequencer dockerfile does the same?
From a short glimpse it seems that it is not the same (but maybe I'm missing something).
The bootstrap script contains 3 actions:
- Update the git submodule. Done in the
build_native_blockifier.sh
, so all good. - Install rust. I did not see any mentioned for that in
build_native_in_docker.sh
orbuild_native_blockifier.sh
- Install cairo native. Same.
But, I may be missing something and thought you might know.
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: all files reviewed, 1 unresolved discussion (waiting on @noaov1 and @Yoni-Starkware)
.github/workflows/upload_artifacts_workflow.yml
line 102 at r27 (raw file):
Previously, noaov1 (Noa Oved) wrote…
From a short glimpse it seems that it is not the same (but maybe I'm missing something).
The bootstrap script contains 3 actions:
- Update the git submodule. Done in the
build_native_blockifier.sh
, so all good.- Install rust. I did not see any mentioned for that in
build_native_in_docker.sh
orbuild_native_blockifier.sh
- Install cairo native. Same.
But, I may be missing something and thought you might know.
- build_native_in_docker uses hte sequencer-ci docker
- which calls install_build_tools
- which has an install_rust function, that does
curl https://sh.rustup.rs -sSf | sh -s -- -y
de7951a
to
8246528
Compare
8246528
to
6702450
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 18 files at r33, 2 of 4 files at r36, 2 of 13 files at r37, 1 of 11 files at r38, 1 of 11 files at r44.
Reviewable status: 23 of 40 files reviewed, all discussions resolved (waiting on @Yoni-Starkware)
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 13 files at r37, 3 of 4 files at r42, 3 of 4 files at r43, 10 of 11 files at r44, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware and @Yoni-Starkware)
crates/blockifier/src/execution/syscalls/syscall_tests/get_class_hash_at.rs
line 44 at r44 (raw file):
CallExecution { retdata: retdata!(), gas_consumed: REQUIRED_GAS_GET_CLASS_HASH_AT_TEST + redeposit_gas,
You can simply change the REQUIRED_GAS_GET_CLASS_HASH_AT_TEST
, no? And set the redeposit_gas
in the out of gas test to 600.
Code quote:
gas_consumed: REQUIRED_GAS_GET_CLASS_HASH_AT_TEST + redeposit_gas,
6702450
to
bbcfa84
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 r45, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @meship-starkware and @Yoni-Starkware)
No description provided.