feat(blockifier_test_utils): download compilers (async), then recompile all (async)#5591
Conversation
1aff9c9 to
0298cd7
Compare
36086a9 to
fd4287c
Compare
0298cd7 to
5b2776c
Compare
fd4287c to
0f49e79
Compare
5b2776c to
8fa5cc8
Compare
1a039dc to
0d3a6b2
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @elintul and @noaov1)
crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 101 at r1 (raw file):
FeatureContract::cairo1_feature_contracts_by_version() { for contract in feature_contracts
note that now we don't recompile in 3 batches (one batch per compiler version) - all are compiled in parallel, using different binaries.
Code quote:
for (_version, feature_contracts) in
FeatureContract::cairo1_feature_contracts_by_version()
{
for contract in feature_contractse33bc43 to
d3f24fb
Compare
0d3a6b2 to
a4c748e
Compare
d3f24fb to
6c29882
Compare
a4c748e to
713eb0f
Compare
5eac26f to
db45bc6
Compare
4ffc4b2 to
6b1f228
Compare
db45bc6 to
faa20ee
Compare
6b1f228 to
f23bb3a
Compare
faa20ee to
11764db
Compare
f23bb3a to
28c60e3
Compare
11764db to
e1d6c08
Compare
28c60e3 to
00ab8b3
Compare
e1d6c08 to
1e5ef75
Compare
00ab8b3 to
c1af191
Compare
1e5ef75 to
cf18b14
Compare
c1af191 to
50276e0
Compare
cf18b14 to
7db5892
Compare
50276e0 to
d4a2855
Compare
7db5892 to
072e5b8
Compare
d4a2855 to
3772f92
Compare
5ca6083 to
a73fb50
Compare
a73fb50 to
2aa42db
Compare
TzahiTaub
left a comment
There was a problem hiding this comment.
Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @elintul and @noaov1)
crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 95 at r2 (raw file):
info!("Done spawning tasks for package downloads. Awaiting them..."); download_task_set.join_all().await; info!("Done downloading packages.");
I think the logs will be confusing. We will get a "spawning" log and "done downloading" log even if all packages existed and we didn't download anything. I see the download_cairo_package has its own "Downloading" log, so I think we can just remove all of the logs in the current function. Optionally, we can collect the versions and print them once - something like:
Suggestion:
{
download_task_set.spawn(async move { verify_cairo1_package(&version).await });
}
info!("Verifying Cairo1 packages for versions {}.", FeatureContract::cairo1_feature_contracts_by_version().keys());
download_task_set.join_all().await;
info!("Cairo1 packages verified");
TzahiTaub
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware, @elintul, and @noaov1)
2aa42db to
d95686c
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @elintul, @noaov1, and @TzahiTaub)
crates/blockifier_test_utils/tests/feature_contracts_compatibility_test.rs line 95 at r2 (raw file):
Previously, TzahiTaub (Tzahi) wrote…
I think the logs will be confusing. We will get a "spawning" log and "done downloading" log even if all packages existed and we didn't download anything. I see the
download_cairo_packagehas its own "Downloading" log, so I think we can just remove all of the logs in the current function. Optionally, we can collect the versions and print them once - something like:
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 and @noaov1)

No description provided.